iscsi home directory

Discussion in 'Server Operation' started by unixbytes, Dec 9, 2013.

  1. unixbytes

    unixbytes New Member

    I setup an iscsi connection to a newly minted Debian server. Everything work perfectly except when I reboot the server I get the 'Error of Concern' as shown below. The server hangs trying to umount the iscsi device when it is rebooted. Is there something I missed, that must be done because its the /home directory? Has anyone experienced this and found a solution?

    I understand that it is notifying me that that directory is busy. But that doesn't really help, especially on reboot.


    Code:
    
    # cat /etc/debian_version 
    7.2
    
    # uname -a
    Linux hoist 3.2.0-4-amd64 #1 SMP Debian 3.2.51-1 x86_64 GNU/Linux
    
    # cat /etc/fstab
    /dev/sdb1       /home        ext4    defaults,auto,_netdev 0 0
    
    # df -h
    /dev/sdb1               345G  195M  327G   1% /home
    
    <<<<<< Error of concern >>>>>>>>>
    Unmounting iscsi-backed filesystems: Unmounting all devices marked _netdevumount: /home: device is busy.
            (In some cases useful info about processes that use
             the device is found by lsof(8) or fuser(1))
    Could not unmount /home ... (warning).
     failed!
    invoke-rc.d: initscript umountiscsi.sh, action "stop" failed.
    Couldn't unmount all iSCSI devices. Cannot stop iSCSI service ... failed!
    
    
     
  2. unixbytes

    unixbytes New Member

    I found the solution:

    I grabbed the uuid:

    Code:
    # ls -l /dev/disk/by-uuid
    
    I replaced /dev/sdb1 with the uuid in /etc/fstab and rebooted the server, all is well. :)
     

Share This Page