- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Unmounting filesystem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2005 08:27 AM
03-29-2005 08:27 AM
Unmounting filesystem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2005 08:30 AM
03-29-2005 08:30 AM
Re: Unmounting filesystem
to unmount it?
- Biswajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2005 08:33 AM
03-29-2005 08:33 AM
Re: Unmounting filesystem
Using "lsof" (http://hpux.ee.ualberta.ca/hppd/hpux/Sysadmin/lsof-4.74/) find out who has a file open,
OR
who is "cd'd" into the mount path!!!
lsof /mountpath
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2005 08:35 AM
03-29-2005 08:35 AM
Re: Unmounting filesystem
fuser -c /
If there are processes using the filesystem it is busy and will not umount
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2005 08:40 AM
03-29-2005 08:40 AM
Re: Unmounting filesystem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2005 08:47 AM
03-29-2005 08:47 AM
Re: Unmounting filesystem
a filesystem, "umount" would still report "device busy"
if there is atleast one open shell whose current working
directory is a directory in the mounted filesystem.
- Biswajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2005 07:38 PM
03-29-2005 07:38 PM
Re: Unmounting filesystem
fuser /mount/point
And you need to use:
fuser /dev/vg_name/volume_name
And for Oracle raw volumes:
fuser /dev/vg_name/rvolume_name
Regards,
David de Beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2005 08:56 PM
03-29-2005 08:56 PM
Re: Unmounting filesystem
ls -aFR $1 | grep \/ | grep : | cut -d : -f 1 > /tmp/dir
Whith this little script you can kill all the processes which are accesing to a path or to any file below this path . It takes some time but it works.
more /tmp/dir | while read linea
do
fuser -ku $linea
ls -aF $linea | grep -v / > /tmp/file
more /tmp/file | while read archivo
do
fuser -ku ${linea}/${archivo}
if (( $?== 0 ))
then echo ${linea}/${archivo} "was busy" > /tmp/kk
fi
done
rm /tmp/file
done
rm /tmp/dir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2005 10:47 PM
03-29-2005 10:47 PM
Re: Unmounting filesystem
if ur in the same dir it will show u device is busy n cannt unmount
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2005 01:29 AM
03-30-2005 01:29 AM
Re: Unmounting filesystem
fuser -cu /mountpoint
That will show you if any pids are tied to it...
Another thing to check - is it nfs exported? or an automount?
Rgds...Geoff