lvm resizing and shifting

Craig White craigwhite at azapple.com
Sat Aug 23 06:05:56 UTC 2008


My hard drive...

# fdisk -l /dev/sda

Disk /dev/sda: 203.9 GB, 203928109056 bytes
255 heads, 63 sectors/track, 24792 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00086350

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14       24792   199037317+  8e  Linux LVM

# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/root              88G   54G   30G  65% /
/dev/sda1              99M   36M   59M  39% /boot

this as a result of resizing/shrinking /dev/VolGroup00/LogVol00 down
from approximately 180 Gb down to 90 Gb (obviously the ext3 filesystem
was resized first because it's working).

I wanted to create free space in the process to do another install not
in the LVM but apparently the swap portion /dev/VolGroup00/LogVol01 is 1
Gb and I'm guessing that it has to be moved to be contiguous
with /dev/VolGroup00/LogVol00 and that should somehow make the allow the
rest of the space to be free to be re-used in other ways.

What piece of information am I missing to make the now approx 90Gb free?

Craig




More information about the fedora-list mailing list