Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: [DE] systemd nachträglich installierbar  (Read 8112 times)

Offline ralfi

  • User
  • Posts: 389
[DE] systemd nachträglich installierbar
« on: 2014/01/27, 20:57:03 »
Hallo siducer,


kann man über apt-get das schicke schnelle systemd auch über eine vorhandene Installation bügeln? Ist da ggf. was zu beachten?

Gruss, ralfi

Niveau sieht von unten oft wie Arroganz aus ...

Offline reddark

  • User
  • Posts: 1.053
    • http://www.klangruinen.de/
Re: systemd nachträglich installierbar
« Reply #1 on: 2014/02/13, 23:34:21 »
hmm, hab hier jetzt ne weile gewartet .. aber scheint wohl vergessen zu sein, die Frage .. ;)

Würde mich halt auch interesieren ...  ;)

Offline der_bud

  • User
  • Posts: 1.072
  • member
Re: systemd nachträglich installierbar
« Reply #2 on: 2014/02/14, 08:08:45 »
Ja, systemd ist nachinstallierbar. Das Vorgehen ist eigentlich genauso wie hier im Debian Wiki beschrieben:

Code: [Select]
# apt-get update
# apt-get install systemd systemd-sysv

Aktuell wird dabei wohl alles automatisch eingerichtet, ohne eigene Eingriffe. (Bis vor kurzem war es noch notwendig, sysvinit auf hold zu setzen, per Hand ein Verzeichnis /var/log/journal anzulegen, sowie eine Gruppe systemd-journal zu erstellen und den User dieser hinzuzufügen. )
 Zur vollständigen Nutzung des mit systemd mitgebrachten journald könnte man allenfalls noch das alt rsyslog deinstallieren.


Interessant wäre vielleicht noch dieser Tipp:
Quote
HINT: Keep a copy of /sbin/init from sysvinit package in case of rescue (so you can use init=/sbin/init.sysvinit in cmdline)!

# cp -av /sbin/init /sbin/init.sysvinit <--- Before installing systemd-sysv package
Du lachst? Wieso lachst du? Das ist doch oft so, Leute lachen erst und dann sind sie tot.

Offline reddark

  • User
  • Posts: 1.053
    • http://www.klangruinen.de/
Re: systemd nachträglich installierbar
« Reply #3 on: 2014/02/14, 10:54:32 »
danke ... ist nun installiert. Aber irgendwie kommt mir der Start weit länger vor, als vorher. Kenn mich noch nicht so mit systemd aus ... wo könnt ich ein bissel schrauben?

Offline ayla

  • User
  • Posts: 1.744
Re: systemd nachträglich installierbar
« Reply #4 on: 2014/02/14, 11:03:37 »
Hi reddark,

Du kannst mal mit
Code: [Select]
systemd-analyze timeund
Code: [Select]
systemd-analyze blame nachschauen was da solange braucht.
Gruß
ayla

Offline reddark

  • User
  • Posts: 1.053
    • http://www.klangruinen.de/
