Host boot up take very long time

zhkong

New Member
Nov 14, 2022
2
0
1
When the system boots, it spends a long time at the "initial ramdisk" screen.


Bash:
#systemd-analyze time

Startup finished in 10.655s (firmware) + 5.452s (loader) + 1min 56.919s (kernel) + 12.402s (userspace) = 2min 25.430s
graphical.target reached after 12.328s in userspace

Bash:
#cat /etc/default/grub

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="iommu=on iommu=pt"
GRUB_CMDLINE_LINUX=""


Code:
#demsg
......
[    2.689230] sd 3:0:0:0: Attached scsi generic sg1 type 0
[    2.689299] sd 3:0:0:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[    2.689303] sd 3:0:0:0: [sdb] 4096-byte physical blocks
[    2.689309] sd 3:0:0:0: [sdb] Write Protect is off
[    2.689312] sd 3:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[    2.689321] sd 3:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.704158]  sdb: sdb1 sdb2 sdb3 sdb4
[    2.718798] sd 3:0:0:0: [sdb] supports TCG Opal
[    2.718801] sd 3:0:0:0: [sdb] Attached SCSI disk
[    2.888828] usb 1-8: New USB device found, idVendor=1462, idProduct=7c94, bcdDevice= 0.01
[    2.888833] usb 1-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.888835] usb 1-8: Product: MYSTIC LIGHT
[    2.888837] usb 1-8: Manufacturer: MSI
[    2.888838] usb 1-8: SerialNumber: A02021090806
[    2.978638] usb 1-4.3: new full-speed USB device number 6 using xhci_hcd
[    3.001012] ata5: SATA link down (SStatus 0 SControl 330)
[    3.313018] ata6: SATA link down (SStatus 0 SControl 330)
[    3.313779] r8169 0000:2a:00.0: enabling device (0000 -> 0003)
[    3.316616] hid: raw HID events driver (C) Jiri Kosina
[    3.328005] usb 1-4.3: New USB device found, idVendor=05ac, idProduct=024f, bcdDevice= 0.02
[    3.328011] usb 1-4.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.328014] usb 1-4.3: Product: 2.4G Wireless Device
[    3.328016] usb 1-4.3: Manufacturer: RONGYUAN
[    3.328018] usb 1-4.3: SerialNumber: 00000000011C
[    3.328337] r8169 0000:2a:00.0 eth0: RTL8125B, d8:bb:c1:a5:74:5b, XID 641, IRQ 102
[    3.328340] r8169 0000:2a:00.0 eth0: jumbo features [frames: 9194 bytes, tx checksumming: ko]
[    3.328862] r8169 0000:2a:00.0 enp42s0: renamed from eth0
[    3.482580] usbcore: registered new interface driver usbhid
[    3.482586] usbhid: USB HID core driver
[    3.482984] usbcore: registered new interface driver usbkbd
[    3.482988] usbcore: registered new interface driver usbmouse
[    3.483313] input: Logitech USB Receiver as /devices/pci0000:00/0000:00:01.2/0000:05:00.0/usb1/1-4/1-4.1/1-4.1:1.0/0003:046D:C52B.0003/input/input2
[    3.542693] hid-generic 0003:046D:C52B.0003: input,hidraw0: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-0000:05:00.0-4.1/input0
[    3.542786] input: Logitech USB Receiver Mouse as /devices/pci0000:00/0000:00:01.2/0000:05:00.0/usb1/1-4/1-4.1/1-4.1:1.1/0003:046D:C52B.0004/input/input3
[    3.542839] input: Logitech USB Receiver Consumer Control as /devices/pci0000:00/0000:00:01.2/0000:05:00.0/usb1/1-4/1-4.1/1-4.1:1.1/0003:046D:C52B.0004/input/input4
[    3.602682] input: Logitech USB Receiver System Control as /devices/pci0000:00/0000:00:01.2/0000:05:00.0/usb1/1-4/1-4.1/1-4.1:1.1/0003:046D:C52B.0004/input/input5
[    3.602739] hid-generic 0003:046D:C52B.0004: input,hiddev0,hidraw1: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-0000:05:00.0-4.1/input1
[    3.602813] hid-generic 0003:046D:C52B.0005: hiddev1,hidraw2: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:05:00.0-4.1/input2
[    3.602881] input: MSI MYSTIC LIGHT  as /devices/pci0000:00/0000:00:01.2/0000:05:00.0/usb1/1-8/1-8:1.0/0003:1462:7C94.0006/input/input7
[    3.602919] hid-generic 0003:1462:7C94.0006: input,hiddev2,hidraw3: USB HID v1.10 Device [MSI MYSTIC LIGHT ] on usb-0000:05:00.0-8/input0
[    3.603346] input: RONGYUAN 2.4G Wireless Device as /devices/pci0000:00/0000:00:01.2/0000:05:00.0/usb1/1-4/1-4.3/1-4.3:1.0/0003:05AC:024F.0001/input/input8
[    3.718695] apple 0003:05AC:024F.0001: input,hidraw0: USB HID v1.11 Keyboard [RONGYUAN 2.4G Wireless Device] on usb-0000:05:00.0-4.3/input0
[    3.718789] apple 0003:05AC:024F.0002: Fn key not found (Apple Wireless Keyboard clone?), disabling Fn key handling
[    3.718815] input: RONGYUAN 2.4G Wireless Device as /devices/pci0000:00/0000:00:01.2/0000:05:00.0/usb1/1-4/1-4.3/1-4.3:1.1/0003:05AC:024F.0002/input/input9
[    3.818698] apple 0003:05AC:024F.0002: input,hiddev3,hidraw4: USB HID v1.11 Keyboard [RONGYUAN 2.4G Wireless Device] on usb-0000:05:00.0-4.3/input1
[    3.818851] logitech-djreceiver 0003:046D:C52B.0005: hiddev1,hidraw2: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:05:00.0-4.1/input2
[    3.949548] input: Logitech Wireless Device PID:406b Keyboard as /devices/pci0000:00/0000:00:01.2/0000:05:00.0/usb1/1-4/1-4.1/1-4.1:1.2/0003:046D:C52B.0005/0003:046D:406B.0007/input/input10
[    3.958695] input: Logitech Wireless Device PID:406b Mouse as /devices/pci0000:00/0000:00:01.2/0000:05:00.0/usb1/1-4/1-4.1/1-4.1:1.2/0003:046D:C52B.0005/0003:046D:406B.0007/input/input11
[    3.958750] hid-generic 0003:046D:406B.0007: input,hidraw5: USB HID v1.11 Keyboard [Logitech Wireless Device PID:406b] on usb-0000:05:00.0-4.1/input2:1
[    4.132082] input: Logitech M585/M590 as /devices/pci0000:00/0000:00:01.2/0000:05:00.0/usb1/1-4/1-4.1/1-4.1:1.2/0003:046D:C52B.0005/0003:046D:406B.0007/input/input15
[    4.132129] logitech-hidpp-device 0003:046D:406B.0007: input,hidraw1: USB HID v1.11 Keyboard [Logitech M585/M590] on usb-0000:05:00.0-4.1/input2:1
[  115.884152] simple-framebuffer simple-framebuffer.0: framebuffer at 0xd0000000, 0x300000 bytes
[  115.884157] simple-framebuffer simple-framebuffer.0: format=a8r8g8b8, mode=1024x768x32, linelength=4096
[  115.884219] Console: switching to colour frame buffer device 128x48
[  115.884819] simple-framebuffer simple-framebuffer.0: fb0: simplefb registered!
[  116.142670] raid6: avx2x4   gen() 43233 MB/s
[  116.210670] raid6: avx2x4   xor()  7232 MB/s
[  116.278625] raid6: avx2x2   gen() 43278 MB/s
[  116.346624] raid6: avx2x2   xor() 40209 MB/s
[  116.414615] raid6: avx2x1   gen() 33379 MB/s
[  116.482624] raid6: avx2x1   xor() 38310 MB/s
[  116.550624] raid6: sse2x4   gen() 25801 MB/s
[  116.618626] raid6: sse2x4   xor()  3897 MB/s
[  116.686626] raid6: sse2x2   gen() 23913 MB/s
[  116.754671] raid6: sse2x2   xor() 22369 MB/s
[  116.822626] raid6: sse2x1   gen()  1356 MB/s
[  116.890668] raid6: sse2x1   xor() 20258 MB/s
[  116.890675] raid6: using algorithm avx2x2 gen() 43278 MB/s
[  116.890998] raid6: .... xor() 40209 MB/s, rmw enabled
[  116.891315] raid6: using avx2x2 recovery algorithm
[  116.892011] xor: automatically using best checksumming function   avx
[  116.899668] Btrfs loaded, crc32c=crc32c-intel, zoned=yes, fsverity=yes
[  117.017964] EXT4-fs (dm-3): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
[  117.091622] systemd[1]: Inserted module 'autofs4'
[  117.101477] systemd[1]: systemd 247.3-7+1-pmx11u1 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=unified)

......

Code:
#lsblk

NAME                               MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda                                  8:0    0   1.8T  0 disk
├─Extend--HDD-Extend--HDD_tmeta    253:6    0  15.8G  0 lvm
│ └─Extend--HDD-Extend--HDD-tpool  253:22   0   1.8T  0 lvm
│   ├─Extend--HDD-Extend--HDD      253:23   0   1.8T  1 lvm
│   ├─Extend--HDD-vm--900--disk--0 253:24   0   600G  0 lvm
│   └─Extend--HDD-vm--900--disk--1 253:25   0   100G  0 lvm
└─Extend--HDD-Extend--HDD_tdata    253:7    0   1.8T  0 lvm
  └─Extend--HDD-Extend--HDD-tpool  253:22   0   1.8T  0 lvm
    ├─Extend--HDD-Extend--HDD      253:23   0   1.8T  1 lvm
    ├─Extend--HDD-vm--900--disk--0 253:24   0   600G  0 lvm
    └─Extend--HDD-vm--900--disk--1 253:25   0   100G  0 lvm
sdb                                  8:16   0 931.5G  0 disk
├─sdb1                               8:17   0   100M  0 part
├─sdb2                               8:18   0    16M  0 part
├─sdb3                               8:19   0 930.7G  0 part
└─sdb4                               8:20   0   713M  0 part
nvme1n1                            259:0    0   1.8T  0 disk
├─KIOXIA-KIOXIA_tmeta              253:0    0  15.8G  0 lvm
│ └─KIOXIA-KIOXIA-tpool            253:19   0   1.8T  0 lvm
│   ├─KIOXIA-KIOXIA                253:20   0   1.8T  1 lvm
│   └─KIOXIA-vm--902--disk--0      253:21   0   500G  0 lvm
└─KIOXIA-KIOXIA_tdata              253:1    0   1.8T  0 lvm
  └─KIOXIA-KIOXIA-tpool            253:19   0   1.8T  0 lvm
    ├─KIOXIA-KIOXIA                253:20   0   1.8T  1 lvm
    └─KIOXIA-vm--902--disk--0      253:21   0   500G  0 lvm
nvme0n1                            259:1    0 931.5G  0 disk
├─nvme0n1p1                        259:2    0  1007K  0 part
├─nvme0n1p2                        259:3    0   512M  0 part /boot/efi
└─nvme0n1p3                        259:4    0   931G  0 part
  ├─pve-swap                       253:2    0     8G  0 lvm  [SWAP]
  ├─pve-root                       253:3    0    96G  0 lvm  /
  ├─pve-data_tmeta                 253:4    0   8.1G  0 lvm
  │ └─pve-data-tpool               253:8    0 794.8G  0 lvm
  │   ├─pve-data                   253:9    0 794.8G  1 lvm
  │   ├─pve-vm--900--disk--0       253:10   0    15G  0 lvm
  │   ├─pve-vm--902--disk--0       253:11   0     8G  0 lvm
  │   ├─pve-vm--102--disk--0       253:12   0     4M  0 lvm
  │   ├─pve-vm--102--disk--1       253:13   0    12G  0 lvm
  │   ├─pve-vm--100--disk--0       253:14   0     4M  0 lvm
  │   ├─pve-vm--100--disk--1       253:15   0     4M  0 lvm
  │   ├─pve-vm--101--disk--0       253:16   0     4M  0 lvm
  │   ├─pve-vm--101--disk--1       253:17   0    64G  0 lvm
  │   └─pve-vm--901--disk--0       253:18   0    15G  0 lvm
  └─pve-data_tdata                 253:5    0 794.8G  0 lvm
    └─pve-data-tpool               253:8    0 794.8G  0 lvm
      ├─pve-data                   253:9    0 794.8G  1 lvm
      ├─pve-vm--900--disk--0       253:10   0    15G  0 lvm
      ├─pve-vm--902--disk--0       253:11   0     8G  0 lvm
      ├─pve-vm--102--disk--0       253:12   0     4M  0 lvm
      ├─pve-vm--102--disk--1       253:13   0    12G  0 lvm
      ├─pve-vm--100--disk--0       253:14   0     4M  0 lvm
      ├─pve-vm--100--disk--1       253:15   0     4M  0 lvm
      ├─pve-vm--101--disk--0       253:16   0     4M  0 lvm
      ├─pve-vm--101--disk--1       253:17   0    64G  0 lvm
      └─pve-vm--901--disk--0       253:18   0    15G  0 lvm

