Wednesday, March 21, 2012

VxFS filesystems fail to mount at boot on linux systems

Problem
-------
VxFS filesystems fail to mount at boot on linux systems. Able to mount manually from /etc/fstab using "mount -a" command.

Solution
--------

Make sure fstab entry is correct with proper tab separations

An example of an entry for a vxfs filesystem:
/dev/vx/dsk/testdg/testvolume /mountpoint vxfs _netdev 0 1

Changing of the options in /etc/fstab for the vxfs filesystems does require modification of the default setting (off) for "netfs".
To verify the current setting of "netfs", run the following command:

# chkconfig --list |grep netfs

If the output indicates "netfs" is off at all run-levels as below:
netfs 0:off 1:off 2:off 3:off 4:off 5:off 6:off

then it is necessary to enable "netfs".

If the output is as below:
netfs 0:off 1:off 2:off 3:on 4:on 5:on 6:off

then "netfs" is already enabled and the vxfs filesystems should successfully mount at boot.

To enable the "netfs" service functionality (if disabled) perform the following:

# chkconfig netfs on

This setting is persistent across reboots.

If it is desired to start the "netfs" process on the system that is currently up, issue the following command:

# service netfs start

No comments:

Post a Comment