- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Merge 2 vg into one
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
02-04-2002 08:47 AM
02-04-2002 08:47 AM
Merge 2 vg into one
I have two servers, and every one has a vg. I have a new server, where I must to import the vgs from the olders.
I would like not to backup/restore, and I wonder if it would be possible to vgimport the discs merging the old vgs.
Does any one know if it is possible to vgimport 2 vgs into one?
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2002 08:52 AM
02-04-2002 08:52 AM
Re: Merge 2 vg into one
It is not possible to merge two vg's into one.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2002 08:52 AM
02-04-2002 08:52 AM
Re: Merge 2 vg into one
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2002 08:53 AM
02-04-2002 08:53 AM
Re: Merge 2 vg into one
No, it is not possible to combine two volume groups into one by 'vgimport'. 'pvmove' will not work in this case, either. To meet your goal, 'vgimport' one volume group from one of the old servers to the new one; add new logical volumes to it; and then copy data from the second server's logical volumes into the newly created logical volumes.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2002 08:57 AM
02-04-2002 08:57 AM
Re: Merge 2 vg into one
It is possible to import both the volume groups into one system as two volume groups but not possible to import them to merge them into one volume group. You can follow these steps.
1. Do a vgchange -a n on the volume groups. You need to unmount the file systems to accomplish this.
2. Do a vgexport -v -s -m /tmp/vgxx.map vgxx
on both the systems. Copy the vgxx.map from both the old systems into the new system.
3. Do a vgexport -v vgxx on both the systems to take vg configuration out of /etc/lvmtab.
3. Disconnect the cables. Change the scsi ids/Lun Ids on the disks to make them unique if you are going to daisy chain the disks. If you are connecting them to different interfaces, then no need.
5. Run ioscan -f and do insf on the new system.
6. Create two directories under /dev and and make group device files.
mkdir /dev/vgxx1
mknod /dev/vgxx1/group c 64 0x0?0000
7. vgimport both the volume groups
vgimport -v -s -m vgxx1.map vgxx1
8. Enable both the volume groups
vgchange -a y vgxx1
To merge the volume groups, add new disks to either of the volume group, create new file systems and copy the data from the file systems of the other volume group.
-Sri