I'm sorry for my poor English, but I'm very distressed now, can someone please help me out? Thank you so much!

All the "dmesg" and "lsblk -f" massage are in the attachment below.
 

Attachments

Last edited:
Hello,

May you also post the output of pveversion -v?

Have you tried to boot from old pve-kernel?
 
Hello,

May you also post the output of pveversion -v?

Have you tried to boot from old pve-kernel?
I have tried using older kernels and 6.2 kernels, but still have the same problem.

Code:
uname -r

5.15.102-1-pve
Code:
pveversion -v

proxmox-ve: 7.3-1 (running kernel: 5.15.102-1-pve)
pve-manager: 7.4-3 (running version: 7.4-3/9002ab8a)
pve-kernel-helper: 7.3-6
pve-kernel-5.15: 7.3-3
pve-kernel-5.15.102-1-pve: 5.15.102-1
pve-kernel-5.15.74-1-pve: 5.15.74-1
ceph-fuse: 15.2.17-pve1
corosync: 3.1.7-pve1
criu: 3.15-1+pve-1
glusterfs-client: 9.2-1
ifupdown2: 3.1.0-1+pmx3
ksm-control-daemon: 1.4-1
libjs-extjs: 7.0.0-1
libknet1: 1.24-pve2
libproxmox-acme-perl: 1.4.4
libproxmox-backup-qemu0: 1.3.1-1
libproxmox-rs-perl: 0.2.1
libpve-access-control: 7.4-2
libpve-apiclient-perl: 3.2-1
libpve-common-perl: 7.3-4
libpve-guest-common-perl: 4.2-4
libpve-http-server-perl: 4.2-1
libpve-rs-perl: 0.7.5
libpve-storage-perl: 7.4-2
libspice-server1: 0.14.3-2.1
lvm2: 2.03.11-2.1
lxc-pve: 5.0.2-2
lxcfs: 5.0.3-pve1
novnc-pve: 1.4.0-1
proxmox-backup-client: 2.4.1-1
proxmox-backup-file-restore: 2.4.1-1
proxmox-mail-forward: 0.1.1-1
proxmox-mini-journalreader: 1.3-1
proxmox-widget-toolkit: 3.6.5
pve-cluster: 7.3-3
pve-container: 4.4-3
pve-docs: 7.4-2
pve-edk2-firmware: 3.20230228-1
pve-firewall: 4.3-1
pve-firmware: 3.6-4
pve-ha-manager: 3.6.0
pve-i18n: 2.12-1
pve-qemu-kvm: 7.2.0-8
pve-xtermjs: 4.16.0-1
qemu-server: 7.4-3
smartmontools: 7.2-pve3
spiceterm: 3.2-2
swtpm: 0.8.0~bpo11+3
vncterm: 1.7-1
zfsutils-linux: 2.1.9-pve1