Operating System - HP-UX
1833752 Members
2515 Online
110063 Solutions
New Discussion

Re: vg's not being mounted after reboot

 
Randy_9
Regular Advisor

vg's not being mounted after reboot

For some reason a reboot will result in 2 of the systems vg's not being mounted or made accessible. The "ioscan" command shows them
as "CLAIMED" but in SAM both disks show up as
UNUSED in "disks devices". I had to activate
them via "vgchange" after "vgdisplay" showed
them being inactive. What can I do to make sure
these vg's come up on their own after a reboot.
They are both listed correctly in /etc/lvmtab also.
Thanks,
Randy Vincent
16 REPLIES 16
Uday_S_Ankolekar
Honored Contributor

Re: vg's not being mounted after reboot

Hi,

check /etc/fstab has entry for these VG if not add it.

Goodluck,
-USA..
Good Luck..
harry d brown jr
Honored Contributor

Re: vg's not being mounted after reboot

Also, along with Uday's recommendation, make sure you have the latest patches installed!

live free or die
harry
Live Free or Die
Wodisch
Honored Contributor

Re: vg's not being mounted after reboot

Hello,

are those station members of an MC/SC cluster (ServiceGuard)?
then this is intended, as these VGs should only be activated by the MC/SG-packages...
Else have a look into your "/etc/lvmrc", and ensure "AUTO_ACTIVATE_VG" is set to "1".

HTH,
Wodisch
John Poff
Honored Contributor

Re: vg's not being mounted after reboot

One other thing to consider is your /etc/lvmrc file. If you have the AUTO_VG_ACTIVATE variable set to zero, you'll need to put your volume groups that need to be activated into the custom_vg_activation function. Usually the AUTO_VG_ACTIVATE is turned off when you don't won't all the volume groups activated at boot. We have ours set that way on our machines that are in a ServiceGuard cluster.

JP
James R. Ferguson
Acclaimed Contributor

Re: vg's not being mounted after reboot

Hi Randy:

Make sure that AUTO_VG_ACTIVATE=1 in /etc/lvmrc unless you are custom activating volume groups (within /etc/lvmrc).

Also, have a look at /var/adm/syslog/syslog.log for any potential information.

Regards!

...JRF...
Randy_9
Regular Advisor

Re: vg's not being mounted after reboot

The AUTO_VG_ACTIVATE is currently set to "1".
And the systems has vg00, vg01, vg02, vg03, vg04 for volume groups. It is vg03 & vg04
that don't come up. Both are 17gig drives on a
11.00 32bit system. Should I customize the /etc/lvmrc file and if so how would the
function look to accomplish this, like this????
/sbin/vgchange -a y -s
parallel_vg_sync "dev/vg00 /dev/vg01"
parallel_vg_sync "/dev/vg02 /dev/vg03"
parallel_vg_sync "/dev/vg04"

Plus there is not MCService Guard s/w installed.
Thanks,
Randy Vincent

Jason VanDerMark
Trusted Contributor

Re: vg's not being mounted after reboot

Another thing that you may want to check is that your mount options within the /etc/fstab truely correspond to the way that the lvols are setup. For example. If you create a few lvols and do not specify the -o largefiles option when you run newfs, and then you copy a line in your /etc/fstab(which contains a largefiles option) to create your own entry, then when the server boots up it will attempt to mount the lvols with the options that you select. If you don't have the option on the lvol in question then the devices will not mount. Not sure if this helps, but I had this happen to me once. Live and learn.

Regards,
Jason V.
Tie two birds together, eventhough they have four wings, they cannot fly.
Roger Baptiste
Honored Contributor

Re: vg's not being mounted after reboot

Randy,

If the autovgactivate is set to 1, the system should activate the VG's on boot.
Check rc.log and syslog.log file to see whether any messages on this activation were recorded.

HTH
raj
Take it easy.
Jason VanDerMark
Trusted Contributor

Re: vg's not being mounted after reboot

Oops, sorry I misread your problem. I thought that you were having a problem with filesystems not mounting at boot time. Well, its still good advice. :-)

Regards,
Jason V.
Tie two birds together, eventhough they have four wings, they cannot fly.
Randy_9
Regular Advisor

Re: vg's not being mounted after reboot

The /etc/rc.log file indicated that it could find no device or address for the disks that
are assigned to the problem VG's (vg03, vg04).
The command "ioscan" show them as claimed and
the device files are there?. While in SAM
the LV's associated with these VG's showed up
as unused.
Thanks,
Randy

Re: vg's not being mounted after reboot

Are the disks in these volume groups in a different cabinet? Are you sure that the disks were all spun up before the server began to boot?

I am an HPE Employee
Accept or Kudo
Randy_9
Regular Advisor

Re: vg's not being mounted after reboot

Both of the disks are external and were powered
up prior to the CPU being fired up. These disks
are 17gig. The LV's that make up these VG's
were created with "nolargefile" and are noted
that way in the /etc/fstab file.
Randy

Re: vg's not being mounted after reboot

Perhaps it would help if you posted the output of the following commands to the forum:

ioscan -fnC disk

strings /etc/lvmtab

vgdisplay vg03

vgdisplay vg04

Rgds

Duncan

I am an HPE Employee
Accept or Kudo
Uday_S_Ankolekar
Honored Contributor

Re: vg's not being mounted after reboot

Hi,
Restore the LVM configuration information for the physical volume /dev/rdsk/0 that was saved in the default file /etc/lvmconf/vgnn.conf:
vgcfgrestore -n /dev/vgnn /dev/rdsk/

-USA..
Good Luck..
Randy_9
Regular Advisor

Re: vg's not being mounted after reboot

Command ouput as requested...
Thanks,
Randy
Randy_9
Regular Advisor

Re: vg's not being mounted after reboot

I had already run the "vgcfgrestore" commands
for both VG's. I guess I have to wait until
the system is rebooted (???) to see if all is
well again.
Thanks everyone for your help, have
a Happy Thanksgiving : )
Randy