Monday, 18 March 2019

umount2: Device or resource busy in Linux

Error: We got the following error during umount one directory

root@said ~]# umount -f /u05/STPADDAPTER/input
umount2: Device or resource busy
umount: /u05/STPADDAPTER/input: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))
umount2: Device or resource busy

Solution


root@said ~]# umount -f /u05/STPADDAPTER/input
umount2: Device or resource busy
umount: /u05/STPADDAPTER/input: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))
umount2: Device or resource busy
[root@said ~]# umount -l /u05/STPADDAPTER/input 
[root@said ~]# mount //10.11.1.67/STPADDAPTER/input  /u05/STPADDAPTER/input -o username=administrator,password=bach@123,file_mode=0777,dir_mode=0777,sec=ntlm,uid=oracle,gid=oinstall
^C
You have mail in /var/spool/mail/root
[root@said ~]# umount -l /u05/STPADDAPTER/input
umount: /u05/STPADDAPTER/input: not mounted
[root@said ~]# mount -f //10.11.1.67/STPADDAPTER/input  /u05/STPADDAPTER/input -o username=administrator,password=,file_mode=0777,dir_mode=0777,sec=ntlm,uid=oracle,gid=oinstall

[root@said ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda7             481G  1.3G  456G   1% /
tmpfs                 252G   75G  178G  30% /dev/shm
/dev/sda2             197G   60M  187G   1% /tmp
/dev/sda3             197G  7.4G  180G   4% /usr
/dev/sda6              99G  2.1G   92G   3% /var
/dev/mapper/mpathhp1  493G  135G  333G  29% /u01
/dev/mapper/mpathfp1 1008G  886G   72G  93% /u02
/dev/mapper/mpathgp1  493G  329G  139G  71% /u03
/dev/mapper/mpathip1  591G   91G  470G  17% /u04
/dev/mapper/mpathjp1 1008G  386G  572G  41% /u05
/dev/mapper/mpathkp1  493G  252G  216G  54% /u06
/dev/mapper/mpathlp1  493G   15G  453G   4% /u07
/dev/mapper/mpathnp1  493G   48G  420G  11% /u09
/dev/mapper/mpathop1  2.0T  1.5T  450G  77% /BARMAN
/dev/sda1             477M  184M  265M  41% /boot
/dev/mapper/mpathpp1 1008G  187G  771G  20% /archivelog
//10.11.1.65/MICR/DATA
                      1.8T  306G  1.4T  19% /u05/MICR/DATA
//10.11.1.65/MICR/IMAGE
                      1.8T  306G  1.4T  19% /u05/MICR/IMAGE
//10.11.1.65/XML/ICE  1.8T  306G  1.4T  19% /u05/XML/ICE
//10.11.1.65/XML/IRE  1.8T  306G  1.4T  19% /u05/XML/IRE
//10.11.1.65/EFT_XML/ICE
                      1.8T  306G  1.4T  19% /u05/EFT_XML/ICE
//10.11.1.65/EFT_XML/IRE
                      1.8T  306G  1.4T  19% /u05/EFT_XML/IRE
//10.11.1.67/STPADDAPTER/input
                     1008G  386G  572G  41% /u05/STPADDAPTER/input
//10.11.1.67/STPADDAPTER/output
                     1008G  386G  572G  41% /u05/STPADDAPTER/output
[root@said ~]#

mount //10.11.1.67/STPADDAPTER/output  /u05/STPADDAPTER/output -o username=administrator,password=,file_mode=0777,dir_mode=0777,sec=ntlmssp,uid=oracle,gid=oinstall

No comments:

Post a Comment