VXFS file system are not shown by operating system, /etc/mtab file did not get updated with vxfs FS at boot time

book

Article ID: 100022016

calendar_today

Updated On:

Description

Details

Environment:
SLES 10S
VERITAS Storage Foundation
Diskgroup,Volume and VxFS File system created
VxFS Filesystem defined in /etc/fstab
 
 
VXFS filesystem are not shown by operating system, Commands df and `mount -v` do not display the VxFS File System as mounted. The file /etc/mtab file did not get updated with VxFS File System mounts at boot time. Yet, a `cat /proc/mounts` shows the file system is actually mounted. In addition changing to the directory mount and doing a directory listing shows a lost and found directory.
 
The issue is due to the fake mount option used by SLES10 in the script/etc/init.d/boot.localfs. The intent is that the mount is checked early on, but should not be mounted at this time due to the "-f" flag. Subsequent call without the "-f" should result in a real mount, but since mount.vxfs routine already mounted the VxFS file system, a failure is shown in the start-up logs,
 
UX:vxfs mount.vxfs: ERROR: V-3-21264: /dev/vx/dsk// is already mounted, /< is busy, allowable number of mountpoints exceeded
and no entry is created in /etc/mtab
 
Two problems combine for this to occur:
a. TheSLES10 mount binary fails to pass on the -f flag to other mount types. Please check with the OS Vendor with regards to a fix.
b. Secondly even if there is a fix for the Linux mount command to pass the "-f" flag. The VxFS mount does not handle the "-f" option at all. This issue is fixed in4.1MP4RP3HF7 and 5.0MP3RP1.
 

WorkAround

a. Manually run the command `mount -i -a -f -t vxfs`. The command will update the mnttab.
 
# mount -i-a -f -t vxfs
 
b. You can also create a start up script so that on reboot the command gets automatically run.
Step 1:Create the script
 
# vi/etc/init.d/mount_vxfs
 
#!/bin/sh
case "$1"in
start)
/bin/mount-i -a -f -t vxfs
;;
stop)
exit0
;;
*)
echo "Usage:$0 {start|stop}"
exit1
esac
 
 
Step 2: Make the script executable
 
# chmod 755/etc/init.d/mount_vxfs
 
Step 3: Run chkconfig -a. The -a option will execute the insserv script that will create the links in rc3.d and rc5
 
# chkconfig -a mount_vxfs
# mount_vxfs0:off 1:off 2:off 3:on 4:off 5:on 6:off
 
Note: Note the above is workaround in the absence of the Operating System fix.
 
 

 

Issue/Introduction

VXFS file system are not shown by operating system, /etc/mtab file did not get updated with vxfs FS at boot time