- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Cant umount a lvol
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
08-23-2007 05:21 AM
08-23-2007 05:21 AM
I made a lvol /home/preprod. this is under the lvol /home. i now want to remove /home/preprod, but it keeps telling me device is busy. i do not see any processes that are accessing /home/preprod when I do ps -ef | grep preprod. I also made preprod a user with /home/preprod as its home. Any suggestions as to why it keeps telling me it is busy? Do I need to get rid of the user preprod first, before I try to unmount the directory, or did I screw it up by putting a lvol under another lvol?
Please help.
Thanks,
Phil
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2007 05:28 AM
08-23-2007 05:28 AM
Re: Cant umount a lvol
Most likely someone is cd'ed into the /home/preprod directory. You can run fuser to check. A better tool is lsof, which is available from the porting and archive center if you don't have it (though not for 10.20 anymore!).
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2007 05:32 AM
08-23-2007 05:32 AM
Re: Cant umount a lvol
Make sure that you have not 'cd'ed into the directory '/home/preprod'. You need to unmount it and 'lvremove' the logical volume.
If the user 'prepord' is logged-in, have it log-out first.
You can also do:
# fuser -kc /dev/vgXX/lvolN
...to kill any processes using the mountpoint
Using 'lsof' is another way to find "who" and "what" might be using the filesystem in question.
There is nothing wrong with having '/home' as a mountpoint and '/home/preprod' as a separate mountpoint.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2007 05:34 AM
08-23-2007 05:34 AM
Solution# fuser /
12345c
. Output similar to 12345c indicates that a user is logged in
and has his current working directory (CWD) set to the mounted
directory or to a sub-directory under the mounted directory OR
that the mounted directory is being queried.
2. One "c" indicates that one user is logged under that directory;
multiple "c"s indicate multiple users under that directory.
3. Run the following command to check for users who are logged in:
# ps -ef | grep 12345
4. To verify shell logins/sessions, run:
# ps -ef | grep sh
5. Ask users to logout. Also remember change YOUR current working
directory to somewhere NOT under the file system in question
When no one is accessing the file system, attempt to unmount it.
WK
please assign points
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2007 05:34 AM
08-23-2007 05:34 AM
Re: Cant umount a lvol
Your question is a bit of a mess. This is because I'm pretty sure that /home/prepod is a mount point in the case that your speaking of, and not an lvol.
Your lvols should be in a volume group, and hence, would have a name like /dev/vg01/lvol1
or if you named everything something like
/dev/vgmyvgname/mylvol.
Then you would have mounted it possibly at /home/prepod, or from your posting, at /home/prepod /prepod.
You wouldn't "remove it" , you'd just unmount it:
umount /home/prepod/
or
umount /home/prepod/somenameyougave it
Check your mounts by looking at the output
of the "bdf" command. You'll see your mount somewhere at or near /home/preprod and the associated lvol, listed as /dev/vgxxx/xxxxx.
After you've unmounted it, you could remove the directory of the mount point.
But, you seem a bit lost ( I don't mean to insult here, so please don't take it that way ) , and I think you should review some manuals or documentation on how to manage lvm file systems before continuuing on.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2007 07:49 AM
08-23-2007 07:49 AM
Re: Cant umount a lvol
I did not know of the fuser command. I used it and it cleared the instance that keept me from unmounting the lvol
Thanks all
Phil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2007 03:14 PM
08-23-2007 03:14 PM
Re: Cant umount a lvol
My HISTFILE is there, no matter what CWD I have, I'd be hosed.
>3. Run the following command to check for users who are logged in:
# ps -ef | grep 12345
You might want to use "ps -fp 12345" instead.
But it won't give the children like the grep.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2007 03:24 PM
08-23-2007 03:24 PM
Re: Cant umount a lvol
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2007 04:16 PM
08-23-2007 04:16 PM
Re: Cant umount a lvol
you must run a single user before you can umount the /home
SUPERUSER:
# shutdown 0
SINGLE USER:
# umount /home
# bdf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2007 04:36 PM
08-23-2007 04:36 PM
Re: Cant umount a lvol
Why? If you kick everyone off that is using /home, root can cd to / and then try umount. Of course in practice, this may be just as easy as a reboot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2007 07:29 PM
08-23-2007 07:29 PM
Re: Cant umount a lvol
>
> SUPERUSER:
> # shutdown 0
Keep in mind that going back from multiuser to singleuser will not give you a 'real' single user mode.
Several logical volumes still can't be unmounted if you do it like this.
For those volumes you should reboot the system and start it in single user mode from the ISL prompt with hpux -is