You are not logged in.
Pages: 1
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
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
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
┌─[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
Offline
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
If you aren't using logical volumes, you don't need any of this.
Offline
if the OS isn't on a LV
I'm setting up a bunch of LV for storage
Offline
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).
Offline
thank you!
Offline
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
Pages: 1