Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the disk currently in use by SONiC for the 'show platform ssdhealth' command. #3547

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

roger530-ho
Copy link

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

  1. Plugging in a USB flash drive.
  2. "show platform ssdhealth"
admin@sonic:~$ show platform ssdhealth
Device Model : MPT160-M8240GCB5ACT-E132
Health       : 100.0%
Temperature  : 27.0C

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant