You are not logged in.

#1 2012-11-29 02:02:52

RussianKid
Member
Registered: 2012-05-29
Posts: 10

linux-pf LVM No volumes found

I'm trying to get linux-pf to work, and getting the no volumes found error. I read the other thread on the topic (and obviously googled), and am using lvmwait, this is my grub.cfg boot line:

linux    /vmlinuz-linux-pf lvmwait=/dev/mapper/vgroup-main root=/dev/mapper/vgroup-vmain ro cryptdevice=/dev/sda2:vmain quiet

The initramfs generated with the same mkinitcpio for default kernel boots fine, so I don't think the hook order is to blame.

What could I try from here?

Offline

#2 2012-11-29 02:31:04

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: linux-pf LVM No volumes found

Remove "quiet" so you can see what it is trying to do?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#3 2012-11-29 02:41:52

RussianKid
Member
Registered: 2012-05-29
Posts: 10

Re: linux-pf LVM No volumes found

I removed quiet, and spotted a typo - should have been vgroup-vmain not vgroup-main
Once fixed, I saw that the udev hook runs fine, the encrypt hook runs fine, then the lvm2 hook says waiting 10s for /dev/mapper/vgroup-vmain and never finds it. My current boot line is:

linux    /vmlinuz-linux-pf lvmwait=/dev/mapper/vgroup-vmain root=/dev/mapper/vgroup-vmain ro cryptdevice=/dev/sda2:vmain

Offline

#4 2012-11-29 03:04:33

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: linux-pf LVM No volumes found

You might want to post grub.cfg using [ code] [ /code] tags (less spaces).


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#5 2012-11-29 03:08:11

RussianKid
Member
Registered: 2012-05-29
Posts: 10

Re: linux-pf LVM No volumes found

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if loadfont unicode ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_GB
  insmod gettext
fi
terminal_input console
terminal_output gfxterm
set timeout=10
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch PF' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-true-c5875e02-63ac-4e5f-8796-e4dc36d291c6' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt3'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  b370ccb6-e7ba-4007-9a94-4eeee093e0cf
	else
	  search --no-floppy --fs-uuid --set=root b370ccb6-e7ba-4007-9a94-4eeee093e0cf
	fi
	echo	'Loading Linux core repo kernel ...'
	linux	/vmlinuz-linux-pf lvmwait=/dev/mapper/vgroup-vmain root=/dev/mapper/vgroup-vmain ro cryptdevice=/dev/sda2:vmain
	echo	'Loading initial ramdisk ...'
	initrd	/initramfs-linux-pf.img
}
menuentry 'Arch GNU/Linux, with Linux core repo kernel' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-true-c5875e02-63ac-4e5f-8796-e4dc36d291c6' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt3'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  b370ccb6-e7ba-4007-9a94-4eeee093e0cf
	else
	  search --no-floppy --fs-uuid --set=root b370ccb6-e7ba-4007-9a94-4eeee093e0cf
	fi
	echo	'Loading Linux core repo kernel ...'
	linux	/vmlinuz-linux root=/dev/mapper/vgroup-vmain ro cryptdevice=/dev/sda2:vmain quiet
	echo	'Loading initial ramdisk ...'
	initrd	/initramfs-linux.img
}
menuentry 'Arch PF Fallback' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-true-c5875e02-63ac-4e5f-8796-e4dc36d291c6' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt3'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  b370ccb6-e7ba-4007-9a94-4eeee093e0cf
	else
	  search --no-floppy --fs-uuid --set=root b370ccb6-e7ba-4007-9a94-4eeee093e0cf
	fi
	echo	'Loading Linux core repo kernel ...'
	linux	/vmlinuz-linux-pf lvmwait=/dev/mapper/vgroup-vmain root=/dev/mapper/vgroup-vmain ro cryptdevice=/dev/sda2:vmain quiet
	echo	'Loading initial ramdisk ...'
	initrd	/initramfs-linux-pf-fallback.img
}
menuentry 'Arch GNU/Linux, with Linux core repo kernel (Fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-fallback-c5875e02-63ac-4e5f-8796-e4dc36d291c6' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt3'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  b370ccb6-e7ba-4007-9a94-4eeee093e0cf
	else
	  search --no-floppy --fs-uuid --set=root b370ccb6-e7ba-4007-9a94-4eeee093e0cf
	fi
	echo	'Loading Linux core repo kernel ...'
	linux	/vmlinuz-linux root=/dev/mapper/vgroup-vmain ro cryptdevice=/dev/sda2:vmain quiet
	echo	'Loading initial ramdisk ...'
	initrd	/initramfs-linux-fallback.img
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

I also tried the patch for the lvm2 hook on the 2nd page of the other thread, but I realized it didn't change anything because it fixes the issue where /etc/lvm doesn't exist, and in my case it does exist, so the hook just called vgscan twice.

Last edited by RussianKid (2012-11-29 03:10:30)

Offline

Board footer

Powered by FluxBB