Operating System - HP-UX
1753890 Members
7409 Online
108809 Solutions
New Discussion юеВ

Mounting automatically upon boot up

 

Mounting automatically upon boot up

I recently created a new vxfs file system on an existing HP-UX 11.0 thru a command line. I added an entry in /etc/fstab of the new File System. But everytime I reboot the machine, the file system is not mounted. I have to activate the volume group manually (vgchange -a y /dev/vg05), before I can manually mount the file system. Why would the file system not mount automatically upon boot up? Am I missing anything from the /etc/fstab entry?
Below is the the /etc/fstab entry of the file system and also the error log in /etc/rc.log upon boot up.

/dev/vg05/lvol1 /u4d4 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2


/etc/rc.log
.
.
.
Mount file systems
Output from "/sbin/rc1.d/S100localmount start":
----------------------------
mountall: cannot mount /dev/vg05/lvol1
mountall: diagnostics from mount
mount - Cannot open /dev/vg05/lvol1: No such device or address


7 REPLIES 7
Helen French
Honored Contributor

Re: Mounting automatically upon boot up

Hi Anthony:

What is the output of this:
# strings /etc/lvmtab

Did the VG showing in there ? what is the output of vgdisplay -v /dev/vg03 ?

Is the bcheckrc (during startup) showing any error ?

HTH,
Shiju
Life is a promise, fulfill it!
Trond Haugen
Honored Contributor

Re: Mounting automatically upon boot up

Your problem isn't fstab but it seems youe volumgroups are not activated automatically. Does your system run Service Guard?
Annyway take a look at /etc/lvmrc. If AUTO_VG_ACTIVATE=0 you will have to add a line to activate the volumegroup (/sbin/vgchange -a y vg05) in the custom_vg_activation() function.

Regards,
Trond
Regards,
Trond Haugen
LinkedIn
Christopher McCray_1
Honored Contributor

Re: Mounting automatically upon boot up

Hello,

I have just a couple of questions, the first of which may be dumb:

Did you create the rlvol through newfs?

Is this server by chance in an MC/Serviceguard environment? If so, then the AUTO_VG_ACTIVATE flag is set to 0 in /etc/lvmrc and you need to add the vgchange -a y to the function custom_vg_activation area of this file.

Is this your situation?

Hope this helps and sorry if #1 was a stupid question

Chris
It wasn't me!!!!
Jeff Schussele
Honored Contributor

Re: Mounting automatically upon boot up

Hi,

Make sure the VG is NOT in the /etc/lvmrc file.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Jeff Schussele
Honored Contributor

Re: Mounting automatically upon boot up

Oops make that - make sure it's IN the /etc/lvmrc file...
if you have Service Guard.

Sorry,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Jeff Schussele
Honored Contributor

Re: Mounting automatically upon boot up

And if you aren't running Service Guard - just set
AUTO_VG_ACTIVATE to 1 in this file.
Then next time you won't have to remember this step.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!

Re: Mounting automatically upon boot up

Thx to all of you. I'm running MC/ServiceGuard and of course AUTO_VG_ACTIVATE is set to 0 (AUTO_VG_ACTIVATE=0). I added the vg05 to /etc/lvmrc VOLUME_GROUPS="..../dev/vg05". This should work.
Again, thanks for a quick and accurate response.