You are not logged in.

#1 2013-12-30 22:45:04

v43
Member
Registered: 2011-02-03
Posts: 140

[solved] LVM: lvmetad error

hi
I think I need some help with LVM.

This is what happened when I tried to make a new PV on a 4TB GPT drive, containing 1 partition (/dev/sdb1) type 8e00.

~ > sudo pvcreate /dev/sdb1
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  Physical volume "/dev/sdb1" successfully created
~ > sudo pvdisplay
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  "/dev/sdb1" is a new physical volume of "3.64 TiB"
  --- NEW Physical volume ---
  PV Name               /dev/sdb1
  VG Name
  PV Size               3.64 TiB
  Allocatable           NO
  PE Size               0
  Total PE              0
  Free PE               0
  Allocated PE          0
  PV UUID               wBiNPo-Asq2-fTI6-402N-JufF-dj2U-uMLpD7

so.. it looks like it worked, but what about that error message??
All I could find on the forum and google is related to grub and using a LVM as root.
but all I need is to set up a LVM on two storage hard drives, not on the root.
btw, do I still need to use the lvm hook in mkinitcpio?


I looked for some lvm services into /usr/lib/systemd/system. Found:
lvmetad.service
lvmetad.socket
lvm-monitoring.service

starting lvmetad solves the issue, but if I try enabling it with systemctl I get this:

system > sudo systemctl enable lvmetad.socket
The unit files have no [Install] section. They are not meant to be enabled
using systemctl.
Possible reasons for having this kind of units are:
1) A unit may be statically enabled by being symlinked from another unit's
   .wants/ or .requires/ directory.
2) A unit's purpose may be to act as a helper for some other unit which has
   a requirement dependency on it.
3) A unit may be started when needed via activation (socket, path, timer,
   D-Bus, udev, scripted systemctl call, ...).

so what am I supposed to do?

Last edited by v43 (2013-12-31 01:56:21)

Offline

#2 2013-12-30 22:55:41

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [solved] LVM: lvmetad error

sudo systemctl enable lvmetad.socket

Enable the service, not the socket .


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#3 2013-12-30 23:03:45

v43
Member
Registered: 2011-02-03
Posts: 140

Re: [solved] LVM: lvmetad error

as I said..

> sudo systemctl enable lvmetad.service
The unit files have no [Install] section. They are not meant to be enabled
using systemctl.
Possible reasons for having this kind of units are:
1) A unit may be statically enabled by being symlinked from another unit's
   .wants/ or .requires/ directory.
2) A unit's purpose may be to act as a helper for some other unit which has
   a requirement dependency on it.
3) A unit may be started when needed via activation (socket, path, timer,
   D-Bus, udev, scripted systemctl call, ...).

Offline

#4 2013-12-30 23:13:51

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [solved] LVM: lvmetad error

┌─[Shiv ~ ]
└─╼ systemctl status lvmetad                                                                                                                                  
lvmetad.service - LVM2 metadata daemon
   Loaded: loaded (/usr/lib/systemd/system/lvmetad.service; static)
   Active: active (running) since Tue 2013-12-31 06:34:39 NZDT; 5h 38min ago
     Docs: man:lvmetad(8)
  Process: 357 ExecStart=/usr/bin/lvmetad (code=exited, status=0/SUCCESS)
 Main PID: 360 (lvmetad)
   CGroup: /system.slice/lvmetad.service
           └─360 /usr/bin/lvmetad

Dec 31 06:34:39 Shiv systemd[1]: Starting LVM2 metadata daemon...
Dec 31 06:34:39 Shiv systemd[1]: Started LVM2 metadata daemon.
┌─[Shiv ~ ]
└─╼ grep "use_lvmetad =" /etc/lvm/lvm.conf                                                                                                                    
    use_lvmetad = 1

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2013-12-30 23:24:21

v43
Member
Registered: 2011-02-03
Posts: 140

Re: [solved] LVM: lvmetad error

ok then
thank you


what about this?

btw, do I still need to use the lvm hook in mkinitcpio?

do I need the hook even if the OS isn't on a LV?

Offline

#6 2013-12-30 23:53:27

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [solved] LVM: lvmetad error

If you aren't using logical volumes, you don't need any of this.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2013-12-31 00:03:31

v43
Member
Registered: 2011-02-03
Posts: 140

Re: [solved] LVM: lvmetad error

if the OS isn't on a LV
I'm setting up a bunch of LV for storage

Offline

#8 2013-12-31 01:49:57

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [solved] LVM: lvmetad error

Oh: you could have made that a little clearer.

If your / is not on an LV, you'll not need the initrd hook (assuming that the storage volumes get mounted in fstab).


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2013-12-31 01:56:00

v43
Member
Registered: 2011-02-03
Posts: 140

Re: [solved] LVM: lvmetad error

thank you!

Offline

#10 2014-03-08 23:46:08

bbarcher
Member
From: Poland
Registered: 2014-02-27
Posts: 174
Website

Re: [solved] LVM: lvmetad error

Hi! Same problem here. No luck.

a I tried 'systemctl enable lvmetad' in chroot - failed
b  exited
c enabled the service, confirmed status (running)
d back to chroot and grub-mkconfig

Still the same error.


Put up or shut up. 
--Austin Meyer, the lead developer of X-Plane
[ url=http://... ]  Text  [ /url ]

Offline

Board footer

Powered by FluxBB