Skip to content

[202012] Move /var/log to RAM for Mellanox SN2700, Nokia 7215 and Dell S6100#16544

Merged
qiluo-msft merged 1 commit intosonic-net:202012from
ashwnsri:cherrypick-prgeor-var_log_inram
Sep 15, 2023
Merged

[202012] Move /var/log to RAM for Mellanox SN2700, Nokia 7215 and Dell S6100#16544
qiluo-msft merged 1 commit intosonic-net:202012from
ashwnsri:cherrypick-prgeor-var_log_inram

Conversation

@ashwnsri
Copy link
Contributor

@ashwnsri ashwnsri commented Sep 13, 2023

Why I did it

The commit by prgeor that was merged to master had conflict with 202012 branch and needed to be manually cherrypicked.

Work item tracking
  • Microsoft ADO (number only): 25086124

How I did it

Manually cherrypicked changes from PR #15077

How to verify it

Built image with these changes and checked the filesystem:

Mellanox-SN2700

admin@str-msn2700-02:~$ show ver | grep -i "sonic software version"
SONiC Software Version: SONiC.202012-16544.362113-6980ffe77
admin@str-msn2700-02:~$
admin@str-msn2700-02:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            3.9G     0  3.9G   0% /dev
tmpfs           793M  8.4M  785M   2% /run
root-overlay     15G  6.4G  7.9G  45% /
/dev/sda3        15G  6.4G  7.9G  45% /host
tmpfs           792M  4.7M  788M   1% /var/log
tmpfs           3.9G  104M  3.8G   3% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           4.0M     0  4.0M   0% /sys/fs/cgroup

admin@str-msn2700-02:~$ free -h
              total        used        free      shared  buff/cache   available
Mem:          7.7Gi       2.5Gi       3.9Gi       120Mi       1.4Gi       4.9Gi
Swap:            0B          0B          0B

Nokia-M0-7215

SONiC Software Version: SONiC.202012-16544.362113-6980ffe77
Platform: armhf-nokia_ixs7215_52x-r0
HwSKU: Nokia-M0-7215
ASIC: marvell

admin@str2-7215-acs-1:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            1.5G     0  1.5G   0% /dev
tmpfs           304M  7.3M  296M   3% /run
root-overlay     15G  5.0G  9.5G  35% /
/dev/sda2        15G  5.0G  9.5G  35% /host
tmpfs           303M  728K  303M   1% /var/log
tmpfs           1.5G     0  1.5G   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           4.0M     0  4.0M   0% /sys/fs/cgroup

admin@str2-7215-acs-1:~$ free -h
              total        used        free      shared  buff/cache   available
Mem:          3.0Gi       632Mi       1.6Gi       9.0Mi       772Mi       2.3Gi
Swap:            0B          0B          0B

Dell S6100

SONiC Software Version: SONiC.202012-16544.362113-00aac5392
Platform: x86_64-dell_s6100_c2538-r0
HwSKU: Force10-S6100
ASIC: broadcom
ASIC Count: 1
Serial Number: CN06N1J1CES008350097
Uptime: 19:50:04 up 2 min,  1 user,  load average: 3.38, 1.66, 0.65

admin@str-s6100-acs-4:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            3.9G     0  3.9G   0% /dev
tmpfs           797M  7.8M  789M   1% /run
root-overlay     14G  4.7G  8.8G  35% /
/dev/sda4        14G  4.7G  8.8G  35% /host
tmpfs           796M  6.7M  790M   1% /var/log
tmpfs           3.9G     0  3.9G   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           4.0M     0  4.0M   0% /sys/fs/cgroup

admin@str-s6100-acs-4:~$ free -h
              total        used        free      shared  buff/cache   available
Mem:          7.8Gi       1.6Gi       4.9Gi        14Mi       1.3Gi       5.9Gi
Swap:            0B          0B          0B
admin@str-s6100-acs-4:~$

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

Tested branch (Please provide the tested image version)

  • SONiC.202012-16544.362113-6980ffe77

Description for the changelog

Move /var/log to RAM for Mellanox SN2700, Nokia 7215 and Dell S6100 for the 202012 image.

A picture of a cute animal (not mandatory but encouraged)

@ashwnsri ashwnsri self-assigned this Sep 13, 2023
@ashwnsri ashwnsri changed the title Cherrypicking prgeor commit 3412724411a6e3bab1105b87edc447bebeb9babb … Cherrypicked prgeor commit for moving /var/log to RAM on the 202012 image. Sep 13, 2023
@ashwnsri ashwnsri marked this pull request as draft September 13, 2023 21:21
@ashwnsri ashwnsri changed the title Cherrypicked prgeor commit for moving /var/log to RAM on the 202012 image. [202012]Cherrypicked prgeor commit for moving /var/log to RAM Sep 14, 2023
@prgeor
Copy link
Contributor

prgeor commented Sep 14, 2023

@assrinivasan can you rephrase the title "[202012] Move /var/log to RAM for Mellanox SN2700, Nokia 7215 and Dell S6100"

@ashwnsri ashwnsri marked this pull request as ready for review September 14, 2023 19:51
@ashwnsri ashwnsri changed the title [202012]Cherrypicked prgeor commit for moving /var/log to RAM [202012][202012] Move /var/log to RAM for Mellanox SN2700, Nokia 7215 and Dell S6100 Sep 14, 2023
@ashwnsri ashwnsri changed the title [202012][202012] Move /var/log to RAM for Mellanox SN2700, Nokia 7215 and Dell S6100 [202012] Move /var/log to RAM for Mellanox SN2700, Nokia 7215 and Dell S6100 Sep 14, 2023
@prgeor
Copy link
Contributor

prgeor commented Sep 14, 2023

@qiluo-msft please merge to 202012

@qiluo-msft qiluo-msft merged commit f9d83c6 into sonic-net:202012 Sep 15, 2023
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