sonic-net / SONiC

Landing page for Software for Open Networking in the Cloud (SONiC) - https://sonic-net.github.io/SONiC/
2.16k stars 1.1k forks source link

docker issue on Arista 7060CX-32S #1697

Open virtual-technologies opened 1 month ago

virtual-technologies commented 1 month ago

Trying to install sonic on arista switch 7060CX-32S. The docker failed to complete due to zram0 capacity limit. The zram0 was auto-generated during installation and was set to 2.4G and the switch has RAM of 8GB

The following logs appeared in the shell:

Aboot 6.1.7-13531819

Press Control-C now to enter Aboot shell
Booting flash:image-master.371261-52f6dd65a/.sonic-boot.swi
9.42: Using previously installed image
9.52: Next reboot will use flash:image-master.371261-52f6dd65a/.sonic-boot.swi
11.74: Kexecing.[   11.833748] Starting new kernel
..
[    0.112061] AMD-Vi: Can not reserve memory region 0-80000 for mmio
[    0.186056] AMD-Vi: This is a BIOS bug. Please contact your hardware vendor
une2fs 1.46.2 (28-Feb-2021)
Setting reserved blocks percentage to 0% (0 blocks)
Setting reserved blocks count to 0
Creating zram to extract dockerfs.tar.gz
[    4.822857] sd 2:0:0:0: [sda] No Caching mode page found
[    4.886431] sd 2:0:0:0: [sda] Assuming drive cache: write through
Extracting dockerfs.tar.gz
tar: write error: No space left on device
[   41.952142] rc.local[507]: + cat /etc/sonic/sonic_version.yml
[   42.027921] rc.local[508]: + grep build_version
[   42.088423] rc.local[513]: + sed -e s/build_version: //g;s/'//g
[   42.164288] rc.local[500]: + SONIC_VERSION=master.371261-52f6dd65a
[   42.239331] rc.local[500]: + FIRST_BOOT_FILE=/host/image-master.371261-52f6dd65a/platform/firsttime
[   42.360070] rc.local[500]: + SONIC_CONFIG_DIR=/host/image-master.371261-52f6dd65a/sonic-config
[   42.471203] rc.local[500]: + SONIC_ENV_FILE=/host/image-master.371261-52f6dd65a/sonic-config/sonic-environment
[   42.603243] rc.local[500]: + [ -d /host/image-master.371261-52f6dd65a/sonic-config -a -f /host/image-master.371261-52f6dd65a/sonic-config/sonic-environment ]
[   42.780609] rc.local[500]: + logger SONiC version master.371261-52f6dd65a starting up...
[   42.887135] rc.local[500]: + grub_installation_needed=
[   42.951283] rc.local[500]: + [ ! -e /host/machine.conf ]
[   43.015334] rc.local[500]: + . /host/machine.conf
[   43.075199] rc.local[500]: + aboot_version=6.1.7-13531819
[   43.156441] rc.local[500]: + aboot_vendor=arista
[FAILED] Failed to start System Logging Service.
[   43.215317] rc.local[500]: + aboot_platform=x86_64-arista_7060_cx32s
[   43.380551] rc.local[500]: + aboot_machine=arista_7060_cx32s
[   43.451284] rc.local[500]: + aboot_arch=x86_64
[FAILED] Failed to start System Logging Service.
[   43.511149] rc.local[500]: + aboot_build_date=1970-01-01T00:00:00.000000000
[   43.687202] rc.local[500]: + program_console_speed
[   43.751799] rc.local[517]: + cat /proc/cmdline
[FAILED] Failed to start System Logging Service.
[   43.813662] rc.local[518]: + grep -Eo console=tty(S|AMA)[0-9]+,[0-9]+
[   43.991535] kdump-tools[494]: Starting kdump-tools:
[   44.051988] rc.local[520]: + cut -d , -f2
[FAILED] Failed to start System Logging Service.
[   44.107517] kdump-tools[538]: no crashkernel= parameter in the kernel cmdline ...
[   44.287346] kdump-tools[633]:  failed!
[FAILED] Failed to start System Logging Service.
[   44.344048] rc.local[500]: + speed=
[   44.475110] rc.local[500]: + [ -z  ]
[   44.519124] rc.local[500]: + CONSOLE_SPEED=9600
[FAILED] Failed to start System Logging Service.
[   44.586759] rc.local[530]: + grep agetty /lib/systemd/system/serial-getty@.service
[   44.769783] rc.local[531]: + grep keep-baud
[FAILED] Failed to start System Logging Service.
[   44.829269] rc.local[500]: + [ 1 = 0 ]
[   44.975190] rc.local[500]: + sed -i s|u' .* %I|u' 9600 %I|g /lib/systemd/system/serial-getty@.service
[   45.095149] rc.local[500]: + systemctl daemon-reload
[   45.155139] rc.local[500]: + [ -f /host/image-master.371261-52f6dd65a/platform/firsttime ]
[   45.263146] rc.local[500]: + [ -f /var/log/fsck.log.gz ]
[   45.335139] rc.local[500]: + exit 0
[   48.210421] arista: waiting for switch chip
[   48.261132] arista: switch chip is ready

Debian GNU/Linux 11 sonic ttyS0

sonic login: [   50.310382] arista: yielding...

sonic login: admin
Password:
Linux sonic 5.10.0-23-2-amd64 #1 SMP Debian 5.10.179-3 (2023-07-27) x86_64
You are on
  ____   ___  _   _ _  ____
 / ___| / _ \| \ | (_)/ ___|
 \___ \| | | |  \| | | |
  ___) | |_| | |\  | | |___
 |____/ \___/|_| \_|_|\____|

-- Software for Open Networking in the Cloud --

Unauthorized access and/or use are prohibited.
All access and/or use are subject to monitoring.

Help:    https://sonic-net.github.io/SONiC/

Last login: Tue May 14 18:57:20 UTC 2024 on ttyS0
admin@sonic:~$
admin@sonic:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            3.9G     0  3.9G   0% /dev
tmpfs           793M  1.3M  792M   1% /run
root-overlay    3.6G  1.3G  2.3G  37% /
/dev/mmcblk0p1  3.6G  1.3G  2.3G  37% /host
/dev/zram0      2.4G  2.4G  8.5M 100% /var/lib/docker
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@sonic:~$ free -g -h -t
               total        used        free      shared  buff/cache   available
Mem:           7.7Gi       803Mi       3.5Gi       1.0Mi       3.4Gi       6.7Gi
Swap:             0B          0B          0B
Total:         7.7Gi       803Mi       3.5Gi
Bermutka commented 1 month ago

Same error on arista 7050QX-32S with 8gb ddr3 and 4gb usb-dom flash, will switching to a larger capacity usb drive with adapter help?

Bermutka commented 4 weeks ago

Since this switch is a test switch, I did the following:

I took an old atx case with external usb ports, unscrewed the board with external usb ports on the front panel, and used it in the switch, the pinout 9-pin usb atx and the port to which the usb-dom is connected are identical, after using an external disk on 128gb, with it docker unpacked correctly, for industrial use I think you can replace this horror with an adapter 9-pin usb - 2xusb-a, and use a flash drive for 32/64gb.