How to check (which) logs after crash? And hopefully fix the crash :)

@leesteken can the EXT4-fs error be the Lexar SSD or could it be the external hard drive?
Hopefully the SSD is not already dying it's just a few months old .....

IMG20240727192852.jpg
 
Darn it.... It ran perfectly for a few days but again encountered the error and partially crashing PVE
The photo shows something about the PiHole - FTL ?

Can some one enlighten me the errors in this picture?
I hope it is not a defected SSD drive :'(

IMG20240802184124.jpg
 
no it is /dev/sda, only at this disk is ext4.

check S.M.A.R.T.

Code:
smartctl -a /dev/sda
 
Hmmmm but that's my back up drive only. Not using it for PVE service.
I already cancelled the weekly backup to that drive.
And unmounted it in PVE but it is still physically mounted.

Here is the S.M.A.R.T. report, doesn't really show that there is something wrong with it.

Also I thought that dev/sda would be my main drive so the SSD ? But it is the external hard drive ?

Code:
=== START OF INFORMATION SECTION ===
Model Family:     Hitachi/HGST Travelstar Z7K500
Device Model:     HGST HTS725050A7E630
Serial Number:    TF0500Y91Z8T8L
LU WWN Device Id: 5 000cca 76cdbdb9b
Firmware Version: GH2OA420
User Capacity:    500,107,862,016 bytes [500 GB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      2.5 inches
Device is:        In smartctl database 7.3/5319
ATA Version is:   ATA8-ACS T13/1699-D revision 6
SATA Version is:  SATA 2.6, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Fri Aug  2 19:23:52 2024 CEST
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:  (0x00) Offline data collection activity
                                        was never started.
                                        Auto Offline Data Collection: Disabled.
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:                (   45) seconds.
Offline data collection
capabilities:                    (0x5b) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        Offline surface scan supported.
                                        Self-test supported.
                                        No 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:        (   2) minutes.
Extended self-test routine
recommended polling time:        (  85) minutes.
SCT capabilities:              (0x003d) SCT Status supported.
                                        SCT Error Recovery Control supported.
                                        SCT Feature Control supported.
                                        SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000b   100   100   062    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0005   100   100   040    Pre-fail  Offline      -       0
  3 Spin_Up_Time            0x0007   235   235   033    Pre-fail  Always       -       1
  4 Start_Stop_Count        0x0012   098   098   000    Old_age   Always       -       3247
  5 Reallocated_Sector_Ct   0x0033   100   100   005    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000b   100   100   067    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0005   100   100   040    Pre-fail  Offline      -       0
  9 Power_On_Hours          0x0012   073   073   000    Old_age   Always       -       12020
 10 Spin_Retry_Count        0x0013   100   100   060    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       836
191 G-Sense_Error_Rate      0x000a   100   100   000    Old_age   Always       -       0
192 Power-Off_Retract_Count 0x0032   099   099   000    Old_age   Always       -       362
193 Load_Cycle_Count        0x0012   082   082   000    Old_age   Always       -       187896
194 Temperature_Celsius     0x0002   157   157   000    Old_age   Always       -       38 (Min/Max 10/49)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0008   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x000a   200   200   000    Old_age   Always       -       0
223 Load_Retry_Count        0x000a   100   100   000    Old_age   Always       -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
No self-tests have been logged.  [To run self-tests, use: smartctl -t]

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.
 
your ssd is at /dev/nvme0n1

smart
4 Start_Stop_Count 0x0012 098 098 000 Old_age Always - 3247

Maybe a bit too many start/stop events. Unless it's some kind of energy saving. Possibly check the cables and power supply of this disk. It's possible that there are hardware problems with the USB port in the computer.

Have you run fsck.ext4 on this disk? Maybe these are just temporary logical problems caused by suddenly disconnecting it from the computer port.

You can run a long smart test on it
smartctl -t long /dev/sda
 
  • Like
Reactions: Aussi
Hmm it is indeed a USB powered HDD drive. I could try a different port of the Nuc.

Here are the results of the long test:

Code:
=== START OF READ SMART DATA SECTION ===
SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Completed without error       00%     12044         -

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

So it looks like the S.M.A.R.T. is passed but still looks like its broken at some point
 
I'm going to cry .... I think.....

Today with every "shutdown" or "decoupled" even than partially PVE crashed. Sadly enough the attached monitor didnt show me any logs.

Shutdown/Decoupled means ,I detached the USB HDD which is formatted as EXT4 and also I stopped the PiHole LXC container which was showing up in the previous errors logs

My Home Assistant VM was still functional though :/

Getting kind of clueless here what it could be.

Kind of thinking to completely reinstall PVE on the SSD
 
Alright the Nuc has been operational for a few days , think 3 or 4 days.
I still have the hard drive connected to it but now mounted in PVE.

It seemed that I still had a rule in /etc/fstab saying to auto mount this USB HDD.
After removing this rule I have not had any freeze/crashes of proxmox regarding EXT4-fs

Would there still be a chance to use this HDD occasionally for backupping once a week / month?
 

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!