System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

create the lvol on the specific PV

gany59
Regular Advisor

create the lvol on the specific PV

How to create the lvol on the specific PV
Is there any option like that.

Thanks in advance!!!!!!
4 REPLIES
Patrick Wallek
Honored Contributor

Re: create the lvol on the specific PV

You can create an empty LV, then use lvextend to increase the size use the disk you desire.

To create a 50 MB LV on /dev/dsk/c1t0d0:

First create the empty LV
# lvcreate -n test /dev/vg00

Then extend the size of the LV on the disk you want
# lvextend -L 50 /dev/vg00/test /dev/dsk/c1t0d0

Then just newfs and mount the LV as normal.

Naturally you need to substitute your own VG name, LV name and disk in the commands above.
James R. Ferguson
Acclaimed Contributor

Re: create the lvol on the specific PV

Hi:

I *urge* you to avail yourself of :

http://docs.hp.com/index.html

...JRF...
Steven E. Protter
Exalted Contributor

Re: create the lvol on the specific PV

Shalom,

pvcreate
vgextend
lvcreate -l

Or lvcreate it with zero size and lvextend using the specific disk.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
shanmuhanandam
Regular Advisor

Re: create the lvol on the specific PV

Hi,
do the lvcreate without the lv size
#lvcreate vgname

then extend the lv to the pv which you req.
#lvextend -L size

Thanks,
Shan.