Created
December 28, 2019 21:23
-
-
Save msnelling/ce297683329fd090a88df7b18e6a02d4 to your computer and use it in GitHub Desktop.
iSCSI mount/unmount
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo -i | |
nano /etc/iscsi/iscsi.conf | |
node.startup = automatic | |
iscsiadm -m discovery -t st -p 10.1.1.175 | |
iscsiadm -m node | |
dmesg | grep sd | |
mount /dev/sd?? /srv | |
cp -a /mnt/nas/pvs/??/. /srv/. | |
umount /srv | |
iscsiadm -m node -T iqn.2005-10.org.freenas.ctl:sonarr-config -p 10.1.1.175:3260 -u | |
iscsiadm -m node -o delete -T iqn.2005-10.org.freenas.ctl:sonarr-config | |
iscsiadm -m session | |
iscsiadm -m discoverydb -t sendtargets -p 10.1.1.175:3260 -o delete | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment