Grub errors on new server not loading disk Debian 11
I have been trying to migrate my web-servers and SSL certs to a new Linode instance. I'm having some problems with booting.
Sometimes when I reboot with the console it does so incorrectly and all I see in the lish console is (initramfs) I assume because the disk is not loading correctly. The only solution is to use the reboot button in the Linode control panel, which is undesirable.
Please help as I've never had this issue before.
2 Replies
This is what I see in the lish console even after a reboot from the Linode control panel button:
[ 1.779998] ata1: SATA link down (SStatus 0 SControl 300)
[ 1.781159] ata5: SATA link down (SStatus 0 SControl 300)
[ 1.782234] ata2: SATA link down (SStatus 0 SControl 300)
[ 1.783301] ata4: SATA link down (SStatus 0 SControl 300)
[ 1.784426] ata3: SATA link down (SStatus 0 SControl 300)
[ 1.785427] ata6: SATA link down (SStatus 0 SControl 300)
[ 1.793939] sd 7:0:1:2: Power-on or device reset occurred
[ 1.794976] sd 0:0:0:0: Power-on or device reset occurred
[ 1.795447] sd 7:0:1:2: [sda] 1048576 512-byte logical blocks: (537 MB/512 M)
[ 1.796620] sd 0:0:0:0: [sdb] 334495744 512-byte logical blocks: (171 GB/160)
[ 1.797951] sd 7:0:1:2: [sda] Write Protect is off
[ 1.799232] sd 0:0:0:0: [sdb] Write Protect is off
[ 1.800248] sd 7:0:1:2: [sda] Write cache: enabled, read cache: enabled, doeA
[ 1.802649] sd 0:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doeA
[ 1.844497] sd 7:0:1:2: [sda] Attached SCSI disk
[ 1.852476] sd 0:0:0:0: [sdb] Attached SCSI disk
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.36.1
done.
mount: mounting /dev/sda on /root failed: No such device
Failed to mount /dev/sda as root file system.
BusyBox v1.30.1 (Debian 1:1.30.1-6+b3) built-in shell (ash)
Enter 'help' for a list of built-in commands.
(initramfs)
You need to manually add scsi_mod.scan=sync
to GRUB_CMDLINE_LINUX
in /etc/default/grub.
root@linode-sgp-n1:~# grep scsi /etc/default/grub
GRUB_CMDLINE_LINUX="console=ttyS0,19200n8 net.ifnames=0 scsi_mod.scan=sync zswap.enabled=1 zswap.compressor=lz4 zswap.max_pool_percent=25 zswap.zpool=z3fold"
PS: This question has been asked more than once, and it's strange that Linode still doesn't have this as the default value for the system template.