- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- LVM Mirroring
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
06-08-2010 10:12 AM
06-08-2010 10:12 AM
LVM Mirroring
1. Whether Mirrored PE's can be placed on disks conncted to different controllers?
2. If the 1st point is possible then what is the concept of PVG introduced?
Give me good explanation on PVG.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2010 10:30 AM
06-08-2010 10:30 AM
Re: LVM Mirroring
LVM mirroring is implemented at the *logical volume* level.
By default, mirrored extents are allocated on separate physical volumes. This is controlled by the 'strict' allocation setting for the logical volume (the default). To defeat this is to loose all high-availability since a physical disk failure could then mean the destruction of all mirrored copies of a particular extent.
With regard to question-1, yes, mirrored extents can reside on physical disks that are connected to different controllers.
The idea of Physical Volume Groups is that this is a way to limit allocation to specific physical volumes. The '/etc/lvmpvg' files is used for this purpose. This can be useful with mirrored logical volumes as it allows you to specify the physical volumes that should be used to extend a mirrored logical volume. Regardless, LVM always ensures that physical
extent allocation can satisfy the current allocation policy or policies. To use PVG, the allocation policy of the logical volume must be set as 'PVG-strict'.
With 'strict' allocation, mirrored extents of a logical volume cannot share
the same physical volume. With 'PVG-strict' allocation, mirrors of a logical extent cannot share the same physical volume group.
See the manpages for 'lvcreate(1M)', 'lvextend(1M)', 'lvchange(1M)' and 'lvmpvg(4)' for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2010 10:43 AM
06-08-2010 10:43 AM
Re: LVM Mirroring
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2010 10:57 AM
06-08-2010 10:57 AM
Re: LVM Mirroring
If my 1st point is possibele, so i can map the logical extents to any of the disks, connected to different controller as i desired, in terms of HA of data. Then I think i dont need of PVG-strict, which does the same. Am i right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2010 11:36 AM
06-08-2010 11:36 AM
Re: LVM Mirroring
You are right, but you must make sure you don't have both mirror copies of a logical volume on the same disk.
It is always best to lay out your mirrors yourself, not use sam or let the command decide which disk to use to make the mirror copy.
There are instances when strict PV rules get in the way and need to be turned off.
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
06-08-2010 11:59 AM
06-08-2010 11:59 AM
Re: LVM Mirroring
> If my 1st point is possibele, so i can map the logical extents to any of the disks, connected to different controller as i desired, in terms of HA of data. Then I think i dont need of PVG-strict, which does the same. Am i right?
'PVG-strict' is a form of 'strict' allocation as we already noted. It is designed to help you manage mirroring and the expansion of mirrored logical volumes. The '/etc/lvmpvg' file can be created before or during volume group creation.
You could certainly manage placing mirrored extents on different physical volumes without PVG-strict allocation in force. When you perform a 'lvextend' you have the option of specifying either the physical volumes or the physical volume *group* in question.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2010 09:08 PM
06-08-2010 09:08 PM
Re: LVM Mirroring
It seems like totally mixed up. Give me some points on below, whold help me to have keen note on this concept.
What are the main advantages of PVG? (Greatful if it would be compared with some examples) and how to differ this concept?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2010 09:15 PM
06-08-2010 09:15 PM
Re: LVM Mirroring
I try to keep this simple.
Let's say, you have 4 disks, 2 on each channel, HBA or whatever
A-B
C-D
You want to mirror A to C; B to D.
LVM itself makes sure you cannot mirror A to A (strict); but mirror A to B would be OK.
If you now create a group1 A and B; group2 C and D; you can create an LVOL in group1 and say "please mirror" - so the mirror is for sure on group2.
Now imagine more disks (e.g. 10) in each group. So you mirror group1 to group2, not within a group.
This concepts helps to keep this simple.
I hope this is clear, not more confusing ...
;-)
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
06-08-2010 09:29 PM
06-08-2010 09:29 PM
Re: LVM Mirroring
This guide might help you understand. In particular, see page-51:
http://bizsupport1.austin.hp.com/bc/docs/support/SupportManual/c02023734/c02023734.pdf
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2010 10:02 PM
06-08-2010 10:02 PM
Re: LVM Mirroring
I am coming to the scenario you shown, Disk A&B connected to Adapter1 and Disk C&D connected to Adapter2.
>>LVM itself makes sure you cannot mirror A to A (strict); but mirror A to B would be OK.
Query since my first post is LVM itself, can I mirror A to C & A to D?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2010 10:13 PM
06-08-2010 10:13 PM
Re: LVM Mirroring
Yes, you can either mirror
A to C and A to D (double mirror)
or
A to C and B to D
with or without PVG.
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
06-08-2010 10:27 PM
06-08-2010 10:27 PM
Re: LVM Mirroring
A to C and A to D (double mirror)
or
A to C and B to D
(with or without PVG).
Then what is the need of PVG-Strict? I can have one good copy of my data accessible in the event of hardware(Adapter) failure as above...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2010 10:41 PM
06-08-2010 10:41 PM
Re: LVM Mirroring
If you have 2 sets of disks; each has an HBA, a disk enclosure and several disks, you can loose the HBA, some disks or even the complete enclosure and you have still access to your data.
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
06-09-2010 12:28 AM
06-09-2010 12:28 AM
Re: LVM Mirroring
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2010 02:11 AM
06-09-2010 02:11 AM
Re: LVM Mirroring
Nowadays you have SAN based arrays.
But with so many disks you learn to love PVGs.
In addition, you can easily create extend based striped mirrors that way.
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
06-09-2010 03:57 AM
06-09-2010 03:57 AM
Re: LVM Mirroring
So, on PVG Strict allocation policy, a group of physical volume within the volume group is a PVG we can create many no of PVG's on a volume group. here we can mirror the logical volume in two PVG's
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2010 04:11 AM
06-09-2010 04:11 AM
Re: LVM Mirroring
correct.
>> ... with this policy we can mirror logical volume with in the physical volume, so with this policy there is no redundancy on disk level ...
not correct.
Strict means
"...Mirrors of a logical extent cannot share the same physical volume. This is the default."
source: man lvcreate
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
06-09-2010 04:19 AM
06-09-2010 04:19 AM
Re: LVM Mirroring
And PVG Strict allocation policy is also doing the same but here we are diving the PV's on the volume group
what is the main difference of PVG and Strict
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2010 04:41 AM
06-09-2010 04:41 AM
Re: LVM Mirroring
But only if you set strict to false.
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!
