- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Forcing an unmount of a 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
Discussions
Discussions
Discussions
Forums
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
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
тАО12-21-2009 12:12 PM
тАО12-21-2009 12:12 PM
Forcing an unmount of a filesystem
One of our servers, running HP-UX 11, needs to have one of its filesystems unmounted and subsequently remounted to read-only status. The filesystem in question is on a non-vg00 volume grouop. The standard umount command does not work due to the filesystem, running VxFS, being busy.
Is there a way, other than temporarily stopping the NFS daemon, to force the unmounting of the filesystem?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-21-2009 12:17 PM
тАО12-21-2009 12:17 PM
Re: Forcing an unmount of a filesystem
fuser -cu
example
fuser -cu /backup
Saludos
JEA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-21-2009 12:21 PM
тАО12-21-2009 12:21 PM
Re: Forcing an unmount of a filesystem
To do what you want, I don't think that you have any choice but to quiesce the filesystem; unmount it; and mount it read-only.
To unmount it, of course, you could use 'fuser' to kill any processes using the filesystem.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-21-2009 12:23 PM
тАО12-21-2009 12:23 PM
Re: Forcing an unmount of a filesystem
1st check who is using this file system.
with the below command
#fuser -cu /FSname
for forcefully kill you need to give the command
#fuser -ku
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-21-2009 12:50 PM
тАО12-21-2009 12:50 PM
Re: Forcing an unmount of a filesystem
Stopping the NFS daemon would be overkill. It would prevent access to all NFS exported directory trees, rather than just this one.
NFS service works in kernel, so it does not show in the "fuser" listing. Nevertheless, it can keep a filesystem busy.
If you're unsure about which directories of this filesystem have been exported, use "showmount -e" to identify the exported directories.
If the change is permanent, edit /etc/exports to reflect the new state. If the filesystem is mounted read-only, the export should be read-only to all NFS clients too. Trying to export a read-only filesystem in read-write mode is a recipe for unnecessary error messages, either at next system reboot, or when someone actually attempts to write to the exported directory.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-21-2009 05:35 PM
тАО12-21-2009 05:35 PM
Re: Forcing an unmount of a filesystem
You need to be more specific which 11.XX OS version. (From previous threads you mention 11.00.)
I'm not sure if the unsupported 11.00 has the -o remount option that allows you to change the mount options. But as MK says, you should fix the exports/exportfs first.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-22-2009 05:18 AM
тАО12-22-2009 05:18 AM
Re: Forcing an unmount of a filesystem
> Dennis: I'm not sure if the unsupported 11.00 has the -o remount option that allows you to change the mount options.
I thought about the remount option too, but the manpages (for 11.23) note, "It also changes a files system from read-only to read/write. remount cannot change a file system from read/write to read-only...".
The manpges for 11.0 simply say that the option, "Changes the mount options for a mounted file system, such as logging and caching policies or whether the file system can be written to."
Hence, this isn't going to help anyway.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-22-2009 05:23 AM
тАО12-22-2009 05:23 AM
Re: Forcing an unmount of a filesystem
# mount -o remount,
And be sure to supply all the mount options per command line, the mount command won't look into the fstab for mount options when remounting. And after all, remount cannot change a file system from read/write to read-only. So you must by all means umount the filesystem first. (And if I recall it correctly, the remount option is available only from 11i v2.)
As Matti mentioned, fuser might won't give you the correct list of processes, instead of it you can use the lsof command which looks also into kernelspace. (but much slower.)
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.82/
Unix operates with beer.