All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] Volume "avg/alv" is not active locally.
@ 2014-11-04  1:15 Daniel Savard
  2014-11-04  8:51 ` Peter Rajnoha
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Savard @ 2014-11-04  1:15 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 1894 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 2575 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] Volume "avg/alv" is not active locally.
  2014-11-04  1:15 [linux-lvm] Volume "avg/alv" is not active locally Daniel Savard
@ 2014-11-04  8:51 ` Peter Rajnoha
  2014-11-04 13:18   ` Aubin, Jean-Francois
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Rajnoha @ 2014-11-04  8:51 UTC (permalink / raw)
  To: daniel.savard; +Cc: LVM general discussion and development

On 11/04/2014 02:15 AM, Daniel Savard wrote:
> 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"?

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] Volume "avg/alv" is not active locally.
  2014-11-04  8:51 ` Peter Rajnoha
@ 2014-11-04 13:18   ` Aubin, Jean-Francois
  2014-11-04 16:10     ` Daniel Savard
  0 siblings, 1 reply; 4+ messages in thread
From: Aubin, Jean-Francois @ 2014-11-04 13:18 UTC (permalink / raw)
  To: daniel.savard@gmail.com; +Cc: LVM general discussion and development

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-bounces@redhat.com [mailto:linux-lvm-bounces@redhat.com] De la part de Peter Rajnoha
Envoy�: 4 novembre 2014 03:52
��: daniel.savard@gmail.com
Cc�: LVM general discussion and development
Objet�: Re: [linux-lvm] Volume "avg/alv" is not active locally.

On 11/04/2014 02:15 AM, Daniel Savard wrote:
> 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"?

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-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] Volume "avg/alv" is not active locally.
  2014-11-04 13:18   ` Aubin, Jean-Francois
@ 2014-11-04 16:10     ` Daniel Savard
  0 siblings, 0 replies; 4+ messages in thread
From: Daniel Savard @ 2014-11-04 16:10 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 2057 bytes --]

Thanks guys,

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

-----------------
Daniel Savard

2014-11-04 8:18 GMT-05:00 Aubin, Jean-Francois <jean-francois.aubin@cgi.com>
:

> 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-bounces@redhat.com [mailto:linux-lvm-bounces@redhat.com]
> De la part de Peter Rajnoha
> Envoyé : 4 novembre 2014 03:52
> À : daniel.savard@gmail.com
> Cc : LVM general discussion and development
> Objet : Re: [linux-lvm] Volume "avg/alv" is not active locally.
>
> On 11/04/2014 02:15 AM, Daniel Savard wrote:
> > 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"?
>
> 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-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>

[-- Attachment #2: Type: text/html, Size: 2964 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-11-04 16:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-04  1:15 [linux-lvm] Volume "avg/alv" is not active locally Daniel Savard
2014-11-04  8:51 ` Peter Rajnoha
2014-11-04 13:18   ` Aubin, Jean-Francois
2014-11-04 16:10     ` Daniel Savard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.