The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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-10-2006 01:07 AM
deleting all the sub directories pavan_test UNIX for Dummies Questions & Answers 2 01-26-2006 10:52 PM
Recursively deleting directories mikeshank UNIX for Dummies Questions & Answers 4 11-26-2004 11:58 AM
Deleting unamed directories gseyforth UNIX for Dummies Questions & Answers 4 10-20-2003 02:05 PM
deleting log files only in particular directories sameervs UNIX for Dummies Questions & Answers 2 06-01-2002 01:49 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-30-2003
piltrafa's Avatar
piltrafa piltrafa is offline
Registered User
  
 

Join Date: Oct 2001
Location: Buenos Aires, Argentina
Posts: 77
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
  #2 (permalink)  
Old 01-30-2003
RTM's Avatar
RTM RTM is offline Forum Advisor  
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
piltrafa piltrafa is offline
Registered User
  
 

Join Date: Oct 2001
Location: Buenos Aires, Argentina
Posts: 77
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 Forum Advisor  
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)
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:56 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0