Hello All:
I have been building mender-artifacts for some time with help from tutorials and Mender support team.
For my raspberry pi image I have been using 64GB microSD card. I have been adding new features and necessary packages.
Now I am getting the error:
[FATAL] [mender-convert-package] You can try adjusting the MENDER_STORAGE_TOTAL_SIZE_MB variable to increase available space, or modify one of the variables IMAGE_ROOTFS_SIZE, IMAGE_ROOTFS_EXTRA_SPACE or IMAGE_OVERHEAD_FACTOR to reduce the size of the root filesystem.
Attached below is the full log file of my backup and mender-convert steps.
Eventually I will need to use 128GB microSD card. For now, how can I modify the parameters so that I can continue with 64GB microSD card (because removing the SD card is not possible for the current set of devices).
For now I am not using the data partition for anything unless it is being used for the mender itself.
Before I last-resort to remove some features and packages. I am thinking if I can fine tune the mender config parameters, but afraid of messing-up my mender-convert environment without fully understanding it.
Any guidance or help optimizing/fine tuning the parameters would be greatly appreciated.
Thanks,
Raj
-------X------------------
rajendra@SmartSquareSystems:~/Downloads/NewRPIimages-Stretch$ newbackuppistretch.sh āRemoved some packages to cleanup. and freeup space in rootfs.ā MENDERIT=1
Mon 14 Jun 2021 01:15:23 PM CDT
[sudo] password for rajendra:
Filesystem Size Used Avail Use% Mounted on
udev 7.8G 0 7.8G 0% /dev
tmpfs 1.6G 3.7M 1.6G 1% /run
/dev/sda2 4.6T 3.2T 1.2T 73% /
tmpfs 7.8G 4.3M 7.8G 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup
/dev/loop0 56M 56M 0 100% /snap/core18/2066
/dev/loop4 56M 56M 0 100% /snap/core18/1997
/dev/loop3 162M 162M 0 100% /snap/gnome-3-28-1804/128
/dev/loop2 99M 99M 0 100% /snap/core/11081
/dev/loop1 100M 100M 0 100% /snap/core/11167
/dev/loop5 163M 163M 0 100% /snap/gnome-3-28-1804/145
/dev/loop8 2.3M 2.3M 0 100% /snap/gnome-system-monitor/148
/dev/loop7 219M 219M 0 100% /snap/gnome-3-34-1804/72
/dev/loop6 219M 219M 0 100% /snap/gnome-3-34-1804/66
/dev/loop10 2.3M 2.3M 0 100% /snap/gnome-system-monitor/157
/dev/loop9 65M 65M 0 100% /snap/gtk-common-themes/1514
/dev/loop11 68M 68M 0 100% /snap/lxd/20326
/dev/loop12 5.7M 5.7M 0 100% /snap/notepad-plus-plus/260
/dev/loop13 66M 66M 0 100% /snap/gtk-common-themes/1515
/dev/loop15 51M 51M 0 100% /snap/snap-store/542
/dev/loop20 52M 52M 0 100% /snap/snap-store/518
/dev/loop14 136M 136M 0 100% /snap/skype/176
/dev/loop18 135M 135M 0 100% /snap/skype/173
/dev/loop16 338M 338M 0 100% /snap/wine-platform-runtime/216
/dev/loop17 338M 338M 0 100% /snap/wine-platform-runtime/220
/dev/loop19 304M 304M 0 100% /snap/wine-platform-5-stable/16
/dev/sda1 511M 18M 494M 4% /boot/efi
tmpfs 1.0M 0 1.0M 0% /var/snap/lxd/common/ns
tmpfs 1.6G 4.4M 1.6G 1% /run/user/1000
/dev/sdc2 15G 13G 934M 94% /media/rajendra
Mender Flag is: MENDERIT=1
RELABELED: export VERSION_NAME=NEWSSHP-202106141315.img >> /media/rajendra/home/ssqr/.smartsquare
15226+1 records in
15226+1 records out
63864569856 bytes (64 GB, 59 GiB) copied, 1589.93 s, 40.2 MB/s
Mon 14 Jun 2021 01:46:18 PM CDT
Backup completedā¦
Moving /home/rajendra/Downloads/NewRPIimages-Stretch//NEWSSHP-202106141315.img to /home/rajendra/mender-convert//input ā¦
-rw-rw-r-- 1 rajendra rajendra 63 Jun 14 13:15 NEWSSHP-202106141315.img.info
-rw-rw-r-- 1 rajendra rajendra 63864569856 Jun 14 13:46 NEWSSHP-202106141315.img
-rw-rw-r-- 1 rajendra rajendra 63864569856 Jun 14 13:46 /home/rajendra/mender-convert//input/NEWSSHP-202106141315.img
Image is placed in the mender-convert/input directory.
-rw-rw-r-- 1 rajendra rajendra 63864569856 Jun 14 13:46 /home/rajendra/mender-convert//input/NEWSSHP-202106141315.img
Now Gzipping /home/rajendra/mender-convert//input/NEWSSHP-202106141315.img > /home/rajendra/Downloads/NewRPIimages-Stretch//NEWSSHP-202106141315.img.gz ā¦
cd mender-convert; MENDER_ARTIFACT_NAME=NEWSSHP-202106141315.img ./docker-mender-convert --disk-image input/NEWSSHP-202106141315.img --config configs/raspberrypi3_config --overlay ./bootstrap-rootfs-overlay-hosted-server
Mon 14 Jun 2021 02:17:46 PM CDT
Mender Flag is: 1
To Menderize this release, run the following command.
Starting To Mendserizing in Background. Using ā¦
ā¦
ā¦
ā¦
ā¦
cd mender-convert; MENDER_ARTIFACT_NAME=NEWSSHP-202106141315.img ./docker-mender-convert --disk-image input/NEWSSHP-202106141315.img --config configs/raspberrypi3_config --overlay ./bootstrap-rootfs-overlay-hosted-server
Mon 14 Jun 2021 02:17:46 PM CDT
[sudo] password for rajendra:
BACKED UP THE RELABELED IMAGE AS: /media/rajendra/NEWSSHP-202106141315.img
umount: /media/rajendra: umount failed: Operation not permitted.
Mon 14 Jun 2021 02:26:03 PM CDT
rajendra@SmartSquareSystems:~/Downloads/NewRPIimages-Stretch$
rajendra@SmartSquareSystems:~/Downloads/NewRPIimages-Stretch$ cd
rajendra@SmartSquareSystems:~$ cd mender-convert; MENDER_ARTIFACT_NAME=NEWSSHP-202106141315.img ./docker-mender-convert --disk-image input/NEWSSHP-202106141315.img --config configs/raspberrypi3_config --overlay ./bootstrap-rootfs-overlay-hosted-server
Running mender-convert --disk-image input/NEWSSHP-202106141315.img --config configs/raspberrypi3_config --overlay ./bootstrap-rootfs-overlay-hosted-server
Running mender-convert-extract: --disk-image input/NEWSSHP-202106141315.img --config configs/raspberrypi3_config --overlay ./bootstrap-rootfs-overlay-hosted-server
2021-06-14 19:29:12 [INFO] [mender-convert-extract] Using configuration file: configs/mender_convert_config
2021-06-14 19:29:13 [INFO] [mender-convert-extract] Using configuration file: configs/raspberrypi3_config
2021-06-14 19:29:13 [INFO] [mender-convert-extract] Validating disk image
2021-06-14 19:29:13 [INFO] [mender-convert-extract] Disk parsed successfully
2021-06-14 19:29:13 [INFO] [mender-convert-extract] NUMBER OF PARTS: 2 TYPE: dos
2021-06-14 19:29:13 [INFO] [mender-convert-extract] PART 1: SIZE: 42.9M TYPE: 0xc
2021-06-14 19:29:13 [INFO] [mender-convert-extract] PART 1: extracting to work/part-1.fs
2021-06-14 19:29:15 [INFO] [mender-convert-extract] PART 2: SIZE: 14.7G TYPE: 0x83
2021-06-14 19:29:15 [INFO] [mender-convert-extract] PART 2: extracting to work/part-2.fs
mender-convert-extract has finished. Cleaning upā¦
Running mender-convert-modify: --disk-image input/NEWSSHP-202106141315.img --config configs/raspberrypi3_config --overlay ./bootstrap-rootfs-overlay-hosted-server
2021-06-14 19:39:30 [INFO] [mender-convert-modify] Using configuration file: configs/mender_convert_config
2021-06-14 19:39:30 [INFO] [mender-convert-modify] Using configuration file: configs/raspberrypi3_config
2021-06-14 19:39:43 [INFO] [mender-convert-modify] Installing Mender client and related files
2021-06-14 19:39:45 [INFO] [mender-convert-modify] Creating state scripts version file.
2021-06-14 19:39:45 [INFO] [mender-convert-modify] Installing a custom /etc/fstab (see work/convert.log for more info)
2021-06-14 19:39:45 [INFO] [mender-convert-modify] Performing platform specific modifications (if any)
2021-06-14 19:39:45 [INFO] [mender-convert-modify] Running hook: platform_modify
2021-06-14 19:39:50 [INFO] [mender-convert-modify] Certain service files have been changed to align with our /uboot boot partition mount point. See convert.log for more information
2021-06-14 19:39:50 [INFO] [mender-convert-modify] Enabling UART in U-Boot configuration
2021-06-14 19:39:50 [INFO] [mender-convert-modify] Performing user/local specific modifications (if any)
2021-06-14 19:39:50 [INFO] [mender-convert-modify] Running hook: user_local_modify
2021-06-14 19:39:50 [INFO] [mender-convert-modify] Applying rootfs overlay: ./bootstrap-rootfs-overlay-hosted-server
mender-convert-modify has finished. Cleaning upā¦
Running mender-convert-package: --disk-image input/NEWSSHP-202106141315.img --config configs/raspberrypi3_config --overlay ./bootstrap-rootfs-overlay-hosted-server
2021-06-14 19:39:51 [INFO] [mender-convert-package] Using configuration file: configs/mender_convert_config
2021-06-14 19:39:51 [INFO] [mender-convert-package] Using configuration file: configs/raspberrypi3_config
2021-06-14 19:40:24 [WARN] [mender-convert-package] The calculated rootfs partition size 18904 MiB is too small.
2021-06-14 19:40:24 [WARN] [mender-convert-package] The actual rootfs image size is 19797 MiB
2021-06-14 19:40:24 [FATAL] [mender-convert-package] You can try adjusting the MENDER_STORAGE_TOTAL_SIZE_MB variable to increase available space, or modify one of the variables IMAGE_ROOTFS_SIZE, IMAGE_ROOTFS_EXTRA_SPACE or IMAGE_OVERHEAD_FACTOR to reduce the size of the root filesystem.
mender-convert-package has finished. Cleaning upā¦
rajendra@SmartSquareSystems:~/Downloads/NewRPIimages-Stretch$
-------X------------------