Operating System - HP-UX
1833869 Members
1900 Online
110063 Solutions
New Discussion

Losing all the vg's after reboot

 
Danny Baldono
Frequent Advisor

Losing all the vg's after reboot

I have a production machine (RP7420) with Service Guard installed. I made a recovery tape
for this machine and clone it to stand alone machine (N Class) which is connected directly to VA7400. The cloning went smoothly with just
vg00 is the only vg on /etc/lvmtab. I created around 7 oracle vg's and created it successfuly but after a reboot all my oracle vg are gone only thing left is vg00. Remember that all oracle vg's are on VA7400. When I run ioscan, all the luns are present. Why I am losing vg's created on VA7400 after reboot.
Before I am suspecting that the powerpath software from the RP7420 is causing the problem but it is the same problem with or without powerpath.
Don't fix a good machine or you will end up fixing it.
6 REPLIES 6
A. Clay Stephenson
Acclaimed Contributor

Re: Losing all the vg's after reboot

By default, using Ignite only vg00 is preserved -- so that part workked as expected. Now the part that has me confused is when you mentioned "I created around 7 oracle vg's". You shouldn't have created them; these should have been vgimport's. Have you done a strings /etc/lvmtab after you created the VG's? Moreover, I assume that these VG's are shared so that they are only activated by SG packages.
If it ain't broke, I can fix that.
Patrick Wallek
Honored Contributor

Re: Losing all the vg's after reboot

Your VGs are probably there, but they are getting activated automatically at boot time.

The fact that you installed from a make_tape_recovery tape from a MCSG node is a very good clue.

Look at a file called /etc/lvmrc and look for a line like "AUTO_VG_ACTIVATE". I can almost guarantee that the value for that is 0 (zero).

Since this is now a stand-alone machine, make it 1.

AUTO_VG_ACTIVATE = 1

Now reboot and see what happens. I bet all your VGs now show up and get mounted automatically (assuming you put entries in /etc/fstab).
Danny Baldono
Frequent Advisor

Re: Losing all the vg's after reboot

Clay,

I cloned it on stand-alone N Class directly connected with VA7400. When I do
vgchange -a y /dev/vgsapdata1 see/query the
ctd (device file for the lun). When I run
ioscan the ctd is claimed and /etc/lvmtab
has the ctd. When I run bdf before rebooting
all my vg's are displayed and available only
when I reboot I lost all my VA7400 vg's.

Patrick,

I forgot to mention that I already set this parameter to 1 to automatically activate the vg's (other than vg00). It looks like disks/luns are missing after the reboot but ioscan sees those luns as claimed.
Don't fix a good machine or you will end up fixing it.
Danny Baldono
Frequent Advisor

Re: Losing all the vg's after reboot

Clay,

Correction - after vgchange CTD cannot be seen.
Don't fix a good machine or you will end up fixing it.
Matthew Ghofrani
Regular Advisor

Re: Losing all the vg's after reboot

I would recommend to do vgcfgbkup on all your VGs, do vgscan -p and then without the -preview. If they still disapper, I would suspect that your /etc/ioconfig is somehow corrupted.

If ioconfig turns out to be the culprit, in my experince nothing helped except giving back all the disks, manually removing them from OS along with powermt remove command and starting over.

Matthew From Boston
Life is full of bugs
whiz_kid
Regular Advisor

Re: Losing all the vg's after reboot

i wud take a vgexport for all VGs from the first node in the cluster.

vgexport -p -s -m vg01.map vg01

i will copy the map files to second node.

i will do a vgexport for existing shared VGs in this node.

vgexport vg01

i will do a vgimport using the new mapfile from working node in the cluster

mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x020000
vgimport -s -m vg01.map vg01

repeat the steps for all other VGs.