UX:vxfs mount: ERROR: V-3-21264: /dev/vx/dsk/alawdg/mp2 is already mounted, /alawdg/mp1/mp2 is busy, or the allowable number of mount points has been exceeded.
Command 'mount -a' is returning 'EBUSY' errors for some of the child's file systems. Command 'mount -a' will perform different mount operations in parallel whenever possible. The issue occurs when parallel mount operations are issued for all child file systems whose parent directory is a VxFS file system. The vfs_lock() routine is called during mount to take lock of the parent VxFS file system and it fails with EBUSY error for some mount operations. For the mounts that obtained the lock, the mount operations were completed successfully. For those who received EBUSY error the mount operation failed with above error.
The fix is included in VxFS 5.1SP1RP1 through Etrack 1296491 as listed in the Supplemental Materials section of this article. Please download the fix thorugh the Veritas Operation Readiness Tools (SORT) Website.
The following is a workaround if the required patch cannot be applied immediately.
1) Move original vxfs mount command at /usr/lib/fs/vxfs/mount to /usr/lib/fs/vxfs/mount.orig
# mv /usr/lib/fs/vxfs/mount /usr/lib/fs/vxfs/mount.orig
2) Create a shell wrapper of /usr/lib/fs/vxfs/mount to serialize the mount i.e create /usr/lib/fs/vxfs/mount with below contents:
#!/bin/ksh
while ! mkdir /tmp/myvxfsmount.lock 2> dev/null
do
sleep 5
done
/usr/lib/fs/vxfs/mount.orig $@
sleep 1
rmdir /tmp/myvxfsmount.lock
3) Add execute permission to this shell wrapper file
# chmod +x /usr/lib/fs/vxfs/mount
Applies To
VxFS 5.1RP2
Solaris