<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.williams-net.org/index.php?action=history&amp;feed=atom&amp;title=Removing_a_disk_from_LVM</id>
	<title>Removing a disk from LVM - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.williams-net.org/index.php?action=history&amp;feed=atom&amp;title=Removing_a_disk_from_LVM"/>
	<link rel="alternate" type="text/html" href="https://wiki.williams-net.org/index.php?title=Removing_a_disk_from_LVM&amp;action=history"/>
	<updated>2026-06-01T02:37:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>https://wiki.williams-net.org/index.php?title=Removing_a_disk_from_LVM&amp;diff=455&amp;oldid=prev</id>
		<title>DrEdWilliams: Created page with &quot;If the non-root LVM volume, Volume Group, and Physical Volume used for the LV are no longer required on the system, then it could be removed/deleted using following steps. If...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.williams-net.org/index.php?title=Removing_a_disk_from_LVM&amp;diff=455&amp;oldid=prev"/>
		<updated>2021-05-05T02:32:08Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;If the non-root LVM volume, Volume Group, and Physical Volume used for the LV are no longer required on the system, then it could be removed/deleted using following steps. If...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;If the non-root LVM volume, Volume Group, and Physical Volume used for the LV are no longer required on the system, then it could be removed/deleted using following steps. If the LVM volume is containing any required data, then please make sure to take a backup of that data before proceeding with following steps:&lt;br /&gt;
&lt;br /&gt;
In this example, we will be deleting “testlv” from the volume group “datavg”. The LV is mounted on the mount point /data01.&lt;br /&gt;
&lt;br /&gt;
 # df -hP | grep -i data01&lt;br /&gt;
 /dev/mapper/datavg-testlv  976M  2.6M  907M   1% /data01&lt;br /&gt;
 # lvs&lt;br /&gt;
   LV     VG     Attr       LSize  Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert&lt;br /&gt;
   root   centos -wi-ao---- 17.47g&lt;br /&gt;
   swap   centos -wi-ao----  2.00g&lt;br /&gt;
   testlv datavg -wi-ao----  1.00g&lt;br /&gt;
&lt;br /&gt;
Delete the entry of the mount point from the /etc/fstab :&lt;br /&gt;
&lt;br /&gt;
 # cat /etc/fstab&lt;br /&gt;
 ...&lt;br /&gt;
 /dev/mapper/datavg-testlv            /data01              ext4    defaults        0 0&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
Unmount the mount point :&lt;br /&gt;
&lt;br /&gt;
 # umount /data01&lt;br /&gt;
&lt;br /&gt;
Disable lvm :&lt;br /&gt;
&lt;br /&gt;
 # lvchange -an /dev/datavg/testlv&lt;br /&gt;
&lt;br /&gt;
Delete lvm volume :&lt;br /&gt;
&lt;br /&gt;
 # lvremove /dev/datavg/testlv&lt;br /&gt;
&lt;br /&gt;
Disable volume group :&lt;br /&gt;
&lt;br /&gt;
 # vgchange -an datavg&lt;br /&gt;
&lt;br /&gt;
Delete volume group :&lt;br /&gt;
&lt;br /&gt;
 # vgremove datavg&lt;br /&gt;
&lt;br /&gt;
Delete physical Volumes being used for the volume group “datavg” :&lt;br /&gt;
&lt;br /&gt;
 # pvremove /dev/sdb  /dev/sdc&lt;br /&gt;
&lt;br /&gt;
(taken mostly from https://www.thegeekdiary.com/centos-rhel-how-to-delete-lvm-volume/)&lt;/div&gt;</summary>
		<author><name>DrEdWilliams</name></author>
	</entry>
</feed>