- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Oldie but goodie...
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
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
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
тАО01-24-2003 02:31 PM
тАО01-24-2003 02:31 PM
I'd like to make 2 volume groups, each 36gb in size. I'm not sure how to best handle the striping in this case. There's really no built in RAID capabilities on this old array.
If I just do a standard vgcreate with 4 physical volumes, will the data just fill them up sequentially?
I'd appreciate any suggestions you might have.
Thanks, Tim
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2003 02:39 PM
тАО01-24-2003 02:39 PM
SolutionYou have to do this when you create the LVs.
Let's say your disks are c10t0d0 - c10t3d0 for this LV. I'm trusting that you already have the VG created and can handle that part.
# lvcreate -L 36000 -i 4 -I 64 /dev/vg??
This will create a 36000MB LV striped across 4 disks in 64 KB chunks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2003 02:42 PM
тАО01-24-2003 02:42 PM
Re: Oldie but goodie...
You just do a vgcreate in the normal manner. If you want to improve perform stripe across the 4 PV's when you do your lvcreates.
e.g.
lvcreate -L 1000 -i 4 -I 64 -n lvol1 /dev/vg02
Will stripe across 4 drives in 64K chunks. 64K tends to be the optimum for vxfs regardless of vxfs blocksize.
Vxfs is extent based so blocksize is relatively unimportant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2003 02:47 PM
тАО01-24-2003 02:47 PM
Re: Oldie but goodie...
Yes, If you use the defaults & don't stripe them when you lvcreate (-i X -I X) the LVs, the system will fill the first PV defined in the vgcreate command & then on thru the others in the order they were added.
So vgcreate as normal & get all 4 in there, then to create a striped LV across all 4 with a stripe size of 64k - you'd run the following
lvcreate -i 4 -I 64 -n lv_name /dev/vg_name
You can also use the ditributed allocation policy (-D y)to uses extents from all PVs for the LV - i.e. extent #1 from PV #1 / extent #2 from PV #2 /etc.
lvcreate -D y -n lv_name /dev/vg_name
So either way will distibute the data across all PVs.
You may get a little better performance with striping - depending on just what kind of data will live there.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2003 02:54 PM
тАО01-24-2003 02:54 PM
Re: Oldie but goodie...
vgcreate -g pvg_name /dev/dsk/cxtydz .....
And then when you create the LV you need to use PVG-strict allocatiom (-s g) when you create the LV
lvcreate -s g -D y -n lv_name /dev/vg_name
Doing it this way is called extent-based stripes.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2003 03:23 PM
тАО01-24-2003 03:23 PM
Re: Oldie but goodie...
If you do LV striping with a 64K block size, each successive 64K block gets handed to the next spindle, and the next, until it returns to the first. This means that
If you do Extent-based striping, all your 64K blocks keep going to one spindle until you completely write an entire extent, generally 4MB (by default). Then you move to the next define spindle and do successive I/Os to it until you've moved another massive extent. You can see that, whenever a write is smaller than 4MB (quite often), you'll not do any striping at all.
So, they are certainly both options, but I'd be surprised if you would see almost any improvement from Extent-based striping (in this case), and you almost always see a very significant performance boost from LV striping. Since it's a 'sandbox system', try it both ways, and without any striping at all, and let us know what you find, if you do.
Hope this clears up the difference, in case there was any confusion.
Regards, --bmr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2003 04:43 PM
тАО01-24-2003 04:43 PM
Re: Oldie but goodie...
I fully agree.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2003 04:50 PM
тАО01-24-2003 04:50 PM
Re: Oldie but goodie...
I know this doesn't apply to your situation, but just in case anyone else ever finds this thread and wonders.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2003 03:21 PM
тАО01-28-2003 03:21 PM
Re: Oldie but goodie...
In an array, where the array is doing the mirroring (or whatever RAID data protection), you don't have to use Mirrordisk (LVM mirroring), go with the LVM striping option across multiple LUNs for best performance.
Nice catch, Patrick, thanks, this needed clarification.
--bmr