[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] Adding a disk to expand an existing logical volume



On Wed, May 19, 2010 at 05:28:28PM -0500, Ron Johnson wrote:
On 05/19/2010 11:24 AM, Michael Guntsche wrote:
On 2010.05.19 11:58:03 , Digimer wrote:
On 10-05-19 11:43 AM, kevin wrote:
Howdy,

(fdisk+mkfs+pvcreate+vgextend+lvextend) is the right way to go about adding

The mkfs isn't supposed to be there, just set the new drive's
partition to type '8e' (Linux LVM).
Or use the full device without any partition at all.


I wonder if this will have any adverse affects on drives with 4KB sectors?
it depends
on a disk with 4k sector, using the whole device is more likely to have
a correct alignment (0 is a multiple of 4k)

on a disk with 4k sector and the first sector shifted (some drives have
a jumper to achieve this, it might be called something like "XP
compatibility") using the whole device, or anything not aligned to
63x512byte will result in unaligned data.

afair recent kernels should expose the alignment and sector size under
/sys/block/..., (if the drive exposes that info and does not lie, that
is.) and fdisk/parted/lvm/md should correctly align data start.

On a personal note, i really despise partition tables, it is a broken
design from the early eighties, we should be able to move on. If you
must use a GPT partition, at least it has a backup block.

L.


--
Luca Berra -- bluca comedia it
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]