Skip to content

ISCSI

Look for ISCSI Volumes

nimbleips="10.0.0.11 10.0.0.12 10.0.0.13" 
for i in $(echo $nimbleips); do iscsiadm -m discovery -t st -p $i; done

Rescan to multipath ISCSI volumes

iscsiadm -m discovery -t st -p {TRAGET-IP} -o new 

iscsiadm -m session --rescan

multipath -ll

Unmount and remove from cache

# logout
for i in $(iscsiadm -m node | awk '{print $2}');do iscsiadm -m node -T $i --logout;done

# check sessions 
iscsiadm -m session –u

# 
iscsiadm -m node -o update -n node.session.timeo.replacement_timeout -v 120

iscsiadm -m node --logout -T {volume}

iscsiadm -m node -o delete -T {volume}