public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: covici@ccs.covici.com
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] problems getting systemd to work
Date: Thu, 15 May 2014 16:38:13 -0400	[thread overview]
Message-ID: <26096.1400186293@ccs.covici.com> (raw)
In-Reply-To: <CADPrc83aGgLLDJ+hwduOKwDawg6ATMx6xxzpM=Yaz6PGDq85Ew@mail.gmail.com>

Canek Peláez Valdés <caneko@gmail.com> wrote:

> On Thu, May 15, 2014 at 4:39 AM,  <covici@ccs.covici.com> wrote:
> > Canek Peláez Valdés <caneko@gmail.com> wrote:
> >
> >> On Wed, May 14, 2014 at 5:26 PM,  <covici@ccs.covici.com> wrote:
> >> [snip]
> >> >
> >> > Well, the workaround sort of worked -- it went through the initrd -- I
> >> > had debug in the kernel command line, but it did not stop for nothing!
> >> > When it went to the real root, however it did not activate any of the
> >> > lvm volumes I had except for what I specified in the kernel command
> >> > line, causing things not to work well.  Also, I noticed that if insisted
> >> > on using the predictable network names, even though I have
> >> > /etc/udev/rules.d/70-persistent-net.rules and
> >> > /etc/udev/rules.d/80-name-slot.rules which work fine in openrc to give
> >> > me back my eth* names.  So all in all, it was a mess and took me to an
> >> > emergency shell and that was the end of that.  I did eventually activate
> >> > some volumes by lvchange -aay, but obviously that would not work well.
> >>
> >> OK, I was a little mystified about why dracut-036 worked on my system
> >> and 037 didn't. Before I tried any workaround, I wanted to know what
> >> changed from the previous version to the current one.
> >>
> >> So I generated an initramfs with dracut-036-r4 and another one with
> >> dracut-037-r1, and I tried to see what changed from one to the other.
> >> The answer is surprisingly easy: in /etc/cmdline.d/, the following
> >> files where in the 036-r4 version, but not in the 037-r4:
> >>
> >> 90crypt.conf
> >> 90lvm.conf
> >> 90mdraid.conf
> >> base.conf
> >>
> >> Te contents of those files are (90crypt.conf is empty):
> >>
> >> 90lvm.conf
> >>    rd.lvm.lv=vg/vol1
> >>    rd.lvm.lv=vg/vol4
> >>    rd.lvm.lv=vg/vol3
> >>
> >> 90mdraid.conf
> >>    rd.md.uuid=f4a59e68:fbe4039f:a39fc86d:e9e91e12
> >>
> >> base.conf
> >>    ro
> >>
> >> So I just changed my /etc/default/grub file:
> >>
> >> GRUB_CMDLINE_LINUX="init=/usr/lib/systemd/systemd quiet nosplash
> >> rd.lvm.lv=vg/vol1 rd.lvm.lv=vg/vol4 rd.lvm.lv=vg/vol3
> >> rd.md.uuid=f4a59e68:fbe4039f:a39fc86d:e9e91e12"
> >>
> >> I regenerated my GRUB2 config, and now again my LVM test system works
> >> perfectly with the latest dracut version.
> >>
> >> The thing is, I *ALWAYS* use the -H (host only) option, so it was my
> >> understanding that the command line should be automatically generated,
> >> and it was on 036, but now it doesn't in 037. I think that's a bug.
> >>
> >> John, with respect to your case: did you used "dracut --print-cmdline"
> >> to get the command line? Also, have you tried to use -H to generate
> >> your initramfs?
> >
> > I did not try the -H, I may test with that later.
> >
> >
> > I did look at the --print-cmdline and copied the volumes they mentioned,
> > but I have other lvm volumes in my fstab and none of them were activated,
> > only the ones I specified in the command line!  This is where I have run
> > into problems.  I have quite a few lvms, I want them all activated!
> 
> I just have /, /boot, /usr and /home (encrypted) as lvms, but all are activated.
> 
> > Also, since I wrote the last message, I have been looking at the
> > journalctl output and discovered a couple of things which I would like
> > some help on, but getting the lvms to work is more important.
> >
> > First, whatever happened to DefaultControllers -- I want to disable
> > those cpu hierarchies, but that option seems to have disappeared without
> > a trace, although you can google and see it in some documentation.
> 
> That went away with the new cgroup handling that is being coordinated
> between systemd and the kernel:
> 
> http://cgit.freedesktop.org/systemd/systemd/commit/?id=7ac807320a7416463d7ff3ef6ede574863a601c5
> 
> > The keyword also was not accepted in an install section I have, what is
> > the matter with that?  I want to use my sysklogd for my syslog, how can
> > I use that with systemd?
> 
> I think you can do that with systemd.log_target=kmsg in the kernel command line.
> 
> > Thanks so much for all your help on these things.
> 
> John, could you please include here the output of lsblk, your fstab,
> your dracut.conf, and your lilo.conf?

