I'm setting up a new Ubuntu 18.04 server and have already played through one backup/restore loop. So the entire system has been restored from backup with a fresh RAID and LVM volumes.
Now recently, unattended-upgrades has reported this:
Processing triggers for initramfs-tools (0.130ubuntu3.8) ...
update-initramfs: Generating /boot/initrd.img-4.15.0-66-generic
I: The initramfs will attempt to resume from /dev/dm-1
I: (/dev/mapper/vg0-swap)
I: Set the RESUME variable to override this.
I tried to find out what that actually means but wasn't successful. What is it resuming there? Some process of generating boot files? I know it can take a while do do that. Does it have to do with the RAID? That is long finished with its resync. I don't get it. And what's actually wrong? What does that message want me to do? I'm clueless. If I don't need it, how can I make it go away?
The server did reboot successfully twice after that message so it can't be important. (If that "I" was supposed to mean something like that.)
Here's some commands if that helps:
> lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
root vg0 -wi-ao---- 400.00g
swap vg0 -wi-ao---- 8.00g
> cat /proc/mdstat
Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10]
md1 : active raid1 nvme1n1p2[0] nvme0n1p2[1]
499449152 blocks super 1.2 [2/2] [UU]
bitmap: 1/4 pages [4KB], 65536KB chunk
md0 : active raid1 nvme0n1p1[1] nvme1n1p1[0]
523264 blocks super 1.2 [2/2] [UU]
unused devices: <none>
I can't find a good command to show something about these "dm-0" and "dm-1" devices that are also related to the RAID I guess.
/dev/mapper/kubuntu--vg-swap_1
toUUID="5a69d76a-90b4-4908-9eff-10a144b10b4c"
but I still get the same message. – Paul Tomblin Aug 31 '20 at 15:20apt update
andapt upgrade
after logging in. During the first cycle, I paid no attention to the initramfs message mentioned in the question. After a reboot, the system couldn’t boot and I didn’t manage to recover the installation. Upon the second cycle, before rebooting, I followed these and only these steps and now everything seems to be in order. Thank you. – kleinfreund Sep 11 '20 at 15:32/etc/fstab
as/dev/mapper/ubuntu--vg-swap_1
and/proc/swaps
shows/dev/dm-1
. There commandupdate-initramfs
was giving me this error. Thing is,/dev/ubuntu-vg/swap_1
actually points to/dev/dm-1
we can check with$ ls -l /dev/ubuntu-vg/swap_1
. In any case, I edited the file/etc/initramfs-tools/conf.d/resume
as suggested and it worked. Thanks! – Daniel Nov 11 '21 at 21:57$ swapon -s Filename Type Size Used Priority /dev/sda7 partition 7811068 436228 -2
/dev/sda7: UUID="745db9a2-89f1-4c7d-8da9-b57828d2725d" TYPE="swap" PARTUUID="2a0fce6c-07"
`cat /etc/fstab | grep swap
swap was on /dev/sda7 during installation
UUID=745db9a2-89f1-4c7d-8da9-b57828d2725d none swap sw 0 0`
What else could I do, please?
– udippel Jul 24 '22 at 12:15/etc/initramfs-tools/conf.d/resume
and I am pretty much sure that it wasn't me to remove it. So I added this file, and the messages went away. – udippel Jul 24 '22 at 14:12