- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: LVM on a redundant system
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
07-19-2000 11:12 PM
07-19-2000 11:12 PM
I have two HP 9000 connected to a High Availability Storage Server (HASS) with two drives in it. One for data the other for mirroring. I have configured the drives perfectly on System A. When I go into SAM on system B the drives are stated as "unused". If I try to configure the drives from B then I loose the data on them as they get initilised. System B should be able to load the drives when A is down (redundant system). I have the redundant software but I can't get System B to read the drives without clearing them. Tried VGEXPORT and VGIMPORT - anyone with ideas.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2000 11:19 PM
07-19-2000 11:19 PM
Re: LVM on a redundant system
Assuming system A isn't using the disks, just doing a vgimport on system B should be enough.
I'm assuming your not doing vgcreate?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2000 11:24 PM
07-19-2000 11:24 PM
Re: LVM on a redundant system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2000 11:33 PM
07-19-2000 11:33 PM
Re: LVM on a redundant system
Anyway, provided the vg is created on the node A and then vgexported/vgimported across to node B it should be no problem.
The one suggestion may be to ensure, just as for MC/SG, that the vg names, VG minor numbers etc all match up on both systems.
You may also want to try using the -s option to export the vg, and then reimport it on node B
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2000 11:59 PM
07-19-2000 11:59 PM
Re: LVM on a redundant system
System B is supposed to be the fail-over system for system A. The nature of this situation is, that you are planing to use the disks on system B when system A is down, right? Well, I'm afraid there is no way to execute a vgexport on a down system?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2000 12:01 AM
07-20-2000 12:01 AM
Re: LVM on a redundant system
Manju: I'm not doing a vgcreate - if I do then won't I loose the data thats already on the drive.
Melvyn: How do I de-activate it on system A ?
Am i suppose to run vgexport on A and vgimport on B ?
I read alot of vgexport / vgimport commands form the messages, but no luck. Can someone please be a bit more precise.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2000 12:03 AM
07-20-2000 12:03 AM
Re: LVM on a redundant system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2000 12:05 AM
07-20-2000 12:05 AM
Re: LVM on a redundant system
http://docs.hp.com:80/dynaweb/hpux11/hiaven1a/mcsgen1a/@ebt-link?window=CURRENT;target=%25N%14_6007_START_RESTART_N%25
It explains how to activate/deactivate VG,s and export and import them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2000 12:18 AM
07-20-2000 12:18 AM
Re: LVM on a redundant system
Then system B, can import them
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2000 12:24 AM
07-20-2000 12:24 AM
Re: LVM on a redundant system
Otherwise if node A dies, you activate the discs to node B, and then disconnect the cables from Node A for a repair, you break the SCSI chain, and Node B will have problems with the VG!
If you read the manual section I gave the URL for, it covers most of what you need, just be aware that if you do NOT change the /etc/lvmrc file on the nodes, they will both attempt to activate the VG on boot-up, and WILL do it!
So your fail-over scenario will need to include a script to activate the vg on the required node ONLY, else data corruption will occur.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2000 07:56 AM
07-20-2000 07:56 AM
Re: LVM on a redundant system
Is your vgxx mirrored? Can you, please post here the errors that you get in the following:
1.SysA -up, do vgexport -m mapfile vgxx
2. get mapfile to sysB (ftp, rcp whatever)
3.Shutdown (power off sysA) and than in sysB do:
vgimport -m mapfile -s -v /dev/vgxx /dev/dsk/cXtYdZ ...
4.in sys B vgchange -a y /dev/vgxx
What error do you get?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2000 09:32 AM
07-20-2000 09:32 AM
Re: LVM on a redundant system
As one post said, if A is down you can not vgexport it. Another post said to vgchange -a n and deactivate the vg. Again, can not do it if A is down.
I think you need to do a vgchange -a s to make it shared on A for the high availability environment. Then when A goes down the you should be able to vgimport on B.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2000 05:13 PM
07-20-2000 05:13 PM
Re: LVM on a redundant system
Still no luck.
Antoanetta: On Sys A, I typed in the following:
vgexport -m mapfile.exp vg01
and got the following message:
Volume group "vg01" is still active.
vgexport: Couldn't export volume group "vg01".
Then I tried again, this time, after I unmounted the device that I want to export:
"umount /data1"
same error message as above.
The device I'm trying to export is: /dev/dsk/c0t14d0 and its mirror /dev/dsk/c0t15d0. They were mounted to /data1 on System A. I want to unmount it and mount it to /data1 on System B.
Do you have any ideas ?
Current
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2000 07:36 PM
07-20-2000 07:36 PM
SolutionIf you want to export vg01 from SYSTEM A and import it on SYSTEM B try this;
SYSTEM A
# umount /data1
# vgchange -a n /dev/vg01
# vgexport -v -s -m /tmp/vg01.map
-=ftp the map file to system b=-
SYSTEM B
# mkdir /dev/vg01
# mknod /dev/vg01/group c 64 0x010000
# vgimport -v -s -m /tmp/vg01.map
# vi /etc/fstab -> add entry for /data1
# mkdir /data1 -> if not there
# mount /data1
When you want to take it back, use the same steps.
After looking over your last response, it looks like you didnt deactivate the vg before exporting it. Are there any other filesystems in vg01 other than /data1 - make sure they are also unmounted before attempting to deactivate vg01.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2000 07:39 PM
07-20-2000 07:39 PM
Re: LVM on a redundant system
after doing the vgimport on SYSTEM B, and before mounting /data1, activate the vg.
# vgchange -a y /dev/vg01
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2000 08:14 PM
07-20-2000 08:14 PM
Re: LVM on a redundant system
you are a champion - it all works.
Thank you everyone for your tips - all of them were useful.
I will assign points shortly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2000 09:48 AM
07-21-2000 09:48 AM
Re: LVM on a redundant system
with the vgexport I forgot to tell it what vg to export, but it sounds like you caught that. should've been;
# vgexport -v -s -m /tmp/vg02.map /dev/vg02
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2000 08:59 AM
07-27-2000 08:59 AM
Re: LVM on a redundant system
I just posted another message similiar to yours. Although we are not trying to accomplish the exact same thing I did do all the same steps. I am finding on the second system though it does not seem to re-read the disk unless I mount/umount the vol.
When you change the contents of the FS does both system pick up the changes immediatly? Did you have to do anything special? Thanx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2000 04:47 AM
08-02-2000 04:47 AM
Re: LVM on a redundant system
Denver's solution to the problem is almost perfect, however there is one further twist that I can think of.
The solution shown above does a full vgexport of the volume group from SYSTEM A. For SYSTEM A to access this volume group again vgimport must be run again on SYSTEM A.
If the purpose of the excercise is to allow SYSTEM B to access the volume group on the shared HASS in the event of a crash on SYSTEM A and allow for a switch back to SYSTEM A when it is available then I suggest the following tweak to Denver's solution. Add the -p (preview option) to the vgexport command on SYSTEM A, ie:
vgexport -v -s -p -m /tmp/vg02.map /dev/vg02
This will create the map file without actually exporting the volume group from SYSTEM A. You also do not need to deactivate the volume group before creating the map file when using the -p option.
Theoretically you may then be able to deactivate the volume group on SYSTEM A with (assuming the volume group is vg01):
SYSTEM A
vgchange -a n /dev/vg01
SYSTEM B
vgchange -a y /dev/vg01
I say theoretically because I have not tried this as yet in a non-serviceguard environment.
If you do want SYSTEM B to take over in the event of SYSTEM A crashing then you need to be certain that SYSTEM A is really not accessing the shared volume group or data corruption will occur if the volume group is active on both systems at the same time.
Serviceguard ensures this by TOCing one of the systems (Transfer of Control - basically crashing one of the systems on purpose to ensure only one will access the shared volume group)
Take heed of Melvyn Burnard's post. If all volume groups are activated automatically on boot up on either of your systems then you could get into hot water if SYSTEM A crashes, you activate the volume group to SYSTEM B then SYSTEM A also activates the shared volume group after it auto reboots. See the following post for information on how to control volume group activation on boot up:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x08767e990647d4118fee0090279cd0f9,00.html
I wish I had the hardware right now to test this out completely.
Regards,
Trevor Dyson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2000 11:54 AM
08-08-2000 11:54 AM
Re: LVM on a redundant system
make the changes to be:
AUTO_VG_ACTIVATE=0
custom_vg_activation()
{
/sbin/vgchange -a y /dev/vg00
return 0
}
so auto_vg_activate=0 means don't automatically activate volume groups
in the custom_vg_activation() function, add the entry for vg00...
other volumegroups won't be activated by default on reboot...