Operating System - HP-UX
1832678 Members
3065 Online
110043 Solutions
New Discussion

I need to change to backup server

 
Paul J. Ledbetter, II
Frequent Advisor

I need to change to backup server

I have two L2000s and a VA7400. I only have a single L2000 using the VA7400 at a time. Running bdf on the "active" server yields

/dev/vg00/lvol3 159744 100655 55462 64% /
/dev/vg00/lvol1 111637 60085 40388 60% /stand
/dev/vg00/lvol7 1048576 853119 185272 82% /var
/dev/vg00/lvol6 2560000 1331026 1152948 54% /usr
/dev/vg00/lvol5 155648 23078 124595 16% /tmp
/dev/vg00/lvol4 1638400 1475181 153062 91% /opt
/dev/vg00/lvol8 1073152 1471 1004760 0% /home
/dev/vg04/lvol9 51200000 29013 47972808 0% /dump_load
/dev/vg01/lvol1 56610816 37621064 18844240 67% /database
/dev/vg02/lvol1 56610816 25618360 30756800 45% /backup
/dev/vg03/lvol3 17408000 1053292 16100132 6% /apps

Running bdf on my "standby" server yields
/dev/vg00/lvol3 196608 130106 62388 68% /
/dev/vg00/lvol1 111637 59338 41135 59% /stand
/dev/vg00/lvol7 4194304 2305835 1770469 57% /var
/dev/vg00/lvol6 2560000 1336032 1147518 54% /usr
/dev/vg00/lvol5 155648 42768 105885 29% /tmp
/dev/vg00/lvol4 1638400 1232573 380501 76% /opt
/dev/vg00/lvol8 20480 1359 17940 7% /home
/dev/vg03/lvol3 17408000 4882288 12331368 28% /apps

Virtual Groups 1,2, and 4 are on the VA7400. I want to unmount vg01, vg02, vg04 on my active server and mount the same virtual groups now on my standby server, making it the active one. Both servers are connected to the VA7400. Both servers are identical, and are running HP-UX 11i.

What's the easiest way to do this?
I may not know everything, but I'm working on it...
3 REPLIES 3
Pete Randall
Outstanding Contributor

Re: I need to change to backup server

Paul,

I expect you'll need to vgexport the VG's. Unmount the files systems, run "vgchange -a n" on each VG, then vgexport them:

vgexport -s -m /tmp/vg01map /dev/vg01
etc.

Then, on the standby server, copy the mapfiles into place and import them:

mkdir /dev/vg01
mknod /dev/vg01/group c64 0x010000
vgimport -s -m /tmp/vg01map /dev/vg01
vgchange -a y /dev/vg01

and so on for the other VGs. The only thing that is going to cause you problems is that you already have a vg03 /apps on your standby server. You can import it as vg04 and mount it as /active_apps or some such.


Pete

Pete
Devender Khatana
Honored Contributor

Re: I need to change to backup server

Hi,

Alongwith the above details you should also consider Zoning changes at the FC-Switch level if there are some zones configured.
I have not worked on VA7400 but if some sort of LUN protectin is there than that also may require modifications for making these LUNs visible to the new server. If you are not going to use existing LUNs on standby server or the standby sever has no VA LUNs currently allocated, the Zone and security changes can be avoided by putting FC controller from active server to standby server.

HTH,
Devender
Impossible itself mentions "I m possible"
Paul J. Ledbetter, II
Frequent Advisor

Re: I need to change to backup server

I had forgotten all about it, but I had created the following script to create the references to my VA:

vgchange -a n /dev/vg01
vgchange -a n /dev/vg02
vgchange -a n /dev/vg04
vgexport /dev/vg01
vgexport /dev/vg02
vgexport /dev/vg04
mkdir /dev/vg01
mkdir /dev/vg02
mkdir /dev/vg04
mknod /dev/vg01/group c 64 0x010000
mknod /dev/vg02/group c 64 0x020000
mknod /dev/vg04/group c 64 0x040000
vgimport -v /dev/vg01 /dev/dsk/c6t0d1
vgimport -v /dev/vg02 /dev/dsk/c6t0d2
vgimport -v /dev/vg04 /dev/dsk/c6t0d3
vgchange -a y /dev/vg01
vgchange -a y /dev/vg02
vgchange -a y /dev/vg04
mount /dev/vg01/lvol1 /database
mount /dev/vg02/lvol1 /backup
mount /dev/vg04/lvol9 /dump_load

Then I had to make the following entries in FSTAB:

/dev/vg01/lvol1 /database vxfs delaylog,nodatainlog,largefiles,rw,suid 0 2
/dev/vg02/lvol1 /backup vxfs delaylog,nodatainlog,largefiles,rw,suid 0 2
/dev/vg04/lvol9 /dump_load vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2


After a freboot, all was well on my secondary server.

On the server I moved off of, I just had to umount the file systems in question and remove the entries from FSTAB.

I may not know everything, but I'm working on it...