User Tools

Site Tools


ubuntu:iscsihomedir

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
ubuntu:iscsihomedir [2015/01/31 21:28]
tschulz [Misc Fixes]
ubuntu:iscsihomedir [2015/01/31 21:32] (current)
tschulz [Fix filesystem disappearing after suspend]
Line 39: Line 39:
 iface eth0 inet dhcp iface eth0 inet dhcp
  
 +</​file>​
 +
 +==== Fix not filesystem no unmounting during shutdown ====
 +It appears that during the shutdown or reboot process the previous user sessions are not cleaned up very well.  This causes the shutdown process to get stuck with open files on the mounted iSCSI filesystems. ​ I was able to fix this be adding the following to **/​etc/​init.d/​umountiscsi.sh**
 +<file bash /​etc/​init.d/​umountiscsi.sh>​
 +while [ "`lsof | grep /​netAutofs/​netHomes | tr -s \" \" | cut -d \" \" -f2`" != ""​ ]
 +do
 +        echo "​Killing User Processes"​
 +        LSOF_PROCS="​`lsof | grep /​netAutofs/​netHomes | tr -s \" \" | cut -d \" \" -f2`"
 +        for i in ${LSOF_PROCS}
 +        do
 +                kill ${i} > /dev/null 2>&1
 +        done
 +        sleep 1
 +done
 </​file>​ </​file>​
ubuntu/iscsihomedir.1422761301.txt.gz · Last modified: 2015/01/31 21:28 by tschulz