- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- removing mount point
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
тАО09-07-2004 07:50 AM
тАО09-07-2004 07:50 AM
removing mount point
Much appreciative for your inputs.
Thanks.
- Tags:
- unmount
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2004 07:59 AM
тАО09-07-2004 07:59 AM
Re: removing mount point
bottomline is, you cannot unmount a filesystem if process(es) has open files in the filesystem.
If you have a filesystem mounted in the "mountpoint",execute fuser command figure out the processes using the filesystem
# fuser -cu /mountpoint | xargs -n1 ps -fp
If you dont see process listing from the above command then you can execute umount command unmount the filesystem
If you do see processes using the filesystem, then you need to kill those processes.
- Tags:
- fuser
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2004 07:59 AM
тАО09-07-2004 07:59 AM
Re: removing mount point
Removing a mount point is quivalent to removing / deleting a filesystem. you can do this on the fly as long as the filesystem / mount point is not in use. for eg the mount point is /opt/mount_dir
to remove this,
bdf /opt/mount_dir
/dev/vg00/lmount_dir /opt/mount_dir ....
fuser -cu /opt/mount_dir
if no process is listed as using /opt/mount_dir, you can unmount the filesystem and use lvremove to remove it. If there are processes listed as using /opt/mount_dir, you can kill all of them if you are sure you are not going to harm the system.
fuser -ck /opt/mount_dir
Do man fuser for more info on the command.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2004 08:03 AM
тАО09-07-2004 08:03 AM
Re: removing mount point
Which mount point are you trying to remove?.
If it is not a OS filesystem like /stand,/usr, /var,/opt etc., you can stop the processes accessing that filesystem and then unmount it. Say if /dev/vg00/lvol15 is mounted on /apps1 and if you no longer use apps1, then do
#fuser -ku /dev/vg00/lvol15
#umount /apps1
#lvremove /dev/vg00/lvol15
#rm -rf /apps1
Make sure you don't do it for any of the OS related filesystems.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2004 08:18 AM
тАО09-07-2004 08:18 AM
Re: removing mount point
My take on this is, I can increase this on the fly using OnlineJFS, and the server does not have to be brought down in single user mode.
Forget about removing a file system, I understand how to do this.
Sorry for the confusion, gents.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2004 08:23 AM
тАО09-07-2004 08:23 AM
Re: removing mount point
# cd /usr/uni
# bdf .
# lvextend -L
# fsadm -F vxfs -b
Note the "b" suffix to the size of the LV in the fsadm command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2004 08:24 AM
тАО09-07-2004 08:24 AM
Re: removing mount point
Yes. If you have OnlineJFS, you can easily increase the mount point's size (provided it is not 100%) online. The commands are
#lvextend -L 2000 /dev/vg00/lvolx
#fsadm -b 2000m /usr/uni
2000 is for example. It's the total size of the filesystem after you increased it. If it is at 1000 MB and if you are going to increase it by another 1000 MB, then it will be "-L 2000".
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2004 01:22 PM
тАО09-07-2004 01:22 PM
Re: removing mount point
I've got what may be a dumb question for you. Even though the filesystem mounted at /usr is in VG00, is the filesystem mounted at /usr/uni actually part of VG00? I ask because it doesn't have to be. It's not the mountpoint that makes it part of VG00, it's the logical volume that the fileystem resides on that's part of VG00.
Check the output of "bdf" and see if it really is part of VG00 or not. If it's not, you can stop all the processes using that filesystem and increase the logical volume and filesystem while the system is up even if you don't have Online JFS.
Regards,
Seth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2012 02:31 AM
тАО09-03-2012 02:31 AM
Re: removing mount point
Hi,
Please follow the below steps to remove the mount point and release the storage space
umont the mountpoint
#umount <mount point name>
Comment the mount point in fstab file
#vi /etc/fstab
Removing the logical volume
#lvremove /dev/datavg17/lvdata17
Deactivate the volume group
#vgchange -a n datavg17 //if this is not added on cluster
OR
#vgchange -c n datavg17 //if this added via cluster
export the volume group
#vgexport datavg17
If there is requirement to remove VG then
#vgreduce -f /dev/vg09 /dev/dsk/c1t0d7s6