1 |
Canek Peláez Valdés <caneko@×××××.com> wrote: |
2 |
|
3 |
> On Thu, May 15, 2014 at 4:39 AM, <covici@××××××××××.com> wrote: |
4 |
> > Canek Peláez Valdés <caneko@×××××.com> wrote: |
5 |
> > |
6 |
> >> On Wed, May 14, 2014 at 5:26 PM, <covici@××××××××××.com> wrote: |
7 |
> >> [snip] |
8 |
> >> > |
9 |
> >> > Well, the workaround sort of worked -- it went through the initrd -- I |
10 |
> >> > had debug in the kernel command line, but it did not stop for nothing! |
11 |
> >> > When it went to the real root, however it did not activate any of the |
12 |
> >> > lvm volumes I had except for what I specified in the kernel command |
13 |
> >> > line, causing things not to work well. Also, I noticed that if insisted |
14 |
> >> > on using the predictable network names, even though I have |
15 |
> >> > /etc/udev/rules.d/70-persistent-net.rules and |
16 |
> >> > /etc/udev/rules.d/80-name-slot.rules which work fine in openrc to give |
17 |
> >> > me back my eth* names. So all in all, it was a mess and took me to an |
18 |
> >> > emergency shell and that was the end of that. I did eventually activate |
19 |
> >> > some volumes by lvchange -aay, but obviously that would not work well. |
20 |
> >> |
21 |
> >> OK, I was a little mystified about why dracut-036 worked on my system |
22 |
> >> and 037 didn't. Before I tried any workaround, I wanted to know what |
23 |
> >> changed from the previous version to the current one. |
24 |
> >> |
25 |
> >> So I generated an initramfs with dracut-036-r4 and another one with |
26 |
> >> dracut-037-r1, and I tried to see what changed from one to the other. |
27 |
> >> The answer is surprisingly easy: in /etc/cmdline.d/, the following |
28 |
> >> files where in the 036-r4 version, but not in the 037-r4: |
29 |
> >> |
30 |
> >> 90crypt.conf |
31 |
> >> 90lvm.conf |
32 |
> >> 90mdraid.conf |
33 |
> >> base.conf |
34 |
> >> |
35 |
> >> Te contents of those files are (90crypt.conf is empty): |
36 |
> >> |
37 |
> >> 90lvm.conf |
38 |
> >> rd.lvm.lv=vg/vol1 |
39 |
> >> rd.lvm.lv=vg/vol4 |
40 |
> >> rd.lvm.lv=vg/vol3 |
41 |
> >> |
42 |
> >> 90mdraid.conf |
43 |
> >> rd.md.uuid=f4a59e68:fbe4039f:a39fc86d:e9e91e12 |
44 |
> >> |
45 |
> >> base.conf |
46 |
> >> ro |
47 |
> >> |
48 |
> >> So I just changed my /etc/default/grub file: |
49 |
> >> |
50 |
> >> GRUB_CMDLINE_LINUX="init=/usr/lib/systemd/systemd quiet nosplash |
51 |
> >> rd.lvm.lv=vg/vol1 rd.lvm.lv=vg/vol4 rd.lvm.lv=vg/vol3 |
52 |
> >> rd.md.uuid=f4a59e68:fbe4039f:a39fc86d:e9e91e12" |
53 |
> >> |
54 |
> >> I regenerated my GRUB2 config, and now again my LVM test system works |
55 |
> >> perfectly with the latest dracut version. |
56 |
> >> |
57 |
> >> The thing is, I *ALWAYS* use the -H (host only) option, so it was my |
58 |
> >> understanding that the command line should be automatically generated, |
59 |
> >> and it was on 036, but now it doesn't in 037. I think that's a bug. |
60 |
> >> |
61 |
> >> John, with respect to your case: did you used "dracut --print-cmdline" |
62 |
> >> to get the command line? Also, have you tried to use -H to generate |
63 |
> >> your initramfs? |
64 |
> > |
65 |
> > I did not try the -H, I may test with that later. |
66 |
> > |
67 |
> > |
68 |
> > I did look at the --print-cmdline and copied the volumes they mentioned, |
69 |
> > but I have other lvm volumes in my fstab and none of them were activated, |
70 |
> > only the ones I specified in the command line! This is where I have run |
71 |
> > into problems. I have quite a few lvms, I want them all activated! |
72 |
> |
73 |
> I just have /, /boot, /usr and /home (encrypted) as lvms, but all are activated. |
74 |
> |
75 |
> > Also, since I wrote the last message, I have been looking at the |
76 |
> > journalctl output and discovered a couple of things which I would like |
77 |
> > some help on, but getting the lvms to work is more important. |
78 |
> > |
79 |
> > First, whatever happened to DefaultControllers -- I want to disable |
80 |
> > those cpu hierarchies, but that option seems to have disappeared without |
81 |
> > a trace, although you can google and see it in some documentation. |
82 |
> |
83 |
> That went away with the new cgroup handling that is being coordinated |
84 |
> between systemd and the kernel: |
85 |
> |
86 |
> http://cgit.freedesktop.org/systemd/systemd/commit/?id=7ac807320a7416463d7ff3ef6ede574863a601c5 |
87 |
> |
88 |
> > The keyword also was not accepted in an install section I have, what is |
89 |
> > the matter with that? I want to use my sysklogd for my syslog, how can |
90 |
> > I use that with systemd? |
91 |
> |
92 |
> I think you can do that with systemd.log_target=kmsg in the kernel command line. |
93 |
> |
94 |
> > Thanks so much for all your help on these things. |
95 |
> |
96 |
> John, could you please include here the output of lsblk, your fstab, |
97 |
> your dracut.conf, and your lilo.conf? |
98 |
|
99 |
output of lsblk: |
100 |
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT |
101 |
sda 8:0 0 931.5G 0 disk |
102 |
├─sda1 8:1 0 3G 0 part /boot |
103 |
├─sda2 8:2 0 1000M 0 part /mnt/oldgentoo |
104 |
└─sda3 8:3 0 927.6G 0 part |
105 |
├─linux--files-64--root 253:0 0 3G 0 lvm / |
106 |
├─linux--files-swap 253:1 0 2G 0 lvm [SWAP] |
107 |
├─linux--files-64--usr 253:2 0 65G 0 lvm /usr |
108 |
├─linux--files-usr--src 253:3 0 35G 0 lvm /usr/src |
109 |
├─linux--files-tmp 253:4 0 10G 0 lvm /tmp |
110 |
├─linux--files-64--var 253:5 0 20G 0 lvm /var |
111 |
├─linux--files-home 253:6 0 30G 0 lvm /home |
112 |
├─linux--files-audio 253:7 0 990G 0 lvm /audio |
113 |
├─linux--files-usr--bbs 253:8 0 256M 0 lvm /usr/bbs |
114 |
├─linux--files-hard2 253:9 0 704M 0 lvm /hard2 |
115 |
├─linux--files-scratch 253:10 0 1G 0 lvm /mnt/scratch |
116 |
├─linux--files-var 253:11 0 8G 0 lvm /mnt/oldgentoo/var |
117 |
└─linux--files-usr 253:12 0 25G 0 lvm /mnt/oldgentoo/usr |
118 |
sdb 8:16 0 931.5G 0 disk |
119 |
└─sdb1 8:17 0 931.5G 0 part |
120 |
├─linux--files-64--root 253:0 0 3G 0 lvm / |
121 |
├─linux--files-64--usr 253:2 0 65G 0 lvm /usr |
122 |
├─linux--files-usr--src 253:3 0 35G 0 lvm /usr/src |
123 |
├─linux--files-64--var 253:5 0 20G 0 lvm /var |
124 |
├─linux--files-audio 253:7 0 990G 0 lvm /audio |
125 |
└─linux--files-portage 253:13 0 25G 0 lvm /var/tmp/portage |
126 |
sdc 8:32 0 2.7T 0 disk |
127 |
└─sdc1 8:33 0 2.7T 0 part |
128 |
└─backup--files-ccs--backups 253:14 0 2.7T 0 lvm |
129 |
sr0 11:0 1 1024M 0 rom |
130 |
|
131 |
my fstab: |
132 |
# /etc/fstab: static file system information. |
133 |
# |
134 |
# noatime turns off atimes for increased performance (atimes normally aren't |
135 |
# needed; notail increases performance of ReiserFS (at the expense of storage |
136 |
# efficiency). It's safe to drop the noatime options if you want and to |
137 |
# switch between notail / tail freely. |
138 |
# |
139 |
# The root filesystem should have a pass number of either 0 or 1. |
140 |
# All other filesystems should have a pass number of 0 or greater than 1. |
141 |
# |
142 |
# See the manpage fstab(5) for more information. |
143 |
# |
144 |
|
145 |
# <fs> <mountpoint> <type> <opts> <dump/pass> |
146 |
|
147 |
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts. |
148 |
#/dev/BOOT /boot ext2 noauto,noatime 1 2 |
149 |
/dev/mapper/linux--files-64--root / ext4 defaults 0 1 |
150 |
/dev/sda1 /boot ext4 defaults 0 1 |
151 |
/dev/mapper/linux--files-swap none swap sw 0 0 |
152 |
#/dev/fd0 /mnt/floppy auto noauto 0 0 |
153 |
|
154 |
# NOTE: The next line is critical for boot! |
155 |
proc /proc proc defaults 0 0 |
156 |
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for |
157 |
# POSIX shared memory (shm_open, shm_unlink). |
158 |
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will |
159 |
# use almost no memory if not populated with files) |
160 |
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0 |
161 |
/dev/mapper/linux--files-64--usr /usr ext4 defaults 0 2 |
162 |
/dev/mapper/linux--files-usr--src /usr/src ext4 defaults 0 2 |
163 |
/dev/mapper/linux--files-tmp /tmp ext4 defaults,nodev,nosuid,noexec 0 2 |
164 |
/dev/mapper/linux--files-64--var /var ext4 defaults 0 3 |
165 |
/dev/mapper/linux--files-portage /var/tmp/portage ext4 defaults 0 3 |
166 |
/dev/mapper/linux--files-home /home ext4 defaults 0 3 |
167 |
/dev/mapper/linux--files-audio /audio ext4 defaults 0 3 |
168 |
/dev/mapper/linux--files-usr--bbs /usr/bbs ext4 defaults 0 3 |
169 |
/dev/mapper/linux--files-hard2 /hard2 ext4 defaults 0 3 |
170 |
/dev/cdrom /mnt/cdrom auto noauto,user 0 0 |
171 |
/dev/mapper/linux--files-scratch /mnt/scratch ext4 defaults 0 3 |
172 |
|
173 |
/dev/sda2 /mnt/oldgentoo ext4 defaults 0 3 |
174 |
/dev/mapper/linux--files-usr /mnt/oldgentoo/usr ext3 defaults 0 3 |
175 |
/dev/mapper/linux--files-var /mnt/oldgentoo/var ext4 defaults 0 3 |
176 |
|
177 |
the dracut.conf: |
178 |
|
179 |
# PUT YOUR CONFIG HERE OR IN separate files named *.conf |
180 |
# in /etc/dracut.conf.d |
181 |
# SEE man dracut.conf(5) |
182 |
|
183 |
# Sample dracut config file |
184 |
|
185 |
#logfile=/var/log/dracut.log |
186 |
#fileloglvl=6 |
187 |
|
188 |
# Exact list of dracut modules to use. Modules not listed here are not going |
189 |
# to be included. If you only want to add some optional modules use |
190 |
# add_dracutmodules option instead. |
191 |
#dracutmodules+="" |
192 |
|
193 |
# dracut modules to omit |
194 |
#omit_dracutmodules+="" |
195 |
|
196 |
# dracut modules to add to the default |
197 |
#add_dracutmodules+="" |
198 |
|
199 |
# additional kernel modules to the default |
200 |
#add_drivers+="" |
201 |
|
202 |
# list of kernel filesystem modules to be included in the generic initramfs |
203 |
#filesystems+="" |
204 |
|
205 |
# build initrd only to boot current hardware |
206 |
#hostonly="yes" |
207 |
# |
208 |
|
209 |
# install local /etc/mdadm.conf |
210 |
#mdadmconf="no" |
211 |
|
212 |
# install local /etc/lvm/lvm.conf |
213 |
#lvmconf="no" |
214 |
|
215 |
# A list of fsck tools to install. If it's not specified, module's hardcoded |
216 |
# default is used, currently: "umount mount /sbin/fsck* xfs_db xfs_check |
217 |
# xfs_repair e2fsck jfs_fsck reiserfsck btrfsck". The installation is |
218 |
# opportunistic, so non-existing tools are just ignored. |
219 |
#fscks="" |
220 |
|
221 |
# inhibit installation of any fsck tools |
222 |
#nofscks="yes" |
223 |
|
224 |
# mount / and /usr read-only by default |
225 |
#ro_mnt="no" |
226 |
|
227 |
# set the directory for temporary files |
228 |
# default: /var/tmp |
229 |
#tmpdir=/tmp |
230 |
use_fstab=yes |
231 |
|
232 |
add_dracutmodules+="lvm" |
233 |
install_items+="/etc/udev/rules.d/70-persistent-net.rules /etc/udev/rules.d/80-net-name-slot.rules" |
234 |
|
235 |
|
236 |
|
237 |
the section of the lilo.conf: |
238 |
image=/boot/vmlinuz-3.6.2-gentoo |
239 |
label=3.6.2-systemd |
240 |
read-only |
241 |
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" |
242 |
initrd=/boot/initramfs-3.6.2-gentoo.img |
243 |
|
244 |
|
245 |
-- |
246 |
Your life is like a penny. You're going to lose it. The question is: |
247 |
How do |
248 |
you spend it? |
249 |
|
250 |
John Covici |
251 |
covici@××××××××××.com |