- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Exporting volume groups with mirrored logical ...
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
03-04-2002 08:13 AM
03-04-2002 08:13 AM
My question is if I do vgexport and then vgimport, ho can I establish mirroring on new system? Immean do I have to do mirror all the logical volumes manually or any other method???
/dev/vg00 - logical volumes lvol1 to lvol6
/dev/vg01 - logical volumes lvol1 to lvol8
all are mirrored.
Your response is highly appreciated.
-Piyush.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 08:17 AM
03-04-2002 08:17 AM
Re: Exporting volume groups with mirrored logical volumes.
If the disk paths are maintained as same on both the system, i.e if diskA is at path cxtydz on one system and same on the other system, your vgimport on the other system should work without any problem.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 08:20 AM
03-04-2002 08:20 AM
Re: Exporting volume groups with mirrored logical volumes.
Take a look at these two links,
http://us-support3.external.hp.com/cki/bin/doc.pl/sid=30378a120ea05e2d76/screen=ckiDisplayDocument?docId=200000015663178
http://us-support3.external.hp.com/cki/bin/doc.pl/sid=30378a120ea05e2d76/screen=ckiDisplayDocument?docId=200000024631529
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 08:20 AM
03-04-2002 08:20 AM
Re: Exporting volume groups with mirrored logical volumes.
You don't need to re-mirror it manually After vgexport and vgimport, if you have Mirror/UX installed on the new system and if the disk paths are same.
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 08:22 AM
03-04-2002 08:22 AM
SolutionThis process can be used for both scenario.
==========================================
a) Moving VG to another hardware path (within the same server).
b) Moving VG to another server.
Example you want to move vg02.
1) Umount all filesystem associate with vg02.
2) Deactivate vg02
# vgchange -a n /dev/v02
3) Remove the VG entry from /etc/lvmtab & the associated device files from the system.
# vgexport -m /tmp/mapfile /dev/vg02
Make sure you transfer a copy of /tmp/mapfile to the 2nd server (for scenario b)
4) Shutdown the systems. Move the hardware to the new server (or move hardware to a new path for scenario a). Power up system.
5) Recreate the VG (you don't have to call it vg02, it can be vg08, etc)
# mkdir /dev/vg02
# mknod /dev/vg02/group c 64 0x0X0000
Note: The minor number (0x0X0000) must be unique for each volume group. Substitute X for a number not in use on the system. Use: ll /dev/*/group to see existing group files on the system. (Ex: # mknod /dev/vg02/group c 64 0x020000)
6) Import the VG info for all disks that are associated with it as follows:
# vgimport -m /tmp/mapfile /dev/vg02 /dev/dsk/pv_name1 /dev/dsk/pv_name2 ......
Note: The "pv_name" is a list each of the block device(s) corresponding to the new hardware path(s). The new device files should have been created during system start up. Use: ioscan -fn to get the new device file names if needed.
7) Activate the VG.
# vgchange -a y /dev/vg02
8) Backup the VG configuration.
# vgcfgbackup /dev/vg02
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 08:22 AM
03-04-2002 08:22 AM
Re: Exporting volume groups with mirrored logical volumes.
Hi,
what u do is u export the volume group with amap file..is ur disks in a shared array..if it is in a shared array..u can do this without any problem.
1. vgexport -p -v -m vgXX.map
and rcp the map file to the other system..deactivate the VG from this system..then
in the other system do a vg import
vgimport -m vgXX.map
then check all the things are working..
Vijeesh CTK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 08:44 AM
03-04-2002 08:44 AM
Re: Exporting volume groups with mirrored logical volumes.
Still one question im my mind.
Will it be good to use "-s" option while exporting the volume groups?
Or Just exporting without "-s" option willl do fine?
Thanks,
-Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 08:47 AM
03-04-2002 08:47 AM
Re: Exporting volume groups with mirrored logical volumes.
suggest use -s when exporting the vg. No harm in using -s option.
hope this helps.
regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 08:51 AM
03-04-2002 08:51 AM
Re: Exporting volume groups with mirrored logical volumes.
Using '-s' is the good selection.
HTH,
Shiju