Wise people learn when they can; fools learn when they must - Arthur Wellesley

Monday, 21 November 2016

Veritas Volume Manager-13 (Mount Lock/Unlock)

root@pr01:>/# mount -F vxfs -o mntlock=vxvm /dev/vx
vx/       vxfen     vxfend    vxportal
root@pr01:>/# mount -F vxfs -o mntlock=vxvm /dev/vx/dsk/mdg/mrvol /mrvol-test/
UX:vxfs mount: ERROR: V-3-21264: /dev/vx/dsk/mdg/mrvol is already mounted, /mrvol-test is busy,
                 or the allowable number of mount points has been exceeded.
root@pr01:>/# umount /mrvol-test/
root@pr01:>/#
root@pr01:>/# mount -F vxfs -o mntlock=vxvm /dev/vx/dsk/mdg/mrvol /mrvol-test/
root@pr01:>/#
root@pr01:>/#
root@pr01:>/# mount -F vxfs -o mntlock=vxvm /dev/vx/dsk/mdg/mrvol /mrvol-test
root@pr01:>/#
root@pr01:>/#


root@pr01:>/# df -kh /mrvol-test/
Filesystem             size   used  avail capacity  Mounted on
/dev/vx/dsk/mdg/mrvol
                       1.0G    68M   896M     8%    /mrvol-test
root@pr01:>/# umount /mrvol-test/
UX:vxfs umount: ERROR: V-3-26388: file system /mrvol-test has been mount locked
root@pr01:>/# umount -o mntunlock=vxvm /mrvol-test/
root@pr01:>/#
root@pr01:>/# df -kh /mrvol-test/
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c1t0d0s0      7.7G   6.3G   1.3G    83%    /
root@pr01:>/# df -kh /mrvol-test
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c1t0d0s0      7.7G   6.3G   1.3G    83%    /
root@pr01:>/# mount -F vxfs -o mntlock=vxvm /dev/vx/dsk/mdg/mrvol /mrvol-test/
root@pr01:>/#
root@pr01:>/# mount -v |grep -i /mrvol-test/
root@pr01:>/# mount -v |grep -i /mrvol-test
/dev/vx/dsk/mdg/mrvol on /mrvol-test type vxfs read/write/setuid/devices/rstchown/delaylog/largefiles/qio/ioerror=mwdisable/mntlock=vxvm/xattr/dev=4304a38 on Tue Nov  8 19:16:16 2016
root@pr01:>/#
root@pr01:>/# umount -o mntunlock=vxvm /mrvol-test
root@pr01:>/#
root@pr01:>/# mount -v |grep -i /mrvol-test
root@pr01:>/#
root@pr01:>/# mount -F vxfs -o mntlock=vxvm /dev/vx/dsk/mdg/mrvol /mrvol-test/
root@pr01:>/#
root@pr01:>/# fsadm -o mntunlock=vxvm /mrvol-test
root@pr01:>/# mount -v |grep -i /mrvol-test
/dev/vx/dsk/mdg/mrvol on /mrvol-test type vxfs read/write/setuid/devices/rstchown/delaylog/largefiles/qio/ioerror=mwdisable/xattr/dev=4304a38 on Tue Nov  8 19:17:46 2016

root@pr01:>/# fsadm -o mntunlock=vxvm /mrvol-test
UX:vxfs fsadm: ERROR: V-3-26420: file system not mount locked
root@pr01:>/#
root@pr01:>/#
LOCK IT AGAIN
-bash: LOCK: command not found
root@pr01:>/#
root@pr01:>/# fsadm -o mntlock=vxvm /mrvol-test
root@pr01:>/#
root@pr01:>/# umount -o mntunlock==vxvm /mrvol-test
UX:vxfs umount: ERROR: V-3-26437: Incorrect mntlock id
root@pr01:>/# umount -o mntunlock=vxvm /mrvol-test
root@pr01:>/#
root@pr01:>/# mount -v |grep -i /mrvol-test
root@pr01:>/#



No comments:

Post a Comment