View previous topic :: View next topic |
Author |
Message |
AchilleTalon Guru
Joined: 11 Apr 2004 Posts: 368 Location: Montreal, Quebec, Canada
|
Posted: Wed Sep 03, 2014 8:43 pm Post subject: [SOLVED] lvm2 and systemd thrown in rescue shell after ... |
|
|
I've just updated LVM2 to sys-fs/lvm2-2.02.109 and since then, when I am booting systemd isn't capable to activate other volume groups than the first in the volume_list list. I am thrown in the rescue mode and I just issue a vgchange -a y myvg and everything is activated properly the filesystems are fsck'd and mounted and systemctl default continue to boot and everything seems fine.
Why am I thrown in the rescue mode and why systemd isn't capable to activate the other VGs?
/etc/lvm/lvm.conf:
Code: | config {
checks = 1
abort_on_errors = 0
profile_dir = "/etc/lvm/profile"
}
devices {
dir = "/dev"
scan = [ "/dev" ]
obtain_device_list_from_udev = 1
preferred_names = [ ]
filter = [ "r|/dev/nbd.*|", "a/.*/" ]
cache_dir = "/etc/lvm/cache"
cache_file_prefix = ""
write_cache_state = 1
sysfs_scan = 1
multipath_component_detection = 1
md_component_detection = 1
md_chunk_alignment = 1
data_alignment_detection = 1
data_alignment = 0
data_alignment_offset_detection = 1
ignore_suspended_devices = 0
ignore_lvm_mirrors = 1
disable_after_error_count = 0
require_restorefile_with_uuid = 1
pv_min_size = 2048
issue_discards = 0
}
allocation {
maximise_cling = 1
use_blkid_wiping = 1
wipe_signatures_when_zeroing_new_lvs = 1
mirror_logs_require_separate_pvs = 0
cache_pool_metadata_require_separate_pvs = 0
thin_pool_metadata_require_separate_pvs = 0
}
log {
verbose = 0
silent = 0
syslog = 1
overwrite = 0
level = 0
indent = 1
command_names = 0
prefix = " "
debug_classes = [ "memory", "devices", "activation", "allocation",
"lvmetad", "metadata", "cache", "locking" ]
}
backup {
backup = 1
backup_dir = "/etc/lvm/backup"
archive = 1
archive_dir = "/etc/lvm/archive"
retain_min = 10
retain_days = 30
}
shell {
history_size = 100
}
global {
umask = 077
test = 0
units = "h"
si_unit_consistency = 1
suffix = 1
activation = 1
fallback_to_lvm1 = 0
proc = "/proc"
locking_type = 1
wait_for_locks = 1
fallback_to_clustered_locking = 1
fallback_to_local_locking = 1
locking_dir = "/run/lock/lvm"
prioritise_write_locks = 1
abort_on_internal_errors = 0
detect_internal_vg_cache_corruption = 0
metadata_read_only = 0
mirror_segtype_default = "raid1"
raid10_segtype_default = "raid10"
use_lvmetad = 1
}
activation {
checks = 0
udev_sync = 1
udev_rules = 1
verify_udev_operations = 0
retry_deactivation = 1
missing_stripe_filler = "error"
use_linear_target = 1
reserved_stack = 64
reserved_memory = 8192
process_priority = -18
volume_list = [ "racinevg", "donneesvg", "bb10vg" ]
raid_region_size = 512
readahead = "auto"
raid_fault_policy = "warn"
mirror_log_fault_policy = "allocate"
mirror_image_fault_policy = "remove"
snapshot_autoextend_threshold = 100
snapshot_autoextend_percent = 20
thin_pool_autoextend_threshold = 100
thin_pool_autoextend_percent = 20
use_mlockall = 0
monitoring = 1
polling_interval = 15
activation_mode = "degraded"
}
metadata {
}
dmeventd {
mirror_library = "libdevmapper-event-lvm2mirror.so"
snapshot_library = "libdevmapper-event-lvm2snapshot.so"
thin_library = "libdevmapper-event-lvm2thin.so"
}
|
In the log (journalctl -xb), here is what I am getting at this point:
Code: | Sep 02 23:23:17 localhost systemd[1]: Job dev-donneesvg-data.device/start timed out.
Sep 02 23:23:17 localhost systemd[1]: Timed out waiting for device dev-donneesvg-data.device.
-- Subject: Unit dev-donneesvg-data.device has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit dev-donneesvg-data.device has failed.
--
-- The result is timeout.
Sep 02 23:23:17 localhost systemd[1]: Dependency failed for /data.
-- Subject: Unit data.mount has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit data.mount has failed.
--
-- The result is dependency.
Sep 02 23:23:17 localhost systemd[1]: Dependency failed for Local File Systems.
-- Subject: Unit local-fs.target has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit local-fs.target has failed.
--
-- The result is dependency.
Sep 02 23:23:17 localhost systemd[1]: Triggering OnFailure= dependencies of local-fs.target.
Sep 02 23:23:17 localhost systemd[1]: Dependency failed for File System Check on /dev/donneesvg/data.
-- Subject: Unit systemd-fsck@dev-donneesvg-data.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit systemd-fsck@dev-donneesvg-data.service has failed.
--
-- The result is dependency.
...
|
And so on for each logical volume in the volume group.
Any hints? _________________ Achille Talon Hop!
Last edited by AchilleTalon on Tue Nov 04, 2014 12:35 am; edited 1 time in total |
|
Back to top |
|
|
sebB l33t
Joined: 02 Mar 2011 Posts: 806 Location: S.O. France
|
Posted: Thu Sep 04, 2014 4:58 pm Post subject: |
|
|
Do you use genkernel to generate your initramfs? |
|
Back to top |
|
|
AchilleTalon Guru
Joined: 11 Apr 2004 Posts: 368 Location: Montreal, Quebec, Canada
|
Posted: Thu Sep 04, 2014 6:21 pm Post subject: |
|
|
No, I use dracut. _________________ Achille Talon Hop! |
|
Back to top |
|
|
AchilleTalon Guru
Joined: 11 Apr 2004 Posts: 368 Location: Montreal, Quebec, Canada
|
Posted: Mon Sep 08, 2014 5:31 pm Post subject: |
|
|
I remade the initramfs image and it didn't change anything. _________________ Achille Talon Hop! |
|
Back to top |
|
|
sebB l33t
Joined: 02 Mar 2011 Posts: 806 Location: S.O. France
|
Posted: Wed Sep 10, 2014 9:56 pm Post subject: |
|
|
Can you post your /boot/grub/grub.cfg |
|
Back to top |
|
|
AchilleTalon Guru
Joined: 11 Apr 2004 Posts: 368 Location: Montreal, Quebec, Canada
|
Posted: Wed Sep 10, 2014 10:30 pm Post subject: |
|
|
Here it is, I am still using grub-0.97
Code: | default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Gentoo Linux 3.14.14-gentoo-nvidia
root (hd0,0)
kernel /boot/kernel-3.14.14-gentoo-nvidia rd.lvm.lv=racinevg/usr resume=UUID=c35105db-706e-4245-a8bb-7061072612e7 root=UUID=b5985a22-efef-4e06-85db-c561266dd955 rootflags=rw,noatime,iocharset=utf8 rootfstype=jfs rd.shell init=/usr/lib/systemd/systemd
initrd /boot/initramfs-3.14.14-gentoo-nvidia.img
|
I must say this was working previously. I didn't change anything in this file. _________________ Achille Talon Hop! |
|
Back to top |
|
|
sebB l33t
Joined: 02 Mar 2011 Posts: 806 Location: S.O. France
|
Posted: Thu Sep 11, 2014 3:31 pm Post subject: |
|
|
Can you try replacing
Code: | rd.lvm.lv=racinevg/usr |
by (I suppose racinevg is the name of your vg)
If this don't work, remove rd.lvm.vg and try adding every lvm you want to mount in your grub
Code: | rd.lvm.lv=racinevg/home rd.lvm.lv=racinevg/usr ... |
Afetr every change remade the initramfs |
|
Back to top |
|
|
AchilleTalon Guru
Joined: 11 Apr 2004 Posts: 368 Location: Montreal, Quebec, Canada
|
Posted: Thu Sep 11, 2014 8:52 pm Post subject: |
|
|
I don't see the point to remake the initramfs after changing the grub configuration, the content of the initramfs does not depends on the content of the grub configuration. Both the grub configuration and the initramfs contents depends on what modules are required, but dracut does not read the grub configuration to make the image. _________________ Achille Talon Hop! |
|
Back to top |
|
|
sebB l33t
Joined: 02 Mar 2011 Posts: 806 Location: S.O. France
|
Posted: Fri Sep 12, 2014 9:34 am Post subject: |
|
|
I confused with genkernel for the initramfs.
Did you try simply replacing what I said?
For some raison, I prefer genkernel-next to dracut. |
|
Back to top |
|
|
AchilleTalon Guru
Joined: 11 Apr 2004 Posts: 368 Location: Montreal, Quebec, Canada
|
Posted: Wed Sep 17, 2014 3:02 pm Post subject: |
|
|
I didn't have time to test your suggestion. However, after rereading it I believe you missed what my problem is. I have no problem to have everything on racinevg, yes it is my root vg, mounted. What is not mounted is the stuff on the other vgs, donneesvg for instance. _________________ Achille Talon Hop! |
|
Back to top |
|
|
AchilleTalon Guru
Joined: 11 Apr 2004 Posts: 368 Location: Montreal, Quebec, Canada
|
Posted: Tue Nov 04, 2014 12:37 am Post subject: |
|
|
sebB wrote: | I confused with genkernel for the initramfs.
Did you try simply replacing what I said?
For some raison, I prefer genkernel-next to dracut. |
Okay, what fixed the problem is adding rd.lvm.vg=racinevg rd.lvm.vg=donneesvg rd.lvm.vg=bb10vg which are my three volume groups.
What I understand now is we have to add all the volume groups we want to be activated at boot time by dracut on the kernel command line using rd.lvm.vg stanza which can be repeated.
THX _________________ Achille Talon Hop! |
|
Back to top |
|
|
|