linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: csanyipal@gmail.com
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] lvcreate - device not cleared Aborting. Failed to wipe start of new LV.
Date: Sun, 21 Jun 2015 19:10:42 +0200	[thread overview]
Message-ID: <87vbehrnql.fsf@gmail.com> (raw)
In-Reply-To: 5586E9A0.5030401@redhat.com

Zdenek Kabelac <zkabelac@redhat.com> writes:

> Dne 21.6.2015 v 07:49 csanyipal@gmail.com napsal(a):
>> MegaBrutal <megabrutal@gmail.com> writes:
>>
>>> 2015-06-19 17:02 GMT+02:00  <csanyipal@gmail.com>:
>>>> I'm not sure whether was on this system created the VG 'bubba' with lvm
>>>> version 1, so maybe this issue is related to that fact that it was
>>>> really created with lvm version 1?
>>>
>>> That your LVM library version is 1.02.90 (which is afaik the latest on
>>> the Debian line), doesn't mean that you use LVM1 metadata. It is very
>>> likely that you use LVM2. To check, you can see the output of "pvs"
>>> ("Fmt" = "lvm2"), or you can check "file -Lks /dev/sda2" where the
>>> output should start with "/dev/sda2: LVM2 PV (Linux Logical Volume
>>> Manager)".
>
> Unfortunately Debian is 'known' with it's own rewrite of lvm2 udev rules.
> And those rules are not ack-ed by upstream and they are not correct.
>
> The result is simple - the lvm2 tool is not properly synchronizing
> with device activation and is not able to clear device header.
>
>> # pvs
>>   PV         VG    Fmt  Attr PSize   PFree
>>   /dev/sda2  bubba lvm2 a--  455.42g 425.22g
>>
>> # file -Lks /dev/sda2
>> /dev/sda2: LVM2 PV (Linux Logical Volume Manager), UUID: \
>>   SMvR2K-6Z3c-xCgd-jSR2-kb1A-15a2-3RiS6V, size: 489009346560
>>
>> Indeed, my LVM library version is lvm2.
>>
>>>> What is the solution for my problem?
>
> Install upstream udev rules (and remove those provided by Debian package) -
> but I've no idea what else will then break this way.
>
> If you are not creating volumes too often - let's create LV without zeroing
> and clear it yourself with i.e. 'dd' or run  mkfs.
>
> 'lvcreate -Zn....'

I shall follow this advice, to use -Zn option. Thanks!

-- 
Regards from Pal

  reply	other threads:[~2015-06-21 17:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-19 15:02 [linux-lvm] lvcreate - device not cleared Aborting. Failed to wipe start of new LV csanyipal
2015-06-19 22:55 ` MegaBrutal
2015-06-21  5:49   ` csanyipal
2015-06-21 16:43     ` Zdenek Kabelac
2015-06-21 17:10       ` csanyipal [this message]
2015-06-23  3:48     ` MegaBrutal
2015-06-23  6:22       ` csanyipal
2015-06-23  8:44         ` Zdenek Kabelac
2015-06-19 23:09 ` Alasdair G Kergon

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=87vbehrnql.fsf@gmail.com \
    --to=csanyipal@gmail.com \
    --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).