1834393 Members
2036 Online
110066 Solutions
New Discussion

lvcreate and disk

 
SOLVED
Go to solution
Carme Torca
Super Advisor

lvcreate and disk

Hi,

Is it possible to do lvcreate and put the disk you want to assign?
I'am working with 11.11
something like
#lvcreate -n lvdat1 -L 100 /dev/vg02 /dev/dsk/c1t2d0

Thanks a lot of!
Carmen.
Users are not too bad ;-)
5 REPLIES 5
HGN
Honored Contributor
Solution

Re: lvcreate and disk

Hi

Adding a filesystem on a particular disk

#lvcreate -n lvdat1 vg02
#lvextend -L 100 /dev/vg02/lvdat1 /dev/dsk/c1t2d0

Rgds

HGN
AndyMueller
Frequent Advisor

Re: lvcreate and disk

Carmen,

I don't believe this is possible. You would "vgextend" your vg02 to span additional disk devices, can not do so via lvextend command.

Andy
AndyMueller
Frequent Advisor

Re: lvcreate and disk

Carmen,

learn something new every day, you can in fact lvextend a mirrored copy of a logical volume to a disk device. You just can't do it via the lvcreate command.

Andy
Shameer.V.A
Respected Contributor

Re: lvcreate and disk

Hi Carme,

You can't define a disk path while creating an LVOL. You have to create a blank LV with the following command.

#lvcreate -n lvdat1 vg02

Then you have to extend that lvol to a purticular disk with

#lvextend -L 100 /dev/vg02/lvdat1 /dev/dsk/c1t2d0

Regards

Shameer
.... See invisible, feel intangible and achieve impossible as everything is possible ....
Devender Khatana
Honored Contributor

Re: lvcreate and disk

Hi,

Andy,

You can assign the LE's to a desired disk while creating as well as while extending mirrors.

While Creating
#lvcreate /dev/vg00
#lvextend -L xxxx /dev/vgxx/lvol? /dev/dsk/cxtydz

While Extending

#lvextend -m 1 /dev/vgxx/lvol? /dev/dsk/cxtydz

HTH,
Devender
Impossible itself mentions "I m possible"