Update mount scripts

This commit is contained in:
2022-11-25 12:51:51 +00:00
parent 3368fd71ec
commit 2a57a0766d
2 changed files with 9 additions and 8 deletions
Executable
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
IQN=$1
if [[ -z "${IQN}" ]]; then
echo "usage: $0 TargetIQN"
echo ""
exit
fi
umount /mnt/iSCSI_${IQN}
rm -rf /mnt/iSCSI_${IQN}
iscsiadm -m node -T ${IQN} -u