Skip to content

Instantly share code, notes, and snippets.

@msnelling
Created December 28, 2019 21:23
Show Gist options
  • Save msnelling/ce297683329fd090a88df7b18e6a02d4 to your computer and use it in GitHub Desktop.
Save msnelling/ce297683329fd090a88df7b18e6a02d4 to your computer and use it in GitHub Desktop.
iSCSI mount/unmount
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