Possible Kernel crash

WpnENwBmpprLocDqz

New Member
Jul 14, 2024
5
0
1
I am having a Proxmox server crash for once a week, bi-week or so, started a month ago. The vms and the host becomes inaccessible, and when I check from the console monitor I couldn't able to get access. Had to hard reboot.

Checked the logs but no identifiable errors like that I saw in the console. I saw kernel panic errors with lots of zeroes.

Server still boots.

What would be the best way to analyze the next crash, when it happens, or eliminating them beforehand. Also can those crashes harm my spinning hardrives?

Bash:
uname -r
6.8.8-2-pve

Last logs before the crash, there is a small read error for one of the disks. But done a smartctl -t short shows ok.

Bash:
Jul 14 05:11:33 proxmox systemd[1]: Starting pve-daily-update.service - Daily PVE download activities...
Jul 14 05:11:34 proxmox pveupdate[3735686]: <root@pam> starting task UPID:proxmox:00390090:05E0E284:66939646:aptupdate::root@pam:
Jul 14 05:11:35 proxmox pveupdate[3735696]: update new package list: /var/lib/pve-manager/pkgupdates
Jul 14 05:11:37 proxmox pveupdate[3735686]: <root@pam> end task UPID:proxmox:00390090:05E0E284:66939646:aptupdate::root@pam: OK
Jul 14 05:11:37 proxmox pveupdate[3735686]: ACME config found for node, but no custom certificate exists. Skipping ACME renewal until initial certificate has been deployed.
Jul 14 05:11:37 proxmox systemd[1]: pve-daily-update.service: Deactivated successfully.
Jul 14 05:11:37 proxmox systemd[1]: Finished pve-daily-update.service - Daily PVE download activities.
Jul 14 05:11:37 proxmox systemd[1]: pve-daily-update.service: Consumed 3.680s CPU time.
Jul 14 05:14:38 proxmox smartd[1363]: Device: /dev/sdb [SAT], SMART Prefailure Attribute: 1 Raw_Read_Error_Rate changed from 82 to 83
Jul 14 05:15:01 proxmox CRON[3736557]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Jul 14 05:15:01 proxmox CRON[3736558]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Jul 14 05:15:01 proxmox CRON[3736557]: pam_unix(cron:session): session closed for user root
Jul 14 05:17:01 proxmox CRON[3736853]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Jul 14 05:17:01 proxmox CRON[3736854]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
Jul 14 05:17:01 proxmox CRON[3736853]: pam_unix(cron:session): session closed for user root
Jul 14 05:25:01 proxmox CRON[3738012]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Jul 14 05:25:01 proxmox CRON[3738013]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Jul 14 05:25:01 proxmox CRON[3738012]: pam_unix(cron:session): session closed for user root
Jul 14 05:28:42 proxmox zed[3738552]: eid=53 class=scrub_finish pool='s10tb'
Jul 14 05:35:01 proxmox CRON[3739359]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Jul 14 05:35:01 proxmox CRON[3739360]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Jul 14 05:35:01 proxmox CRON[3739359]: pam_unix(cron:session): session closed for user root

What would you do next?

Thank you all for patience.
 
Last edited:
Hi!
could you post the actual kernel dump (maybe with dmesg)?
Also try doing a full smartctl scan using smartctl -a /dev/sdb .
 
I was trying to keep the host as clean as possible, not installing much stuff. Is there a way to do kernel dump without installing additional tools that I don't know of?

Here is the smartctl -a /dev/sdb
Bash:
=== START OF INFORMATION SECTION ===
Model Family:     Seagate BarraCuda 3.5 (CMR)
Device Model:     ST10000DM0004-XXXXX
Serial Number:    XXXXXXX
LU WWN Device Id: 5 000c50 XXXXXXXXXX
Firmware Version: DN01
User Capacity:    10,000,831,348,736 bytes [10.0 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database 7.3/5319
ATA Version is:   ACS-3 T13/2161-D revision 5
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Fri Jul 19 08:15:05 2024 EDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x82) Offline data collection activity
                                        was completed without error.
                                        Auto Offline Data Collection: Enabled.
