Résolu le 11-03-22 Grosse perte de temps pendant le lancement de Linux (HDD concerné)

Questions concernant les composants
Répondre
Didier_35
Messages : 23
Enregistré le : sam. 15 janv. 2022 12:02
Localisation : Bretagne
Contact :

Grosse perte de temps pendant le lancement de Linux (HDD concerné)

Message par Didier_35 »

Chers tous,
je suis confronté depuis une éternité à un temps trop long de démarrage de Linux, que ce soit Ubuntu ou Linux Mint.
Je viens seulement maintenant d'approfondir le sujet et après avoir bien zoné sur ce forum impressionnant, je pense que mon problème va être résolu.
Certains diront probablement que j'aurais pu creuser un peu plus profondément mais j'hésite à débrancher mes disques durs pour savoir lequel est concerné (en fait en tapant ce message j'investigue un peu pour vous donner de la matière et j'ai identifié sdb probablement la source du problème).
Voici un extrait du fichier syslog :

Code : Tout sélectionner

Jan 15 18:20:31 didier-GA-880GM-UD2H-2 kernel: [    4.236388] sdd: detected capacity change from 500103634432 to 500107862016
Jan 15 18:20:31 didier-GA-880GM-UD2H-2 kernel: [    4.292549]  sdd: sdd1 sdd2 < sdd5 sdd6 >
Jan 15 18:20:31 didier-GA-880GM-UD2H-2 kernel: [    4.293016] sd 5:0:0:0: [sdd] Attached SCSI disk
Jan 15 18:20:31 didier-GA-880GM-UD2H-2 kernel: [   36.455269] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
Jan 15 18:20:31 didier-GA-880GM-UD2H-2 kernel: [   37.258238] ata3.00: configured for PIO4
Jan 15 18:20:31 didier-GA-880GM-UD2H-2 kernel: [   71.271268] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
Jan 15 18:20:31 didier-GA-880GM-UD2H-2 kernel: [   72.073487] ata3.00: configured for PIO4
Jan 15 18:20:31 didier-GA-880GM-UD2H-2 kernel: [   74.887207] raid6: sse2x4   gen()  7975 MB/s
Vous noterez que le temps fait un saut monstrueux de 4s à 36s puis 71s tout ça pour semble t'il détecter les capacités/performances de deux interfaces SATA.
Mais comment ce fait ce ? Vu que j'ai quand même quelques disques pour lesquels heureusement je n'ai pas ce problème.
Voici la sortie de : blkid -o list

Code : Tout sélectionner

didier@didier-GA-880GM-UD2H-2:~$ blkid -o list
device                                          fs_type         label            mount point                                         UUID
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
/dev/sda1                                       ext4                             /                                                   7ad49c12-ec25-41a6-a778-3359e5d0515d
/dev/sdb1                                       ntfs                             /media/Win10                                        4ED40AA40531828F
/dev/sdb2                                       ntfs                             (non monté)                                        FE982ABA982A7177
/dev/sdb3                                       ntfs                             (non monté)                                        905831F75831DCA2
/dev/sdb4                                       ext4                             (non monté)                                        ae13c070-9f9c-4164-8a37-aab7a332e768
/dev/sdc1                                       ext4                             /media/Data1TB                                      da3e5775-0cbc-443c-a7db-b728a7384220
/dev/sdd1                                       ext4                             (non monté)                                        17eba646-b97d-4cd0-81d0-28ffb3e314b0
/dev/sdd5                                       ext4                             /media/DiskUbuntu                                   9c537d58-d4d3-4aac-92a4-3cc0bd0182eb
/dev/sdd6                                       swap                             [SWAP]                                              0ac17e2b-180a-4e23-ba8a-3a9565f9dd59
Voici ce que me dit smartmontools par la commande : sudo smartctl -i /dev/sda (puis sdb...)

Code : Tout sélectionner

didier@didier-GA-880GM-UD2H-2:~$ sudo smartctl -i /dev/sda
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.0-73-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital AV-GP
Device Model:     WDC WD5000AVVS-63M8B0
Serial Number:    WD-WMAV90002841
LU WWN Device Id: 5 0014ee 0abbdbdaf
Firmware Version: 01.00A01
User Capacity:    500 103 634 432 bytes [500 GB]
Sector Size:      512 bytes logical/physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS (minor revision not indicated)
SATA Version is:  SATA 2.6, 3.0 Gb/s
Local Time is:    Sat Jan 15 21:51:17 2022 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

