Growing LVM root partition under Dapper?
rasputnik at gmail.com
Thu Apr 27 09:00:57 UTC 2006
On 27/04/06, Tony Arnold <tony.arnold at manchester.ac.uk> wrote:
> Charlie Zender wrote:
> > My computer runs the latest Ubuntu Dapper beta on its 100 GB hard drive.
> > The problem is that only about 18 GB appear to be available to use.
> > There is nothing else on the disk except a small 250 MB /boot partition.
and see if you have space left in the volume group. If so, I'd create
/var and /home as Tony suggests, then mount them in a temporary spot and
move everything from the root LV onto them (you might as well boot off
to move /home).
> Because the
> root partition is mounted and you cannot umount it on a running system,
> you cannot resize the file system on a running system.
That depends on the filesystem. reiserfs can be resized without being umounted.
sudo lvextend -L +2G /dev/mapper/Ubuntu-root # add 2Gig to the root LV
sudo resize_reiserfs /dev/mapper/Ubuntu-root # expand the fs to
fill the space
XFS and JFS can be resized when mounted too. Don't know about ext3
(you may need to boot from the livecd as tony says).
In all cases, you grow the device first, *then* the filesystem.
(reverse that when shrinking - although I don't know anything other
that supports shrinking, and even then it needs to be umounted).
Of course, this all depends on you having some space left in your volume group.
If you don't, then you need to create another physical volume.
Just make another disk partition (which is the only thing gparted is going to be
any help with :) ). Then :
vgextend Ubuntu /dev/hdaX
That should let you create new LVs or extend your existing ones.
Rasputin :: Jack of All Trades - Master of Nuns
More information about the ubuntu-users