- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Problem striping 2 lvols
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
08-28-2002 06:36 AM
08-28-2002 06:36 AM
I have looked at the options for lvcreate and vgcreate, and cannot find anything that will lend itself to solving this (short of manually lvextending in round robin fashion).
Any top tips out there? Cheers, Ian
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2002 06:47 AM
08-28-2002 06:47 AM
Re: Problem striping 2 lvols
Are you using extent-based strips or "true" striping?
Either way, you will need an equal amount of space on all disks involved.
Please post your command and 'vgdisplay -v' output.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2002 06:48 AM
08-28-2002 06:48 AM
Re: Problem striping 2 lvols
Well, you should be using PVG's and the -D distributed option (as its easier to group disks). If it says not enough space then it sounds like one set of disks is not the same total size as the other (check with lvdisplay/pvdispaly) OR you are trying to create and lvol too big for the disk sets. Aagin - check you arent trying to create a striped lvol too big or you have enough physical space.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2002 06:59 AM
08-28-2002 06:59 AM
Re: Problem striping 2 lvols
sample code (figures are not exact; no points awarded for nit-picking)
lvcreate -L 32000 -i 5 -I 1024 /dev/vgTEMP
vgdisplay -v /dev/vgTEMP
/dev/dsk/c43t1d1 42 free
/dev/dsk/c43t1d2 42 free
/dev/dsk/c43t1d3 42 free
/dev/dsk/c43t1d4 42 free
/dev/dsk/c43t1d5 42 free
/dev/dsk/c43t1d6 1760 free
/dev/dsk/c43t1d7 1760 free
/dev/dsk/c43t2d0 1760 free
/dev/dsk/c43t2d1 1760 free
/dev/dsk/c43t2d2 1760 free
lvcreate -L 31000 -i 5 -I 1024 /dev/vgTEMP
Second lvcreate fails with an error message saying no space.
Have checked out PVGs but see no method of specifying these in the lvcreate command.
Am thinking the best solutions for 'true' striping is 1 vg per lvol striped set, or striping across every Disk in the VG.
Points for postings so far are coming soon. Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2002 07:16 AM
08-28-2002 07:16 AM
Re: Problem striping 2 lvols
1. do the lvextend manually (time consiming and not recommended) - this way you can specify exactly which disk to stripe on.
2. when you add your disks into your VG use the PVG option. Create 2 PVGs' for your VG - one with the disks you want for 1 striped lvol, the 2nd PVG with the other disk you want for the 2nd striped lvol. Then when you do the lvcreate -D command you can specify which PVG set to use for each striped lvol you want (one for each). Works a treat.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2002 07:20 AM
08-28-2002 07:20 AM
Re: Problem striping 2 lvols
Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2002 07:27 AM
08-28-2002 07:27 AM
Re: Problem striping 2 lvols
Looked at the -D option on lvcreate, but it stated in my man page that this option is not support with the -i option, so I dismissed it. I also cannot see in the doco how the PVG is specified manually or selected by the System.
Or do I need to manually adjust the PVGs after the first allocation, to set a different set of disks into PVG 1 (which seems to be the default PVG).
Cheers, Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2002 07:32 AM
08-28-2002 07:32 AM
Re: Problem striping 2 lvols
It look like you are trying to create the stripes again on the same disks. what you can do is create two PVGs and specify the names with lvcreate.
Read man lvcreate and read the last session - "Distributed Allocation Policy"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2002 07:39 AM
08-28-2002 07:39 AM
Re: Problem striping 2 lvols
Distributed Allocation Policy is for striping with mirroring placed on distinctly different disks from the original lvol.
I am trying to stripe 2 different lvols on 2 different sets of disks within the same Volume Group.
Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2002 07:41 AM
08-28-2002 07:41 AM
Re: Problem striping 2 lvols
The '-D' option applies to extent-based striping. The granularity of extent-based striping is the size of a physical extent (4MB or larger) but you mimic true striping and you can add mirroring.
As already noted, the easiest way to setup Physical Volume Groups. You can do this *after* volume group creation by manually making the '/etc/lvmpvg' (see 'man 4 lvmpvg').
Distributed extents proceed in a round-robin allocation.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2002 08:13 AM
08-28-2002 08:13 AM
SolutionYou can create the /etc/lvmpvg file manually with entries..
##
VG /dev/vg01
PVG PVG0
/dev/dsk/c2t0d0
/dev/dsk/c2t1d0
PVG PVG1
/dev/dsk/c3t0d0
/dev/dsk/c3t1d0
##
Then you can use lvcreate to create extent based stripping.
#lvcreate -D y -s g -L
Thanks.
Prashant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2002 10:34 AM
08-28-2002 10:34 AM
Re: Problem striping 2 lvols
vgcreate -g PVG1 /dev/vgxx /dev/dsk/c1t0d0 /dev/dsk/c2t0d0
vgextend -g PVG2 /dev/vgxx /dev/dsk/c1t1d0 /dev/dsk/c2t1d0
lvcreate -L 0 -i 2 -I 64 /dev/vgxx
lvextend -L
Do the same for the 2nd logical volume
-Shekar