The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
deleting directories from a list amacgeek Filesystems, Disks and Memory 1 04-09-2006 10:07 PM
deleting all the sub directories pavan_test UNIX for Dummies Questions & Answers 2 01-26-2006 06:52 PM
Recursively deleting directories mikeshank UNIX for Dummies Questions & Answers 4 11-26-2004 07:58 AM
Deleting unamed directories gseyforth UNIX for Dummies Questions & Answers 4 10-20-2003 11:05 AM
deleting log files only in particular directories sameervs UNIX for Dummies Questions & Answers 2 05-31-2002 10:49 PM

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-30-2003
piltrafa's Avatar
Registered User
 

Join Date: Oct 2001
Location: Buenos Aires, Argentina
Posts: 76
deleting nfs directories...

Hi

I have Solaris 8 in several Ultras and they share some directories between each others using nfs.
(you know, one shares the other mounts the remote directory into a local...).
The problem is that one guy (me) deleted a shared directory and now the computer that was mounting it remotely is complaining about the missing remote directory.
I really dont need that dir but when I want to remove the mount point it says"Directory is a mount point or in use" and stuff like that.

My question: "is there a way to FORCE a dir delete without taking care if it was a mount point for a nfs shared directory?" if yes--- how?

Thanks in advance to all the unix community.

piltrafa
Forum Sponsor
  #2 (permalink)  
Old 01-30-2003
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
If the directory (let's call it /home/mountthis) on system A is mounted remotely to system B on /Amount, then you only need to do a umount /Amount on system B (and remove the /etc/vfstab entry which mounts it on boot).

If it's mounted by automountd, then look to /etc/auto_* files to find the mount.

Post back if you have problems.
  #3 (permalink)  
Old 01-30-2003
piltrafa's Avatar
Registered User
 

Join Date: Oct 2001
Location: Buenos Aires, Argentina
Posts: 76
can umount cannot delete dir...

RMT:
thanks for your reply. As you wrote that is the normal procedure to unmount a remote resource and, in fact, Im able to do that.
The problem is that, after unmounted, I cannot delete the mountpoint, it says "Unable to remove directory /example/: Device busy".

I look the mnttab file and the line is not there (cause I unmounted it!!), the dir is empty ... and so on..


Thanks

Piltrafa
  #4 (permalink)  
Old 01-30-2003
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Have you run fuser /example and found what process is still considered 'using' it? Normally it's your own process (Duh! I always do that!) that is cd'ed into the directory.

If fuser does show any processes using /example, then you would need to kill off those processes (users) - if it's a system process, you might try a kill -HUP to get it to reread configuration files (ie automountd)
Google UNIX.COM
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:53 PM.


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

Content Relevant URLs by vBSEO 3.2.0