-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[Arista][pmem] create persistent memory on RAM for safe warm-reboot on arista_7060_cx32s #18080
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
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: vaibhav-dahiya <[email protected]>
files/initramfs-tools/union-mount.j2
Outdated
@@ -38,6 +39,9 @@ for x in $(cat /proc/cmdline); do | |||
logs_inram=on) | |||
logs_inram=true | |||
;; | |||
mount_pmem=on) |
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.
@vdahiya12 adding memmap=*
is sufficient.
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.
fixed
files/Aboot/boot0.j2
Outdated
@@ -494,6 +494,8 @@ write_platform_specific_cmdline() { | |||
if in_array "$sid" "Upperlake" "UpperlakeES" "UpperlakeElite"; then | |||
aboot_machine=arista_7060_cx32s | |||
flash_size=3700 | |||
cmdline_add memmap=512M!4G | |||
cmdline_add mount_pmem=on |
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.
@vdahiya12 don't need this new parameter mount_pmem
, see below comment
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.
fixed
Signed-off-by: vaibhav-dahiya <[email protected]>
@vdahiya12 please add more description,
|
Signed-off-by: vaibhav-dahiya <[email protected]>
Signed-off-by: vaibhav-dahiya <[email protected]>
Signed-off-by: vaibhav-dahiya <[email protected]>
@@ -235,6 +241,19 @@ else | |||
fi | |||
fi | |||
|
|||
# check the fstype of pmem if not ext4 fformat and mount |
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.
Typo and run-on sentence here.
This change does the following things for x86_64-arista_7060_cx32s
Why I did it
Work item tracking
How I did it
How to verify it
tested by custom building and deploying the changes on a arista_7060_cx32s DUT/testbed
Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)