- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Removing logical volume has not freed up disk ...
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
тАО10-06-2011 04:10 AM
тАО10-06-2011 04:10 AM
Hi,
I have removed a logical volume from a volume group via SAM but because our /tmp area was full it has only removed the entry from fstab and not freed up the disk space on the volume group. I have since manually removed the entries from /dev/"volume-group-name". Is there an easy way to do this - other than reboot?
Many thanks - Mark P.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2011 06:15 AM
тАО10-06-2011 06:15 AM
Re: Removing logical volume has not freed up disk space on the volume group
What exactly were you trying to accomplish by removing an LV from a VG? How did you you expect that to effect the /tmp area?
If /tmp is getting full, you need to remove files from it.
# cd /tmp
# du -ks * | sort -n
Will show you the items using the most disk space in /tmp.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2011 06:52 AM
тАО10-06-2011 06:52 AM
Re: Removing logical volume has not freed up disk space on the volume group
I assume the LV removal was not a reaction to /tmp being full: more likely it was a planned and correct operation which just happened to fail because /tmp was full.
If the LVM data structures (in binary format, both on the disk and in /etc/lvmtab) have not been changed properly, a reboot won't cause the disk space to be freed.
As the LV is apparently now unmounted and removed from /etc/fstab, the only remaining step would have been removing it with the lvremove command:
lvremove /dev/<VGname>/<LVname>
However, removing the lvol/rlvol entries from /dev/<VGname> manually may have complicated the LV removal. Can you restore the entries? If you can, you should be able to just run the lvremove command as above.
- Tags:
- lvremove
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2011 09:05 AM
тАО10-06-2011 09:05 AM
Re: Removing logical volume has not freed up disk space on the volume group
You obviously need a tiny bit of space on /tmp to be able to remove logical volumes / volume groups using SAM.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2011 09:07 AM
тАО10-06-2011 09:07 AM
Re: Removing logical volume has not freed up disk space on the volume group
Sorry - lvremove command didn't work:
# ls
group lvEAYP lvdata lvreports rlvCLICON rlvWHDBS rlvoralogs rlvtrace
lvBUSOBJ lvEYFAS lvlogs lvsafety rlvDEVBUSOB rlvadmin rlvproduct
lvCAST lvPRDPTRFN lvops lvsoftware rlvDEVPTRFN rlvarchivelogs rlvproduction
lvCLICON lvWHDBS lvoralogs lvtrace rlvEAYP rlvdata rlvreports
lvDEVBUSOB lvadmin lvproduct rlvBUSOBJ rlvEYFAS rlvlogs rlvsafety
lvDEVPTRFN lvarchivelogs lvproduction rlvCAST rlvPRDPTRFN rlvops rlvsoftware
# lvremove /dev/vgEVA/lvCAST
lvremove: Couldn't delete logical volume "/dev/vgEVA/lvCAST":
The supplied lv number refers to a non-existent logical volume.
Volume Group configuration for /dev/vgEVA has been saved in /etc/lvmconf/vgEVA.conf
# ls
group lvEAYP lvdata lvreports rlvCLICON rlvWHDBS rlvoralogs rlvtrace
lvBUSOBJ lvEYFAS lvlogs lvsafety rlvDEVBUSOB rlvadmin rlvproduct
lvCAST lvPRDPTRFN lvops lvsoftware rlvDEVPTRFN rlvarchivelogs rlvproduction
lvCLICON lvWHDBS lvoralogs lvtrace rlvEAYP rlvdata rlvreports
lvDEVBUSOB lvadmin lvproduct rlvBUSOBJ rlvEYFAS rlvlogs rlvsafety
lvDEVPTRFN lvarchivelogs lvproduction rlvCAST rlvPRDPTRFN rlvops rlvsoftware
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2011 09:09 AM