output of lsblk:
NAME                           MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda                              8:0    0 931.5G  0 disk 
├─sda1                           8:1    0     3G  0 part /boot
├─sda2                           8:2    0  1000M  0 part /mnt/oldgentoo
└─sda3                           8:3    0 927.6G  0 part 
  ├─linux--files-64--root      253:0    0     3G  0 lvm  /
  ├─linux--files-swap          253:1    0     2G  0 lvm  [SWAP]
  ├─linux--files-64--usr       253:2    0    65G  0 lvm  /usr
  ├─linux--files-usr--src      253:3    0    35G  0 lvm  /usr/src
  ├─linux--files-tmp           253:4    0    10G  0 lvm  /tmp
  ├─linux--files-64--var       253:5    0    20G  0 lvm  /var
  ├─linux--files-home          253:6    0    30G  0 lvm  /home
  ├─linux--files-audio         253:7    0   990G  0 lvm  /audio
  ├─linux--files-usr--bbs      253:8    0   256M  0 lvm  /usr/bbs
  ├─linux--files-hard2         253:9    0   704M  0 lvm  /hard2
  ├─linux--files-scratch       253:10   0     1G  0 lvm  /mnt/scratch
  ├─linux--files-var           253:11   0     8G  0 lvm  /mnt/oldgentoo/var
  └─linux--files-usr           253:12   0    25G  0 lvm  /mnt/oldgentoo/usr
sdb                              8:16   0 931.5G  0 disk 
└─sdb1                           8:17   0 931.5G  0 part 
  ├─linux--files-64--root      253:0    0     3G  0 lvm  /
  ├─linux--files-64--usr       253:2    0    65G  0 lvm  /usr
  ├─linux--files-usr--src      253:3    0    35G  0 lvm  /usr/src
  ├─linux--files-64--var       253:5    0    20G  0 lvm  /var
  ├─linux--files-audio         253:7    0   990G  0 lvm  /audio
  └─linux--files-portage       253:13   0    25G  0 lvm  /var/tmp/portage
sdc                              8:32   0   2.7T  0 disk 
└─sdc1                           8:33   0   2.7T  0 part 
  └─backup--files-ccs--backups 253:14   0   2.7T  0 lvm  
sr0                             11:0    1  1024M  0 rom  

my fstab:
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't 
# needed; notail increases performance of ReiserFS (at the expense of storage 
# efficiency).  It's safe to drop the noatime options if you want and to 
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

# <fs>			<mountpoint>	<type>		<opts>		<dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
#/dev/BOOT		/boot		ext2		noauto,noatime	1 2
/dev/mapper/linux--files-64--root		/		ext4		defaults 0 1
/dev/sda1 /boot ext4 defaults 0 1
/dev/mapper/linux--files-swap		none		swap		sw		0 0
#/dev/fd0		/mnt/floppy	auto		noauto		0 0

# NOTE: The next line is critical for boot!
proc			/proc		proc		defaults	0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for 
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
shm			/dev/shm	tmpfs		nodev,nosuid,noexec	0 0
/dev/mapper/linux--files-64--usr /usr ext4 defaults 0 2
/dev/mapper/linux--files-usr--src /usr/src ext4  defaults 0 2
/dev/mapper/linux--files-tmp /tmp ext4 defaults,nodev,nosuid,noexec 0 2
/dev/mapper/linux--files-64--var /var ext4 defaults 0 3
/dev/mapper/linux--files-portage  /var/tmp/portage ext4 defaults 0 3
/dev/mapper/linux--files-home /home ext4 defaults 0 3
/dev/mapper/linux--files-audio /audio ext4 defaults 0 3
/dev/mapper/linux--files-usr--bbs /usr/bbs ext4 defaults 0 3
/dev/mapper/linux--files-hard2 /hard2 ext4 defaults 0 3
/dev/cdrom /mnt/cdrom auto noauto,user 0 0
/dev/mapper/linux--files-scratch /mnt/scratch ext4 defaults 0 3

/dev/sda2 /mnt/oldgentoo ext4 defaults 0 3
/dev/mapper/linux--files-usr /mnt/oldgentoo/usr ext3 defaults 0 3
/dev/mapper/linux--files-var /mnt/oldgentoo/var ext4 defaults 0 3

the dracut.conf:

# PUT YOUR CONFIG HERE OR IN separate files named *.conf
# in /etc/dracut.conf.d
# SEE man dracut.conf(5)

# Sample dracut config file

#logfile=/var/log/dracut.log
#fileloglvl=6

# Exact list of dracut modules to use.  Modules not listed here are not going
# to be included.  If you only want to add some optional modules use
# add_dracutmodules option instead.
#dracutmodules+=""

# dracut modules to omit
#omit_dracutmodules+=""

# dracut modules to add to the default
#add_dracutmodules+=""

# additional kernel modules to the default
#add_drivers+=""

# list of kernel filesystem modules to be included in the generic initramfs
#filesystems+=""

# build initrd only to boot current hardware
#hostonly="yes"
#

# install local /etc/mdadm.conf
#mdadmconf="no"

# install local /etc/lvm/lvm.conf
#lvmconf="no"

# A list of fsck tools to install. If it's not specified, module's hardcoded
# default is used, currently: "umount mount /sbin/fsck* xfs_db xfs_check
# xfs_repair e2fsck jfs_fsck reiserfsck btrfsck". The installation is
# opportunistic, so non-existing tools are just ignored.
#fscks=""

