- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- umount /home
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
05-18-2004 03:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 03:07 AM
05-18-2004 03:07 AM
SolutionBasially, you need to stop all processes that might be using /home before you can unmount it. If you can get all the users off that use it and stop all the applications that might use it too then there is no need ot go to single user. "fuser -cu /home" will list all the PID's that are using /home.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 03:08 AM
05-18-2004 03:08 AM
Re: umount /home
also, if there is any ill prepared application which sets its home directory to something like /homm/appl and launches at the startup, may have the same effect.
other than that it is not mandatory to be in single user mode to unmount it.
HTH
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 03:09 AM
05-18-2004 03:09 AM
Re: umount /home
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 03:10 AM
05-18-2004 03:10 AM
Re: umount /home
Chances are that at least some users are cd'ed to their home directories; if you can safely kill these processes then you can umount.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 03:12 AM
05-18-2004 03:12 AM
Re: umount /home
you can check with 'bdf' if /home is a separate filesystem 'Mounted on: /home'
Then you could umount it as mentioned above, if not you have to go to single user mode.
Regards
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 03:15 AM
05-18-2004 03:15 AM
Re: umount /home
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 03:16 AM
05-18-2004 03:16 AM
Re: umount /home
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 03:20 AM
05-18-2004 03:20 AM
Re: umount /home
That depends on what type of filesystem it is. If it is vxfs, you would also need to have the seperate product called "online jfs" in order to extend the filesystem without unmounting it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 03:35 AM
05-18-2004 03:35 AM
Re: umount /home
Actually, it doesn't matter what the filesystem type is to do the "lvextend". "lvextend" doesn't know anything about filesystems at all and will happily extend the logical volume, online, even if you don't have OnlineJFS. This is great if you use raw devices or like having useless space at the end of your filesystem :)
However, you are correct in saying that if you want to extend the filesystem on top of the logical volume then you would indeed need to have OnlineJFS to do it online.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 05:37 AM
05-18-2004 05:37 AM
Re: umount /home
fuser /home
However, fuser does not check several other possibilities such as a user that cd'ed into /home/whatever so fuser will not report any process IDs for this situation. lsof is the only toll that can do this. Note that you can always tell all the users to log off and stop all database processes or other applications at which point /home should be free. umount will tell you if it is ready. Once un-mounted, use lvextend followed by extendfs and then re-mount /home.
Given that all the users and most of the applications may need to be shutoff, it may be easier to do this in single user mode.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 06:01 AM
05-18-2004 06:01 AM
Re: umount /home
To answer your question, as you have probably gathered already: No, you don't have to be in single user mode to umount /home.
To perform something like lvextend and extendfs, you are performing more than just general maintenance on the system and you can get hosed pretty easily or your users can be left in a state of confusion if the mountpoint becomes unavailable. Safest suggestion is to drop to single-user mode, sending message to the user that maintenace is being done and system will be back on-line shortly, perform your lvextend and extendfs, then boot back up. This should provide you a better sense of success, rather than just crossing your fingers. Also, should anything happen during the extension of the filesystem(s) you can run a manual fsck or other additional maintenance immediately rather than trying to determine who/what is affecting your filesystem.
Good luck! I'd prefer a few minutes of planned down time for safety precautions for something like this rather than a few hours of unplanned work stoppage while praying my backups are good.