Hi!
I’m seeing a few errors with our latest mender 2.2 build.
dmesg shows me this:
GPT:Primary header thinks Alt. header is not at the end of the disk.
GPT:61046783 != 61071359
GPT:Alternate GPT header not at the end of the disk.
GPT:61046783 != 61071359
GPT: Use GNU Parted to correct GPT errors.
systemctl shows me this:
● mender-grow-data.service - Mender service to grow data partition size
Loaded: loaded (/lib/systemd/system/mender-grow-data.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2020-06-18 12:05:36 UTC; 54min ago
Process: 212 ExecStart=/usr/bin/mender-client-resize-data-part (code=exited, status=1/FAILURE)
Main PID: 212 (code=exited, status=1/FAILURE)
Jun 18 12:05:35 machine mender-client-resize-data-part[212]: and could in certain setups cause problems with:
Jun 18 12:05:35 machine mender-client-resize-data-part[212]: 1) software that runs at boot time (e.g., old versions of LILO)
Jun 18 12:05:35 machine mender-client-resize-data-part[212]: 2) booting and partitioning software from other OSs
Jun 18 12:05:35 machine mender-client-resize-data-part[212]: (e.g., DOS FDISK, OS/2 FDISK)
Jun 18 12:05:36 machine mender-client-resize-data-part[212]: Command (m for help): The partition table has been altered.
Jun 18 12:05:36 machine mender-client-resize-data-part[212]: Calling ioctl() to re-read partition table
Jun 18 12:05:36 machine mender-client-resize-data-part[212]: fdisk: WARNING: rereading partition table failed, kernel still uses old table: Device or resource busy
Jun 18 12:05:36 machine systemd[1]: mender-grow-data.service: Main process exited, code=exited, status=1/FAILURE
Jun 18 12:05:36 machine systemd[1]: mender-grow-data.service: Failed with result 'exit-code'.
Jun 18 12:05:36 machine systemd[1]: Failed to start Mender service to grow data partition size.
full log:
-- Logs begin at Thu 2020-06-18 12:05:33 UTC, end at Thu 2020-06-18 12:59:57 UTC. --
Jun 18 12:05:33 machine mender-client-resize-data-part[134]: The number of cylinders for this disk is set to 3786.
Jun 18 12:05:33 machine mender-client-resize-data-part[134]: There is nothing wrong with that, but this is larger than 1024,
Jun 18 12:05:33 machine mender-client-resize-data-part[134]: and could in certain setups cause problems with:
Jun 18 12:05:33 machine mender-client-resize-data-part[134]: 1) software that runs at boot time (e.g., old versions of LILO)
Jun 18 12:05:33 machine mender-client-resize-data-part[134]: 2) booting and partitioning software from other OSs
Jun 18 12:05:33 machine mender-client-resize-data-part[134]: (e.g., DOS FDISK, OS/2 FDISK)
Jun 18 12:05:34 machine mender-client-resize-data-part[134]: Command (m for help): The partition table has been altered.
Jun 18 12:05:34 machine mender-client-resize-data-part[134]: Calling ioctl() to re-read partition table
Jun 18 12:05:34 machine mender-client-resize-data-part[134]: fdisk: WARNING: rereading partition table failed, kernel still uses old table: Device or resource busy
Jun 18 12:05:34 machine systemd[1]: mender-grow-data.service: Main process exited, code=exited, status=1/FAILURE
Jun 18 12:05:34 machine systemd[1]: mender-grow-data.service: Failed with result 'exit-code'.
Jun 18 12:05:34 machine systemd[1]: Failed to start Mender service to grow data partition size.
Jun 18 12:05:35 machine systemd[1]: Starting Mender service to grow data partition size...
Jun 18 12:05:35 machine mender-client-resize-data-part[212]: The number of cylinders for this disk is set to 3786.
Jun 18 12:05:35 machine mender-client-resize-data-part[212]: There is nothing wrong with that, but this is larger than 1024,
Jun 18 12:05:35 machine mender-client-resize-data-part[212]: and could in certain setups cause problems with:
Jun 18 12:05:35 machine mender-client-resize-data-part[212]: 1) software that runs at boot time (e.g., old versions of LILO)
Jun 18 12:05:35 machine mender-client-resize-data-part[212]: 2) booting and partitioning software from other OSs
Jun 18 12:05:35 machine mender-client-resize-data-part[212]: (e.g., DOS FDISK, OS/2 FDISK)
Jun 18 12:05:36 machine mender-client-resize-data-part[212]: Command (m for help): The partition table has been altered.
Jun 18 12:05:36 machine mender-client-resize-data-part[212]: Calling ioctl() to re-read partition table
Jun 18 12:05:36 machine mender-client-resize-data-part[212]: fdisk: WARNING: rereading partition table failed, kernel still uses old table: Device or resource busy
Jun 18 12:05:36 machine systemd[1]: mender-grow-data.service: Main process exited, code=exited, status=1/FAILURE
Jun 18 12:05:36 machine systemd[1]: mender-grow-data.service: Failed with result 'exit-code'.
Jun 18 12:05:36 machine systemd[1]: Failed to start Mender service to grow data partition size.
disk is this:
machine:/home/user# fdisk -l
Disk /dev/mmcblk0: 29 GB, 31268536320 bytes, 61071360 sectors
3786 cylinders, 256 heads, 63 sectors/track
Units: sectors of 1 * 512 = 512 bytes
Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type
/dev/mmcblk0p1 0,0,2 1023,255,63 1 61046783 61046783 29.1G ee EFI GPT
The system is set up with these variables:
MENDER_STORAGE_TOTAL_SIZE_MB_DEFAULT = "29820"
MENDER_STORAGE_DEVICE = "/dev/mmcblk0"
MENDER_STORAGE_TOTAL_SIZE_MB = "29820"
MENDER_BOOT_PART_SIZE_MB = "128"
MENDER_DATA_PART_SIZE_MB = "1024"
Apparently we could disable the service via
MENDER_FEATURES_DISABLE_append = " mender-growfs-data"
but is this recommended? Any ideas what can be done to fix these errors?
Thanks in advance!