RHEL 7: Configuring bind mounts

RHEL 7 supports bind mount, but it does not display the bind flag with the mount point. In case of bind mounts, the mount command displays the parent block device and file system type instead of the block device and "bind" option used while performing a bind mount. The mount command output displays the bind mount as a parent block device mounted on multiple mount points. Due to this behavior, the Mount agent is unable to determine bind mounts and any mount resource with FSType=bind fails to come online and the Mount agent reports the resource state as UNKNOWN. You can configure FSType=bind in other Linux versions.

The Mount agent now allows the same block device to be mounted on multiple mount points, so to configure a bind mount in VCS, use the parent block device and file system type.

RHEL 6: Sample bind mount configuration
Mount mntres1 (
                BlockDevice = "/dev/vx/dsk/vcsdg/vcsvol"
                MountPoint = "/vcsmnt"
                FSType = vxfs
		              FsckOpt = "-y"
                )

Mount mntres2 (
                BlockDevice = "/vcsmnt"
                MountPoint = "/bindmount"
                FSType = bind
                )
RHEL 7: Sample bind mount configuration
Mount mntres1 (
                BlockDevice = "/dev/vx/dsk/vcsdg/vcsvol"
                MountPoint = "/vcsmnt"
                FSType = vxfs
		              FsckOpt = "-y"
                )

Mount mntres2 (
                BlockDevice = "/dev/vx/dsk/vcsdg/vcsvol"
                MountPoint = "/bindmount"
                FSType = vxfs
		              FsckOpt = "-y"
                )