# inhibit installation of any fsck tools
#nofscks="yes"

# mount / and /usr read-only by default
#ro_mnt="no"

# set the directory for temporary files
# default: /var/tmp
#tmpdir=/tmp
use_fstab=yes

add_dracutmodules+="lvm"
install_items+="/etc/udev/rules.d/70-persistent-net.rules /etc/udev/rules.d/80-net-name-slot.rules"



the section of the lilo.conf:
image=/boot/vmlinuz-3.6.2-gentoo
label=3.6.2-systemd
read-only
append=" ramdisk=8192 root=/dev/mapper/linux--files-64--root  video=uvesafb:1280x1024 speakup.synth=spkout vmalloc=256M rootfstype=ext4 init=/usr/lib/systemd/systemd rd.shell=1   systemd.log_level=debug debug rd.lvm.lv=linux-files/64-root rd.lvm.lv=linux-files/64-usr"
initrd=/boot/initramfs-3.6.2-gentoo.img


-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

         John Covici
         covici@ccs.covici.com


  parent reply	other threads:[~2014-05-15 20:38 UTC|newest]

Thread overview: 72+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-12  7:22 [gentoo-user] problems getting systemd to work covici
2014-05-12  7:53 ` Canek Peláez Valdés
2014-05-12 10:15   ` covici
2014-05-12 14:50     ` Jc García
2014-05-12 16:22       ` covici
2014-05-12 20:10         ` Jc García
2014-05-12 22:45           ` covici
2014-05-13  3:46       ` covici
2014-05-13 12:17         ` Stefan G. Weichinger
2014-05-13 12:29           ` covici
2014-05-13 12:35             ` Stefan G. Weichinger
2014-05-13 13:18               ` covici
2014-05-13 13:35                 ` Jc García
2014-05-13 13:53                   ` covici
2014-05-13 13:02         ` Jc García
2014-05-13 13:16           ` Jc García
2014-05-13 13:43           ` covici
2014-05-13 14:15             ` Jc García
2014-05-12 15:29     ` Canek Peláez Valdés
2014-05-12 16:31       ` covici
2014-05-12 16:37         ` Canek Peláez Valdés
2014-05-12 16:52           ` covici
2014-05-12 17:01             ` Canek Peláez Valdés
2014-05-14  9:40               ` covici
2014-05-14 14:41                 ` Jc García
2014-05-14 23:18                 ` wraeth
2014-05-14  9:43               ` covici
2014-05-14 12:38                 ` Jc García
2014-05-14 14:44                 ` Canek Peláez Valdés
2014-05-14 15:05                   ` covici
2014-05-14 15:33                     ` Canek Peláez Valdés
2014-05-14 15:42                       ` covici
2014-05-14 15:46                         ` Jc García
2014-05-14 15:51                         ` Canek Peláez Valdés
2014-05-14 15:55                           ` Jc García
2014-05-14 16:18                             ` Canek Peláez Valdés
2014-05-14 16:38                               ` covici
2014-05-14 17:01                                 ` Stefan G. Weichinger
2014-05-14 16:40                               ` Jc García
2014-05-14 22:26                               ` covici
2014-05-15  6:18                                 ` Canek Peláez Valdés
2014-05-15  6:47                                   ` Canek Peláez Valdés
2014-05-15  9:48                                     ` covici
2014-05-15 18:13                                       ` Canek Peláez Valdés
2014-05-15 11:50                                     ` covici
2014-05-15 12:16                                       ` Stefan G. Weichinger
2014-05-15 12:38                                         ` covici
2014-05-15 12:44                                           ` Stefan G. Weichinger
2014-05-15 13:27                                           ` Jc García
2014-05-15 13:14                                     ` Jc García
2014-05-15  9:39                                   ` covici
2014-05-15  9:59                                     ` Stefan G. Weichinger
2014-05-15 10:19                                       ` covici
2014-05-15 12:02                                         ` Stefan G. Weichinger
2014-05-15 12:27                                           ` covici
2014-05-15 18:23                                     ` Canek Peláez Valdés
2014-05-15 18:25                                       ` Stefan G. Weichinger
2014-05-15 20:38                                       ` covici [this message]
2014-05-15 22:01                                         ` Stefan G. Weichinger
2014-05-16  0:43                                           ` covici
2014-05-16  9:42                                           ` Canek Peláez Valdés
2014-05-16 10:53                                             ` covici
2014-05-16 12:42                                               ` Stefan G. Weichinger
2014-05-16 17:01                                               ` Canek Peláez Valdés
2014-05-16 17:17                                                 ` covici
2014-05-16 17:41                                                   ` Canek Peláez Valdés
2014-05-16 18:11                                                     ` covici
2014-05-16 18:28                                                       ` Canek Peláez Valdés
2014-05-16 18:33                                                         ` covici
2014-05-16 12:46                                             ` covici
2014-05-16 17:02                                               ` Canek Peláez Valdés
2014-05-15 14:14                                   ` Tom H

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=26096.1400186293@ccs.covici.com \
    --to=covici@ccs.covici.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox