- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Lvcreate Striping VS. Volume Groups
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
04-30-2009 03:50 AM
04-30-2009 03:50 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2009 04:03 AM
04-30-2009 04:03 AM
Solution"If you omit the -l and -L options, the logical volume is created with zero length. This permits you to choose its physical volume location when you allocate logical extents with the lvextend command"
Even with 3 physical volumes, you can place your LV wherever you want within them.
That's why.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2009 04:12 AM
04-30-2009 04:12 AM
Re: Lvcreate Striping VS. Volume Groups
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2009 04:17 AM
04-30-2009 04:17 AM
Re: Lvcreate Striping VS. Volume Groups
lvcreate without the space indicator creates an empty logical volume. lvextend is used to add space.
You may want to look into creating a distributed logical volume, lvcreate -D
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2009 04:18 AM
04-30-2009 04:18 AM
Re: Lvcreate Striping VS. Volume Groups
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2009 04:19 AM
04-30-2009 04:19 AM
Re: Lvcreate Striping VS. Volume Groups
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2009 04:38 AM
04-30-2009 04:38 AM
Re: Lvcreate Striping VS. Volume Groups
When you create and lvol that doesn't stripe extents you are basically creating a concatenated volume. So even though you have 3 disks you are not striping. You will basically write to the first disk until it's full, then the second, and so on. Creating an lvol that stripes extents will essentially write the data across all the disk in the volume group (That is somewhat misleading in that you choose how many disks). Anyway I hope that answers your question. Also volume groups do not stripe, they are more like a named container, ie, here is vg00 and it contains 3 disks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2009 04:41 AM
04-30-2009 04:41 AM
Re: Lvcreate Striping VS. Volume Groups
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2009 04:48 AM
04-30-2009 04:48 AM
Re: Lvcreate Striping VS. Volume Groups
If there are 3 PVs in 1 VG and you create a LV without the -i -I and specify a size (-L), then the LV is created on the 1st PV, then 2nd PV,etc.
If you use the -i -I, LVM manages the stripes across the 3 PVs.
If you don't use -i -I and don't specify a size, then use lvextend -L, then you control the stripes across the 3 PVs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2009 05:01 AM
04-30-2009 05:01 AM
Re: Lvcreate Striping VS. Volume Groups
To be blunt, that is not correct. If you do not use the -i during the lvcreate, you will not stripe extents. To put it simply if you want to stripe you have to use the -i option. You may want to read the man page for lvcreate. I will also mention that you have to supply a number for the -i option which tels how many disks to stripe across. So you could end up creating a stripe across only two of the disks in the volume group.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2009 05:12 AM
04-30-2009 05:12 AM
Re: Lvcreate Striping VS. Volume Groups
P.S. THis is the best forum. I learn so much from you guys.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2009 05:22 AM
04-30-2009 05:22 AM
Re: Lvcreate Striping VS. Volume Groups
The server sees ONE disk device (dual path-ed) and that is the LUN device. The server does not see the 5 array disks (don't call them PVs). The "-i -I" do not apply here, the array takes care of the striping.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2009 05:41 AM
04-30-2009 05:41 AM
Re: Lvcreate Striping VS. Volume Groups
I also want to not that extent striping does not provide fault tolerance. It's the mechanisms in the VA that provide that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2009 05:47 AM
04-30-2009 05:47 AM
Re: Lvcreate Striping VS. Volume Groups
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2009 06:27 AM
04-30-2009 06:27 AM
Re: Lvcreate Striping VS. Volume Groups
>>of disk, I don't need to use -i -I on the
>>lvcreate. What if I do use the -i -I, what
>>happens?
You can't use '-i' and '-I' with a single disk / LUN. It won't do anything, and lcreate may not let you do it.
As said above, when you create a LUN on a disk array your HP-UX system sees only the LUN that was presented. HP-UX has absolutely NO IDEA how many disks make up the LUN. It doesn't need to know.
There is a situation where striping can come in handy.
Let's say you have a server with 2 fibre cards connected to a disk array. You can create 2 equally sized LUNs on the array. When you create the VG with those LUNs you have LUNa use fibre card A as its primary path and LUNb use fibre card B as its primary path.
Then when you create the LV you can stripe across both devices and have a poor mans load balancing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2009 06:51 AM
04-30-2009 06:51 AM