- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to stripe a raw lvol - not mirrored
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2008 10:12 AM
06-05-2008 10:12 AM
I need to create a number of 8gb raw lvols across 4 EMC Clariion SAN disks.
I have already created the PV's and the VG's
Is the following sequence of steps correct?
1. vgextend /dev/vg_ora /dev/dsk/c3t3d0 /dev/dsk/c3t3d1 /dev/dsk/c3t3d2 /dev/dsk/c3t3d3
2. lvcreate -C y -n lvol1 -r N /dev/vg_ora
3. lvextend -L 8192 /dev/vg_ora/lvol1 /dev/dsk/c3t3d0 /dev/dsk/c3t3d1 /dev/dsk/c3t3d2 /dev/dsk/c3t3d3
Do these steps create the striped lvol across these 4 disks or must I change a flag somewhere in the lvcreate command?
Thanks for your help!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2008 10:34 AM
06-05-2008 10:34 AM
Re: How to stripe a raw lvol - not mirrored
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2008 10:34 AM
06-05-2008 10:34 AM
Re: How to stripe a raw lvol - not mirrored
I would combine steps 2 and 3.
lvcreate -C y -n lvol1 -r n -i 4 -I 128 /dev/vg_ora
The '-i' is the number of disks to stripe across, in your case 4. The '-I' is the size of the stripes. See the 'lvcreate' man page for more information on those options.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2008 10:35 AM
06-05-2008 10:35 AM
SolutionExample-
Create a logical volume of size 90 MB striped across 3 disks with a stripe size of 64 KB:
lvcreate -L 90 -i 3 -I 64 /dev/vg03
-C contiguous
will not work with stripes.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2008 10:43 AM
06-05-2008 10:43 AM
Re: How to stripe a raw lvol - not mirrored
"The enforcement of a contiguous allocation policy using the -C y option is not supported on a striped logical volume."
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2008 10:45 AM
06-05-2008 10:45 AM
Re: How to stripe a raw lvol - not mirrored
So Patrick & Torsten - here'se the revised command:
lvextend -n lvol1 -r N -i 4 -l 128 /dev/vg_ora /dev/dsk/c3t3d0 /dev/dsk/c3t3d1 /dev/dsk/c3t3d2 /dev/dsk/c3t3d3.
This okay?
By the way... how do you determine the size of the stripe?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2008 10:52 AM
06-05-2008 10:52 AM
Re: How to stripe a raw lvol - not mirrored
lvextend â increase space, increase mirrors for LVM logical volume
SYNOPSIS
/usr/sbin/lvextend [-A autobackup] {-l le_number | -L lv_size | -m mirror_copies [-s]} lv_path [pv_path ... | pvg_name ...]
use lvcreate!
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2008 10:55 AM
06-05-2008 10:55 AM
Re: How to stripe a raw lvol - not mirrored
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2008 10:55 AM
06-05-2008 10:55 AM
Re: How to stripe a raw lvol - not mirrored
lvcreate -n lvol1 -r N -i 4 -l 128 /dev/vg_ora.
Then do the lvextend stuff.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2008 10:59 AM
06-05-2008 10:59 AM
Re: How to stripe a raw lvol - not mirrored
-I stripe_size Set the size in kilobytes of the stripe. stripe_size should be a power of 2 in the range of 4 to 32768. -i and -I must be specified together.
This does not tell me how to determine the correct or best stripe size.
Sorry I'm ignorant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2008 11:00 AM
06-05-2008 11:00 AM
Re: How to stripe a raw lvol - not mirrored
lvextend -L 8192 /dev/vg_ora/lvol1
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2008 11:03 AM
06-05-2008 11:03 AM
Re: How to stripe a raw lvol - not mirrored
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2008 11:34 AM
06-05-2008 11:34 AM
Re: How to stripe a raw lvol - not mirrored
There are two types of striping available on HP-UX. One is Block based striping. For Block based striping you need to specify the no of slices/disks by using -i and the stripe size using -I along with -C. Use lvcreate and lvextend commands to create Block based striping. But note that Block based striping is not supported in conjunction with LVM mirroring.
The other one is extend based striping popularly known as Distributed allocation policy. It is supported with LVM mirroring. If you need to mirror then you also need to create physical volume groups(PVG). Use -D option to create extend based striping.
Hope this helps.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2008 12:05 PM
06-05-2008 12:05 PM
Re: How to stripe a raw lvol - not mirrored
lvcreate -L 8192 -n lvol1 -r N -i 4 -l 128 /dev/vg_ora
(I forgot to put the '-L' in my earlier lvcreate).
The stripe size is entirely up to you and whatever is best for your environment. This is where testing before putting things into production comes into play.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2008 12:28 PM
06-05-2008 12:28 PM
Re: How to stripe a raw lvol - not mirrored
If you use lvcreate directly it will create the LV on first available disks on that VG.
Whereas if you want to create the LV on specific disks, then you will have to create the LV with 0 size using lvcreate and then extend it on specific disks by using lvextend.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2008 05:01 AM
06-10-2008 05:01 AM