- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- question about PVG
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
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
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
тАО10-28-2009 09:11 AM
тАО10-28-2009 09:11 AM
# vgcreate -g pvg1 vg02 /dev/dsk/c1t5d0
# vgextend -g pvg2 vg02 /dev/dsk/c2t5d0
# lvcreate -s g /dev/vg02/lvol1
===> PVG-strict on
# lvextend -L 2000 /dev/vg02/lvol1 /dev/dsk/c1t5d0
===> extend it to c1t5d0
should lvol1 mirror to /dev/dsk/c2t5d0 automatically?
thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2009 09:22 AM
тАО10-28-2009 09:22 AM
Re: question about PVG
The 'strict' allocation policy will in itself prevent mirrors from being allocated on the same physical volume.
Since you have setup two physical volume groups, though, when you do your 'lvextend -m 1' to create mirrors of a logical volume, you can specify the pvg_group name as an argument to control where you want the mirrors allocated.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2009 09:50 AM
тАО10-28-2009 09:50 AM
SolutionThe answer to your question is yes due to the requested strict allocation policy, but you will need to either add "-m 1" to your existing lvextend command or run "lvextend -m 1 /dev/vg02/lvol1" in order to generate the mirror.
Your vgcreate and then vgextend commands will have created and then populated the following /etc/lvmpvg file :
cat /etc/lvmpvg
VG /dev/vg02
PVG PVG1
/dev/dsk/c1t5d0
PVG PVG2
/dev/dsk/c2t5d0
Regards,
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2009 07:59 AM
тАО10-30-2009 07:59 AM
Re: question about PVG
As you said,
"you will need to either add "-m 1" to your existing lvextend command or run "lvextend -m 1 /dev/vg02/lvol1" in order to generate the mirror"
I need do the following if I want to create a LV lvol1 on c1t5d0, while there is a mirror copy on c2t5d0
# vgcreate -g pvg1 vg02 /dev/dsk/c1t5d0
# vgextend -g pvg2 vg02 /dev/dsk/c2t5d0
# lvcreate -s g /dev/vg02/lvol1
# lvextend -L 100 -m 1 /dev/vg02/lvol1 /dev/dsk/c1t5d0
Am I right?
Another question is, the PV_path in upper lvextend cmd can be either c1t5d0 or c2t5d0, Yes or No ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2009 08:21 AM
тАО10-30-2009 08:21 AM
Re: question about PVG
When you lvcreate the lvol is put on the first pv found in the vg. You can find this for yourself with this command
strings /etc/lvmtab
When you lvextend a mirror its always to the 2nd pv, c2t5d0 in this case. So your last command is incorrect.