- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: mounting a file system
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
01-17-2006 06:19 AM
01-17-2006 06:19 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2006 06:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2006 06:28 AM
01-17-2006 06:28 AM
Re: mounting a file system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2006 06:29 AM
01-17-2006 06:29 AM
Re: mounting a file system
Yes. Make sure that you have not 'cd'-ed into the directory (mountpoint) that you are trying to unmount. If you have, you will be denied the action for "device busy".
You can use 'fuser' to see and optionally kill processes with open files in the directory hosting the mount.
Of course, you should *gracefully* stop all processes whenever possible! Running normal shutdown scripts is appropriate. For instanace:
# fuser -ku /dev/dsk/cXtYdZ
# fuser -ku /mountpoint
...sends a 'kill -9' to every process running with inuse files in the directory. This is *not* a nice thing to do. A 'kill -9' doesn't allow any cleanup of temporary files and/or shared memory segments to be made by the killed process.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2006 06:30 AM
01-17-2006 06:30 AM
Re: mounting a file system
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2006 06:41 AM
01-17-2006 06:41 AM
Re: mounting a file system
to see what processes are using it.
Then you can decide what they are before you attempt to kill them.
Example - you won't be able to unmount / and /tmp and /var and /usr
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2006 10:03 AM
01-17-2006 10:03 AM
Re: mounting a file system
1. Check if any file open for that FS.
# fuser -cu /FS_NAME
2. If nothing is there you can simply unmount it with umount command.
Else use # fuser -ku /FS_NAME to kill the processes if required.
And then use umount.
You cannot unmount /(root) , /stand , /usr , /opt , /var , as this are using system files/libraries, on multiuser mode.
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2006 11:55 AM
01-17-2006 11:55 AM
Re: mounting a file system
Yes u can do it until and unless it is not a root file system
Do the following steps
#bdf |grep -i
#fuser -cu
for example.. (fuser -cu /export/home)
if any body has logged in, cann't unmount the filesystem.. so
#fuser -ku
(i.e fuser -ku /export/home)
#umount /export/home
Hope it will help u to resolve ur issue..
cheers
indrajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2006 01:06 PM
01-17-2006 01:06 PM
Re: mounting a file system
To check for this, use "fuser -cu /filesystem" and you can see all of processes.
To kill them, use "fuser -kcu /filesystem"
Then you can umount it!
Remember: some filesystems call "sensitive" that if you try to unmout it, your system or application may get trouble because there are some system's process are runing on like /var, /opt, /usr....
Goodluck
Hoang Chi Cong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2006 02:26 PM
01-17-2006 02:26 PM
Re: mounting a file system
Yes you can unmount a filesystem, if it i snot being used by any application.
You should not be within the filesystem, otherwise it will give device busy error.
You can check for any open file through fuser command
You can't unmount system filesystem like /, opt, /usr.
Regards,
Shameer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2006 02:37 PM
01-17-2006 02:37 PM
Re: mounting a file system
Two things to ensure before unmounting any FS.
1) Don't be in that FS any more. "cd" to any other directories.
2) Shutdown or kill all the processes using that particular FS.
Useful commands,
# fuser -u
# fuser -ku
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2006 03:25 PM
01-17-2006 03:25 PM
Re: mounting a file system
also if you are unmounting it for good, don't forget to update your fstab file.
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2006 04:23 PM
01-17-2006 04:23 PM
Re: mounting a file system
It is quite OK to unmount a filesystem as long as it is not in USE. NO NEED to enter in to single user mode.
If you want to kill all the process which uses the particular filesystem,
#fuser -ku
With REgards,
Siva.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2006 04:31 PM
01-17-2006 04:31 PM
Re: mounting a file system
Was not it about a OS filesystem like /var , /usr etc?
If yes, then ofcourse you will have to boot to single user mode where by default these file systems will notbe mounted and you can perform some offline activities like extending etc.
For a normal file system like some non OS file system in vg00 or any file system in some other vg, unless the file systems is inuse by any process, you can very well unmount it.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2006 04:39 PM
01-17-2006 04:39 PM
Re: mounting a file system
Ofcourse, you can unmount /var, /usr, /opt when you logged in multi user mode.
http://docs.hp.com/en/B2355-90672/ch04s07.html
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 05:13 AM
01-18-2006 05:13 AM
Re: mounting a file system
Just wondering if anyone has unmounted /usr filesytem in a running system.
If yes , what is the procedure , however there no much details in the document.
hth,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 05:23 AM
01-18-2006 05:23 AM
Re: mounting a file system
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 05:31 AM
01-18-2006 05:31 AM
Re: mounting a file system
if you have done this:
mount /cdrom
cd /cdrom
# launched a process like the Oracle installer.
There is NO way to umount the cdrom until that process has been killed.
fuser -cuk /cdrom
That will kill the processes, perhaps the system(though the later is very unlikely) and then you should be able to umount the cdrom
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 06:31 AM
01-18-2006 06:31 AM
Re: mounting a file system
hth,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 05:50 PM
01-18-2006 05:50 PM
Re: mounting a file system
One can not unmount /opt, /tmp, /var etc. file systems in multiuser mode inspite of closing all the applications. Reason being that the various processes started during bootup are still running and have files open in these file systems.
The link mentioned above nowhere states that you can unmount these file systems.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 05:57 PM
01-18-2006 05:57 PM
Re: mounting a file system
My bad, It should be "can't". Just a bad typo there.
With apologies,
Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 08:33 PM
01-18-2006 08:33 PM
Re: mounting a file system
As you seen it depends on "which filesystem"!!!
/opt /tmp /usr /var can not umounted in multiusermode
if you try the probably you can see such a kind of message on youy system;
baan02:/#umount /tmp
umount: cannot unmount /tmp : Device busy
umount: return error 1.
good Luck,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 08:37 PM
01-18-2006 08:37 PM
Re: mounting a file system
As you seen it depends on "which filesystem"!!!
/opt /tmp /usr /var can not umounted in multiusermode
if you try then probably you can see such a kind of message on your system;
baan02:/#umount /tmp
umount: cannot unmount /tmp : Device busy
umount: return error 1.
good Luck,