iscsi_umount

来自「iscsi源代码 UNH的progect 有initiator端和target端」· 代码 · 共 22 行

TXT
22 行
字号
#!/bin/sh# This script umounts file systems associated with UNH iSCSI Disks#UNH_ISCSI_DEV=/opt/unh/iscsi/dev/bin/grep -w ${UNH_ISCSI_DEV} /proc/mounts | \while read MOUNT JUNKdo	/sbin/fuser -k -m ${MOUNT} > /dev/null 2>&1	sleep 2	sync	/bin/umount -f ${MOUNT}done/bin/grep -w ${UNH_ISCSI_DEV} /proc/swaps | \while read SWAP JUNKdo	/sbin/fuser -k -m ${SWAP} > /dev/null 2>&1	/sbin/swapoff ${SWAP}done

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?