Commit c2bc150
authored
[warm/fast-reboot] Backup logs from tmpfs to disk during fast/warm shutdown (sonic-net#2714)
Goal: Preserve logs during TOR upgrades and shutdown
Need:
Below PRs moved logs from disk to tmpfs for specific hwskus.
Due to these changes, shutdown path logs are now lost.
The logs in shutdown path are crucial for debug purposes.
sonic-net#13805
sonic-net#13587
sonic-net#13587
How I did it
Check if logs are on tmpfs. If yes, backup logs from /var/log
How to verify it
Verified on a physical device - logs on tmfs are backed up for past 30 minutes.1 parent a015834 commit c2bc150
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
806 | 806 | | |
807 | 807 | | |
808 | 808 | | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
809 | 820 | | |
810 | 821 | | |
811 | 822 | | |
| |||
0 commit comments