- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: PVG mirrors?
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
тАО12-13-2000 06:47 PM
тАО12-13-2000 06:47 PM
Should anyone kindly give me some clear idea about the difference about PVG mirror and mirror & in which case they are used?
Thanks in advance.
thinphonny
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-13-2000 06:57 PM
тАО12-13-2000 06:57 PM
Re: PVG mirrors?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-13-2000 11:22 PM
тАО12-13-2000 11:22 PM
Re: PVG mirrors?
Let's say you have vg03 and it contains 6 physical volumes. You could create an /etc/lvmpvg file with the following.
VG /dev/vg03
PVG pvg0
/dev/dsk/c0t2d0
/dev/dsk/c0t3d0
/dev/dsk/c0t4d0
PVG pvg1
/dev/dsk/c1t2d0
/dev/dsk/c1t3d0
/dev/dsk/c1t4d0
Now if you have an lvol1 in vg03 that is contained on c0t2d0 and c0t3d0 you can extend it to mirrored copies of 1 by specifing the PVG that contains pv c1t*d0
# lvextend -m 1 /dev/vg03/lvol1 pvg1
It'd be the same as
# lvextend -m 1 /dev/vg03/lvol1 /dev/dsk/c1t2d1 /dev/dsk/c1t2d2
You could see that if you are working with several disks it may help with keeping track of how things are layed out on the system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-13-2000 11:40 PM
тАО12-13-2000 11:40 PM
Re: PVG mirrors?
Good explanation, but I guess that last lines should read:
---------------
It'd be the same as
# lvextend -m 1 /dev/vg03/lvol1 /dev/dsk/c1t2d0 /dev/dsk/c1t3d0
---------------
Shouldn't they ?
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-13-2000 11:56 PM
тАО12-13-2000 11:56 PM
Re: PVG mirrors?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2000 01:45 AM
тАО12-14-2000 01:45 AM
Re: PVG mirrors?
One more point, you do NOT need the PVG to mirror your LVOLs, it's just a bit more convenient because it saves typing (see Denver's answer above)
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2000 01:46 AM
тАО12-14-2000 01:46 AM
Re: PVG mirrors?
But can I make two PVs as a mirror without PVG?
then why I use PVG?
What's the differences?
Thanks!
thinphony.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2000 02:22 AM
тАО12-14-2000 02:22 AM
Re: PVG mirrors?
Check the man page for lvsplit and lvmerge aswell.
Within hpux 11.X you can specify which PVG you want to split.
e.g.
# lvsplit -g PVG1 /dev/vg04/lvol1
This functionallity wasn't in the previous version of hpux. This can be handy for instance when you have a three way mirror.
Good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2000 08:57 AM
тАО12-14-2000 08:57 AM
Solutionlvextend -m 1 -s n ... (allow mirroring on same disk)
lvextend -m 1 -s y ... (mirrors can not be on the same disk - DEFAULT)
lvextend -m 1 -s g ... (mirrors must be on different PVG)
Setting up PVGs in the /etc/lvmpvg file allows PV location to be defined once. You can build your own /etc/lvmpvg by hand or use the -g option of vgcreate when creating the volume groups.