- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Cleaning up the /etc/rmtab on the fly
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
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
тАО07-01-2005 05:29 AM
тАО07-01-2005 05:29 AM
Cleaning up the /etc/rmtab on the fly
Does anyone know how to cleanup the /etc/rmtab without bringing the mountd down?
I am running 11.11 but i noticed that it mentioned cleanup on this patch, so that rmtab doesnt fill up root on 10.20 This is the link that describes it. How is this cleanup triggered?
Here is the link
http://www.google.com/search?hl=en&lr=&biw=1022&q=clean+rmtab+online&btnG=Search
Next is there a way to actually edit the rmtab and force it to be read as the live copy without trashing the existing mounts on a server?
Hopefully someone here knows the internels of this code well :).
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2005 06:00 AM
тАО07-01-2005 06:00 AM
Re: Cleaning up the /etc/rmtab on the fly
If you read the man page of rmtab, you will see this text:
This table only preserves information between crashes, and is read
only by mountd when it starts (see mountd(1M)). mountd keeps an in-
core table to handle requests from commands such as showmount and
shutdown
so, according to this text, mountd does not actively use the file. It just reads it at the startup time. Also, the very same man page says:
WARNINGS
Although the rmtab table is close to the truth, it is not always
totally accurate.
which reinforces my belief.
Having said that, just in the case it was kept open by some process that I do not know, it might not be cool to just plain 'rm' the file but I do not see anything wrong with something like :
grep -v ^# /etc/rmtab > /tmp/111; cat /tmp/111 > /etc/rmtab
or
> /etc/rmtab # to wipe it out totally
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2005 06:17 AM
тАО07-01-2005 06:17 AM
Re: Cleaning up the /etc/rmtab on the fly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2005 06:21 AM
тАО07-01-2005 06:21 AM
Re: Cleaning up the /etc/rmtab on the fly
1) Make sure that no NFS clients are mounting any exported filesystems
2) Kill the rpc.mountd daemon
3) Remove the /etc/rmtab file
4) Restart the rpc.mountd daemon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2005 06:34 AM
тАО07-01-2005 06:34 AM