Re: systemd nachträglich installierbar
« Reply #5 on: 2014/02/14, 11:07:47 »
keine ahnung was davon normal ist, aber die Kernel-time wirkt schon sehr lange ;(

Code: [Select]
# systemd-analyze time
Startup finished in 4.718s (kernel) + 3min 12.384s (userspace) = 3min 17.103s

Code: [Select]
# systemd-analyze blame
         30.350s samba-ad-dc.service
         29.909s nmbd.service
         29.906s winbind.service
         16.647s cups.service
          9.213s sidu-base.service
          9.196s systemd-suspend.service
          9.160s systemd-fsck-root.service
          9.095s siguibui.service
          8.766s avahi-daemon.service
          8.315s systemd-logind.service
          8.264s dirmngr.service
          8.067s loadcpufreq.service
          6.252s network-manager.service
          5.846s bootlogs.service
          5.105s keyboard-setup.service
          4.812s ntp.service
          4.781s virtualbox.service
          4.683s binfmt-support.service
          3.086s irqbalance.service
          3.028s wpa_supplicant.service
          2.728s gpm.service
          2.559s cron.service
          2.533s lightdm.service
          2.264s vdr.service
          2.138s kdm.service
          1.960s acpi-support.service
          1.935s acpi-fakekey.service
          1.859s hdparm.service
          1.842s minissdpd.service
          1.629s systemd-modules-load.service
          1.544s dev-hugepages.mount
          1.496s dev-mqueue.mount
          1.451s sys-kernel-debug.mount
          1.431s saned.service
          1.269s lm-sensors.service
          1.119s alsa-restore.service
           990ms proc-sys-fs-binfmt_misc.mount
           990ms systemd-fsck@dev-disk-by\x2duuid-0358d06c\x2dee67\x2d408c\x2d90fc\x2d9ff18b81b0ca.service
           977ms resolvconf.service
           868ms libvirt-guests.service
           830ms polkitd.service
           802ms console-kit-log-system-start.service
           793ms packagekit.service
           780ms systemd-udev-trigger.service
           778ms kbd.service
           758ms systemd-user-sessions.service
           755ms motd.service
           753ms hddtemp.service
           751ms rpcbind.service
           747ms stunnel4.service
           746ms ifplugd.service
           699ms keymap.service
           572ms screen-cleanup.service
           558ms systemd-tmpfiles-setup-dev.service
           520ms pppd-dns.service
           473ms dns-clean.service
           465ms console-kit-daemon.service
           453ms rc-local.service
           418ms networking.service
           404ms systemd-udevd.service
           378ms home-win-System.mount
           324ms cpufrequtils.service
           322ms media-disk1part3.mount
           294ms dev-disk-by\x2duuid-95315017\x2d336b\x2d424a\x2db7aa\x2d5fc4a0a0452d.swap
           274ms sidu-boot.service
           259ms home-win-Daten.mount
           257ms console-setup.service
           247ms home.mount
           246ms systemd-tmpfiles-setup.service
           246ms smbd.service
           193ms systemd-random-seed-load.service
           187ms udisks.service
           160ms systemd-remount-fs.service
           160ms upower.service
           135ms systemd-sysctl.service
            86ms systemd-tmpfiles-clean.service
            83ms systemd-update-utmp-runlevel.service
            40ms cups-browsed.service
             8ms run-user.mount
             7ms run-lock.mount
             7ms systemd-journal-flush.service
             2ms sys-fs-fuse-connections.mount


Offline ayla

  • User
  • Posts: 1.744
Re: systemd nachträglich installierbar
« Reply #6 on: 2014/02/14, 11:17:04 »
Was wie lange brauchen sollte oder dürfte.... hab ich auch keine Ahnung von.

Code: [Select]
journalctl -b -p err
kann noch Hinweise geben ob irgendwas im Argen liegt.

Dein cups-service braucht im Vergleich zu meinem (38ms) z.B. extrem lange. Samba winbind oder nmbd nutze ich nicht, kann ich also nix zu sagen.

Offline reddark

  • User
  • Posts: 1.053
    • http://www.klangruinen.de/
Re: systemd nachträglich installierbar
« Reply #7 on: 2014/02/14, 11:41:45 »
Danke für den Tip ... ich vermute es liegt an dem ntp, wie an anderer Stelle schon beschrieben wurde:

Code: [Select]
Feb 14 09:23:18 laptop1 kernel: tsc: Fast TSC calibration failed
Feb 14 09:23:20 laptop1 systemd-udevd[266]: unknown key 'SYSFS{idVendor}' in /etc/udev/rules.d/80-persistent-usb.rules:19
Feb 14 09:23:20 laptop1 systemd-udevd[266]: invalid rule '/etc/udev/rules.d/80-persistent-usb.rules:19'
Feb 14 09:23:30 laptop1 ntpdate[932]: Can't find host 0.debian.pool.ntp.org: Name or service not known (-2)
Feb 14 09:23:30 laptop1 ntpdate[932]: Can't find host 1.debian.pool.ntp.org: Name or service not known (-2)
Feb 14 09:23:30 laptop1 ntpdate[932]: Can't find host 2.debian.pool.ntp.org: Name or service not known (-2)
Feb 14 09:23:30 laptop1 ntpdate[932]: Can't find host 3.debian.pool.ntp.org: Name or service not known (-2)
Feb 14 09:23:30 laptop1 ntpdate[932]: no servers can be used, exiting
Feb 14 09:24:47 laptop1 systemd[1]: Timed out waiting for device dev-disk-by\x2duuid-a95518af\x2d02a6\x2d4650\x2da5ca\x2d82f56$
Feb 14 09:24:47 laptop1 systemd[1]: Dependency failed for /dev/disk/by-uuid/a95518af-02a6-4650-a5ca-82f5609b4990.
Feb 14 09:24:48 laptop1 systemd[1]: Failed to start /etc/rc.local Compatibility.
Feb 14 09:24:49 laptop1 minissdpd[1035]: setsockopt(udp, IP_ADD_MEMBERSHIP)(0.0.0.0): No such device
Feb 14 09:24:55 laptop1 ntpd_intres[1168]: host name not found: 0.debian.pool.ntp.org
Feb 14 09:24:55 laptop1 ntpd_intres[1168]: host name not found: 1.debian.pool.ntp.org
Feb 14 09:24:55 laptop1 ntpd_intres[1168]: host name not found: 2.debian.pool.ntp.org
Feb 14 09:24:55 laptop1 ntpd_intres[1168]: host name not found: 3.debian.pool.ntp.org
Feb 14 09:25:05 laptop1 wpa_supplicant[1303]: nl80211: Could not configure driver to use managed mode
Feb 14 09:25:08 laptop1 libvirtd[1042]: libvirt version: 1.2.1
Feb 14 09:25:12 laptop1 libvirtd[1042]: Could not find 'ebtables' executable
Feb 14 09:25:37 laptop1 ntpdate[1814]: the NTP socket is in use, exiting
Feb 14 09:26:28 laptop1 systemd[1]: Timed out waiting for device dev-disk-by\x2duuid-a95518af\x2d02a6\x2d4650\x2da5ca\x2d82f56$
Feb 14 09:26:28 laptop1 systemd[1]: Dependency failed for /dev/disk/by-uuid/a95518af-02a6-4650-a5ca-82f5609b4990.
Feb 14 09:34:31 laptop1 kernel: ACPI: Error installing CMOS-RTC region handler
Feb 14 09:34:32 laptop1 kernel: Bluetooth: hci0 command 0x1009 tx timeout
Feb 14 09:34:39 laptop1 NetworkManager[1177]: <error> [1392366879.949518] [nm-system.c:768] nm_system_iface_get_flags(): (unkn$
Feb 14 09:34:39 laptop1 NetworkManager[1177]: <error> [1392366879.956202] [nm-system.c:768] nm_system_iface_get_flags(): (unkn$
Feb 14 09:34:39 laptop1 NetworkManager[1177]: nm_system_iface_flush_routes: assertion `iface != NULL' failed
Feb 14 09:34:39 laptop1 NetworkManager[1177]: <error> [1392366879.999418] [nm-system.c:768] nm_system_iface_get_flags(): (unkn$
Feb 14 09:34:40 laptop1 wpa_supplicant[1303]: Could not read interface wlan0 flags: No such device
Feb 14 09:34:45 laptop1 wpa_supplicant[1303]: nl80211: Could not configure driver to use managed mode
Feb 14 09:35:08 laptop1 ntpdate[5055]: the NTP socket is in use, exiting
Feb 14 09:36:14 laptop1 systemd[1]: Timed out waiting for device dev-disk-by\x2duuid-a95518af\x2d02a6\x2d4650\x2da5ca\x2d82f56$
Feb 14 09:36:14 laptop1 systemd[1]: Dependency failed for /dev/disk/by-uuid/a95518af-02a6-4650-a5ca-82f5609b4990.
Feb 14 11:04:03 laptop1 systemd[1]: Timed out waiting for device dev-disk-by\x2duuid-a95518af\x2d02a6\x2d4650\x2da5ca\x2d82f56$
Feb 14 11:04:03 laptop1 systemd[1]: Dependency failed for /dev/disk/by-uuid/a95518af-02a6-4650-a5ca-82f5609b4990.




Offline ayla

  • User
  • Posts: 1.744
Re: systemd nachträglich installierbar
« Reply #8 on: 2014/02/14, 11:52:56 »
hmm...
die ntdp Fehlermeldungen hab ich auch noch, liegt wohl daran dass das Netzwerk noch nicht da ist, bringt aber meine Boot-Zeit nicht erheblich nach oben.

Sieht für mich so aus als hättest Du einen Eintrag in deiner fstab der nicht mehr existiert.
Quote
Feb 14 09:24:47 laptop1 systemd[1]: Timed out waiting for device dev-disk-by\x2duuid-a95518af\x2d02a6\x2d4650\x2da5ca\x2d82f56$
Feb 14 09:24:47 laptop1 systemd[1]: Dependency failed for /dev/disk/by-uuid/a95518af-02a6-4650-a5ca-82f5609b4990.

Bluetooth und Netzwerkverbindungen scheinen auch etwas problematisch zu sein.

Offline reddark

  • User
  • Posts: 1.053
    • http://www.klangruinen.de/
Re: systemd nachträglich installierbar
« Reply #9 on: 2014/02/14, 11:58:07 »
fstab hab ich schon korrigiert ;)

wlan funktioniert ... hmm, keine ahnung was da klempt ;(

Offline ayla

  • User
  • Posts: 1.744
Re: systemd nachträglich installierbar
« Reply #10 on: 2014/02/14, 12:03:12 »
Tja, für weitere Hilfe braucht's dann wohl die Spezialisten :)

eventuell noch ein inxi anhängen ;)

Gruß
Jürgen

Offline reddark

  • User
  • Posts: 1.053
    • http://www.klangruinen.de/
Re: systemd nachträglich installierbar
« Reply #11 on: 2014/02/14, 12:38:12 »
Trotzdem danke.... ;)

Code: [Select]
#inxi -v3
System:    Host: laptop1 Kernel: 3.13-2.towo-siduction-amd64 x86_64 (64 bit, gcc: 4.8.2)
           Desktop: KDE 4.12.2 (Qt 4.8.6) Distro: siduction 12.2.0 Riders on the Storm - kde - (201212092131)
Machine:   System: Hewlett-Packard product: HP 625 serial: CNU04411QS
           Mobo: Hewlett-Packard model: 1475 version: KBC Version 72.13
           Bios: Hewlett-Packard version: 68DVA Ver. F.21 date: 06/15/2012
CPU:       Dual core AMD Athlon II P320 (-MCP-) cache: 1024 KB flags: (lm nx sse sse2 sse3 sse4a svm) bmips: 8382.08
           Clock Speeds: 1: 800.00 MHz 2: 2100.00 MHz
Graphics:  Card: Advanced Micro Devices [AMD/ATI] RS880M [Mobility Radeon HD 4225/4250] bus-ID: 01:05.0
           X.org: 1.15.0 drivers: ati,radeon (unloaded: fbdev,vesa) tty size: 127x47 Advanced Data: N/A for root
Network:   Card-1: Realtek RTL8101E/RTL8102E PCI Express Fast Ethernet controller
           driver: r8169 ver: 2.3LK-NAPI port: 2000 bus-ID: 02:00.0
           IF: eth0 state: down mac: 1c:c1:de:b8:30:ec
           Card-2: Broadcom BCM4313 802.11bgn Wireless Network Adapter bus-ID: 03:00.0
           IF: N/A state: N/A mac: N/A
           Card-3: D-Link System DWA-131 802.11n Wireless N Nano Adapter(rev.A1) [Realtek RTL8192SU]
           driver: r8712u usb-ID: 002-004
           IF: wlan0 state: up mac: 90:94:e4:5f:9e:10
Drives:    HDD Total Size: 320.1GB (78.2% used) 1: model: Hitachi_HTS54503
Info:      Processes: 158 Uptime: 3:14 Memory: 1182.4/5718.0MB Runlevel: 5
           Gcc sys: 4.8.2 Client: Shell (bash 4.2.45) inxi: 1.9.18

Offline ayla

  • User
  • Posts: 1.744
Re: systemd nachträglich installierbar
« Reply #12 on: 2014/02/14, 12:50:44 »
Quote
Card-2: Broadcom BCM4313 802.11bgn Wireless Network Adapter bus-ID: 03:00.0
           IF: N/A state: N/A mac: N/A
           Card-3: D-Link System DWA-131 802.11n Wireless N Nano Adapter(rev.A1) [Realtek RTL8192SU]
           driver: r8712u usb-ID: 002-004

Kannste den Broadcom nicht deaktivieren?

Offensichtlich nutzt Du ja den D-Link-Adapter?

Sorry, muß jetzt zur Spätschicht...

Offline reddark

  • User
  • Posts: 1.053
    • http://www.klangruinen.de/
Re: systemd nachträglich installierbar
« Reply #13 on: 2014/02/14, 13:09:00 »
keine ahnung wie. Wenn ich es über das Bios mache, dann ist wlan und blutooth komplett tod, auch der stick ... ;(

Offline der_bud

  • User
  • Posts: 1.072
  • member
Re: systemd nachträglich installierbar
« Reply #14 on: 2014/02/14, 16:54:17 »
Weit davon entfernt sowas wie Experte zu sein, würde ich mal sagen das beim systemd-boot das Netzwerk bei der Kombi samba/winbind/nmbd hängt.
Die kerneltime mit unter 5 Sekunden geht doch, aber dann 3 Minuten spricht dafür das irgendwas nicht "up" ist worauf andere warten.

Nun kenne ich mich mit dem Kram nicht aus, aber bei den Archern die schon länger systemd nutzen kann man immer viel lernen. Vielleicht bringen z.B. diese Links was:  https://bugs.archlinux.org/task/31192  und  https://bbs.archlinux.org/viewtopic.php?pid=1183853#p1183853 ,  dort sieht man wie mit an richtiger Stelle gesetztem 'After=network.target' auf die Reihenfolge Einfluss genomen werden kann.

Natürlich wäre es vorher sicher hilfreich, den nicht verwendeten Adapter abzuschalten, nicht das da ewig und drei Tage drauf gewartet wird - nur wie weiß ich auch nicht. :-\
Du lachst? Wieso lachst du? Das ist doch oft so, Leute lachen erst und dann sind sie tot.