<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>23848</bug_id>
          
          <creation_ts>2010-08-05 01:41:18 +0400</creation_ts>
          <short_desc>fixup for 4k sector disks and SSDs needed</short_desc>
          <delta_ts>2016-10-28 17:42:45 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>libevms</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.altlinux.org/BigSector</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>distro-blocker</keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>23155</blocked>
    
    <blocked>16000</blocked>
    
    <blocked>26925</blocked>
    
    <blocked>32679</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Shigorin">mike</reporter>
          <assigned_to name="Олег Соловьев">mcpain</assigned_to>
          <cc>admaks</cc>
    
    <cc>aen</cc>
    
    <cc>aspsk</cc>
    
    <cc>boyarsh</cc>
    
    <cc>dd1email</cc>
    
    <cc>evg</cc>
    
    <cc>kharpost</cc>
    
    <cc>mcpain</cc>
    
    <cc>mike</cc>
    
    <cc>vsu</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>111006</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2010-08-05 01:41:18 +0400</bug_when>
    <thetext>alterator-vm-0.4.1-alt11 starts first partition at sector 63 and doesn&apos;t align subsequent ones with anything but &quot;cylinder&quot; (which doesn&apos;t really make any sense by now).

Would be nice to follow the changes in util-linux-ng 2.17+:
* first partition starts at sector 2048 by default
* subsequent ones are aligned with chunk/[erase]block size of at least 128k.

An existing Windows partition might present a problem though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112898</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2010-09-30 12:58:57 +0400</bug_when>
    <thetext>ping</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112902</commentid>
    <comment_count>2</comment_count>
    <who name="Sergey Bolshakov">sbolshakov</who>
    <bug_when>2010-09-30 13:51:43 +0400</bug_when>
    <thetext>понг, шлите патчи.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112931</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2010-09-30 20:40:59 +0400</bug_when>
    <thetext>Слабо, но могу потестировать.  На крайняк даже попытаться изобразить удалённо доступную виртуалку с таким диском.  Написал tizianomueller@, но ответа скорее не жду...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119022</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2011-03-04 15:44:19 +0300</bug_when>
    <thetext>Судя по http://lwn.net/Articles/428533/ -- может быть смысл align&apos;ить сразу на границу 4M для дисков e.g. &gt;=16G (для SSD свежие ядра умеют ставить 0 в /sys/block/sd*/queue/rotational, для SD/MMC/CF в принципе можно изобразить эвристику вида &quot;около 8/16/32/64Gb -- наверное, solid state&quot;).

PS: не настаиваю, просто пока попалось на глаза про типичный размер сегмента текущих твердотельных носителей...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119024</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2011-03-04 15:49:09 +0300</bug_when>
    <thetext>Виноват, вот более точная ссылка: http://lwn.net/Articles/428584/
и фрагмент: &quot;The linaro-media-create tool (from Linaro Image Tools) has recently been changed to align partitions to 4 MB boundaries when installing to a bootable SD card, to work around this problem.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120655</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2011-04-22 14:14:15 +0400</bug_when>
    <thetext>Возможно, в существенной мере полегчает, если дефолт начала первого раздела выставить в отступ в мегабайт.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120794</commentid>
    <comment_count>7</comment_count>
    <who name="Andriy Stepanov (stanv)">stanv</who>
    <bug_when>2011-04-26 17:27:28 +0400</bug_when>
    <thetext>Насколько нам критично чтобы в раздел влазило кратное количество 4096 (128KiB, 1MiB, ..) блоков ?

т.е. нужно ли нам чтобы размер раздела делился на 4096?

т.е. конец раздела может прийтись на сектор, который в центре желаемого нами блока.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120952</commentid>
    <comment_count>8</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2011-05-01 00:46:18 +0400</bug_when>
    <thetext>Размер не шибко критичен сам по себе, но как средство обеспечения выровненности начала следующего раздела можно использовать (если его не попытаются по цилиндрам создавать, тогда не помогает).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121058</commentid>
    <comment_count>9</comment_count>
    <who name="Andriy Stepanov (stanv)">stanv</who>
    <bug_when>2011-05-04 10:45:29 +0400</bug_when>
    <thetext>в evms.git=2.5.5-alt17 следующие изменения:

1) для DOS разделов теперь выравнивание идет на 2048 сектора. (2048 * 512 = 1MB)
2) конец разделов также выравнивается на 1МБ
3) потеряна совместимость с MS-DOS. Поскольку разделы больше не выравниваются на конец цилиндра.

TODO: 
1) сделать тоже самое для GPT разделов.
2) выравниваются только вновь-созданные разделы. При изменении (урезании) существующих разделов - выравнивание не происходит.

Прошу интенсивно протестировать.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121193</commentid>
    <comment_count>10</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2011-05-09 20:34:15 +0400</bug_when>
    <thetext>Спасибо!

Вот образы инсталера с этой сборкой, выравнивание под vbox проверено и соответствует описанному:
&gt; http://ftp.linux.kiev.ua/pub/Linux/ALT/people/mike/iso/altlinux-sisyphus-20110509-base-i586-install.iso
&gt; http://ftp.linux.kiev.ua/pub/Linux/ALT/people/mike/iso/altlinux-sisyphus-20110509-base-i586-install.iso

Соображения по совместимости: может иметь смысл включать выравнивание по умолчанию для блокдевайсов &gt;=32Gb (мелкие SSD всё равно требуют внимания и понимания, а старым дискам систем с win9x может и пригодиться -- попрошу народ в antique@ посмотреть по возможности).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121675</commentid>
    <comment_count>11</comment_count>
    <who name="ReMaks">admaks</who>
    <bug_when>2011-05-26 16:02:41 +0400</bug_when>
    <thetext>(В ответ на комментарий №9)

&gt; Прошу интенсивно протестировать.

испольовалась ли эта &quot;штука&quot; в новых бетах 6 кентавра от 17 мая 2011?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121684</commentid>
    <comment_count>12</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2011-05-26 20:44:52 +0400</bug_when>
    <thetext>Наверное, вопрос к boyarsh@ и сборочным логам той беты.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121685</commentid>
    <comment_count>13</comment_count>
    <who name="Sergey Bolshakov">sbolshakov</who>
    <bug_when>2011-05-26 23:33:07 +0400</bug_when>
    <thetext>этот баг закрыт.
обсуждение более общих вещей предлагается проводить в более подходящем месте.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>159529</commentid>
    <comment_count>14</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2016-10-27 21:00:56 +0300</bug_when>
    <thetext>Текущий баг на эту тему:
https://bugzilla.altlinux.org/show_bug.cgi?id=26925
(состояние: primary починили, но вместо logical выравниваем extended)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>