- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Difference of mirroring with strict allocation pol...
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-15-2007 09:30 PM
04-15-2007 09:30 PM
Hi ,
Can any one explain what the difference and advantage between Mirrored disk which is set to Strict allocation policy and Mirrored disk without strict allocation policy.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2007 10:08 PM
04-15-2007 10:08 PM
Re: Difference of mirroring with strict allocation policy and without strict allocation policy
Strict allocation policy requires the contents of the logical volume to be contiguous.
This can improve performance but it depends on the application using the space.
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-15-2007 10:17 PM
04-15-2007 10:17 PM
Re: Difference of mirroring with strict allocation policy and without strict allocation policy
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
04-15-2007 10:19 PM
04-15-2007 10:19 PM
Re: Difference of mirroring with strict allocation policy and without strict allocation policy
Whereas strict policy only requires the extends to remain on the same PV or PVG (which is sensible for mirroring).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2007 10:24 PM
04-15-2007 10:24 PM
Re: Difference of mirroring with strict allocation policy and without strict allocation policy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2007 10:31 PM
04-15-2007 10:31 PM
Re: Difference of mirroring with strict allocation policy and without strict allocation policy
Thx for ur Quick responce,,
I need to know for example In mirroring we are
having 2 different disk to mirror ,So if 1 disk
fails ,It will work with other disk which is mirrored ,If we want to extend we are using lvextend -l and increasing the lvol size with or without online JFS ,So i need the info that whats the advantage of strict allocation policy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2007 10:54 PM
04-15-2007 10:54 PM
Re: Difference of mirroring with strict allocation policy and without strict allocation policy
That's why you would want to create the LV like
# lvcreate [-s y] -m 1 /dev/dsk/c[12]t2d0
Since strict allocation policy is the default I enclosed the -s option in square brackates to designate its optional appearance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2007 10:56 PM
04-15-2007 10:56 PM
Re: Difference of mirroring with strict allocation policy and without strict allocation policy
Of course it should be the VG
# lvcreate -s y -m 1 /dev/vgsomething
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2007 11:20 PM
04-15-2007 11:20 PM
Re: Difference of mirroring with strict allocation policy and without strict allocation policy
Thx for the info ,
One more question ,
how to extend a lvol when its in strict alloaction policy
For me its giving the below error
while extending the volume getting the following error.
lvextend -L 400 /dev/vg00/lvol4
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg00/lvol4" could not be extended.
Failure possibly caused by strict allocation policy
can any-one give me the steps
how to perform without any dataloss or downtime
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2007 11:34 PM
04-15-2007 11:34 PM
Re: Difference of mirroring with strict allocation policy and without strict allocation policy
LVOL4 is usually /tmp and not strict.
The message says "...Failure **possibly** caused by strict allocation policy"
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
04-15-2007 11:50 PM
04-15-2007 11:50 PM
Re: Difference of mirroring with strict allocation policy and without strict allocation policy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2007 12:06 AM
04-16-2007 12:06 AM
Re: Difference of mirroring with strict allocation policy and without strict allocation policy
vgdisplay -v vg00
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
04-16-2007 12:23 AM
04-16-2007 12:23 AM
Solutionthen you can extend by as many PEs as are free on any PV with the smallest number of PEs.
Identify allocation policy of LVs like that (e.g. here of vg00 LVs)
# lvdisplay $(vgdisplay -v vg00|awk '/LV Name/{print$NF}')|grep -E 'LV Name|Allocation'
Then look at smallest No. of free PEs
e.g. here I could extend strictly allocated LVs by maximally 64*32 MB (i.e. 2 GB)
# vgdisplay -v vg00|grep -E 'PE Size|Free PE|PV Name'
PE Size (Mbytes) 32
Free PE 174
PV Name /dev/dsk/c0t6d0
Free PE 110
PV Name /dev/dsk/c3t6d0
Free PE 64
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2007 05:44 PM
04-16-2007 05:44 PM
Re: Difference of mirroring with strict allocation policy and without strict allocation policy
strict allocation does not mean the same as contiguous! No! It does not!
Strict allocation means that mirrored physical extents cannot be on the same physical volume, like original. Or PVG-strict cannot have the originals and mirrors (still talking about physical extents) on the same physical volume group.
Contiguous means that physical extents have to be in ascending order (like /dev/vg00/lvol3 which is usualy strict/contiguous), so you have to have extents going like 1-30 (these numbers are just for an example), and when you're extending by 10 extents you cannot have 1-30, and then 210-220, you have to have 1-40. I am still talking about physical extents allocation on physical volumes. Though this contiguous stuff might be bit hard to get over with like when trying to extend /dev/vg00/lvol3 (I mean /) it can be easily extended (provided you have OnlineJFS product). But extension of / is not supported solution, so be aware (it is the area of voodoo tricks were big red dragons live :) ).
Please check man lvcreate for this (sections about -s and -C).
As for your first question, if you are mirroring, it would be actually better to have strict allocation, because when you do not have strict allocation, your mirroring would be pretty useless.
Imagine two disks, c0t0d1 (as original) and c1t0d1 (as mirror). With strict allocation, you would have original physical extents on c0t0d1 and mirrored on c1t0d1. In case when one disk fails, you have another one, and the system is happy. But without strict allocation, you could end up with original physical extents on c0t0d1 and some mirrored on c1t0d1 and some mirrored on c0t0d1 too! In case when c0t0d1 fails, you would loose the data (if you do not have any backups of course), as you would loose both original and mirrored physical extents on the same disk.
As for your second question, you have to first check your /dev/vg00/lvol4 as which physical volumes are being used and check their free extents. One of them will have smaller number of free extents (Ralph pretty much illustrated it with his 64 extents free). You cannot go above that number (well actually you can, but that would require introducing of another set of two physical volumes to the volume group).
Please use -l when creating or extending the logical volume. It uses extents instead of megabytes as does -L use (when using megabytes, LVM has to round up the number of extents). So instead of -L 400 you would use -l 100 (considering that size of extent is 4MB).
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2007 06:53 PM
04-16-2007 06:53 PM
Re: Difference of mirroring with strict allocation policy and without strict allocation policy
Thanks a lot for the info ....