I installed F12 on my desktop, and now I want to extend the size of my root LVM. When it installed I did not notice that it only gave me a 3G root volume. There was other stuff on this machine when I did the install, but not I want to blow away the other data and make the whole drive my root volume.
Anyway, I tried running some tools to do this, but seem to be stuck in a rut. Here is what I have:
Code:
[root@JAKE-DLIN jake]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_jakedlin-lv_root
2.8G 2.6G 179M 94% /
tmpfs 498M 260K 497M 1% /dev/shm
/dev/sda1 194M 22M 163M 12% /boot
Code:
Disk /dev/sda: 40.0 GB, 40016019456 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x98e098e0
Device Boot Start End Blocks Id System
/dev/sda1 * 1 26 204800 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 26 650 5015552 8e Linux LVM
Partition 2 does not end on cylinder boundary.
/dev/sda3 651 4865 33856987+ 83 Linux
Disk /dev/dm-0: 34.4 GB, 34359738368 bytes
255 heads, 63 sectors/track, 4177 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1: 2113 MB, 2113929216 bytes
255 heads, 63 sectors/track, 257 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Disk /dev/dm-1 doesn't contain a valid partition table
I ran this command:
Code:
lvextend -L32G /dev/vg_jakedlin/lv_root
But I still get this:
Code:
[jake@JAKE-DLIN ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_jakedlin-lv_root
2.8G 2.6G 179M 94% /
tmpfs 498M 260K 497M 1% /dev/shm
/dev/sda1 194M 22M 163M 12% /boot
Here is some other relevant information:
Code:
[root@JAKE-DLIN jake]# lvdisplay
--- Logical volume ---
LV Name /dev/vg_jakedlin/lv_root
VG Name vg_jakedlin
LV UUID puBeqE-srUX-s4NP-3kO3-OQWi-ERbe-ItWt1b
LV Write Access read/write
LV Status available
# open 1
LV Size 32.00 GB
Current LE 8192
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Logical volume ---
LV Name /dev/vg_jakedlin/lv_swap
VG Name vg_jakedlin
LV UUID mibFF0-trBv-zJ1e-hDCs-oESP-p2TO-t5SE15
LV Write Access read/write
LV Status available
# open 1
LV Size 1.97 GB
Current LE 504
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
[root@JAKE-DLIN jake]# pvdisplay
--- Physical volume ---
PV Name /dev/sda2
VG Name vg_jakedlin
PV Size 4.78 GB / not usable 2.00 MB
Allocatable yes (but full)
PE Size (KByte) 4096
Total PE 1224
Free PE 0
Allocated PE 1224
PV UUID 86ExXj-O8HE-hF0c-8LuG-IXF6-c3sW-praMSF
--- Physical volume ---
PV Name /dev/sda3
VG Name vg_jakedlin
PV Size 29.71 GB / not usable 3.80 MB
Allocatable yes
PE Size (KByte) 4096
Total PE 7606
Free PE 134
Allocated PE 7472
PV UUID uaDoZV-jtbG-0RD0-R6v7-0PGh-X3Al-fBBhC9
I obviously cannot unmount the root volume on a live system. Do I need to boot into a LVM aware LiveCD and extend the volume there?
Any help is appreciated.