The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
remove empty directory sirrtuan Shell Programming and Scripting 6 03-04-2008 06:50 AM
remove old files from a directory 2davidc8 UNIX for Dummies Questions & Answers 2 07-03-2007 11:06 AM
Remove contents of directory, but not directory pdc Shell Programming and Scripting 8 12-04-2005 10:57 AM
smitty, remove user, remove directory as well.. yls177 UNIX for Dummies Questions & Answers 2 11-10-2002 11:43 PM
remove a nonempty directory babayeve UNIX for Dummies Questions & Answers 2 08-26-2002 08:34 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-23-2006
Registered User
 

Join Date: Nov 2006
Location: Austria/Vienna
Posts: 235
remove hardlink directory

I have to move a lpar from one 671 to another (aix 5.2 ML 07)

when I run mksysb, It alway hangs with "archieving file list"


I've tried to exlude every directory, but still not working

the only thing that can be a problem, is a hardlink directory

normally it should not be possible to hardlink a directory, but its there and I have no idea how to remove it

it's in the /tmp filesystem

drwxrwxrwt 29 bin bin 6656 Nov 23 10:30 /tmp
drwxrwxrwt 29 bin bin 6656 Nov 23 10:30 /tmp/tmptest

edit: and they have the same inode-number

tmptest points to tmp

when I remove tmptest with rm -r, then all files in /tmp will be deleted too


there is no way of shutting the machine down or stop the application, expect for the time I need to shutdown the old lpar an boot the new one

any ideas?


thanks for your help,

funksen

Last edited by funksen; 11-23-2006 at 02:59 AM.
Reply With Quote
Forum Sponsor
  #2  
Old 11-23-2006
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
Looking at a manual for 5.3, I see that AIX has unlink in /usr/sbin. So I would try:
unlink /tmp/tmptest

NB unlink is very dangerous command and should be used with considerable restraint. But I think that, in this very unusual situation, it is the only way out short of rebuilding the filesystem containing /tmp.
Reply With Quote
  #3  
Old 11-23-2006
Registered User
 

Join Date: Nov 2006
Location: Austria/Vienna
Posts: 235
thanks for the answer, I've tried that before

>> unlink: The requested resource is busy.

but I think you are right, I have rebuild the file system

whats strange to me is the fact that it's called "tmptest", I think a funny guy tried something what he has lerned in AIX course, attached with "don't try this at home"

grml..
Reply With Quote
  #4  
Old 11-27-2006
Registered User
 

Join Date: May 2006
Location: England
Posts: 265
Try fuser /tmp/tmptest
Reply With Quote
  #5  
Old 11-27-2006
Registered User
 

Join Date: Nov 2006
Location: Austria/Vienna
Posts: 235
I know why it's busy, thats not the problem

but I can't shut the application down
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 06:29 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0