Menu

NEWS: SnapRAID v12.0

Help
2021-12-08
2022-01-01
  • Andrea Mazzoleni

    SnapRAID v12.0 has been released at :

    http://www.snapraid.it/
    

    SnapRAID is a backup program for a disk array.

    SnapRAID stores parity information in the disk array,
    and it allows recovering from up to six disk failures.

    This is the list of changes:
    * Parallel disk scanning. It's always enabled but it doesn't cover the -m option
    that still process disks sequentially.

     
  • Master CATZ

    Master CATZ - 2021-12-08

    well I seen that "Parallel disk scanning. " and hopped right to it and broke it
    how ever in your defense I also just swapped out PSU today and my mainboard can be a little touchy so I will run some memory checks latter on

    Loading state from /home/snapraid.content...
    Failed call to pthread_mutex_lock().
    Stacktrace of snapraid v12.0, gcc 8.4.0, 64-bit, PATH_MAX=4096
    [bt] 01: snapraid(+0x1d246) [0x560a33dc4246]
    ??:0
    [bt] 02: snapraid(fs_size+0x7c) [0x560a33dc6e0c]
    ??:0
    [bt] 03: snapraid(parity_allocated_size+0x34) [0x560a33de2934]
    ??:0
    [bt] 04: snapraid(+0x279cd) [0x560a33dce9cd]
    ??:0
    [bt] 05: snapraid(state_read+0x243) [0x560a33dd0543]
    ??:0
    [bt] 06: snapraid(main+0x1242) [0x560a33db4912]
    ??:0
    [bt] 07: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7ff77645a0b3]
    ??:0
    [bt] 08: snapraid(_start+0x2e) [0x560a33db509e]
    ??:0
    Please report this error to the SnapRAID Forum:
    https://sourceforge.net/p/snapraid/discussion/1677233/
    /usr/bin/snapraid-btrfs: line 1245: 616652 Aborted                 (core dumped) "${snapraid_command[@]}"
    
     

    Last edit: Master CATZ 2021-12-08
  • Master CATZ

    Master CATZ - 2021-12-08

    hmm and downloaded the snapraid-12.0.tar.gz instead of using git and it worked

     
  • Andrea Mazzoleni

    Using git, it's required to delete the older .o files and reconfigure the source. Something like:

    make distclean
    sh autogen.sh
    ./configure
    make

     
  • Master CATZ

    Master CATZ - 2021-12-08

    Thanks heaps for this update .. worked a treat only took 116 sec to scan all disks vs ~2min per drive

    did syncing always have stripe/s ? new feature ?

    I also noticed less CPU is being used while syncing , it seems to only be using 1 core out of the 24 for the syncing ?
    and it seems to have separate threads for each drive writing to the log file ?

    my overall bandwidth while syncing seems to be a lot slower than it used to be
    I am unsure if its being limited to the write speed on the P disks as for some reason I am only getting 20MB/s write speed to each of the 4 P disks this used to be over 80MB/s per disk (128MB/s average) as its write speed 2~3GB/s sec total read 300~500MB/s total write
    over the 24 Drives I have in each 4RU rack

    running bonnie benchmarks I am still able to reach 128MB/s average R/W per drive so its not from me not reconnecting the power to the SAS Raid Card Properly and Multi-path is definalty still working

    Total DISK READ:       470.04 M/s | Total DISK WRITE:       118.57 M/s
    Current DISK READ:     470.87 M/s | Current DISK WRITE:      95.10 M/s
        TID  PRIO  USER     DISK READ  DISK WRITE  SWAPIN     IO>    COMMAND                                                            
    1141890 be/4 root        0.00 B/s   23.37 M/s  0.00 % 97.41 % snapraid -c /tmp/snapraid-btrfs.rM~home/aio/Documents/syncdec82021.txt
    1141893 be/4 root        0.00 B/s   23.37 M/s  0.00 % 97.40 % snapraid -c /tmp/snapraid-btrfs.rM~home/aio/Documents/syncdec82021.txt
    1251681 be/4 root      366.74 K/s    0.00 B/s  0.00 % 96.12 % zfs list -H -t snapshot -S creation -o name
    1141891 be/4 root        0.00 B/s   23.67 M/s  0.00 % 95.54 % snapraid -c /tmp/snapraid-btrfs.rM~home/aio/Documents/syncdec82021.txt
    1141892 be/4 root        0.00 B/s   23.67 M/s  0.00 % 82.04 % snapraid -c /tmp/snapraid-btrfs.rM~home/aio/Documents/syncdec82021.txt
    1141873 be/4 root       23.82 M/s    0.00 B/s  0.00 % 26.52 % snapraid -c /tmp/snapraid-btrfs.rM~home/aio/Documents/syncdec82021.txt
    1141880 be/4 root       24.05 M/s    0.00 B/s  0.00 % 20.48 % snapraid -c /tmp/snapraid-btrfs.rM~home/aio/Documents/syncdec82021.txt
    1141882 be/4 root       20.07 M/s    0.00 B/s  0.00 % 19.63 % snapraid -c /tmp/snapraid-btrfs.rM~home/aio/Documents/syncdec82021.txt
    1141884 be/4 root       21.46 M/s    0.00 B/s  0.00 % 12.68 % snapraid -c /tmp/snapraid-btrfs.rM~home/aio/Documents/syncdec82021.txt
    1141874 be/4 root       23.47 M/s    0.00 B/s  0.00 % 11.93 % snapraid -c /tmp/snapraid-btrfs.rM~home/aio/Documents/syncdec82021.txt
        165 be/4 root        0.00 B/s    0.00 B/s  0.00 % 10.44 % [kcompactd0]
    1141885 be/4 root       24.03 M/s    0.00 B/s  0.00 % 10.03 % snapraid -c /tmp/snapraid-btrfs.rM~home/aio/Documents/syncdec82021.txt
    1141879 be/4 root       24.00 M/s    0.00 B/s  0.00 %  8.79 % snapraid -c /tmp/snapraid-btrfs.rM~home/aio/Documents/syncdec82021.txt
    1141871 be/4 root       24.04 M/s    0.00 B/s  0.00 %  7.82 % snapraid -c /tmp/snapraid-btrfs.rM~home/aio/Documents/syncdec82021.txt
    1141870 be/4 root       23.99 M/s    0.00 B/s  0.00 %  7.34 % snapraid -c /tmp/snapraid-btrfs.rM~home/aio/Documents/syncdec82021.txt
    1141889 be/4 root       24.01 M/s    0.00 B/s  0.00 %  7.09 % snapraid -c /tmp/snapraid-btrfs.rM~home/aio/Documents/syncdec82021.txt
    1141872 be/4 root       24.00 M/s    0.00 B/s  0.00 %  4.79 % snapraid -c /tmp/snapraid-btrfs.rM~home/aio/Documents/syncdec82021.txt
    1141887 be/4 root       23.99 M/s    0.00 B/s  0.00 %  4.38 % snapraid -c /tmp/snapraid-btrfs.rM~home/aio/Documents/syncdec82021.txt
    1141881 be/4 root       24.00 M/s    0.00 B/s  0.00 %  4.31 % snapraid -c /tmp/snapraid-btrfs.rM~home/aio/Documents/syncdec82021.txt
    1141876 be/4 root       23.98 M/s    0.00 B/s  0.00 %  3.57 % snapraid -c /tmp/snapraid-btrfs.rM~home/aio/Documents/syncdec82021.txt
    1141888 be/4 root       18.27 M/s    0.00 B/s  0.00 %  3.35 % snapraid -c /tmp/snapraid-btrfs.rM~home/aio/Documents/syncdec82021.txt
    1141875 be/4 root       24.00 M/s    0.00 B/s  0.00 %  3.02 % snapraid -c /tmp/snapraid-btrfs.rM~home/aio/Documents/syncdec82021.txt
      12203 be/4 mysql      38.35 K/s   38.35 K/s  0.00 %  1.19 % mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid
    1141878 be/4 root       24.00 M/s    0.00 B/s  0.00 %  1.19 % snapraid -c /tmp/snapraid-btrfs.rM~home/aio/Documents/syncdec82021.txt
    1141883 be/4 root       23.99 M/s    0.00 B/s  0.00 %  0.77 % snapraid -c /tmp/snapraid-btrfs.rM~home/aio/Documents/syncdec82021.txt
    1227190 be/4 root        0.00 B/s    0.00 B/s  0.00 %  0.42 % udisksd [pool-udisksd]
    1170453 be/4 aio         0.00 B/s  791.02 K/s  0.00 %  0.27 % chrome --type=utility --utility-su~6, --shared-files [ThreadPoolForeg]
    1141877 be/4 root       23.99 M/s    0.00 B/s  0.00 %  0.22 % snapraid -c /tmp/snapraid-btrfs.rM~home/aio/Documents/syncdec82021.txt
    

    with 12Gbs Raid card with Multi-path

     

    Last edit: Master CATZ 2021-12-08
  • Charles Grisamore

    Ran into trouble during the 'make' process (see below). I followed directions from the Install readme file to extract the archive followed by './configure' and then 'make'.

    Note: System is running Debian Bullseye

    cmdline/unix.c: In function ‘filephy’:
    cmdline/unix.c:579:40: warning: array subscript 0 is outside the bounds of an interior zero-length array ‘struct fiemap_extent[0][-Wzero-length-bounds]
    579 | uint32_t flags = fm.fiemap.fm_extents[0].fe_flags;
    | ~~~~~~~~~~~~~~~~~~~~^~~
    In file included from cmdline/portable.h:129,
    from cmdline/unix.c:18:
    /usr/include/linux/fiemap.h:37:23: note: while referencing ‘fm_extents’
    37 | struct fiemap_extent fm_extents[0]; / array of mapped extents (out) /
    | ^~~~~~~~~~
    cmdline/unix.c:580:41: warning: array subscript 0 is outside the bounds of an interior zero-length array ‘struct fiemap_extent[0][-Wzero-length-bounds]
    580 | uint64_t offset = fm.fiemap.fm_extents[0].fe_physical;
    | ~~~~~~~~~~~~~~~~~~~~^~~
    In file included from cmdline/portable.h:129,
    from cmdline/unix.c:18:
    /usr/include/linux/fiemap.h:37:23: note: while referencing ‘fm_extents’
    37 | struct fiemap_extent fm_extents[0]; / array of mapped extents (out) /
    | ^~~~~~~~~~

     

    Last edit: Charles Grisamore 2021-12-08
    • Andrea Mazzoleni

      It's gcc 10 that it's more pedantic, and it doesn't like the Linux kernel headers. You can just ignore the warning.

      I'll disable the warning in the next release.

       
  • Charles Grisamore

    Sorry for the false alarm, I thought the warning messages were more serious and I didn't try the next step in the build process. Everything tested properly and working fine.

     
  • Master CATZ

    Master CATZ - 2022-01-01

    "fix" does not seem to run in parallel

    also I am trying to restore some single disks but its just wasting time on files that already exist
    btrfs fs damaged beyond repair so imaged disks reformatted then used used btrfs restore to do what files I could and was trying to run "fix" over the top from a sync done previous week to help catch any missing file (downside being any updated files from the last week would be old ) but its just wasting days on files that exist

    Disk 10 is pulled because "fix" kept hanging from I/O errors caused from a faulty btrfs
    currently putting files back onto a fresh Disk 10 and will try again and get both Disk 2 and 10 done at same time

    also how can I get "fix" to keep the original time stamps and permissions
    if I do not run as root most files are not retrieved and if I run as root they all end up with root being the owner

    "fix" does not seem to resume , or so I have to give it the same log file ?

    error:146717:d10:DATA/Backup/Nov2019/var/lib/docker/volumes/a_mysql_data/_data/server-cert.pem: Open error at position 0
    entry:0:block:known:bad:d10:DATA/Backup/Nov2019/var/lib/docker/volumes/a_mysql_data/_data/server-cert.pem:0:
    hash_import: Fixed entry 0
    recover_sync:146717:0: Skipped for already recovered
    msg:error: Missing file '/mnt/SnapRaidArray/SRD10NA1B9/DATA/Backup/Nov2019/var/lib/docker/volumes/a_mysql_data/_data/server-key.pem'.
    error:146718:d10:DATA/Backup/Nov2019/var/lib/docker/volumes/a_mysql_data/_data/server-key.pem: Open error at position 0
    entry:0:block:known:bad:d10:DATA/Backup/Nov2019/var/lib/docker/volumes/a_mysql_data/_data/server-key.pem:0:
    hash_import: Fixed entry 0
    recover_sync:146718:0: Skipped for already recovered
    msg:error: Missing file '/mnt/SnapRaidArray/SRD10NA1B9/DATA/Backup/Nov2019/var/lib/docker/volumes/a_opencart_data/_data/admin/controller/common/footer.php'.
    error:146719:d10:DATA/Backup/Nov2019/var/lib/docker/volumes/a_opencart_data/_data/admin/controller/common/footer.php: Open error at position 0
    entry:0:block:known:bad:d10:DATA/Backup/Nov2019/var/lib/docker/volumes/a_opencart_data/_data/admin/controller/common/footer.php:0:
    hash_import: Fixed entry 0
    recover_sync:146719:0: Skipped for already recovered
    msg:error: Missing file '/mnt/SnapRaidArray/SRD10NA1B9/DATA/Backup/Nov2019/var/lib/docker/volumes/a_opencart_data/_data/admin/controller/common/logout.php'.
    error:146720:d10:DATA/Backup/Nov2019/var/lib/docker/volumes/a_opencart_data/_data/admin/controller/common/logout.php: Open error at position 0
    entry:0:block:known:bad:d10:DATA/Backup/Nov2019/var/lib/docker/volumes/a_opencart_data/_data/admin/controller/common/logout.php:0:
    hash_import: Fixed entry 0
    recover_sync:146720:0: Skipped for already recovered
    msg:error: Missing file '/mnt/SnapRaidArray/SRD10NA1B9/DATA/Backup/Nov2019/var/lib/docker/volumes/a_opencart_data/_data/admin/controller/error/not_found.php'.
    error:146721:d10:DATA/Backup/Nov2019/var/lib/docker/volumes/a_opencart_data/_data/admin/controller/error/not_found.php: Open error at position 0
    entry:0:block:known:bad:d10:DATA/Backup/Nov2019/var/lib/docker/volumes/a_opencart_data/_data/admin/controller/error/not_found.php:0:
    hash_import: Fixed entry 0
    recover_sync:146721:0: Skipped for already recovered
    msg:error: Missing file '/mnt/SnapRaidArray/SRD10NA1B9/DATA/Backup/Nov2019/var/lib/docker/volumes/a_opencart_data/_data/admin/controller/error/permission.php'.
    error:146722:d10:DATA/Backup/Nov2019/var/lib/docker/volumes/a_opencart_data/_data/admin/controller/error/permission.php: Open error at position 0
    entry:0:block:known:bad:d10:DATA/Backup/Nov2019/var/lib/docker/volumes/a_opencart_data/_data/admin/controller/error/permission.php:0:
    
     

Log in to post a comment.