-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Ssd mitigation changes #4214
Ssd mitigation changes #4214
Conversation
I have reverted the fstrim changes and 2 minutes delay changes and updated the PR. |
@@ -3,4 +3,4 @@ Description=Discard unused blocks | |||
|
|||
[Service] | |||
Type=oneshot | |||
ExecStart=/sbin/fstrim -av | |||
ExecStart=/usr/bin/sonic-fstrim |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we run sonic-fstrim when it's available?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we can. I have changed the permissions in the code base itself and built the image and tested it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rkdevi27 can we make platform_log_ssd_health more generically and run it from fstrim.service? And then we don't need sonic-fstrim any more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sujin,
As suggested, I have changed log_ssd_health as generic.
Retest vsimage please |
retest vsimage please |
Retest vsimage please |
- What I did
I have added the ssd mitigation changes which collects ssd logs for S6100 with 3IE3 ssd.
This Pull request has dependency on the pull request raised in sonic-utilities branch
sonic-net/sonic-utilities#829
- How I did it
I have added the following changes:
Collect ssd logs before fast-reboot.
Added after removing a sonic image and before installing an image.
Block the fast-reboot for 2 minutes from the time of sonic image installation.
- How to verify it
I have tested the functionality and attaching the logs here.
console_logs.txt
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)