Re: root file system not found on LVM with Ubuntu "jammy" build

2022-08-19 Diskussionsfäden Thomas Lange
> On Fri, 19 Aug 2022 06:13:09 -0700, fai524-f...@lewenberg.com said:

> On 8/19/2022 12:31 AM, Thomas Lange wrote:
>>> On Fri, 19 Aug 2022 00:09:52 -0700, fai524-f...@lewenberg.com said:
>> 
>> > The server builds but the first boot after imaging drops the system to
>> > the initramfs prompt due to a missing /dev/mapper/vg0-root file system.
>> Maybe you forgot to install the package lvm2.
>> 

> That was the issue.
Fince. You should have this error message in fai.log and error.log,
since FAI checks in scripts/LAST/50-misc if you use a lvm device and
have added the lvm2 package:

  ERROR: Found lvm devices, but the lvm2 package was not installed


P.S.: I'm always very interested in user experiences with FAI. Can you
please fill out the FAI questionnaire
https://fai-project.org/questionnaire and send it back to me when you
finished a project with FAI.

-- 
regards Thomas


Re: root file system not found on LVM with Ubuntu "jammy" build

2022-08-19 Diskussionsfäden fai524-full

On 8/19/2022 12:31 AM, Thomas Lange wrote:

On Fri, 19 Aug 2022 00:09:52 -0700, fai524-f...@lewenberg.com said:


 > The server builds but the first boot after imaging drops the system to
 > the initramfs prompt due to a missing /dev/mapper/vg0-root file system.
Maybe you forgot to install the package lvm2.



That was the issue.

I tried to do a "chroot /target apt-get install lvm2" before reboot but 
that did not seem to solve the problem. So I changed the package_config 
to install lvm2 during build and that fixed it.


Re: root file system not found on LVM with Ubuntu "jammy" build

2022-08-19 Diskussionsfäden Thomas Lange
> On Fri, 19 Aug 2022 00:09:52 -0700, fai524-f...@lewenberg.com said:

> The server builds but the first boot after imaging drops the system to 
> the initramfs prompt due to a missing /dev/mapper/vg0-root file system.
Maybe you forgot to install the package lvm2.

-- 
regards Thomas


root file system not found on LVM with Ubuntu "jammy" build

2022-08-19 Diskussionsfäden fai524-full

I am attempting to build an Ubuntu "jammy" VM using FAI version 5.10.3.

The disk configuration is
##        ##
disk_config disk1 align-at:4k fstabkey:uuid
primary /boot  512   ext4  rw,noatime
primary -  4096- - -

disk_config lvm
vg vg0  sda2
vg0-root   / 6G-  ext4 
defaults,acl,noatime,errors=remount-ro

vg0-afs/var/cache/openafs   4096  ext4  defaults,noatime
vg0-swap   /swapRAM:100%  swap sw
##        ##

The server builds but the first boot after imaging drops the system to 
the initramfs prompt due to a missing /dev/mapper/vg0-root file system.



Begin: Waiting for the root file system ... Running /scripts/local-block ...
done.
done.
Gave up waiting for root file system device. Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT! /dev/mapper/vg0-root does not exist. Dropping to a shell!