File tree 3 files changed +15
-0
lines changed
3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ ASSISTANT_SCRIPT="/usr/bin/neighbor_advertiser"
16
16
DEVPATH=" /usr/share/sonic/device"
17
17
PLATFORM=$( sonic-cfggen -H -v DEVICE_METADATA.localhost.platform)
18
18
PLATFORM_PLUGIN=" ${REBOOT_TYPE} _plugin"
19
+ LOG_SSD_HEALTH=" /usr/bin/log_ssd_health"
19
20
20
21
# Require 100M available on the hard drive for warm reboot temp files,
21
22
# Size is in 1K blocks:
424
425
# service will go down and we cannot recover from it.
425
426
set +e
426
427
428
+ if [ -x ${LOG_SSD_HEALTH} ]; then
429
+ debug " Collecting logs to check ssd health before fast-reboot..."
430
+ ${LOG_SSD_HEALTH}
431
+ fi
432
+
433
+
427
434
# Kill nat docker after saving the conntrack table
428
435
debug " Stopping nat ..."
429
436
/usr/bin/dump_nat_entries.py
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ smartctl -a /dev/sda > /tmp/smartctl
4
+ if [ -f /tmp/smartctl ]; then
5
+ logger -f /tmp/smartctl
6
+ fi
7
+
Original file line number Diff line number Diff line change 79
79
'scripts/intfutil' ,
80
80
'scripts/intfstat' ,
81
81
'scripts/lldpshow' ,
82
+ 'scripts/log_ssd_health' ,
82
83
'scripts/mmuconfig' ,
83
84
'scripts/natclear' ,
84
85
'scripts/natconfig' ,
You can’t perform that action at this time.
0 commit comments