- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Do I need serviceguard to vgexport/inport from...
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
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
тАО09-30-2005 01:36 AM
тАО09-30-2005 01:36 AM
If production would fail, the prodbox would not be using vgprod. So we would activate vgprod on the test box. Even though the device names of the disks are different between the prod and test box, the disks are the same.
Before any failure, I would do this to test failover capability...
on prodbox: vgexport -s -m /tmp/vgprod.map -p /dev/vgprod
copy prodbox:/tmp/vgprod.map to testbox:/tmp/vgprod.map
on prodbox: vgchange -a n /dev/vgprod
on testbox: make the vgprod directory and the group file.
on testbox: vgimport -s -m /tmp/vgprod.map
on testbox: vgchange -a y vgprod
Now let me ASSUME the -s command is not available if I don't have MC/Service Guard. Here's the same stuff with that "-s".
on prodbox: vgexport -m /tmp/vgprod.map -p /dev/vgprod
on prodbox: vgdisplay -v /dev/vgprod
copy prodbox:/tmp/vgprod.map to testbox:/tmp/vgprod.map
By hand, identify the disks on the testbox that correspond to vgprod on the prodbox.
on prodbox: vgchange -a n /dev/vgprod
on testbox: make the vgprod directory and the group file.
on testbox: vgimport -m /tmp/vgprod.map /dev/dsk/cXtYdZ /dev/dsk/cXtYdZ....
on testbox: vgchange -a y vgprod
Currently, disk 1 on prodbox c10t3d0 is testbox c2t4d0, disk 2 on ...etc, etc.
We are looking at getting two rx4640 servers (11i) both hooked to an EVA4000 san array. The new servers and san array are not here. They're not even bought yet. I have never used a san array before. But I expect my new prodbox and testbox will be able to see the same disks.
When I stated this to the seller I was told that I do not want the testbox to see the disks of vgprod, because I might accidentally use the vgprod disks on the testbox while they are in use. But if I follow that advice, I can't have the failover of vgprod to the testbox.
So...we finally come to my question:
Can I have the testbox see the production disks (aka vgprod)?
Why is this a bad idea?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2005 01:43 AM
тАО09-30-2005 01:43 AM
Re: Do I need serviceguard to vgexport/inport from one box to another?
We do that all the time - to our backup server.
On our prod boxes (which happen to be MC/SG), we utilize a 3rd mirror (BCV on EMC) - that prod doesn't see - and mount that on the backup server.
For QA systems, we mount the exact same disks on the backup server (after unmounting, vgchanging from QA server).
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2005 01:48 AM
тАО09-30-2005 01:48 AM
SolutionSince in your case the number of servers are less , you can manage easly with out using masking .
And the steps you given are absolutely correct , but you may add a preview option to vgimport command to make sure every thing is alright before doing the actual import .
and note ,all the export /import command will have the vgname as parameter at the end .
Thanks,
BL.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2005 01:52 AM
тАО09-30-2005 01:52 AM
Re: Do I need serviceguard to vgexport/inport from one box to another?
thx,
bl.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2005 02:30 AM
тАО09-30-2005 02:30 AM
Re: Do I need serviceguard to vgexport/inport from one box to another?
If your prod machine goes down, you can't get a current map and disk drive list for the import command on the backup machine. It may be a good idea to periodically record that information, say using the vgexport with the -p option on the prod server and copying it over the backup server so you have it there if you need it. Just one thing, if you use the -f option you will need to make sure the disks have the same name on both machines or include a script to convert them.
H
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2005 02:41 AM
тАО09-30-2005 02:41 AM
Re: Do I need serviceguard to vgexport/inport from one box to another?
I keep the map on the failover box. But I also move it to my pc, and burn it to CDROM (along with lots of other sysadm information and documents on disaster recovery). I also have some of the key information in hard copy for fast reference.
Like a typical systems administrator, I'm paranoid about losing the systems for a long duration. I would really hate it to find that new hardware removes the ability for me to get stuff going again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2005 03:02 AM
тАО09-30-2005 03:02 AM
Re: Do I need serviceguard to vgexport/inport from one box to another?
All options of vgimport are available within default LVM itself. Service Guard does not add anything to it including shared mode.
As far as the sharing disks on two nodes is concerned, it is not at all a bad idea but precaution should be taken while handling shared disks, as try to mount file systems of one VG on two nodes simultaneously may lead to data corruption in those file systems.
HTH,
Devender