Re: lvcreate to use all available space on PV?

From: Doug O'Leary (dkoleary_at_olearycomputers.com)
Date: 02/19/04


Date: Thu, 19 Feb 2004 15:18:06 GMT

In article <2a3b16bc.0402181640.496b1037@posting.google.com>, Chad Williams wrote:
> Is there a way using lvcreate to have it create the logical volume to
> use ALL available space on the PV? Didn't see anything in the man
> pages.
>
> #lvcreate -L 16384 /dev/vg04

If you want to create a lv on a specific pv, then you have to create
the lv, then extend it. For instance:

lvcreate -n lvol23 /dev/vg04
lvextend -L 16384 /dev/vg04/lvol23 ${specific_dev}

HTH;

Doug

-- 
--------
Senior UNIX Admin
O'Leary Computer Enterprises
dkoleary@olearycomputers.com (w) 630-904-6098 (c) 630-248-2749
resume:  http://www.olearycomputers.com/resume.html