Operating System - HP-UX
1827775 Members
2565 Online
109969 Solutions
New Discussion

lvcreate syntax for creating striped lvol

 
Alzhy
Honored Contributor

lvcreate syntax for creating striped lvol

SAM could not see my LUNs on my HSG80 array... would anyone mind sending me the right CLI syntax to build a 4 - column stripe, 128k stripwidth and specifying which PV-disks to include?

Gracias!
Hakuna Matata.
4 REPLIES 4
Patrick Wallek
Honored Contributor

Re: lvcreate syntax for creating striped lvol


# lvcreate -L size-in-MB -i 4 -I 128 vg??

You cannot specify which disks to include at this point. You do that at the VG level when you create the VG.
Alzhy
Honored Contributor

Re: lvcreate syntax for creating striped lvol

Thanks!

It was actually in the MAN page as well.. but it seems you've no option to pick which LUN (PV) you'd like the LVOL be created on? There must be a way apart from creating separate VG's for particular LUN's...

On VxVM I can specify which lun/disk to create my logical volume on:

vxassist -g somedg make stripevol 90G layout=striped ncols=4 alloc="disk11, disk22, disk33, disk34"

In the above example, I like to pick out those disks as I am sure they are on separate HBA's and arraygroups on my SAN....

Any tricks that will do the same on LVM apart from creating different VG's?


Hakuna Matata.
James R. Ferguson
Acclaimed Contributor

Re: lvcreate syntax for creating striped lvol

Hi Nelson:

To add to Patrick's comments. You can always create a logical volume with *zero* size by omitting the '-L' or '-l' arguments to 'lvcreate'. This allows you to specify the physical volumes to use when you actually allocate space with an 'lvextend'. See the man pages for 'lvcreate' and for 'lvextend' for more information.

Regards!

...JRF...
Alzhy
Honored Contributor

Re: lvcreate syntax for creating striped lvol

Thanks James..

I did also find links on Google/ITRC/SunManager's List to this fact...
Hakuna Matata.