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
Next revision
Previous revision
ubuntu:iscsihomedir [2015/01/31 21:26]
tschulz [Configure]
ubuntu:iscsihomedir [2015/01/31 21:32] (current)
tschulz [Fix filesystem disappearing after suspend]
Line 21: Line 21:
 </​file>​ </​file>​
 The preceding configurations will mount the parition with UUID **00ab362b-4241-4670-b130-84dc3b0c860c** on **/​netAutofs/​netHomes**.. ​ This again assumes the the iSCSI target that holds the referenced filesystem is connected. The preceding configurations will mount the parition with UUID **00ab362b-4241-4670-b130-84dc3b0c860c** on **/​netAutofs/​netHomes**.. ​ This again assumes the the iSCSI target that holds the referenced filesystem is connected.
 +
 +===== Misc Fixes =====
 +==== Fix filesystem not available shortly after bootup ====
  
 Edit **/​etc/​rc.local**,​ This will fix the issue that the filesystem is not availible for multiple seconds to a few min. after bootup. Edit **/​etc/​rc.local**,​ This will fix the issue that the filesystem is not availible for multiple seconds to a few min. after bootup.
Line 27: Line 30:
 /​etc/​init.d/​autofs restart /​etc/​init.d/​autofs restart
 </​file>​ </​file>​
 +
 +==== Fix filesystem disappearing after suspend ====
 +
 +
 Next we need to make at least one interface unmanned by **Network Manager** since NM disconnects all managed interfaces when the computer suspends. ​ To do this we need to edit **/​etc/​network/​interfaces** Next we need to make at least one interface unmanned by **Network Manager** since NM disconnects all managed interfaces when the computer suspends. ​ To do this we need to edit **/​etc/​network/​interfaces**
 <file config /​etc/​network/​interfaces>​ <file config /​etc/​network/​interfaces>​
Line 32: 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.1422761206.txt.gz · Last modified: 2015/01/31 21:26 by tschulz