sonic-utilities
sonic-utilities copied to clipboard
Use the disk currently in use by SONiC for the 'show platform ssdhealth' command.
What I did
Due to a USB flash drive being plugged in, the SONiC command 'show platform ssdhealth' does not display correctly.
admin@sonic:~$ show platform ssdhealth
[Error] Cannot read device /dev/sda
Device Model : N/A
Health : N/A
Temperature : N/A
dmesg log :
[10609.931754] sd 4:0:0:0: [sda] 121241600 512-byte logical blocks: (62.1 GB/57.8 GiB)
[10609.931904] sd 4:0:0:0: [sda] Write Protect is off
[10609.931908] sd 4:0:0:0: [sda] Mode Sense: 43 00 00 00
[10609.932037] sd 4:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[10609.968964] sda: sda1
[10610.004083] sd 4:0:0:0: [sda] Attached SCSI removable disk
lsblk log :
admin@sonic:~$ lsblk -o NAME,TYPE -p | grep disk
/dev/sda disk
/dev/nvme0n1 disk
How I did it
Use the SSD disk currently in use by SONiC as the default argument for the 'ssdutil' command.
How to verify it
- Plugging in a USB flash drive.
- "show platform ssdhealth"
admin@sonic:~$ show platform ssdhealth
Device Model : MPT160-M8240GCB5ACT-E132
Health : 100.0%
Temperature : 27.0C