• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 319
  • Last Modified:

Remove LV RHEL5

How do I remove a logical volume on RHEL5

This is the error
# lvremove /dev/VolGroup00/appftphome
  Can't remove open logical volume "appftphome"

 #dmsetup info -c /dev/VolGroup00/appftphome
Name                  Maj Min Stat Open Targ Event  UUID
VolGroup00-appftphome 253  12 L--w    1    1      0 LVM-KJse367Smlo0hmJWoc6QPRvhb4KtmxVavI8cIR52UW08hW1oW5tDOmeaZEDLfdhk
1 Solution
1. Umount the filesystem on that lV
2. lvchange -a y /dev/VolGroup00/appftphome (Make sure the Logic Volume is active)
3. lvremove -f /dev/VolGroup00/appftphome   (Remove the Logic Volume)

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now