========================================================

didier@didier-GA-880GM-UD2H-2:~$ sudo smartctl -i /dev/sdb
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.0-73-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     ST3300820SCE
Serial Number:    3QF04ZMW
Firmware Version: 3.ATD
User Capacity:    300 064 834 048 bytes [300 GB]
Sector Size:      512 bytes logical/physical
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ATA/ATAPI-7 (minor revision not indicated)
Local Time is:    Sat Jan 15 21:53:39 2022 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

========================================================

didier@didier-GA-880GM-UD2H-2:~$ sudo smartctl -i /dev/sdc
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.0-73-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Video 3.5 HDD
Device Model:     ST1000VM002-1SD102
Serial Number:    W9C00BVM
LU WWN Device Id: 5 000c50 09068b409
Firmware Version: SC11
User Capacity:    1 000 204 886 016 bytes [1,00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5900 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Sat Jan 15 21:54:09 2022 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

========================================================

didier@didier-GA-880GM-UD2H-2:~$ sudo smartctl -i /dev/sdd
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.0-73-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Caviar Blue (SATA)
Device Model:     WDC WD5000AAKS-00D2B0
Serial Number:    WD-WCASYF603785
LU WWN Device Id: 5 0014ee 205467435
Firmware Version: 12.01C02
User Capacity:    500 107 862 016 bytes [500 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    7200 rpm
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS (minor revision not indicated)
SATA Version is:  SATA 2.5, 3.0 Gb/s
Local Time is:    Sat Jan 15 21:54:23 2022 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

En analysant on a quand même l'impression que sdb est limité à

Code : Tout sélectionner

ATA Version is:   ATA/ATAPI-7 (minor revision not indicated)
Mais pourquoi faut il que le système passe autant de temps là dessus avant de continuer ? Deux fois 30 secondes de perdues !!!

Est ce que la table des partitions est d'une quelconque utilité ?

Code : Tout sélectionner

didier@didier-GA-880GM-UD2H-2:~$ sudo parted /dev/sdb
GNU Parted 3.3
Utilisation de /dev/sdb
Bienvenue sur GNU Parted ! Tapez « help » pour voir la liste des commandes.
(parted) unit GB                                                          
(parted) print                                                            
Modèle : ATA ST3300820SCE (scsi)
Disque /dev/sdb : 300GB
Taille des secteurs (logiques/physiques) : 512B/512B
Table de partitions : msdos
Drapeaux de disque : 

Numéro  Début   Fin    Taille  Type     Système de fichiers  Drapeaux
 1      0,00GB  288GB  288GB   primary  ntfs                 démarrage
 2      288GB   288GB  0,56GB  primary  ntfs                 msftres
 3      288GB   289GB  0,90GB  primary  ntfs                 msftres
 4      289GB   300GB  10,8GB  primary  ext4
Dans l'attente de vos remarques / conseils

Didier.
Pc : CM : Gigabyte GA-880GM-UD2H | LM 20.3 Una | XFCE / Plasma | Kernel : 5.4.0-73-generic x86_64 bits | CPU : AMD Athlon II X3 450 | RAM : 8GB | CG : NVIDIA GK208B [GeForce GT 730]

Avatar du membre
cyrille
Administrateur du site
Messages : 12285
Enregistré le : mar. 19 sept. 2017 08:49
Localisation : Nowhere
Contact :

Re: Grosse perte de temps pendant le lancement de Linux (HDD concerné)

Message par cyrille »

Yep
Pour smartctl, c'est l'option -a qui est intéressante
cf guide https://cbiot.fr/dokuwiki/freebsd-smartmontools

Pour analyser le démarrage

Code : Tout sélectionner

   systemd-analyze blame
   systemd-analyze critical-chain 
Jeter un oeil dans les logs

Code : Tout sélectionner

sudo dmesg | egrep 'fail|error{warn'
?séuqartéd sel ruoP / sécnoféd sel ruoP / sreiruréB sel ruoP / ?étéicos elleuQ

https://crust.ovh

Didier_35
Messages : 23
Enregistré le : sam. 15 janv. 2022 12:02
Localisation : Bretagne
Contact :

Re: Grosse perte de temps pendant le lancement de Linux (HDD concerné)

Message par Didier_35 »

Merci cyrille pour ta réponse :)
Donc voici la sortie de smartctrl pour les différents disques (je pensais que l'info sur l'interface ATA, donc en utilisant le parramètre "-i" , était suffisante pour éventuellement identifier le problème) :
Il semble qu'ici tous les disques n'ont pas de problème de "self assesment", ni de "reallocated sectors", ni de "bad blocks".

Sda

Code : Tout sélectionner

didier@didier-GA-880GM-UD2H-2:~$ sudo smartctl -a /dev/sda
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.0-73-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital AV-GP
Device Model:     WDC WD5000AVVS-63M8B0
Serial Number:    WD-WMAV90002841
LU WWN Device Id: 5 0014ee 0abbdbdaf
Firmware Version: 01.00A01
User Capacity:    500 103 634 432 bytes [500 GB]
Sector Size:      512 bytes logical/physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS (minor revision not indicated)
SATA Version is:  SATA 2.6, 3.0 Gb/s
Local Time is:    Sun Jan 16 15:57:28 2022 CET
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:  (0x02)	Offline data collection activity
					was completed without error.
					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: 		(11400) 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: 	 ( 133) minutes.
SCT capabilities: 	       (0x303f)	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     0x002f   200   200   051    Pre-fail  Always       -       0
  3 Spin_Up_Time            0x0027   141   140   021    Pre-fail  Always       -       3916
  4 Start_Stop_Count        0x0032   094   094   000    Old_age   Always       -       6490
  5 Reallocated_Sector_Ct   0x0033   200   200   140    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x002e   100   253   000    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   074   074   000    Old_age   Always       -       19511
 10 Spin_Retry_Count        0x0032   100   100   000    Old_age   Always       -       0
 11 Calibration_Retry_Count 0x0032   100   100   000    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   095   095   000    Old_age   Always       -       5101
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       348
193 Load_Cycle_Count        0x0032   198   198   000    Old_age   Always       -       6490
194 Temperature_Celsius     0x0022   110   100   000    Old_age   Always       -       33
196 Reallocated_Event_Count 0x0032   200   200   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   200   200   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   200   200   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0032   200   175   000    Old_age   Always       -       34304
200 Multi_Zone_Error_Rate   0x0008   200   200   000    Old_age   Offline      -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Aborted by host               90%       483         -
# 2  Short offline       Completed without error       00%       483         -

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.
Sdb

Code : Tout sélectionner

didier@didier-GA-880GM-UD2H-2:~$ sudo smartctl -a /dev/sdb
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.0-73-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     ST3300820SCE
Serial Number:    3QF04ZMW
Firmware Version: 3.ATD
User Capacity:    300 064 834 048 bytes [300 GB]
Sector Size:      512 bytes logical/physical
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ATA/ATAPI-7 (minor revision not indicated)
Local Time is:    Sun Jan 16 15:56:29 2022 CET
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: 		(15556) 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: 	 (   1) minutes.
Extended self-test routine
recommended polling time: 	 ( 115) minutes.

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   100   253   006    Pre-fail  Always       -       0
  3 Spin_Up_Time            0x0003   087   087   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   097   097   020    Old_age   Always       -       3329
  5 Reallocated_Sector_Ct   0x0033   100   100   036    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   084   060   030    Pre-fail  Always       -       235150985
  9 Power_On_Hours          0x0032   087   087   000    Old_age   Always       -       11832
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   097   097   020    Old_age   Always       -       3358
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
189 High_Fly_Writes         0x003a   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   069   053   045    Old_age   Always       -       31 (Min/Max 16/32)
194 Temperature_Celsius     0x0022   031   047   000    Old_age   Always       -       31 (0 15 0 0 0)
195 Hardware_ECC_Recovered  0x001a   071   062   000    Old_age   Always       -       3788024
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       -       2
200 Multi_Zone_Error_Rate   0x0000   100   253   000    Old_age   Offline      -       0
202 Data_Address_Mark_Errs  0x0032   100   253   000    Old_age   Always       -       0

SMART Error Log Version: 1
No Errors Logged

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%       797         -

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.
Sdc

Code : Tout sélectionner

didier@didier-GA-880GM-UD2H-2:~$ sudo smartctl -a /dev/sdc
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.0-73-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Video 3.5 HDD
Device Model:     ST1000VM002-1SD102
Serial Number:    W9C00BVM
LU WWN Device Id: 5 000c50 09068b409
Firmware Version: SC11
User Capacity:    1 000 204 886 016 bytes [1,00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5900 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Sun Jan 16 16:08:02 2022 CET
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: 		(    0) 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: 	 ( 132) minutes.
Conveyance self-test routine
recommended polling time: 	 (   2) minutes.
SCT capabilities: 	       (0x10bb)	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   078   063   006    Pre-fail  Always       -       78994767
  3 Spin_Up_Time            0x0003   097   096   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   097   097   020    Old_age   Always       -       3360
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   072   060   045    Pre-fail  Always       -       18601923
  9 Power_On_Hours          0x0032   088   088   000    Old_age   Always       -       10784
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   098   098   020    Old_age   Always       -       2554
184 End-to-End_Error        0x0032   100   100   099    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
188 Command_Timeout         0x0032   100   099   000    Old_age   Always       -       8
189 High_Fly_Writes         0x003a   081   081   000    Old_age   Always       -       19
190 Airflow_Temperature_Cel 0x0022   074   061   040    Old_age   Always       -       26 (Min/Max 15/26)
193 Load_Cycle_Count        0x0032   099   099   000    Old_age   Always       -       3411
194 Temperature_Celsius     0x0022   026   015   000    Old_age   Always       -       26 (0 15 0 0 0)
195 Hardware_ECC_Recovered  0x001a   008   001   000    Old_age   Always       -       78994767
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   198   000    Old_age   Always       -       13248

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.
Sdd

Code : Tout sélectionner

didier@didier-GA-880GM-UD2H-2:~$ sudo smartctl -a /dev/sdd
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.0-73-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Caviar Blue (SATA)
Device Model:     WDC WD5000AAKS-00D2B0
Serial Number:    WD-WCASYF603785
LU WWN Device Id: 5 0014ee 205467435
Firmware Version: 12.01C02
User Capacity:    500 107 862 016 bytes [500 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    7200 rpm
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS (minor revision not indicated)
SATA Version is:  SATA 2.5, 3.0 Gb/s
Local Time is:    Sun Jan 16 16:08:50 2022 CET
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:  (0x84)	Offline data collection activity
					was suspended by an interrupting command from host.
					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: 		( 9600) 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: 	 (   2) minutes.
Extended self-test routine
recommended polling time: 	 ( 113) minutes.
Conveyance self-test routine
recommended polling time: 	 (   5) minutes.
SCT capabilities: 	       (0x3037)	SCT Status 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     0x002f   200   200   051    Pre-fail  Always       -       0
  3 Spin_Up_Time            0x0027   220   184   021    Pre-fail  Always       -       1975
  4 Start_Stop_Count        0x0032   091   091   000    Old_age   Always       -       9723
  5 Reallocated_Sector_Ct   0x0033   200   200   140    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x002e   100   253   000    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   062   062   000    Old_age   Always       -       27808
 10 Spin_Retry_Count        0x0032   100   100   000    Old_age   Always       -       0
 11 Calibration_Retry_Count 0x0032   100   100   000    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   093   093   000    Old_age   Always       -       7572
192 Power-Off_Retract_Count 0x0032   199   199   000    Old_age   Always       -       784
193 Load_Cycle_Count        0x0032   198   198   000    Old_age   Always       -       8938
194 Temperature_Celsius     0x0022   110   099   000    Old_age   Always       -       37
196 Reallocated_Event_Count 0x0032   200   200   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   200   200   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   200   200   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       2
200 Multi_Zone_Error_Rate   0x0008   200   200   000    Old_age   Offline      -       0

SMART Error Log Version: 1
No Errors Logged

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%      8591         -

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.
Concernant l'analyse du démarrage, voici la sortie de systemd-analyze blame

Code : Tout sélectionner

didier@didier-GA-880GM-UD2H-2:~$ systemd-analyze blame
1min 38.890s vboxdrv.service                                                                          
  1min 609ms man-db.service                                                                           
     37.343s systemd-journal-flush.service                                                            
     34.409s dev-sda1.device                                                                          
     30.578s udisks2.service                                                                          
     23.867s accounts-daemon.service                                                                  
     23.820s systemd-udevd.service                                                                    
     21.768s apt-daily.service                                                                        
     20.840s logrotate.service                                                                        
     18.340s polkit.service                                                                           
     18.229s networkd-dispatcher.service                                                              
     18.111s NetworkManager.service                                                                   
     18.011s avahi-daemon.service                                                                     
     17.376s thermald.service                                                                         
     17.263s systemd-logind.service                                                                   
     17.257s wpa_supplicant.service                                                                   
     16.592s ModemManager.service                                                                     
     16.038s NetworkManager-wait-online.service                                                       
      9.078s ubuntu-system-adjustments.service                                                        
      7.989s teamviewerd.service                                                                      
      7.817s smartmontools.service                                                                    
      5.876s colord.service                                                                           
      5.025s systemd-resolved.service                                                                 
      4.888s lightdm.service                                                                          
      4.879s plymouth-quit-wait.service                                                               
      4.729s apt-daily-upgrade.service                                                                
      4.438s rsyslog.service                                                                          
      4.096s gpu-manager.service                                                                      
      3.908s grub-common.service                                                                      
      3.347s apparmor.service                                                                         
      3.120s systemd-tmpfiles-setup-dev.service                                                       
      3.075s systemd-sysctl.service                                                                   
      2.562s networking.service                                                                       
      2.117s systemd-tmpfiles-setup.service                                                           
      1.686s systemd-random-seed.service                                                              
      1.660s systemd-modules-load.service                                                             
      1.573s grub-initrd-fallback.service                                                             
      1.398s alsa-restore.service                                                                     
      1.311s e2scrub_reap.service                                                                     
      1.148s systemd-sysusers.service                                                                 
      1.051s lm-sensors.service                                                                       
      1.041s nvidia-persistenced.service                                                              
      1.018s keyboard-setup.service                                                                   
      1.009s modprobe@drm.service                                                                     
       978ms dns-clean.service                                                                        
       910ms media-Win10.mount                                                                        
       903ms pppd-dns.service                                                                         
       868ms systemd-udev-trigger.service                                                             
       862ms ua-timer.service                                                                         
       828ms upower.service                                                                           
       768ms ufw.service                                                                              
       748ms geneweb.service                                                                          
       644ms kerneloops.service                                                                       
       556ms systemd-fsck@dev-disk-by\x2duuid-9c537d58\x2dd4d3\x2d4aac\x2d92a4\x2d3cc0bd0182eb.service
       435ms systemd-fsck@dev-disk-by\x2duuid-da3e5775\x2d0cbc\x2d443c\x2da7db\x2db728a7384220.service
       434ms hddtemp.service                                                                          
       406ms systemd-user-sessions.service                                                            
       389ms kmod-static-nodes.service                                                                
       388ms ifupdown-pre.service                                                                     
       369ms gwsetup.service                                                                          
       349ms user@1000.service                                                                        
       319ms setvtrgb.service                                                                         
       310ms dev-hugepages.mount                                                                      
       308ms dev-mqueue.mount                                                                         
       307ms sys-kernel-debug.mount                                                                   
       306ms sys-kernel-tracing.mount                                                                 
       303ms blk-availability.service                                                                 
       303ms systemd-journald.service                                                                 
       255ms lvm2-monitor.service                                                                     
       236ms dev-disk-by\x2duuid-0ac17e2b\x2d180a\x2d4e23\x2dba8a\x2d3a9565f9dd59.swap                
       232ms systemd-timesyncd.service                                                                
       194ms systemd-remount-fs.service                                                               
       128ms console-setup.service                                                                    
       114ms systemd-update-utmp.service                                                              
       112ms plymouth-read-write.service                                                              
        55ms media-Data1TB.mount                                                                      
        48ms rtkit-daemon.service                                                                     
        30ms media-DiskUbuntu.mount                                                                   
        26ms user-runtime-dir@1000.service                                                            
        17ms systemd-tmpfiles-clean.service                                                           
        16ms plymouth-start.service                                                                   
        14ms vboxballoonctrl-service.service                                                          
        13ms ureadahead-stop.service                                                                  
        12ms vboxautostart-service.service                                                            
        12ms proc-sys-fs-binfmt_misc.mount                                                            
        10ms vboxweb-service.service                                                                  
         9ms systemd-update-utmp-runlevel.service                                                     
         8ms e2scrub_all.service                                                                      
         6ms sys-fs-fuse-connections.mount                                                            
         6ms openvpn.service                                                                          
         5ms finalrd.service                                                                          
         4ms sys-kernel-config.mount  
Et celle de systemd-analyze critical-chain

Code : Tout sélectionner

didier@didier-GA-880GM-UD2H-2:~$ systemd-analyze critical-chain
The time when unit became active or started is printed after the "@" character.
The time the unit took to start is printed after the "+" character.

graphical.target @2min 29.432s
└─multi-user.target @2min 29.432s
  └─vboxballoonctrl-service.service @2min 29.417s +14ms
    └─vboxdrv.service @50.521s +1min 38.890s
      └─basic.target @49.604s
        └─sockets.target @49.604s
          └─uuidd.socket @49.604s
            └─sysinit.target @49.306s
              └─systemd-timesyncd.service @49.073s +232ms
                └─systemd-tmpfiles-setup.service @46.820s +2.117s
                  └─systemd-journal-flush.service @9.474s +37.343s
                    └─systemd-remount-fs.service @8.708s +194ms
                      └─systemd-journald.socket @8.404s
                        └─-.mount @8.398s
                          └─system.slice @8.398s
                            └─-.slice @8.398s
Image

Et pour finir avec l'analyse des logs : sudo dmesg | egrep 'fail|error|warn'

Code : Tout sélectionner

didier@didier-GA-880GM-UD2H-2:~$ sudo dmesg | egrep 'fail|error|warn'
[sudo] Mot de passe de didier :         
[    4.110347] random: 7 urandom warning(s) missed due to ratelimiting
[   88.539073] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[  121.422379] nvidia: module verification failed: signature and/or required key missing - tainting kernel
Merci.
Didier
Pc : CM : Gigabyte GA-880GM-UD2H | LM 20.3 Una | XFCE / Plasma | Kernel : 5.4.0-73-generic x86_64 bits | CPU : AMD Athlon II X3 450 | RAM : 8GB | CG : NVIDIA GK208B [GeForce GT 730]

Avatar du membre
cyrille
Administrateur du site
Messages : 12285
Enregistré le : mar. 19 sept. 2017 08:49
Localisation : Nowhere
Contact :

Re: Grosse perte de temps pendant le lancement de Linux (HDD concerné)

Message par cyrille »

A première vue et en grande vitesse, tu as des service qui rame
virtualbox --> très long. Desactive le et vois si tu gagnes du temps
Lance le à la main et vois si mieux
Si oui sans doute lancé trop tôt dans la séquence de boot

Idem
systemd-journal-flush.service ---> long
Jette un oeil https://qastack.fr/ubuntu/1094389/what- ... sh-service
et
https://wiki.visionduweb.fr/index.php?t ... %A9marrage
?séuqartéd sel ruoP / sécnoféd sel ruoP / sreiruréB sel ruoP / ?étéicos elleuQ

https://crust.ovh

Didier_35
Messages : 23
Enregistré le : sam. 15 janv. 2022 12:02
Localisation : Bretagne
Contact :

Re: Grosse perte de temps pendant le lancement de Linux (HDD concerné)

Message par Didier_35 »

Merci encore pour ton retour cyrille,
Est ce que les propositions que tu me fais correspondent aux 2 fois 30 secondes de perdues détectées dans le fichier de log, entre lignes 2 et 3, puis 4 et 5 :

Code : Tout sélectionner

1- Jan 15 18:20:31 didier-GA-880GM-UD2H-2 kernel: [    4.292549]  sdd: sdd1 sdd2 < sdd5 sdd6 >
2- Jan 15 18:20:31 didier-GA-880GM-UD2H-2 kernel: [    4.293016] sd 5:0:0:0: [sdd] Attached SCSI disk
3- Jan 15 18:20:31 didier-GA-880GM-UD2H-2 kernel: [   36.455269] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
4- Jan 15 18:20:31 didier-GA-880GM-UD2H-2 kernel: [   37.258238] ata3.00: configured for PIO4
5- Jan 15 18:20:31 didier-GA-880GM-UD2H-2 kernel: [   71.271268] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
6- Jan 15 18:20:31 didier-GA-880GM-UD2H-2 kernel: [   72.073487] ata3.00: configured for PIO4
7- Jan 15 18:20:31 didier-GA-880GM-UD2H-2 kernel: [   74.887207] raid6: sse2x4   gen()  7975 MB/s
Cordialement,
Didier
Pc : CM : Gigabyte GA-880GM-UD2H | LM 20.3 Una | XFCE / Plasma | Kernel : 5.4.0-73-generic x86_64 bits | CPU : AMD Athlon II X3 450 | RAM : 8GB | CG : NVIDIA GK208B [GeForce GT 730]

Didier_35
Messages : 23
Enregistré le : sam. 15 janv. 2022 12:02
Localisation : Bretagne
Contact :

Re: Grosse perte de temps pendant le lancement de Linux (HDD concerné)

Message par Didier_35 »

Bonjour tout le monde,
j'ai enfin débranché le disque dur qui semblait ne pas être en phase avec les autres au niveau de l'interface SATA.
Disque de 300GB : ST3300820SCE
et cela solutionne mon problème de 2x fois 30sec perdues au cours du boot.
Je vais maintenant me pencher sur les pistes que vous m'indiquez... car il semble bien qu'on peut faire mieux.
A bientôt.
Didier.
Pc : CM : Gigabyte GA-880GM-UD2H | LM 20.3 Una | XFCE / Plasma | Kernel : 5.4.0-73-generic x86_64 bits | CPU : AMD Athlon II X3 450 | RAM : 8GB | CG : NVIDIA GK208B [GeForce GT 730]

Didier_35
Messages : 23
Enregistré le : sam. 15 janv. 2022 12:02
Localisation : Bretagne
Contact :

Re: Grosse perte de temps pendant le lancement de Linux (HDD concerné)

Message par Didier_35 »

Hello, en fait il n'est pas sûr que ce soit le disque dur lui même qui soit concerné car j'ai changé le cable SATA et finalement, il ne perd plus les 2x30 secondes au cours du démarrage...
Depuis j'ai quand même changé le disque dur lui même pour en mettre un plus récent.
Je n'ai pas le problème.
Je passe le sujet en résolu.
Merci beaucoup pour votre support... je vais probablement ouvrir un autre sujet car il y a quand même des délais de l'ordre de quelques dizaines de secondes qui sont inexpliqués.
Didier
Pc : CM : Gigabyte GA-880GM-UD2H | LM 20.3 Una | XFCE / Plasma | Kernel : 5.4.0-73-generic x86_64 bits | CPU : AMD Athlon II X3 450 | RAM : 8GB | CG : NVIDIA GK208B [GeForce GT 730]

Avatar du membre
alain
Administrateur du site
Messages : 14704
Enregistré le : dim. 11 oct. 2015 23:41
Localisation : Chelles
Contact :

Re: Grosse perte de temps pendant le lancement de Linux (HDD concerné)

Message par alain »

Bonjour.

Sujet archivé (en lecture seule) car résolu.
Si besoin de rouvrir faire un MP à un membre de l'équipe ;)
PC are like air conditioning, they becomes useless when you open Windows (L.T)
PC1 : CM : ASRock 990FX | CPU: AMD FX 8350-8 cores, 4 GHz | RAM: 16 Go DDR3 1600 MHz | CG: ATI RX 580-8 Go | OS : LM 20.3 Uma Xfce 4.16 | K: 5.4
PC2
:Core2 Quad Q9650 @ 3 GHz | CG: Nvidia GTX 650TI | OS: LM 21.3 Xfce 4.18| K: 6.5
PC3 :Core i7-2600 @ 3,5 GHz | CG: ATI HD 4650 | OS: Emmade5 Xfce 4.18.0 | K: 6.1
PC4 : AMD Ryzen 5 3500X 4GHz | CG: GTX 970 | Ram : 8GB |OS : Debian 10.5 | K: 5.10
In a world without walls and fences, who needs windows and gates?

Répondre