Well a bit of a follow up I guess:
I had already tried to re-install on the nuc, latest image, two days ago. Using gnome-disks. Booted nicely first time, then hanging again. After booting again from a debian live was showing me 1 bad sector…
Continuing today:
it’s on an msata, and the system is 5-ish years old… Just checking: https://ark.intel.com/content/www/us/en/ark/products/76977/intel-nuc-kit-d54250wyk.html > launch date: Q4’13 Ok maybe a bit older… still packing more then enough punch for a HA…
Well, a re-seat of the ram and msata never hurt anyone, so that’s what I did first.
Next, time to bootup systemrescuecd, and start testdisk on the drive… That reported that my hard disk was too small… strange I have restored on that same machine before using gnome-disks, and though I know it is not the supported way, this has been running for months on end…
Also got a report of unusual number of reserved sectors on the EFI drive, more detailed testdisk report below.
Sat Jan 23 09:11:58 2021
Command line: TestDisk
TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <[email protected]>
https://www.cgsecurity.org
OS: Linux, kernel 5.4.77-1.0-lts (#1 SMP Thu, 12 Nov 2020 08:07:52 +0000) i686
Compiler: GCC 10.1
ext2fs lib: 1.45.6, ntfs lib: libntfs-3g, reiserfs lib: 0.3.0.5, ewf lib: none, curses lib: ncurses 6.2
/dev/sda: LBA, HPA, LBA48, DCO support
/dev/sda: size 234441648 sectors
/dev/sda: user_max 234441648 sectors
/dev/sda: native_max 234441648 sectors
Warning: can't get size for Disk /dev/mapper/control - 0 B - 0 sectors, sector size=512
Warning: can't get size for Disk /dev/loop1 - 0 B - 0 sectors, sector size=512
Warning: can't get size for Disk /dev/loop2 - 0 B - 0 sectors, sector size=512
Warning: can't get size for Disk /dev/loop3 - 0 B - 0 sectors, sector size=512
Warning: can't get size for Disk /dev/loop4 - 0 B - 0 sectors, sector size=512
Warning: can't get size for Disk /dev/loop5 - 0 B - 0 sectors, sector size=512
Warning: can't get size for Disk /dev/loop6 - 0 B - 0 sectors, sector size=512
Warning: can't get size for Disk /dev/loop7 - 0 B - 0 sectors, sector size=512
Hard disk list
Disk /dev/sda - 120 GB / 111 GiB - CHS 14593 255 63, sector size=512 - Samsung SSD 840 EVO 120GB mSATA, S/N:S1KTNSAF904044K, FW:EXT41B6Q
Disk /dev/sdb - 31 GB / 29 GiB - CHS 30436 64 32 (RO), sector size=512 - ELEGANT ISOSTICK FLASH, FW:1.30
Disk /dev/sr0 - 702 MB / 670 MiB - 343040 sectors (RO), sector size=2048 - ELEGANT ISOSTICK CDROM, FW:1.30
Disk /dev/loop0 - 644 MB / 614 MiB - 1259032 sectors (RO), sector size=512
Partition table type (auto): EFI GPT
Disk /dev/sda - 120 GB / 111 GiB - Samsung SSD 840 EVO 120GB mSATA
Partition table type: EFI GPT
Analyse Disk /dev/sda - 120 GB / 111 GiB - CHS 14593 255 63
hdr_size=92
hdr_lba_self=1
hdr_lba_alt=12582911 (expected 234441647)
hdr_lba_start=34
hdr_lba_end=12582878
hdr_lba_table=2
hdr_entries=128
hdr_entsz=128
Current partition structure:
1 P EFI System 2048 67583 65536 [hassos-boot]
2 P Linux filesys. data 67584 116735 49152 [hassos-kernel0]
3 P Linux filesys. data 116736 641023 524288 [hassos-system0]
4 P Linux filesys. data 641024 690175 49152 [hassos-kernel1]
5 P Linux filesys. data 690176 1214463 524288 [hassos-system1]
6 P Linux filesys. data 1214464 1230847 16384 [hassos-bootstate]
7 P Linux filesys. data 1230848 1427455 196608 [hassos-overlay]
8 P Linux filesys. data 1427456 3524607 2097152 [hassos-data]
Backup partition structure
partition_save
search_part()
Disk /dev/sda - 120 GB / 111 GiB - CHS 14593 255 63
FAT16 at 0/32/33
check_FAT: Unusual number of reserved sectors 4 (FAT), should be 1.
FAT1 : 4-67
FAT2 : 68-131
start_rootdir : 132
Data : 164-65535
sectors : 65536
cluster_size : 4
no_of_cluster : 16343 (2 - 16344)
fat_length 64 calculated 64
heads/cylinder 64 (FAT) != 255 (HD)
sect/track 32 (FAT) != 63 (HD)
FAT16 at 0/32/33
EFI System 2048 67583 65536 [EFI System Partition] [hassos-boot]
FAT16, blocksize=2048, 33 MB / 32 MiB
recover_EXT2: s_block_group_nr=0/3, s_mnt_count=1/4294967295, s_blocks_per_group=8192, s_inodes_per_group=2048
recover_EXT2: s_blocksize=1024
recover_EXT2: s_blocks_count 24576
recover_EXT2: part_size 49152
Filesystem created: Fri Jan 1 14:03:11 2021
Last mount time: Fri Jan 1 14:03:11 2021
Linux filesys. data 67584 116735 49152 [hassos-kernel]
ext4 blocksize=1024 Large_file Sparse_SB, 25 MB / 24 MiB
recover_EXT2: s_block_group_nr=0/12, s_mnt_count=0/4294967295, s_blocks_per_group=8192, s_inodes_per_group=2048
recover_EXT2: s_blocksize=1024
recover_EXT2: s_blocks_count 98304
recover_EXT2: part_size 196608
Filesystem created: Fri Jan 1 14:03:11 2021
Linux filesys. data 1230848 1427455 196608 [hassos-overlay]
ext4 blocksize=1024 Large_file Sparse_SB, 100 MB / 96 MiB
recover_EXT2: s_block_group_nr=0/8, s_mnt_count=1/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 262144
recover_EXT2: part_size 2097152
Filesystem created: Fri Jan 1 14:02:07 2021
Last mount time: Fri Jan 1 14:02:08 2021
Linux filesys. data 1427456 3524607 2097152 [hassos-data]
ext4 blocksize=4096 Large_file Sparse_SB, 1073 MB / 1024 MiB
recover_EXT2: s_block_group_nr=0/888, s_mnt_count=2/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 29126769
recover_EXT2: part_size 233014152
Filesystem created: Fri Jan 1 14:02:07 2021
Last mount time: Thu Jan 21 23:04:58 2021
Linux filesys. data 14272510 247286661 233014152 [hassos-data]
ext4 blocksize=4096 Large_file Sparse_SB Recover, 119 GB / 111 GiB
This partition ends after the disk limits. (start=14272510, size=233014152, end=247286661, disk end=234441648)
recover_EXT2: s_block_group_nr=0/888, s_mnt_count=2/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 29126769
recover_EXT2: part_size 233014152
Filesystem created: Fri Jan 1 14:02:07 2021
Last mount time: Thu Jan 21 23:04:58 2021
Linux filesys. data 22661118 255675269 233014152 [hassos-data]
ext4 blocksize=4096 Large_file Sparse_SB Recover, 119 GB / 111 GiB
This partition ends after the disk limits. (start=22661118, size=233014152, end=255675269, disk end=234441648)
recover_EXT2: s_block_group_nr=0/888, s_mnt_count=2/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 29126769
recover_EXT2: part_size 233014152
Filesystem created: Fri Jan 1 14:02:07 2021
Last mount time: Thu Jan 21 23:04:58 2021
Linux filesys. data 34195454 267209605 233014152 [hassos-data]
ext4 blocksize=4096 Large_file Sparse_SB Recover, 119 GB / 111 GiB
This partition ends after the disk limits. (start=34195454, size=233014152, end=267209605, disk end=234441648)
recover_EXT2: s_block_group_nr=0/888, s_mnt_count=2/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 29126769
recover_EXT2: part_size 233014152
Filesystem created: Fri Jan 1 14:02:07 2021
Last mount time: Thu Jan 21 23:04:58 2021
Linux filesys. data 65128446 298142597 233014152 [hassos-data]
ext4 blocksize=4096 Large_file Sparse_SB Recover, 119 GB / 111 GiB
This partition ends after the disk limits. (start=65128446, size=233014152, end=298142597, disk end=234441648)
recover_EXT2: s_block_group_nr=0/888, s_mnt_count=2/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 29126769
recover_EXT2: part_size 233014152
Filesystem created: Fri Jan 1 14:02:07 2021
Last mount time: Thu Jan 21 23:04:58 2021
Linux filesys. data 91342846 324356997 233014152 [hassos-data]
ext4 blocksize=4096 Large_file Sparse_SB Recover, 119 GB / 111 GiB
This partition ends after the disk limits. (start=91342846, size=233014152, end=324356997, disk end=234441648)
recover_EXT2: s_block_group_nr=0/888, s_mnt_count=2/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 29126769
recover_EXT2: part_size 233014152
Filesystem created: Fri Jan 1 14:02:07 2021
Last mount time: Thu Jan 21 23:04:58 2021
Linux filesys. data 165267454 398281605 233014152 [hassos-data]
ext4 blocksize=4096 Large_file Sparse_SB Recover, 119 GB / 111 GiB
This partition ends after the disk limits. (start=165267454, size=233014152, end=398281605, disk end=234441648)
recover_EXT2: s_block_group_nr=0/888, s_mnt_count=2/4294967295, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 29126769
recover_EXT2: part_size 233014152
Filesystem created: Fri Jan 1 14:02:07 2021
Last mount time: Thu Jan 21 23:04:58 2021
Linux filesys. data 192530430 425544581 233014152 [hassos-data]
ext4 blocksize=4096 Large_file Sparse_SB Recover, 119 GB / 111 GiB
This partition ends after the disk limits. (start=192530430, size=233014152, end=425544581, disk end=234441648)
Disk /dev/sda - 120 GB / 111 GiB - CHS 14593 255 63
Check the harddisk size: HD jumper settings, BIOS detection...
The harddisk (120 GB / 111 GiB) seems too small! (< 217 GB / 202 GiB)
The following partitions can't be recovered:
Linux filesys. data 14272510 247286661 233014152 [hassos-data]
ext4 blocksize=4096 Large_file Sparse_SB Recover, 119 GB / 111 GiB
Linux filesys. data 22661118 255675269 233014152 [hassos-data]
ext4 blocksize=4096 Large_file Sparse_SB Recover, 119 GB / 111 GiB
Linux filesys. data 34195454 267209605 233014152 [hassos-data]
ext4 blocksize=4096 Large_file Sparse_SB Recover, 119 GB / 111 GiB
Linux filesys. data 65128446 298142597 233014152 [hassos-data]
ext4 blocksize=4096 Large_file Sparse_SB Recover, 119 GB / 111 GiB
Linux filesys. data 91342846 324356997 233014152 [hassos-data]
ext4 blocksize=4096 Large_file Sparse_SB Recover, 119 GB / 111 GiB
Linux filesys. data 165267454 398281605 233014152 [hassos-data]
ext4 blocksize=4096 Large_file Sparse_SB Recover, 119 GB / 111 GiB
Linux filesys. data 192530430 425544581 233014152 [hassos-data]
ext4 blocksize=4096 Large_file Sparse_SB Recover, 119 GB / 111 GiB
Results
P EFI System 2048 67583 65536 [EFI System Partition] [hassos-boot]
FAT16, blocksize=2048, 33 MB / 32 MiB
P Linux filesys. data 67584 116735 49152 [hassos-kernel]
ext4 blocksize=1024 Large_file Sparse_SB, 25 MB / 24 MiB
P Linux filesys. data 1230848 1427455 196608 [hassos-overlay]
ext4 blocksize=1024 Large_file Sparse_SB, 100 MB / 96 MiB
P Linux filesys. data 1427456 3524607 2097152 [hassos-data]
ext4 blocksize=4096 Large_file Sparse_SB, 1073 MB / 1024 MiB
Hint for advanced users: dmsetup may be used if you prefer to avoid rewriting the partition table for the moment:
echo "0 65536 linear /dev/sda 2048" | dmsetup create test0
echo "0 49152 linear /dev/sda 67584" | dmsetup create test1
echo "0 196608 linear /dev/sda 1230848" | dmsetup create test2
echo "0 2097152 linear /dev/sda 1427456" | dmsetup create test3
dir_partition inode=0
P EFI System 2048 67583 65536 [EFI System Partition] [hassos-boot]
FAT16, blocksize=2048, 33 MB / 32 MiB
Directory /
2 drwxr-xr-x 0 0 0 1-Jan-2021 14:03 EFI
182 -rwxr-xr-x 0 0 13 1-Jan-2021 14:03 CMDLINE.TXT
FAT: cluster=2(0x2), pos=2212
FAT: cluster=3(0x3), pos=2216
fat_copy dst=/root/EFI/BOOT/BOOTx64.EFI first_cluster=4 (172) size=360433
FAT: cluster=180(0xb4), pos=2924
fat_copy dst=/root/EFI/BAREBOX/STATE.DTB first_cluster=181 (880) size=1249
dir_partition inode=2
P Linux filesys. data 67584 116735 49152 [hassos-kernel]
ext4 blocksize=1024 Large_file Sparse_SB, 25 MB / 24 MiB
Directory /
2 drwxr-xr-x 0 0 1024 1-Jan-2021 14:03 .
2 drwxr-xr-x 0 0 1024 1-Jan-2021 14:03 ..
11 drwx------ 0 0 12288 1-Jan-2021 14:03 lost+found
12 -rw-r--r-- 0 0 11805568 1-Jan-2021 14:03 bzImage
interface_write()
1 P EFI System 2048 67583 65536 [EFI System Partition] [hassos-boot]
2 P Linux filesys. data 67584 116735 49152 [hassos-kernel]
3 P Linux filesys. data 1230848 1427455 196608 [hassos-overlay]
4 P Linux filesys. data 1427456 3524607 2097152 [hassos-data]
simulate write!
TestDisk exited normally.
You can let testdisk try and repair, but that was not my intention, I just wanted a report. I’m not aware on how the setup process of HA works internally, but something went wrong…
Next up: RAM test and bios update, in that particular order…
The ram test takes a while: Just under 40 minutes for 1 pass on a single sodimm ddr3-1600 8GB, no errors reported.
Bios was already up to date…
Next up, create new partition table so booting up sysresccd once again this time gparted. This also shows the current partition table has errors and offers to fix it. I’m just creating a new one…
And finally, re-install the image using gnome-disks again. Booting just fine.
To restore the backup, I just untarred the way too large snapshot with media included, deleted the media.tar.gz, removed the media entry from the json file and tarred it all up again. Uploaded the snapshot and it restored without any issue.
With everything up and running > tried to backup the drive using clonezilla: aaaand it fails on the last partition logs below…
Starting /usr/sbin/ocs-sr at 2021-01-23 14:08:52 UTC...
*****************************************************.
Clonezilla image dir: /home/partimag
Shutting down the Logical Volume Manager
Finished Shutting down the Logical Volume Manager
The selected devices: sda
PS. Next time you can run this command directly:
/usr/sbin/ocs-sr -q2 -c -j2 -z1p -i 2000 -p true savedisk 2021-01-23-14-img-ha sda
*****************************************************.
The selected devices: sda
Searching for data partition(s)...
Searching for swap partition(s)...
The data partition to be saved: sda1 sda2 sda3 sda4 sda5 sda6 sda7 sda8
The swap partition to be saved:
The selected devices: sda1 sda2 sda3 sda4 sda5 sda6 sda7 sda8
The following step is to save the hard disk/partition(s) on this machine as an image:
*****************************************************.
Machine:
sda (120GB_Samsung_SSD_840__Samsung_SSD_840_EVO_120GB_mSATA_S1KTNSAF904044K)
sda1 (32M_vfat_hassos-boot(In_Samsung_SSD_840_)_Samsung_SSD_840_EVO_120GB_mSATA_S1KTNSAF904044K)
sda2 (24M_ext4(In_Samsung_SSD_840_)_Samsung_SSD_840_EVO_120GB_mSATA_S1KTNSAF904044K)
sda3 (256M_squashfs(In_Samsung_SSD_840_)_Samsung_SSD_840_EVO_120GB_mSATA_S1KTNSAF904044K)
sda4 (24M_hassos-kernel1(In_Samsung_SSD_840_)_Samsung_SSD_840_EVO_120GB_mSATA_S1KTNSAF904044K)
sda5 (256M_hassos-system1(In_Samsung_SSD_840_)_Samsung_SSD_840_EVO_120GB_mSATA_S1KTNSAF904044K)
sda6 (8M_hassos-bootstate(In_Samsung_SSD_840_)_Samsung_SSD_840_EVO_120GB_mSATA_S1KTNSAF904044K)
sda7 (96M_ext4(In_Samsung_SSD_840_)_Samsung_SSD_840_EVO_120GB_mSATA_S1KTNSAF904044K)
sda8 (111.1G_ext4(In_Samsung_SSD_840_)_Samsung_SSD_840_EVO_120GB_mSATA_S1KTNSAF904044K)
*****************************************************.
-> "/home/partimag/2021-01-23-14-img-ha".
Shutting down the Logical Volume Manager
Finished Shutting down the Logical Volume Manager
Saving block devices info in /home/partimag/2021-01-23-14-img-ha/blkdev.list...
Saving block devices attributes in /home/partimag/2021-01-23-14-img-ha/blkid.list...
Checking the integrity of partition table in the disk /dev/sda...
Reading the partition table for /dev/sda...RETVAL=0
*****************************************************.
Saving the primary GPT of sda as /home/partimag/2021-01-23-14-img-ha/sda-gpt-1st by dd...
34+0 records in
34+0 records out
17408 bytes (17 kB) copied, 0.000477713 s, 36.4 MB/s
*****************************************************.
Saving the secondary GPT of sda as /home/partimag/2021-01-23-14-img-ha/sda-gpt-2nd by dd...
32+0 records in
32+0 records out
16384 bytes (16 kB) copied, 0.00619575 s, 2.6 MB/s
*****************************************************.
Saving the GPT of sda as /home/partimag/2021-01-23-14-img-ha/sda-gpt.gdisk by gdisk...
The operation has completed successfully.
*****************************************************.
Saving the MBR data for sda...
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.000137947 s, 3.7 MB/s
Starting saving /dev/sda1 as /home/partimag/2021-01-23-14-img-ha/sda1.XXX...
/dev/sda1 filesystem: vfat.
*****************************************************.
*****************************************************.
Use partclone with pigz to save the image.
Image file will be split with size limit 2000 MB.
*****************************************************.
If this action fails or hangs, check:
* Is the disk full ?
*****************************************************.
Run partclone: partclone.vfat -z 10485760 -N -L /var/log/partclone.log -c -s /dev/sda1 --output - | pigz -c --fast -b 1024 -p 16 --rsyncable | split -b 2000m - /home/partimag/2021-01-23-14-img-ha/sda1.vfat-ptcl-img.gz. 2> /tmp/split_error.qw6ZuE
Partclone v0.2.73 http://partclone.org
Starting to clone device (/dev/sda1) to image (-)
Reading Super Block
we need memory: 12868 bytes
image head 4160, bitmap 8192, crc 516 bytes
Calculating bitmap... Please wait... done!
File system: FAT16
Device size: 33.6 MB = 65536 Blocks
Space in use: 454.7 KB = 888 Blocks
Free Space: 33.1 MB = 64648 Blocks
Block size: 512 Byte
Total block 65536
Syncing... OK!
Partclone successfully cloned the device (/dev/sda1) to the image (-)
>>> Time elapsed: 7.11 secs (~ .118 mins)
*****************************************************.
Finished saving /dev/sda1 as /home/partimag/2021-01-23-14-img-ha/sda1.vfat-ptcl-img.gz
*****************************************************.
Starting saving /dev/sda2 as /home/partimag/2021-01-23-14-img-ha/sda2.XXX...
/dev/sda2 filesystem: ext4.
*****************************************************.
*****************************************************.
Use partclone with pigz to save the image.
Image file will be split with size limit 2000 MB.
*****************************************************.
If this action fails or hangs, check:
* Is the disk full ?
*****************************************************.
Run partclone: partclone.ext4 -z 10485760 -N -L /var/log/partclone.log -c -s /dev/sda2 --output - | pigz -c --fast -b 1024 -p 16 --rsyncable | split -b 2000m - /home/partimag/2021-01-23-14-img-ha/sda2.ext4-ptcl-img.gz. 2> /tmp/split_error.cKvEfI
Partclone v0.2.73 http://partclone.org
Starting to clone device (/dev/sda2) to image (-)
Reading Super Block
we need memory: 8260 bytes
image head 4160, bitmap 3072, crc 1028 bytes
Calculating bitmap... Please wait... done!
File system: EXTFS
Device size: 25.2 MB = 24576 Blocks
Space in use: 13.9 MB = 13587 Blocks
Free Space: 11.3 MB = 10989 Blocks
Block size: 1024 Byte
Total block 24576
Syncing... OK!
Partclone successfully cloned the device (/dev/sda2) to the image (-)
>>> Time elapsed: 7.10 secs (~ .118 mins)
*****************************************************.
Finished saving /dev/sda2 as /home/partimag/2021-01-23-14-img-ha/sda2.ext4-ptcl-img.gz
*****************************************************.
Starting saving /dev/sda3 as /home/partimag/2021-01-23-14-img-ha/sda3.XXX...
/dev/sda3 filesystem: squashfs.
*****************************************************.
This file system is not supported by smart programs, e.g. partclone, partimage or ntfsclone, or you force to use dd to save the file system: squashfs
dd will save and restore all the blocks in the harddrive, no matter if the block is used or not.
Use this method to save the image instead of partclone, partimage or ntfsclone: partclone.dd + pigz
Image file will be split with size limit 2000 MB.
If this action fails or hangs after several minutes, check:
* Is the disk full ?
*****************************************************.
Run partclone: partclone.dd -z 10485760 -N -L /var/log/partclone.log -s /dev/sda3 --output - | pigz -c --fast -b 1024 -p 16 --rsyncable | split -b 2000m - /home/partimag/2021-01-23-14-img-ha/sda3.dd-img. 2> /tmp/split_error.SzPr9i
Partclone v0.2.73 http://partclone.org
Starting to clone/restore (/dev/sda3) to (-) with dd mode
get device size 268435456 by ioctl BLKGETSIZE64,
we need memory: 70212 bytes
image head 4160, bitmap 65536, crc 516 bytes
Calculating bitmap... Please wait... done!
File system: raw
Device size: 268.4 MB = 524288 Blocks
Space in use: 268.4 MB = 524288 Blocks
Free Space: 0 Byte = 0 Blocks
Block size: 512 Byte
Total block 524288
Syncing... OK!
>>> Time elapsed: 10.13 secs (~ .168 mins)
*****************************************************.
Finished saving /dev/sda3 as /home/partimag/2021-01-23-14-img-ha/sda3.dd-img
*****************************************************.
Starting saving /dev/sda4 as /home/partimag/2021-01-23-14-img-ha/sda4.XXX...
/dev/sda4 filesystem: hassos-kernel1.
*****************************************************.
This file system is not supported by smart programs, e.g. partclone, partimage or ntfsclone, or you force to use dd to save the file system: hassos-kernel1
dd will save and restore all the blocks in the harddrive, no matter if the block is used or not.
Use this method to save the image instead of partclone, partimage or ntfsclone: partclone.dd + pigz
Image file will be split with size limit 2000 MB.
If this action fails or hangs after several minutes, check:
* Is the disk full ?
*****************************************************.
Run partclone: partclone.dd -z 10485760 -N -L /var/log/partclone.log -s /dev/sda4 --output - | pigz -c --fast -b 1024 -p 16 --rsyncable | split -b 2000m - /home/partimag/2021-01-23-14-img-ha/sda4.dd-img. 2> /tmp/split_error.6ZDUQy
Partclone v0.2.73 http://partclone.org
Starting to clone/restore (/dev/sda4) to (-) with dd mode
get device size 25165824 by ioctl BLKGETSIZE64,
we need memory: 10820 bytes
image head 4160, bitmap 6144, crc 516 bytes
Calculating bitmap... Please wait... done!
File system: raw
Device size: 25.2 MB = 49152 Blocks
Space in use: 25.2 MB = 49152 Blocks
Free Space: 0 Byte = 0 Blocks
Block size: 512 Byte
Total block 49152
Syncing... OK!
>>> Time elapsed: 6.02 secs (~ .100 mins)
*****************************************************.
Finished saving /dev/sda4 as /home/partimag/2021-01-23-14-img-ha/sda4.dd-img
*****************************************************.
Starting saving /dev/sda5 as /home/partimag/2021-01-23-14-img-ha/sda5.XXX...
/dev/sda5 filesystem: hassos-system1.
*****************************************************.
This file system is not supported by smart programs, e.g. partclone, partimage or ntfsclone, or you force to use dd to save the file system: hassos-system1
dd will save and restore all the blocks in the harddrive, no matter if the block is used or not.
Use this method to save the image instead of partclone, partimage or ntfsclone: partclone.dd + pigz
Image file will be split with size limit 2000 MB.
If this action fails or hangs after several minutes, check:
* Is the disk full ?
*****************************************************.
Run partclone: partclone.dd -z 10485760 -N -L /var/log/partclone.log -s /dev/sda5 --output - | pigz -c --fast -b 1024 -p 16 --rsyncable | split -b 2000m - /home/partimag/2021-01-23-14-img-ha/sda5.dd-img. 2> /tmp/split_error.4lqC0r
Partclone v0.2.73 http://partclone.org
Starting to clone/restore (/dev/sda5) to (-) with dd mode
get device size 268435456 by ioctl BLKGETSIZE64,
we need memory: 70212 bytes
image head 4160, bitmap 65536, crc 516 bytes
Calculating bitmap... Please wait... done!
File system: raw
Device size: 268.4 MB = 524288 Blocks
Space in use: 268.4 MB = 524288 Blocks
Free Space: 0 Byte = 0 Blocks
Block size: 512 Byte
Total block 524288
Syncing... OK!
>>> Time elapsed: 6.04 secs (~ .100 mins)
*****************************************************.
Finished saving /dev/sda5 as /home/partimag/2021-01-23-14-img-ha/sda5.dd-img
*****************************************************.
Starting saving /dev/sda6 as /home/partimag/2021-01-23-14-img-ha/sda6.XXX...
/dev/sda6 filesystem: hassos-bootstate.
*****************************************************.
This file system is not supported by smart programs, e.g. partclone, partimage or ntfsclone, or you force to use dd to save the file system: hassos-bootstate
dd will save and restore all the blocks in the harddrive, no matter if the block is used or not.
Use this method to save the image instead of partclone, partimage or ntfsclone: partclone.dd + pigz
Image file will be split with size limit 2000 MB.
If this action fails or hangs after several minutes, check:
* Is the disk full ?
*****************************************************.
Run partclone: partclone.dd -z 10485760 -N -L /var/log/partclone.log -s /dev/sda6 --output - | pigz -c --fast -b 1024 -p 16 --rsyncable | split -b 2000m - /home/partimag/2021-01-23-14-img-ha/sda6.dd-img. 2> /tmp/split_error.QatNNv
Partclone v0.2.73 http://partclone.org
Starting to clone/restore (/dev/sda6) to (-) with dd mode
get device size 8388608 by ioctl BLKGETSIZE64,
we need memory: 6724 bytes
image head 4160, bitmap 2048, crc 516 bytes
Calculating bitmap... Please wait... done!
File system: raw
Device size: 8.4 MB = 16384 Blocks
Space in use: 8.4 MB = 16384 Blocks
Free Space: 0 Byte = 0 Blocks
Block size: 512 Byte
Total block 16384
Syncing... OK!
>>> Time elapsed: 6.02 secs (~ .100 mins)
*****************************************************.
Finished saving /dev/sda6 as /home/partimag/2021-01-23-14-img-ha/sda6.dd-img
*****************************************************.
Starting saving /dev/sda7 as /home/partimag/2021-01-23-14-img-ha/sda7.XXX...
/dev/sda7 filesystem: ext4.
*****************************************************.
*****************************************************.
Use partclone with pigz to save the image.
Image file will be split with size limit 2000 MB.
*****************************************************.
If this action fails or hangs, check:
* Is the disk full ?
*****************************************************.
Run partclone: partclone.ext4 -z 10485760 -N -L /var/log/partclone.log -c -s /dev/sda7 --output - | pigz -c --fast -b 1024 -p 16 --rsyncable | split -b 2000m - /home/partimag/2021-01-23-14-img-ha/sda7.ext4-ptcl-img.gz. 2> /tmp/split_error.kzfkOL
Partclone v0.2.73 http://partclone.org
Starting to clone device (/dev/sda7) to image (-)
Reading Super Block
we need memory: 17476 bytes
image head 4160, bitmap 12288, crc 1028 bytes
Calculating bitmap... Please wait... done!
File system: EXTFS
Device size: 100.7 MB = 98304 Blocks
Space in use: 9.2 MB = 8950 Blocks
Free Space: 91.5 MB = 89354 Blocks
Block size: 1024 Byte
Total block 98304
Syncing... OK!
Partclone successfully cloned the device (/dev/sda7) to the image (-)
>>> Time elapsed: 7.05 secs (~ .117 mins)
*****************************************************.
Finished saving /dev/sda7 as /home/partimag/2021-01-23-14-img-ha/sda7.ext4-ptcl-img.gz
*****************************************************.
Starting saving /dev/sda8 as /home/partimag/2021-01-23-14-img-ha/sda8.XXX...
/dev/sda8 filesystem: ext4.
*****************************************************.
*****************************************************.
Use partclone with pigz to save the image.
Image file will be split with size limit 2000 MB.
*****************************************************.
If this action fails or hangs, check:
* Is the disk full ?
*****************************************************.
Run partclone: partclone.ext4 -z 10485760 -N -L /var/log/partclone.log -c -s /dev/sda8 --output - | pigz -c --fast -b 1024 -p 16 --rsyncable | split -b 2000m - /home/partimag/2021-01-23-14-img-ha/sda8.ext4-ptcl-img.gz. 2> /tmp/split_error.fDMbTN
Partclone v0.2.73 http://partclone.org
Starting to clone device (/dev/sda8) to image (-)
Reading Super Block
we need memory: 3649108 bytes
image head 4160, bitmap 3640848, crc 4100 bytes
Calculating bitmap... Please wait... extfsclone.c: bitmap error at 50 group.
Failed to use partclone program to save or restore an image!
*****************************************************.
Failed to save partition /dev/sda8.
End of saveparts job for image /home/partimag/2021-01-23-14-img-ha.
*****************************************************.
End of savedisk job for image 2021-01-23-14-img-ha.
GPT 1st partition table file found!
GPT 2nd partition table file found!
GPT partition table file for this disk saved by gdisk was found: sda
MBR file for this disk was found: sda
e[1;33mThe image of this partition is restorable: sda1
e[0;39me[1;33mThe image of this partition is restorable: sda2
e[0;39mImage was saved by dd. No need to check the file system integrity: sda3
Image was saved by dd. No need to check the file system integrity: sda4
Image was saved by dd. No need to check the file system integrity: sda5
Image was saved by dd. No need to check the file system integrity: sda6
e[1;33mThe image of this partition is restorable: sda7
e[0;39me[1;31mBroken partition images were found, or some of them are not checkable in this image: 2021-01-23-14-img-ha
e[0;39mChecking if udevd rules have to be restored...
This program is not started by Clonezilla server, so skip notifying it the job is done.
Finished!
Now syncing - flush filesystem buffers...
Ending /usr/sbin/ocs-sr at 2021-01-23 14:16:13 UTC...
Before anyone asks, no the drive was not full, it’s a 2TB external drive, 25GB used
Started both another testdisk, and ran smart test, both passed (with smart reporting 1 re-allocated sector) I have logs of both…
System still boots fine, and works… I am ordering a replacement for the drive
What I’m missing in HA: a smart notifier… that’s really missing imho… everyone with common sense moves away from sd cards, but even ssd’s don’t last forever.
Another thing I would like to have: lvm on the drive. If I have enough space left on the device, I can make an lvm snapshot with OS running, then restore there, or backup the snapshot…
Well I hope if anyone else is having similar issues, this thread can help…
I really tried to make this reply as short as I could, even trimmed it down but it was a lot of work as well