User Tools

Site Tools


ubuntu:iscsihomedir

Differences

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

Link to this comparison view

Next revision
Previous revision
ubuntu:iscsihomedir [2015/01/31 21:18]
tschulz created
ubuntu:iscsihomedir [2015/01/31 21:32] (current)
tschulz [Fix filesystem disappearing after suspend]
Line 20: Line 20:
 netHomes -fstype=auto :​UUID="​00ab362b-4241-4670-b130-84dc3b0c860c"​ netHomes -fstype=auto :​UUID="​00ab362b-4241-4670-b130-84dc3b0c860c"​
 </​file>​ </​file>​
-The preceding configurations will mount the parition with UUID **00ab362b-4241-4670-b130-84dc3b0c860c** on **/​netAutofs/​netHomes**+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.
 +<file bash /​etc/​rc.local>​
 +blkid
 +/​etc/​init.d/​autofs restart
 +</​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**
 +<file config /​etc/​network/​interfaces>​
 +auto eth0
 +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>​
ubuntu/iscsihomedir.1422760737.txt.gz · Last modified: 2015/01/31 21:18 by tschulz