You are not logged in.

#1 2012-12-05 22:29:49

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

[SOLVED] systemctl error

Hi!

When I run

systemctl

I get

Failed to get D-Bus connection: Failed to connect to socket /run/systemd/private: No such file or directory

What is wrong here?

Last edited by theking2 (2012-12-12 09:43:35)


archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

#2 2012-12-05 23:05:15

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED] systemctl error

Have you rebooted?


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#3 2012-12-05 23:07:40

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

Re: [SOLVED] systemctl error

loafer wrote:

Have you rebooted?

just 5 min ago


archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

#4 2012-12-05 23:10:10

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] systemctl error

Then you aren't booting with systemd. The default action for systemctl requires systemd be running as PID 1.

Offline

#5 2012-12-05 23:33:08

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

Re: [SOLVED] systemctl error

falconindy wrote:

Then you aren't booting with systemd. The default action for systemctl requires systemd be running as PID 1.

include

init=/usr/lib/systemd/system

in menu.lst as we speak kernel line now reads

kernel /vmlinuz26 root=/dev/disk/by-label/root ro init=/usr/lib/systemd/system

archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

#6 2012-12-05 23:42:57

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

Re: [SOLVED] systemctl error

... and now my machine doesn't boot anymore....

Dependency failed for /srv/backup

/srv/backup sits on my raid5 LVM drive. I guess systemd is not compatible with LVM. As in https://bbs.archlinux.org/viewtopic.php?id=154176

In order to setup systemd with LVM systemd has to be running, in order to run systemd lvm needs to be configured. That's what I read into this. (was it route-66 or catch-25, I forgot)

Last edited by theking2 (2012-12-06 00:03:15)


archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

#7 2012-12-06 00:04:49

tomegun
Developer
From: France
Registered: 2010-05-28
Posts: 661

Re: [SOLVED] systemctl error

LVM _should_ just work. What kind of RAID are you using? dmraid is known to be problematic. Using mdadm instead should just work.

If you want to boot even if some filesystems are not mounted, this can be done by adding "nofail" to the options in /etc/fstab.

Offline

#8 2012-12-06 00:06:01

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] systemctl error

Your other thread is silly. You need the '.service' suffix on units when you aren't booting on systemd. 'systemctl enable lvm-monitoring.service' will work. systemd works just fine with LVM.

Offline

#9 2012-12-06 00:20:08

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

Re: [SOLVED] systemctl error

falconindy wrote:

Your other thread is silly. You need the '.service' suffix on units when you aren't booting on systemd. 'systemctl enable lvm-monitoring.service' will work. systemd works just fine with LVM.

I invite you to look at https://wiki.archlinux.org/index.php/Systemctl#LVM

there is not ".service" mentioned in this wiki. So the wiki is painfully wrong or at least misleading. And don't take this personal. As I don't. My threads aren't silly. :-)

I think what I mend to tell is that a working system on LVM might (repeat, might) not work with the intend of the wiki on systemd installation.

But let's not get side-tracked.

[root@janus j]# systemctl enable lvm-monitoring.service
Operation failed: No such file or directory

Last edited by theking2 (2012-12-06 00:27:22)


archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

#10 2012-12-06 00:32:26

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

Re: [SOLVED] systemctl error

this might be useful:

[root@janus j]# mdadm --detail /dev/md/127_0
/dev/md/127_0:
        Version : 0.90
  Creation Time : Tue Dec 15 20:49:43 2009
     Raid Level : raid5
     Array Size : 2930287488 (2794.54 GiB 3000.61 GB)
  Used Dev Size : 976762496 (931.51 GiB 1000.20 GB)
   Raid Devices : 4
  Total Devices : 4
Preferred Minor : 127
    Persistence : Superblock is persistent

    Update Time : Thu Dec  6 01:01:07 2012
          State : clean
 Active Devices : 4
Working Devices : 4
 Failed Devices : 0
  Spare Devices : 0

         Layout : left-symmetric
     Chunk Size : 64K

           UUID : fb0ea4c6:f8a5a72c:f2b17937:afd40c67
         Events : 0.598315

    Number   Major   Minor   RaidDevice State
       0       8        0        0      active sync   /dev/sda
       1       8       16        1      active sync   /dev/sdb
       2       8       32        2      active sync   /dev/sdc
       3       8       48        3      active sync   /dev/sdd

is this something I should tell systemd?

Last edited by theking2 (2012-12-06 00:33:03)


archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

#11 2012-12-06 00:33:02

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] systemctl error

Then it doesn't exist. The unit belongs to a package in testing:

$ pkgfile lvm-monitoring.service
testing/lvm2

Offline

#12 2012-12-06 00:34:23

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

Re: [SOLVED] systemctl error

falconindy wrote:

Then it doesn't exist. The unit belongs to a package in testing:

$ pkgfile lvm-monitoring.service
testing/lvm2
[root@janus j]# pkgfile lvm-monitoring.service
bash: pkgfile: command not found

archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