Self-test execution status:      (   0) The previous self-test routine completed
                                        without error or no self-test has ever
                                        been run.
Total time to complete Offline
data collection:                (  567) seconds.
Offline data collection
capabilities:                    (0x7b) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        Offline surface scan supported.
                                        Self-test supported.
                                        Conveyance Self-test supported.
                                        Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                                        General Purpose Logging supported.
Short self-test routine
recommended polling time:        (   1) minutes.
Extended self-test routine
recommended polling time:        ( 902) minutes.
Conveyance self-test routine
recommended polling time:        (   2) minutes.
SCT capabilities:              (0x50bd) SCT Status supported.
                                        SCT Error Recovery Control supported.
                                        SCT Feature Control supported.
                                        SCT Data Table supported.

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   077   064   044    Pre-fail  Always       -       48650664
  3 Spin_Up_Time            0x0003   091   088   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       91
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   084   061   045    Pre-fail  Always       -       271073173
  9 Power_On_Hours          0x0032   050   050   000    Old_age   Always       -       43853
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       94
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
188 Command_Timeout         0x0032   100   099   000    Old_age   Always       -       1 1 1
190 Airflow_Temperature_Cel 0x0022   070   053   040    Old_age   Always       -       30 (Min/Max 28/35)
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       1512
193 Load_Cycle_Count        0x0032   092   092   000    Old_age   Always       -       17940
194 Temperature_Celsius     0x0022   030   047   000    Old_age   Always       -       30 (0 24 0 0 0)
195 Hardware_ECC_Recovered  0x001a   012   002   000    Old_age   Always       -       48650664
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0
200 Pressure_Limit          0x0023   100   100   001    Pre-fail  Always       -       0
240 Head_Flying_Hours       0x0000   100   253   000    Old_age   Offline      -       36614h+52m+33.966s
241 Total_LBAs_Written      0x0000   100   253   000    Old_age   Offline      -       81769641328
242 Total_LBAs_Read         0x0000   100   253   000    Old_age   Offline      -       273352313705

SMART Error Log Version: 1
ATA Error Count: 1
        CR = Command Register [HEX]
        FR = Features Register [HEX]
        SC = Sector Count Register [HEX]
        SN = Sector Number Register [HEX]
        CL = Cylinder Low Register [HEX]
        CH = Cylinder High Register [HEX]
        DH = Device/Head Register [HEX]
        DC = Device Command Register [HEX]
        ER = Error register [HEX]
        ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.

Error 1 occurred at disk power-on lifetime: 43387 hours (1807 days + 19 hours)
  When the command that caused the error occurred, the device was in an unknown state.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  04 51 00 00 00 00 00  Error: ABRT

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  00 00 00 00 00 00 00 ff      03:37:21.691  NOP [Abort queued commands]
  b0 d4 00 82 4f c2 00 00      03:36:17.704  SMART EXECUTE OFF-LINE IMMEDIATE
  b0 d0 01 00 4f c2 00 00      03:36:17.703  SMART READ DATA
  ec 00 01 00 00 00 00 00      03:36:17.694  IDENTIFY DEVICE
  ec 00 01 00 00 00 00 00      03:36:17.692  IDENTIFY DEVICE

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%     43734         -
# 2  Extended offline    Completed without error       00%     43401         -
# 3  Extended captive    Interrupted (host reset)      90%     43387         -
# 4  Short offline       Completed without error       00%     43301         -
# 5  Short offline       Completed without error       00%     43297         -
# 6  Short offline       Completed without error       00%     43247         -
# 7  Extended offline    Completed without error       00%     37638         -

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay
 
Hi!
dmesg is installed by default, but will only show the logs since the last boot. As the server panic occurred earlier, just use sudo journalctl and search for the panic dump.

It looks like your drive is still going strong after 5 years (43853 hours)!
 
I already searched for it, and couldnt find the panic dump that I saw from the console before reboot. I am looking for how to get the dump for next crash, if it happens again , without installing anything additional much if possible.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!