linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: "Sven Eschenberg" <sven@whgl.uni-frankfurt.de>
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] lvremove is not deleting the file system
Date: Mon, 30 Dec 2013 02:46:45 +0100	[thread overview]
Message-ID: <0930dbad0e746334315c5203d1b67457.squirrel@ssl.verfeiert.org> (raw)
In-Reply-To: <52C0C51C.7060806@gmail.com>

Hi Guy,

This is not really a LVM problem I think. Basically lvremove only removes
a logical volume, which means, the metadata is discarded and the PEs are
released back into the allocation pool. It does not wipe the area (which
you somehow assumed as far as I understand your post).

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.

The question seems to be: What is your actual intention?

Regards

-Sven

On Mon, December 30, 2013 01:58, Guy Rouillier wrote:
> I'm using xen-create-image in an attempt to set up a new VM; host OS is
> Ubuntu Server 13.10, and I'm using LVM.  I failed in my first attempt
> due to my inexperience, so I changed some input parameters and I'm
> trying again.  The first attempt had successfully created the target LVM
> volumes for boot, root and swap, so I used lvremove to delete them.  All
> that went without error.
>
> However, now when I try to run xen-create-image, I get the following
> error at the beginning when xen-create-image tries to create the target
> volumes:
>
> Creating btrfs filesystem on /dev/dell-vg/oraclelinux-root
> /dev/dell-vg/oraclelinux-root appears to contain an existing filesystem
> (btrfs).
> Error: Use the -f option to force overwrite.
> Running command 'mkfs.btrfs /dev/dell-vg/oraclelinux-root 2>&1' failed
> with exit code 256.
> Aborting
>
> I've tried searching for this error but can't find anything helpful.
> I've rerun this a dozen times and get the same result each time
> (deleting the created volumes and rebooting between each attempt.)  I
> looked in the /dev tree, and I see the dm node (dm-4) disappears after I
> run lvremove.  But apparently, lvremove doesn't delete the filesystem.
> So when I recreate the same volume in the same order, the filesystem is
> still there from the previous attempt.
>
> How do I fix this?  Thanks.
>
> --
> Guy Rouillier
>
> ---
> This email is free from viruses and malware because avast! Antivirus
> protection is active.
> http://www.avast.com
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>

  reply	other threads:[~2013-12-30  1:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-30  0:58 [linux-lvm] lvremove is not deleting the file system Guy Rouillier
2013-12-30  1:46 ` Sven Eschenberg [this message]
2013-12-30  1:55   ` Alasdair G Kergon
2013-12-30  2:27     ` Sven Eschenberg
2013-12-30  2:00 ` Alasdair G Kergon
2013-12-30  3:28   ` Guy Rouillier
2013-12-30  5:18     ` Sven Eschenberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0930dbad0e746334315c5203d1b67457.squirrel@ssl.verfeiert.org \
    --to=sven@whgl.uni-frankfurt.de \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).