[linux-lvm] lvcreate - device not cleared Aborting. Failed to wipe start of new LV.

csanyipal at gmail.com csanyipal at gmail.com
Sun Jun 21 05:49:09 UTC 2015


MegaBrutal <megabrutal at gmail.com> writes:

> 2015-06-19 17:02 GMT+02:00  <csanyipal at 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)".

# 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?
>
> Please also try to run lvcreate with "--verbose" and post the output.

# lvcreate --verbose --size 10.10G -n var bubba
  DEGRADED MODE. Incomplete RAID LVs will be processed.
  Setting logging type to disk
  Finding volume group "bubba"
 Rounding up size to full physical extent 10.10 GiB
  Archiving volume group "bubba" metadata (seqno 48).
  Creating logical volume var
  Creating volume group backup \
   "/etc/lvm/backup/bubba" (seqno 49).
  Activating logical volume "var".
  activation/volume_list configuration setting not defined:
  Checking only host tags for bubba/var
  Creating bubba-var
  Loading bubba-var table (253:2)
  Resuming bubba-var (253:2)
 /dev/bubba/var: not found: device not cleared
 Aborting. Failed to wipe start of new LV.
  Removing bubba-var (253:2)
  Creating volume group backup \
   "/etc/lvm/backup/bubba" (seqno 50).
 semid 327688: semop failed for cookie 0xd4d12bb: \
  incorrect semaphore state
 Failed to set a proper state for notification semaphore \
  identified by cookie value 223154875 (0xd4d12bb) to \
  initialize waiting for incoming notifications.

-- 
Regards from Pal




More information about the linux-lvm mailing list