-
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
[Mellanox] platform_reboot - sync & umount fs before power cycle #3430
Conversation
Signed-off-by: Mykola Faryma <[email protected]>
@@ -19,6 +19,14 @@ function ParseArguments() { | |||
done | |||
} | |||
|
|||
function SafePwrCycle() { | |||
sync ; sync | |||
umount -fa > /dev/null 2&>1 |
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.
this looks like a generic commands for all that does the power cycle?
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, Note that it's the platform reboot script, so this is only for Mellanox platforms.
@mykolaf Can you create a separate PR for 201811 branch please? This change cannot be cherry-picked cleanly. Thanks! |
…ic-net#3430) Signed-off-by: Mykola Faryma <[email protected]>
…) (#3476) Signed-off-by: Mykola Faryma <[email protected]>
Signed-off-by: Mykola Faryma [email protected]
We noticed that null characters sometimes appear in our logs after we started using power cycle to reboot.
This gets in the way of greping the logs.
- What I did
Made sure the filesystem is synced and unmounted before performing the power cycle.
- How I did it
- How to verify it
Perform multiple reboots, then
cat -A /var/log/syslog* | grep -A 15 rebooting | grep ^@
Check that no null characters are present
- Description for the changelog
Made sure the filesystem is synced and unmounted before performing the power cycle on Mellanox platforms.
- A picture of a cute animal (not mandatory but encouraged)