- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Remove a file system
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
тАО12-02-2002 07:37 PM
тАО12-02-2002 07:37 PM
Assume a logical volume /dev/vg00/lvol2 was
created.
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2002 07:47 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2002 07:47 PM
тАО12-02-2002 07:47 PM
Re: Remove a file system
==> Assuming /dev/vg01/lvol1 mounted on /opt/apps
# cd /
# umount /opt/apps
# lvremove /dev/vg01/lvol1
# vi /etc/fstab
==> Delete the appropriate entry.
# vgdisplay -v vg01 | more
==> Make sure "lvol1" is gone and previous extents used are now "released".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2002 07:47 PM
тАО12-02-2002 07:47 PM
Re: Remove a file system
lvremove
if it's unmounted
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2002 08:19 PM
тАО12-02-2002 08:19 PM
Re: Remove a file system
will very likely crash your system since removing primary swap is like removing RAM while the system is running. And single user mode will also fail because HP-UX requires primary swap to be available.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-03-2002 01:45 AM
тАО12-03-2002 01:45 AM
Re: Remove a file system
First off all, you have to unmount ths file system:
" umount < fisystem name > "
If you have process over the file system, you will get the message " Device Busy ".
In this case, you have to find out witch process are over your file system. Use this command: " fuser < fylesystem name > " or " fuser /dev/vgxx/lvolx ".
( fuser -k < file system name > will kill all the process ).
Once you have kill ( or exit ) the process over you file system, you can unmount it.
Last step is to delete the lv. " lvremove /dev/vgxx/lvolx ".
And that??s all you have to do.
It easy, isn??t it ?
I hope this help you.
Juanma.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-03-2002 09:54 AM
тАО12-03-2002 09:54 AM
Re: Remove a file system
fuser -cuk /filesystem
kills all processes
Won't work on /var because there are teminal files created for every telnetd process, you can't be logged on and remove /var.
then lvremve etc.
Some filesystems like /var can't be removed in multi user mode.
In that case you will need to restart the box, interupt the boot, hpux -is to enter single user mode.
Then nothing will be mounted and you can safely remove the filesystem.
Of course if you actually remove /usr or /var you need to put them back if you plan on actually starting your system after single user mode.
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com