- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Problem removing dir, device busy...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2008 04:55 AM
12-04-2008 04:55 AM
I need help to remove a dir. I suspect this dit was mounted by NFS or maybe a link. Any way, when i try to do umount:
umount: cannot find DVEBMGS70 in /etc/mnttab
cannot unmount DVEBMGS70
When i try rm -rf /DVEBMGS70:
rm: directory DVEBMGS70 not removed. Cannot remove mountable directory
And i try to mount anything on this dir, it says: Device busy.
Now, i have downloaded lsof, and this is the output:
lsof DVEBMGS70/
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
sh 7826 root cwd DIR 64,0x2e000e 1024 2 DVEBMGS70
glance 21868 root cwd DIR 64,0x2e000e 1024 2 DVEBMGS70
Can i kill the sh process? This is a production server and can not be rebooted.
Please help...
Br
Patrik
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2008 05:01 AM
12-04-2008 05:01 AM
Re: Problem removing dir, device busy...
Hi Boje,
check is it mounted permently,and checked the fstab file.
if it's mounted permently thattime it's showing like that or sometime some users using that mount point ,that time you are not able to remove directory,it will show like that error message.
so check and revert back.
Regards,
Unixguy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2008 05:10 AM
12-04-2008 05:10 AM
Re: Problem removing dir, device busy...
I was nod able to get rid of the glance and sh process that accessed the dir. But it´s still the same problem. I have checked the mnttab and fstab. The dir does not exists neither of them. I have searched the forum and trie the automounter thingy. But i do not have the /etc/auto_mount config file.
Br
Patrik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2008 05:40 AM
12-04-2008 05:40 AM
SolutionTry this,
Goto that directory and give "bdf ." it will give which lv that directory belongs. so you should know, it is a just directory or mount point.
#cd /DVEBMGS70
#bdf .
If it is a directory created on some filesystem use fuser to kill the processes using this directory.
#fuser -ku -c /DVEBMGS70
#fuser -cu /DVEBMGS70 -->to confirm still any process is using
Now remove the directory.
#rm -rf /DVEBMGS70
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2008 05:48 AM
12-04-2008 05:48 AM
Re: Problem removing dir, device busy...
It´s a nice try. But i get this message:
bdf .
bdf: could not find the mount point for .
I think i found the filesystem my machine think is mounted on my dir i can not remove. I have /dev/v01_vg10/DVEBMGS mounted on /usr/sap/V01/DVEBMGS70. And if if i try to mount that to /oracle/V01/V01/DVEBMGS70 is says:
mount /dev/v01_vg10/DVEBMGS /oracle/V01/V01/DVEBMGS70/
mount: /dev/v01_vg10/DVEBMGS is already mounted on /oracle/V01/V01/DVEBMGS70/
Any suggestions?
Br
Patrik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2008 06:21 AM
12-04-2008 06:21 AM
Re: Problem removing dir, device busy...
Now I got little confused.
Which directory you are trying to remove? /DVEBMGS70 ? or /usr/sap/V01/DVEBMGS70 ?
>>>mount /dev/v01_vg10/DVEBMGS /oracle/V01/V01/DVEBMGS70/
mount: /dev/v01_vg10/DVEBMGS is already mounted on /oracle/V01/V01/DVEBMGS70/ <<<<
Nothing wrong in the above message. It says you are trying to mount a lv which is already mounted.
Could you provide the current issue which you are facing ?
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2008 06:24 AM
12-04-2008 06:24 AM
Re: Problem removing dir, device busy...
Sorry for confusion. The dir /oracle/V01/V01/DVEBMGS70 is the one that i is trying to remove. But it is not mounted. The lv is mounted to /usr/sap/V01/DVEBMGS70.
The /oracle/V01/V01/DVEBMGS70 is empty.
Br
Patrik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2008 06:39 AM
12-04-2008 06:39 AM
Re: Problem removing dir, device busy...
Could you provide the following outputs?
#bdf |grep -i DVEBMGS70
#bdf |grep -i /dev/v01_vg10/DVEBMGS
#grep -i /dev/v01_vg10/DVEBMGS /etc/fstab
#cd /oracle/V01/V01/DVEBMGS70
#bdf .
#bdf
#cat /etc/mnttab
#mount -v
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2008 07:07 AM
12-04-2008 07:07 AM
Re: Problem removing dir, device busy...
7176192 288288 6484628 4% /usr/sap/V01/DVEBMGS70
#bdf |grep -i /dev/v01_vg10/DVEBMGS
/dev/v01_vg10/DVEBMGS
#grep -i /dev/v01_vg10/DVEBMGS /etc/fstab
:
#cd /oracle/V01/V01/DVEBMGS70
#bdf .
bdf: could not find the mount point for .
#bdf
/dev/v01_vg10/DVEBMGS
7176192 288288 6484628 4% /usr/sap/V01/DVEBMGS70
#cat /etc/mnttab
/dev/v01_vg10/DVEBMGS /usr/sap/V01/DVEBMGS70 vxfs ioerror=mwdisable,delaylog,nodatainlog,dev=402e000e 0 0 1204526533
#mount -v
what does it do?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2008 08:05 AM
12-04-2008 08:05 AM
Re: Problem removing dir, device busy...
It looks you have temperoryly mounted /dev/v01_vg10/DVEBMGS on /usr/sap/V01/DVEBMGS70 since /etc/fstab does not have the entry.
So where this /oracle/V01/V01/DVEBMGS70 comes? I suspect some mismatch in /etc/mnttab.
Try this.
# mv /etc/mnttab /etc/mnttab.old
# mount -a
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2008 08:07 AM
12-04-2008 08:07 AM
Re: Problem removing dir, device busy...
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2008 01:21 PM
12-04-2008 01:21 PM
Re: Problem removing dir, device busy...
If its a NFS ..then do following things ...
fuser -ku mountpoint
check if some process are still using the mount point by
fuser -cu moount point ...if still process are there then try to kill them manually.
if its not work then ...
restart the nfs client
/sbin/init.d/nfs.client stop
/sbin/init.d/nfs.client start
now check continue with removing....
cheers
Ashish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2008 11:42 PM
12-04-2008 11:42 PM
Re: Problem removing dir, device busy...
Thx for your replies.
But i do not think i can solve the problem with removing the mnttab and then mount -a. Because this is a cluster machine. There is nothing in fstab, only system disks.
fuser does not show anything, it only says: fuser: could not find file system mounted at /oracle/V01/V01/DVEBMGS70
And i can not restart the nfs client. Then i will loose all other nfs mounts?
It is hopeless when something happens whit nfs mounts.
Br
Patrik