- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Can I setup a mirror to a different volume gro...
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
тАО02-03-2004 05:02 AM
тАО02-03-2004 05:02 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-03-2004 05:05 AM
тАО02-03-2004 05:05 AM
SolutionIf you're talking about using MirrorDisk/UX, the answer is no. Mirroring with this product is done on an lvol basis, thus both lvols have to belong to the same VG.
If you're talking some form of manual or hardware mirroring then the answer may be different.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-03-2004 05:05 AM
тАО02-03-2004 05:05 AM
Re: Can I setup a mirror to a different volume group
To change the MAX PV setting, you must remove and recreate the VG as this is set at VG creation time.
You also can not mirror between VG's. That doesn't work as mirroring is done at the LVOL level.
What you could do is create a new VG with your disks you want to mirror to (be sure to make MAX PV large enough) and copy your data to those disks and mount your filesystems from the new VG. Then you can remove the old VG, pvcreate the disks, and vgextend them into the new VG. Now you can mirror your data onto those disks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-03-2004 05:06 AM
тАО02-03-2004 05:06 AM
Re: Can I setup a mirror to a different volume group
1. You cannot change max PV once the VG is created.
2. You cannot mirror the lvols across VGs.
So, what you can do is to setup a new VG with non-default options (look at vgcreate for more information). Once the new VG is setup, create logical volumes of the same size as in old VG, mount them on temporary mount points, copy the data from the old vg to new VG. Unmount old Lvols and mount the new ones and update /etc/fstab to reflect the new VG name. Remove the old VG once the copy is successful and the application tested. Add the disks that got freed from the old VG to new VG and establish mirroring.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-03-2004 05:14 AM
тАО02-03-2004 05:14 AM
Re: Can I setup a mirror to a different volume group
Time to build a new volume group with -p max_pv set higher.
Backup up the data
destory logical volumes
vgreduce the disk out of the old volume group
vtextend the new volume group to the new disks
restore the data.
There may be shortcuts but they scare me.
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
тАО02-03-2004 05:24 AM
тАО02-03-2004 05:24 AM
Re: Can I setup a mirror to a different volume group
So it sounds like I cannot do this without taking an outage of the file systems in the volume group I want to mirror.
Is there anyway to export the lvols out of the original volume group and import them into a new volume group with larger PV settings so I don't have to copy the data?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-03-2004 05:34 AM
тАО02-03-2004 05:34 AM
Re: Can I setup a mirror to a different volume group
Unfortunately the answer is no. You will have to copy the data from old VG to new VG.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-03-2004 05:34 AM
тАО02-03-2004 05:34 AM
Re: Can I setup a mirror to a different volume group
Unfortunately, there aren't any lvmove type commands. The best substitute, if you have the room, is to create a new VG and new lvols within it, then move the data over.
Otherwise, it's backup, destroy, re-create, and restore.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2004 11:06 AM
тАО02-04-2004 11:06 AM
Re: Can I setup a mirror to a different volume group
If on another note you are limited on downtime and you have OnlineJFS with sufficient diskspace, you could take a snapshot and do a vxdump or file copy, thus reducing your downtime.