Problem: I can not change ISCSI disk mount point to other directory.
Currently I have ISCSI disk mounted to /iscsi2
I would like to change it to /iscsi
I changed /iscsi2 to /iscsi in /etc/fstab, but mounting to /iscsi is unsuccessful.
Reproducing steps:
-
Mount /iscsi2 based on /etc/fstab. Failed, because mountpoint is already renamed to /iscsi
mount /iscsi2 mount: can't find /iscsi2 in /etc/fstab
-
Mount /iscsi2 based on device path, successful.
mount /dev/sdd1 /iscsi2
-
Shows that it is mounted:
lsblk -af | grep -i iscsi L¦sdd1 ext4 ISCSI_Backup2 3829ed05-f445-425d-8213-3b1c2d41fba /iscsi2
-
Unmount /iscsi2:
umount /iscsi2
-
Shows that it is unmounted:
lsblk -af | grep -i iscsi L¦sdd1 ext4 ISCSI_Backup2 3829ed05-f445-425d-8213-3b1c2d41fba
-
Mount /iscsi based on device path. Failed.
mount /dev/sdd1 /iscsi
-
Shows that it is still unmounted:
lsblk -af | grep -i iscsi L¦sdd1 ext4 ISCSI_Backup2 3829ed05-f445-425d-8213-3b1c2d41fba
Any idea why mount is successful to /iscsi2 and fails to /iscsi ?