[linux-lvm] partition table needed for lvm ?
bluca at comedia.it
Sat Mar 3 11:45:08 UTC 2007
On Fri, Mar 02, 2007 at 04:58:37PM +0000, paddy at panici.net wrote:
>On Fri, Mar 02, 2007 at 03:01:53PM +0100, Luca Berra wrote:
>> On Thu, Mar 01, 2007 at 11:19:07PM +0000, Alasdair G Kergon wrote:
>> >On Thu, Mar 01, 2007 at 05:14:25PM -0500, Chris Hunter wrote:
>> >>Do I reallly need to make partition tables on all my disks to use lvm2 ?
>> >Other packages such as the installer like to have them.
>> what about the fact that on many storage creating an ms-dos compatible
>> partition usually results in screwing io alignment?
>Although it comes as no surprise that the CHS boundaries are not aligned
>with the hardware anymore (like they were back in the days of say MFM),
>I thought that systems that attempted to use this level of information
>about a disk were fairly rare these days ?
The problem comes from smart storage system which like to do IO with
big block sizes (usually 32K to 64K) from the beginning of the LUN that
is presented to the OS.
If sda1 starts at 31.5K into sda and we assume 4k as a default block
size and 32K as storage block size we will notice that IO on every 8th
block will require two IOs on the storage.
If we really have to partition it would not hurt knowing the block
size of the storage and manually aligning the start of partition to
that, it might waste a few sectors at the beginning but who cares.
>> Do _NOT_ use partitions, they are evil and should have been shot long
>agreed, there are plenty of reasons to retire msdos partitions.
>What would you recommend as a setup for boot drives where the bios
>expects to boot from an msdos partition table (or more specifically
>the code at the begining of a sector with the magic of an msdos
>partitiontable) on sector 0 ?
Fortunately plain disks (which are mostly used as boot device) does not
suffer from the above mentioned issue. So partitioning them is not that
Moreover if you have /boot as a separate partition at the beginning of
the disk only that would be affected, the other partitions should be
My preference would still be for not having msdos partitions on any drive at all
and, since lvm2 does not touch the first 512 bytes of a PV, fitting a
grub boot block in there is not going to be that difficult.
Luca Berra -- bluca at comedia.it
Communication Media & Services S.r.l.
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
More information about the linux-lvm