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

Ssd mitigation changes #4214

Merged
merged 4 commits into from
May 1, 2020
Merged

Ssd mitigation changes #4214

merged 4 commits into from
May 1, 2020

Conversation

rkdevi27
Copy link
Contributor

@rkdevi27 rkdevi27 commented Mar 3, 2020

- 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)

@rkdevi27
Copy link
Contributor Author

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
Copy link
Collaborator

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?

Copy link
Contributor Author

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.

Copy link
Collaborator

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.

Copy link
Contributor Author

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.

@rkdevi27
Copy link
Contributor Author

Retest vsimage please

@rkdevi27
Copy link
Contributor Author

rkdevi27 commented Apr 9, 2020

retest vsimage please

@sujinmkang
Copy link
Collaborator

Retest vsimage please

@sujinmkang sujinmkang merged commit 4511216 into sonic-net:master May 1, 2020
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.

3 participants