LVM resizing question - pvdisplay shows that drive is 70G smaller than it is
Sorry - I'm a bit new to LVM administration, and I have a question
that the Clonezilla Live forum referred here. Below is the question.
Would love a little help.
2010-06-24 07:10:00 UTC
So, I was moving from a 250G disk to a 320G disk because I was running
out of space on my laptop. My problem is that my new drive seems
convinced that it is only 250G in size, and Iím wondering how to
persuade it otherwise. Iím not sure if it matters, but I did use the
-k1 option when Clonezilla was restoring in order to resize the
partitions proportionally. Here is the output of fdisk -l and
root@nansen: [/]$ fdisk -l
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 17 133610 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 17 38911 312412851+ 8e Linux LVM
So fdisk knows that the drive is 320Gb, and the sda2 partition is
about 319Gb in size. But LVM isn't buying it:
root@nansen: [/]$ pvdisplay
--- Physical volume ---
PV Name /dev/sda2
VG Name VolGroup00
PV Size 232.78 GB / not usable 2.71 MB
PE Size (KByte) 32768
Total PE 7449
Free PE 1
Allocated PE 7448
PV UUID RKhtpa-J34H-GnvD-26v3-bAEI-wccm-f55hwS
Is there some sort of pvchange command that I need to run? Here is
some more info in case you need it.
root@nansen: [/]$ pvs
PV VG Fmt Attr PSize PFree
/dev/sda2 VolGroup00 lvm2 a- 232.78G 32.00M
root@nansen: [/]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00 225G 209G 4.5G 98% /
/dev/sda1 127M 12M 108M 10% /boot
tmpfs 125M 0 125M 0% /dev/shm
steven_shiau (Clonezilla Live moderator)
2010-06-24 14:03:48 UTC
Option "-k1" is only for partition size, it won't deal with LVM yet. I
think you need other tool to resize the LVM... No I have know idea
about how to make it. If you know, please share that with us. Thanks.
In my opinion all is OK. You've got a 320Go disk and a 250Go physical volume.
The pv was restored by clonezilla.
All you have to do is to resize your pv.
So create a new pv on the remaining space on your disk, and resize your original pv.
You should use 'pvcreate' and 'pvresize'.
Hope's it help.
|All times are GMT -5. The time now is 01:52 PM.|