- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Exporting and importing volumes groupe to an o...
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
тАО03-26-2003 01:55 AM
тАО03-26-2003 01:55 AM
hello ,
we have two serveurs Hp9000 (rp8400) running under hpux 11i.
we use the first one as a principal serveur with diferent volumes groupes created using servral LUNs in a VA 7410 ( about 64 Lun ).
we wante to use the second serveur as a backup serveur if the first one fail ( with out using MC service guard ).
when we do an ioscan from the first serveur ,we have all devices files about all Luns .
And when we do an ioscan from the second serveur ( backup ) we have the same devices files about all those luns .
please give us all the steps to do a restore all the configuration and volumes groupes using the second serveur ( backup ) if the first one fail ,with out risks for the data costumer.
Using for example vgimport with a mapfile created before in the first serveur , or doing a vgcfgbackup with files in /etc/lvmconf existing in the first serveur .
thanks for the help.
best regards.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2003 02:28 AM
тАО03-26-2003 02:28 AM
SolutionI can give you an example how to import one volume group to another server. However, note there are several other things you should consider:
Kernel parameters - make sure they are the same on both servers
/etc/fstab - this will need to be updated to reflect the new filesystems
Startup scripts - you will need any application scripts copied over and linked as normal
These are just things off the top of my head, there may be more.
This is an example of importing vg01 to another server. You wouldn't use vgcfgbackup/vgcfgrestore as you are talking about the same disks - they already have the LVM information on them!
1) Check the minor number of the group file on the primary server
# ll /dev/vg01/group
2) Create a map file and outfile of the disks, to save you entering them all in the vgimport
# vgexport -p -v -m /tmp/vg01.map -f /tmp/disks.map vg01
3) Transfer the mapfiles to the secondary server
4) Make the vg01 directory and group file
# mkdir /dev/vg01
# mknod /dev/vg01/group c 64 0x010000
0x010000 should be the same as you found from step one, keeps everything aligned.
5) Import the VG
# vgimport -v -m /tmp/vg01.map -f /tmp/disks.map vg01
Regards,
James.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2003 03:11 AM
тАО03-26-2003 03:11 AM
Re: Exporting and importing volumes groupe to an other serveur
It's a subtle difference but proven to work, for me, at least.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2003 03:32 AM
тАО03-26-2003 03:32 AM
Re: Exporting and importing volumes groupe to an other serveur
Yeah, wasn't sure if that only worked with S/G, the "Series 800 Only" warning in the man page put the suspicion in my mind! I also couldn't test on my workstation. I would go with that as it doesn't activate the VG.
Cheers,
James.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2003 03:34 AM
тАО03-26-2003 03:34 AM
Re: Exporting and importing volumes groupe to an other serveur
It works like a charm, even in a non S/G environment!!
Cheers,
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2003 03:36 AM
тАО03-26-2003 03:36 AM
Re: Exporting and importing volumes groupe to an other serveur
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2003 03:47 AM
тАО03-26-2003 03:47 AM
Re: Exporting and importing volumes groupe to an other serveur
Pete
In the step 2 which James has given -p is only for preview. it wouldn't actually export.
you need to use the step 2 without -p.
and ofcourse as we all can see after importing,
another step is needed to activate vg (vgchange -a y vg01)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2003 03:55 AM
тАО03-26-2003 03:55 AM
Re: Exporting and importing volumes groupe to an other serveur
We don't actually want to export it, just create the map file. We just need to get the lvmtab updated and device files created on the other host.
Regards,
James.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2003 05:29 AM
тАО03-26-2003 05:29 AM
Re: Exporting and importing volumes groupe to an other serveur
I agree with u
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2003 05:32 AM
тАО03-26-2003 05:32 AM
Re: Exporting and importing volumes groupe to an other serveur
You can probably do the vgimport ahead of time, leaving only the "vgchange -a y vg01" to be done at switchover, but you would want to be absolutely sure that the vgchange was NEVER run while the original server was still up and accessing the data.
Pete
Pete