#13 2012-12-06 00:39:42

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,354

Re: [SOLVED] systemctl error

theking2 wrote:
falconindy wrote:

Then it doesn't exist. The unit belongs to a package in testing:

$ pkgfile lvm-monitoring.service
testing/lvm2
[root@janus j]# pkgfile lvm-monitoring.service
bash: pkgfile: command not found

3 years in Arch and you don't know 'command not found' means the pkgfile package is not installed?


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#14 2012-12-06 00:53:09

tomegun
Developer
From: France
Registered: 2010-05-28
Posts: 661

Re: [SOLVED] systemctl error

So seems the answer is that the wiki is out-of-sync with reality (this time reality lagging the wiki). I advice you to either wait for lvm2 to reach [core] before doing the switch (it is still possible to switch with the current lvm2, but obviosuly the instructions are MIA) or to simply do "pacman -S testing/lvm2", which should work.

Offline

#15 2012-12-06 00:54:58

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

Re: [SOLVED] systemctl error

don't take this personal but the requirement of pkgfile was not included in the systemd wiki.

[root@janus j]# pkgfile lvm-monitoring.service
error: No repo files found. Please run `pkgfile --update'.

archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

#16 2012-12-06 00:56:13

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

Re: [SOLVED] systemctl error

and

[root@janus j]# pkgfile lvm-monitoring
error: No repo files found. Please run `pkgfile --update'.
[root@janus j]# pkgfile --update
:: Updating 3 repos...
warning: download failed: ftp://mirror.leaseweb.com/archlinux/core/os/x86_64/core.files: response reading failed
error: failed to update repo: core
  download complete: community            [     6.5 MiB  1369K/s  1 remaining]
  download complete: extra                [     5.8 MiB   867K/s  0 remaining]
:: download complete in 6.83s             <    12.3 MiB  1844K/s  2 files    >
:: waiting for 1 process to finish repacking repos...
[root@janus j]# pkgfile lvm-monitoring
[root@janus j]#

Last edited by theking2 (2012-12-06 01:02:21)


archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

#17 2012-12-06 01:01:06

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

Re: [SOLVED] systemctl error

tomegun wrote:

So seems the answer is that the wiki is out-of-sync with reality (this time reality lagging the wiki). I advice you to either wait for lvm2 to reach [core] before doing the switch (it is still possible to switch with the current lvm2, but obviosuly the instructions are MIA) or to simply do "pacman -S testing/lvm2", which should work.

Do I understand that using systemd with LVM2 was not really tested and documented? (and before anyone get's annoyed this is really just a question). In that case I will stick with initscripts unless someone is interested in having me rambling about problems I encounter on the way to systemd-bliss.


archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

#18 2012-12-06 01:25:06

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

Re: [SOLVED] systemctl error

tomegun wrote:

LVM _should_ just work. What kind of RAID are you using? dmraid is known to be problematic. Using mdadm instead should just work.

If you want to boot even if some filesystems are not mounted, this can be done by adding "nofail" to the options in /etc/fstab.

running a md system.


archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

#19 2012-12-06 01:50:08

tomegun
Developer
From: France
Registered: 2010-05-28
Posts: 661

Re: [SOLVED] systemctl error

theking2 wrote:

Do I understand that using systemd with LVM2 was not really tested and documented?

No. Just that the wiki got updated too quickly. It reflects the changes that went into the newest release, which is still in the testing repository (where they have been stuck for about a month). Hopefully they will move to core very soon, and all will be well. (I use lvm with systemd without problems, using testing of course).

Offline

#20 2012-12-06 04:25:04

rogue
Member
Registered: 2011-08-03
Posts: 68
Website

Re: [SOLVED] systemctl error

theking2 wrote:

... and now my machine doesn't boot anymore....

In order to setup systemd with LVM systemd has to be running, in order to run systemd lvm needs to be configured. That's what I read into this. (was it route-66 or catch-25, I forgot)

Chroot, configure, reboot. You need to install the LVM2 package.

LVM with Systemd | Using Hooks

Asking to be spoon fed information, and or blaming your issues on a lack of information is pretty lame.

Offline

#21 2012-12-11 19:08:10

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

Re: [SOLVED] systemctl error

tomegun wrote:

LVM _should_ just work. What kind of RAID are you using? dmraid is known to be problematic. Using mdadm instead should just work.

If you want to boot even if some filesystems are not mounted, this can be done by adding "nofail" to the options in /etc/fstab.

LVM doesn't work out of the box.

I've updated the systemd wiki to do a

systemctl enable lvm

  to, ehm enable lvm in the emergency console. After that the system does boot. I'm not sure what the systemct enable lvm-monitoring settings are for but these don't work on my installation.

[j@janus ~]$ sudo systemctl enable lvm-monitoring
Failed to issue method call: No such file or directory

If these lines do help other users we can leave them but otherwise I suggest to remove the section on LVM as it more confused than helped me.

Last edited by theking2 (2012-12-11 19:43:10)


archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

Board footer

Powered by FluxBB