![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
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. |
|
#3
|
|||
|
|||
|
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.. |
|
#4
|
|||
|
|||
|
Try fuser /tmp/tmptest
|
|
#5
|
|||
|
|||
|
I know why it's busy, thats not the problem
but I can't shut the application down |
|||
| Google The UNIX and Linux Forums |