[clug] Managing Logical Volumes

Andrew Pollock andrew-clug at andrew.net.au
Sun Jan 30 22:14:29 GMT 2005


On Fri, Jan 28, 2005 at 03:52:04AM -0800, Dennis M Gray wrote:
> I installed Fedora Core 3 on VMWare 4.5.2 and needed
> some extra space to install Sybase. I added a new
> virtual drive /dev/sdb then tried to make it part of
> the default VolGroup00. I am not able to figure out,
> even with the HowTo, how to make the PV usable. The df
> command only shows the original size of /.  I don't
> seem to be able to get the proper sequence of
> commands.
> 
> Anyone an expert?
> 

Dunno about expert, but I've fiddled with LVM a fair bit.

You'll be needing to do a pvcreate on the new drive you've added.

Then you'll want to do a vgextend to add the new physical volume to the
existing volume group. At this point, vgdisplay should report some free
extents in your volume group, which you can then use lvresize or lvcreate to
either extend the size of your existing logical volume, or create a new one.

Refer to the manpages for pvcreate, vgextend, lvresize and lvcreate for
exact invocations.

regards

Andrew

-- 
linux.conf.au 2005   -  http://linux.conf.au/  -  Birthplace of Tux
April 18th to 23rd   -  http://linux.conf.au/  -       LINUX
Canberra, Australia  -  http://linux.conf.au/  -    Get bitten!


More information about the linux mailing list