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

Looking for the SSD disk currently used by the SONiC. #31

Merged

Conversation

roger530-ho
Copy link

@roger530-ho roger530-ho commented Sep 16, 2024

What I did

When a USB is plugged in, the default SSD value for the 'ssdutil' command is /dev/sda, which may cause the 'show platform ssdhealth' command to return incorrect information.

  1. SONiC command "show platform ssdhealth"
  2. Plugging in a USB key.
  3. SONiC command "show platform ssdhealth"
admin@ais800-64d-1:~$ show platform ssdhealth
Device Model : N/A
Health       : N/A
Temperature  : N/A

How I did it

Use the SSD disk currently in use by the NOS as the default argument for the 'ssdutil' command.

How to verify it

admin@ais800-64d-1:~$ 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)

@roger530-ho roger530-ho requested a review from PJHsieh September 16, 2024 10:05
@PJHsieh PJHsieh merged commit e96e5d7 into edge-core:202311.X Sep 18, 2024
1 check passed
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.

2 participants