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
|
|
0
|
|
|
|
Reply
|
chad_dude (4)
|
2/19/2004 12:40:46 AM |
|
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
|
|
0
|
|
|
|
Reply
|
Doug
|
2/19/2004 3:18:06 PM
|
|
Easy but not automatic:
vgdisplay -v will show you how many free extents you have.
And then you can specify this number:
lvcreate -l xxx (or lvextend -l ).
"Chad Williams" <chad_dude@yahoo.com> wrote in message
news:2a3b16bc.0402181640.496b1037@posting.google.com...
> 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
|
|
0
|
|
|
|
Reply
|
Nissan
|
2/19/2004 6:26:01 PM
|
|
Chad Williams <chad_dude@yahoo.com> 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
No. (Amongst others,) Because a LV is not limited to a single PV.
I.e. use pvdisplay to get the number of free PEs on that PV and then
use lv*extend* as Doug explained.
|
|
0
|
|
|
|
Reply
|
Frank
|
2/20/2004 4:19:12 PM
|
|
Doug O'Leary wrote:
> 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
>
Sounds like he just wants to allocate it all instead of fs's. Good to cu
Doug.
|
|
0
|
|
|
|
Reply
|
Alan
|
2/21/2004 2:00:05 AM
|
|