[linux-lvm] lvremove is not deleting the file system

Sven Eschenberg sven at whgl.uni-frankfurt.de
Mon Dec 30 02:27:19 UTC 2013


On Mon, December 30, 2013 02:55, Alasdair G Kergon wrote:
> On Mon, Dec 30, 2013 at 02:46:45AM +0100, Sven Eschenberg wrote:
>> Think of this, once you delete a partition table and recreate it with
>> the
>> same layout, all filesystems will be available, if the drive was not
>> touched in any way.
>
> Although lvcreate has a --zero option enabled by default that wipes
> the beginning of the new device (and the next upstream release extends
> this to wipe more signatures using libblkid).

Forgot about that. Then again my documentation says zero wipes the first
KB, which does not really catch BTRFS sigs (which the OP uses) nor various
mdraid signatures.

I honestly hope the libblkid dependency will be optional ;-).

>
> You need to investigate precisely how your version of 'xen-create-image'
> is
> using LVM and with which options.

The actual OP, you meant. As you noted in your other post wipefs can come
in handy. Additionally blkid and lsblk are two things that come in handy,
to see what is going on.
>
> Alasdair
>

-Sven





More information about the linux-lvm mailing list