Discussion:
[linux-lvm] Volume "avg/alv" is not active locally.
Daniel Savard
2014-11-04 01:15:57 UTC
Permalink
Hi,

I am running LVM2 on linux (Gentoo) with systemd and dracut. I ran into a
problem I am unable to find the cause.

I am trying to create a LV and I received an error as per the subject of
this post.

For example:

feynman ~ # lvcreate -a y --contiguous y --size 1G --name db2data
donneesvg Volume "donneesvg/db2data" is not active locally.
Aborting. Failed to wipe start of new LV.

What is going on? Any hints? What does it mean "not active locally"?

feynman ~ # vgdisplay donneesvg
--- Volume group ---
VG Name donneesvg
System ID
Format lvm2
Metadata Areas 5
Metadata Sequence No 142
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 18
Open LV 18
Max PV 0
Cur PV 5
Act PV 5
VG Size 109,98 GiB
PE Size 4,00 MiB
Total PE 28155
Alloc PE / Size 26087 / 101,90 GiB
Free PE / Size 2068 / 8,08 GiB
VG UUID AdmpT4-8BXf-jWvJ-42j9-i7aa-fln1-PSsweS

I am able increase the size of some LV, but I am not able to create a new
one. I added a PV because I was out of free space and since then I cannot
resize anymore the LV to take advantage of this new space.

feynman ~ # pvscan
PV /dev/sda5 VG racinevg lvm2 [50,00 GiB / 1,79 GiB free]
PV /dev/sda8 VG bb10vg lvm2 [5,00 GiB / 168,00 MiB free]
PV /dev/sda6 VG donneesvg lvm2 [50,00 GiB / 0 free]
PV /dev/sda7 VG donneesvg lvm2 [20,00 GiB / 0 free]
PV /dev/sda9 VG donneesvg lvm2 [10,00 GiB / 0 free]
PV /dev/sda10 VG donneesvg lvm2 [20,00 GiB / 0 free]
PV /dev/sda11 VG donneesvg lvm2 [10,00 GiB / 8,08 GiB free]
Total: 7 [164,97 GiB] / in use: 7 [164,97 GiB] / in no VG: 0 [0 ]

-----------------
Daniel Savard
Peter Rajnoha
2014-11-04 08:51:50 UTC
Permalink
Post by Daniel Savard
Hi,
I am running LVM2 on linux (Gentoo) with systemd and dracut. I ran into
a problem I am unable to find the cause.
I am trying to create a LV and I received an error as per the subject of
this post.
feynman ~ # lvcreate -a y --contiguous y --size 1G --name db2data
donneesvg Volume "donneesvg/db2data" is not active locally.
Aborting. Failed to wipe start of new LV.
What is going on? Any hints? What does it mean "not active locally"?
LVM tries to wipe the LV - zero out first 4KiB of data and also any old
signatures it may find on any newly created LV for it to be properly
initialized.

But this LV has not been activated. One reason may be that you have
activation/volume_list set in LVM configuration (/etc/lvm/lvm.conf)
and it does not include the name of the LV you're just creating.

The "lvcreate -vvvv ...." should provide more info on why the
activation has been skipped.
--
Peter
Aubin, Jean-Francois
2014-11-04 13:18:22 UTC
Permalink
Hi Daniel,

Post your lvm.conf. All disk sdX is on SAN or Local disk? If in SAN, do you use multiphating? If yes, watch your blacklist in multipath.conf or other typo error.

Bonne journée!

J-F Aubin

-----Message d'origine-----
De : linux-lvm-***@redhat.com [mailto:linux-lvm-***@redhat.com] De la part de Peter Rajnoha
Envoyé : 4 novembre 2014 03:52
À : ***@gmail.com
Cc : LVM general discussion and development
Objet : Re: [linux-lvm] Volume "avg/alv" is not active locally.
Post by Daniel Savard
Hi,
I am running LVM2 on linux (Gentoo) with systemd and dracut. I ran
into a problem I am unable to find the cause.
I am trying to create a LV and I received an error as per the subject
of this post.
feynman ~ # lvcreate -a y --contiguous y --size 1G --name db2data
donneesvg Volume "donneesvg/db2data" is not active locally.
Aborting. Failed to wipe start of new LV.
What is going on? Any hints? What does it mean "not active locally"?
LVM tries to wipe the LV - zero out first 4KiB of data and also any old signatures it may find on any newly created LV for it to be properly initialized.

But this LV has not been activated. One reason may be that you have activation/volume_list set in LVM configuration (/etc/lvm/lvm.conf) and it does not include the name of the LV you're just creating.

The "lvcreate -vvvv ...." should provide more info on why the activation has been skipped.

--
Peter

_______________________________________________
linux-lvm mailing list
linux-***@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Daniel Savard
2014-11-04 16:10:13 UTC
Permalink
Thanks guys,

the problem was with volume_list in /etc/lvm/lvm.conf missing the new LV.

-----------------
Daniel Savard
Post by Aubin, Jean-Francois
Hi Daniel,
Post your lvm.conf. All disk sdX is on SAN or Local disk? If in SAN, do
you use multiphating? If yes, watch your blacklist in multipath.conf or
other typo error.
Bonne journée!
J-F Aubin
-----Message d'origine-----
De la part de Peter Rajnoha
Envoyé : 4 novembre 2014 03:52
Cc : LVM general discussion and development
Objet : Re: [linux-lvm] Volume "avg/alv" is not active locally.
Post by Daniel Savard
Hi,
I am running LVM2 on linux (Gentoo) with systemd and dracut. I ran
into a problem I am unable to find the cause.
I am trying to create a LV and I received an error as per the subject
of this post.
feynman ~ # lvcreate -a y --contiguous y --size 1G --name db2data
donneesvg Volume "donneesvg/db2data" is not active locally.
Aborting. Failed to wipe start of new LV.
What is going on? Any hints? What does it mean "not active locally"?
LVM tries to wipe the LV - zero out first 4KiB of data and also any old
signatures it may find on any newly created LV for it to be properly
initialized.
But this LV has not been activated. One reason may be that you have
activation/volume_list set in LVM configuration (/etc/lvm/lvm.conf) and it
does not include the name of the LV you're just creating.
The "lvcreate -vvvv ...." should provide more info on why the activation has been skipped.
--
Peter
_______________________________________________
linux-lvm mailing list
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Loading...