LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices

Reply
 
LinkBack Search this Thread
Old 08-08-2006, 01:12 PM   #1
poeta_boy
Member
 
Registered: Oct 2003
Location: Mexico
Distribution: Ubuntu
Posts: 223

Rep: Reputation: 31
can't delete, rename, unmount: Busy resource. AIX 5.3


Hello guys:

I am trying to erase a folder but I can't, keeps saying it's busy. I'm root and using AIX 5.3. I do a ls and I get:

Code:
 ls -laq
total 24
drwxrwxr-x   5 oraepp   dba            4096 Aug 08 10:17 .
drwxr-xr-x  33 root     system         4096 Aug 08 10:23 ..
drwxr-xr-x  13 root     dba            4096 Aug 08 09:59 EPP
drwxrwxr-x   2 oraepp   dba             256 Aug 08 10:17 client
drwxrwxr-x   3 oraepp   dba             256 Feb 21 17:24 stage
and I try to erase the folder containing all those folders:

Code:
rm -r oracle
rm: 0653-611 Directory oracle/client is not empty.
rm: 0653-611 Directory oracle/stage/920_64 is not empty.
rm: 0653-611 Directory oracle/stage is not empty.
rm: 0653-611 Directory oracle/EPP/sapdata1 is not empty.
rm: 0653-611 Directory oracle/EPP/sapdata2 is not empty.
rm: 0653-611 Directory oracle/EPP/sapdata3 is not empty.
rm: 0653-611 Directory oracle/EPP/origlogA is not empty.
rm: 0653-611 Directory oracle/EPP/origlogB is not empty.
rm: 0653-611 Directory oracle/EPP/mirrlogA is not empty.
rm: 0653-611 Directory oracle/EPP/mirrlogB is not empty.
rm: 0653-611 Directory oracle/EPP/oraarch is not empty.
rm: 0653-611 Directory oracle/EPP/sapreorg is not empty.
rm: 0653-611 Directory oracle/EPP/920_64 is not empty.
rm: 0653-611 Directory oracle/EPP/sapdata4 is not empty.
rm: 0653-611 Directory oracle/EPP is not empty.
rm: 0653-611 Directory oracle is not empty.
try to rename

Code:
 mv oracle oracle_old
mv: 0653-401 Cannot rename oracle to oracle_old:
             The requested resource is busy.
And finally, try to unmount:

Code:
 unmount oracle
umount: 0506-349 Cannot unmount /dev/oraclelv: The requested resource is busy.
How can I get to delete that folder? any ideas?

Greetings!
 
Old 08-09-2006, 12:31 PM   #2
Doomhammer
Member
 
Registered: Oct 2003
Location: Montreal Qc, Canada
Posts: 102

Rep: Reputation: 15
rm -rf will erase everything.

you cant erase folders using rm -r only. you need to force it using -f
 
Old 08-09-2006, 12:35 PM   #3
poeta_boy
Member
 
Registered: Oct 2003
Location: Mexico
Distribution: Ubuntu
Posts: 223

Original Poster
Rep: Reputation: 31
Hello:

Actually what I had todo is to kill -9 all processes related to reading that directory........ after that I finally could erase it all.

Thanks Doomhammer for your help!

KingCrimson
 
Old 08-14-2006, 04:55 AM   #4
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 511

Rep: Reputation: 30
use the fuser command on the filesystem belonging to that lv. it will tell you all the processes still using that fs.
 
Old 08-16-2006, 09:11 AM   #5
Harry Seldon
Member
 
Registered: Feb 2004
Distribution: SLES 9
Posts: 112

Rep: Reputation: 15
fuser -c will give you the specific process ID to kill. rm -r will remove directories, too, but it won't remove files that are in use which will keep you from being able to remove the directories in question.
 
  


Reply

Tags
aix, busy, cant, delete, rename, resource, unmount


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Device busy, cannot unmount trebek Linux - Hardware 19 10-17-2008 04:58 AM
Unmount cd: device is busy jhimes Linux - Hardware 18 04-08-2008 01:51 AM
resource busy mehro Linux - Software 2 02-02-2006 01:11 AM
how can i force unmount a busy CD drive mailavj Linux - Software 1 04-04-2005 06:21 PM
can't unmount my cdrom drive (says it's busy) fabs Linux - Hardware 2 02-23-2004 12:12 AM


All times are GMT -5. The time now is 11:13 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration