[linux-lvm] Resizing a volume group
sam at vilain.net
Wed Jan 12 08:53:09 UTC 2005
Dean Takemori wrote:
> I'm running a Fedora Core 1 box using LVM on RAID (lvm-1.0.3-13) I moved
> from a pair of RAID1 hard drives to a larger pair of drives by
> failing and replacing the drives.
> This has left me with the following situation : Volume group lv0 (26GB)
> on /dev/md1, which are a pair of 250GB partitions. But the lvm tools
> only see
> /dev/md1 as being 26GB (which is what it was on the old hard drives).
> vgdisplay does note that the maximum lv size is 250GB).
> Is it possible to resize the pv and lv so that they use up the full
> space of
> the partition?
so, blockdev -s /dev/md1 shows 26 or 250GB ?
I'm struggling to see how you would have changed the size of a block
device with "strategically failing and replacing" drives.
> ~ > pvdisplay /dev/md1
> PV Size 26.44 GB [55453952 secs] / NOT usable 4.19 MB
If /dev/md1 really is 250GB then you might have some surgical disk
partitioning to do. ie, get it back to the size it was, then add the
rest of the disk as another /dev/md PV.
More information about the linux-lvm