- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- lvm and striping
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
02-20-2003 11:44 AM
02-20-2003 11:44 AM
lvm and striping
I come from a Sun background and I am very familiar with VxVM. In Volum Manager I can tell it what disks I want my stripe to be made from.
I would like to know how I can use LVM to create a stripe across 4 specific pv's. I don't see any option that actually allows me to pick the disks I want to lay my stripe across.
Any help would be appreciated.
Thanks in advance,
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 11:48 AM
02-20-2003 11:48 AM
Re: lvm and striping
Striping and mirroring are not supported with LVM. You must use 'extent-based mirror stripes'. See the man pages for 'lvcreate' for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 11:50 AM
02-20-2003 11:50 AM
Re: lvm and striping
-i for number of stripes
-I stripe size
You can use disks with lvextend command to stripe a logical volume.
Example:
#lvcreate -n mylvol -i 4 -I 128 vg01
#lvextend -L 500 /dev/vg01/mylvol /dev/dsk/c1t0d0 /dev/dsk/c1t0d1 /dev/dsk/c1t0d2 /dev/dsk/c1t0d3
#newfs -F vxfs /dev/vg01/rmyvol
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 11:54 AM
02-20-2003 11:54 AM
Re: lvm and striping
I would have added...
The above will create an lvol "mylvol" in the volume group "vg01" with a stripe size of 128K spanning across four disks viz., c1t0d0, c1t0d1, c1t0d2 and c1t0d3.
-Sri
PS: Welcome to forums.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 12:00 PM
02-20-2003 12:00 PM
Re: lvm and striping
I read the question as *striping and mirroring* and hence my answer that LVM doesnt't support that combination except in the form of 'extent-based=stripes'. VxVM does, of course.
Sri's answer is the one you want.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 12:03 PM
02-20-2003 12:03 PM
Re: lvm and striping
Refer chapter 8 in this document for more detail:
http://www.docs.hp.com/hpux/onlinedocs/B2355-90672/B2355-90672.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 12:24 PM
02-20-2003 12:24 PM
Re: lvm and striping
Thanks for the quick/great responses.
I have another question regarding sri's answer:
So the initial lvcreate just creates a structure but doesn't actually allocate any storage and the extend allocates the storage for the stripe? Or does it do the stripe any way it wants and then I extend it with the pv's that are specified on the lvextend command?
Sorry for my confusion...
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 12:29 PM
02-20-2003 12:29 PM
Re: lvm and striping
It creates a logical volume of 0 size with all the properties we mentioned. Before extending it if you do a "lvdisplay /dev/vg01/mylvol", you would see the output.
It will not touch any disks until you extend it.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 12:34 PM
02-20-2003 12:34 PM
Re: lvm and striping
If you look at the 'lvcreaete' syntax there is no provision for specifying the pv_path(s).
Hence, Sri created a zero-size logical volume with 'lvcreate' and then leveraged the ability of 'lvextend' to increase the size (from zero), *and* specify the pv_paths he wanted.
Regards!
...JRF...