- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: not able to remove a LV in RHEL
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
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
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
03-05-2013 09:25 PM - last edited on 03-06-2013 12:55 AM by Cathy_xu
03-05-2013 09:25 PM - last edited on 03-06-2013 12:55 AM by Cathy_xu
not able to remove a LV in RHEL
Hi Team,
I have to remove one vg . This vg consists of 8 lvols. I had umounted all the 8 lvols. OS version is "Red Hat Enterprise Linux Server release 5.3 (Tikanga)"
[58]> df -h | grep -i vg001
***********]/
Then i did vgremove vg001.
But one LV(/dev/vg001/lvol7) is not getting removed, its showing as in open state
In /etc/fstab and /etc/mtab that lv information is not there.
But in /proc/mounts i can see that lv informaiton
/dev/mapper/vg001-lvol7 /gis/gte/pro ext3 rw,data=ordered 0 0 ====> this line is existing in /proc mounts.
But this mount point (/gis/gte/pro) is mounted to another lv
[60]> df -h .
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg002-lvol7
286G 56G 216G 21% /gis/gte/pro
***************:]/gis/gte/pro
[61]> pwd
/gis/gte/pro
Now how can i procedd on this
Regards
p.s. This thread has been moved from HP-UX >System Administration to Linux > sysadmin--HP Forum Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2013 06:36 AM
03-08-2013 06:36 AM
Re: not able to remove a LV in RHEL
Run "fuser -m /gis/gte/pro" to see the PIDs of processes accessing the filesystem. If there are any, try to make them stop accessing the filesystem or stop/kill the processes.
If you run "umount -n /gis/gte/pro", does the system output an error message? What does the message say exactly?
/etc/mtab is a regular file that is updated by the mount and umount commands. In certain abnormal situations, it might become out of sync with the real system state.
The information in /proc/mounts is produced from the kernel's internal state information in real time, so it should always be true.
If your /etc/mtab is corrupted, it is generally possible to replace it with a symbolic link to /proc/mounts:
mv /etc/mtab /etc/mtab.broken ln -s /proc/mounts /etc/mtab
However, if you do this, the "user" mount option in /etc/fstab won't work correctly. Some GUI-based mount/unmount tools might have problems too.
- Tags:
- fuser