Home / How to manually destroy an LVM volume in a Linux server?

How to manually destroy an LVM volume in a Linux server?

Use the ‘dd’ command to delete the first few sectors of the physical volume, especially the first four. This will eliminate the disk’s lvm labels, which are used to figure out that the disk is a lvm disk.

# dd if=/dev/zero of=/dev/sd<X><Y> bs=512 count=10

Please remember that this would make the partition useless, so a new partition or a physical volume would have to be made.

If there is data on the disk before you do this, normal OS tools won’t be able to access it.

Leave a Reply