Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
home_server:home_server_setup:other_services:snapraid [2023-05-28 Sun wk21 09:16] – baumkp | home_server:home_server_setup:other_services:snapraid [2025-02-16 Sun wk07 09:52] (current) – baumkp | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{tag> | ||
======snapraid====== | ======snapraid====== | ||
+ | I have been using [[https:// | ||
+ | The main snapraid commands I use are: | ||
+ | '' | ||
+ | '' | ||
+ | '' | ||
+ | '' | ||
+ | '' | ||
+ | |||
+ | Snapraid allows files and directories that have been deleted since the last sync to be recovered. | ||
+ | |||
+ | *'' | ||
+ | *'' | ||
+ | Snapraid does not expect you to provide the absolute file system path when fixing files. | ||
+ | *'' | ||
+ | *'' | ||
+ | *'' | ||
+ | *'' | ||
+ | |||
+ | |||
+ | The main snapraid configuration file ''/ | ||
+ | |||
+ | ++++Install Snapraid on Linux| | ||
+ | Some good references are [[https:// | ||
+ | |||
+ | <code bash> | ||
+ | |||
+ | cd | ||
+ | wget https:// | ||
+ | tar xzvf snapraid-12.3.tar.gz | ||
+ | cd snapraid-12.3/ | ||
+ | ./configure | ||
+ | make | ||
+ | make check | ||
+ | make install | ||
+ | cd .. | ||
+ | cp ~/ | ||
+ | cd .. | ||
+ | |||
+ | rm -rf snapraid* | ||
+ | </ | ||
+ | ++++ | ||
+ | |||
+ | ++++My main server configuration files, / | ||
+ | I probably should check this configuration file against the latest version example. | ||
+ | < | ||
+ | |||
+ | # Defines the file to use as parity storage | ||
+ | # It must NOT be in a data disk | ||
+ | # Format: " | ||
+ | parity / | ||
+ | |||
+ | # Defines the files to use as additional parity storage. | ||
+ | # If specified, they enable the multiple failures protection | ||
+ | # from two to six level of parity. | ||
+ | # To enable, uncomment one parity file for each level of extra | ||
+ | # protection required. Start from 2-parity, and follow in order. | ||
+ | # It must NOT be in a data disk | ||
+ | # Format: " | ||
+ | #2-parity / | ||
+ | #3-parity / | ||
+ | #4-parity / | ||
+ | #5-parity / | ||
+ | #6-parity / | ||
+ | |||
+ | # Defines the files to use as content list | ||
+ | # You can use multiple specification to store more copies | ||
+ | # You must have least one copy for each parity file plus one. Some more don't hurt | ||
+ | # They can be in the disks used for data, parity or boot, | ||
+ | # but each file must be in a different disk | ||
+ | # Format: " | ||
+ | content / | ||
+ | content / | ||
+ | content / | ||
+ | |||
+ | # Defines the data disks to use | ||
+ | # The name and mount point association is relevant for parity, do not change it | ||
+ | # WARNING: Adding here your /home, /var or /tmp disks is NOT a good idea! | ||
+ | # SnapRAID is better suited for files that rarely changes! | ||
+ | # Format: "data DISK_NAME DISK_MOUNT_POINT" | ||
+ | data d1 / | ||
+ | data d2 / | ||
+ | data d3 / | ||
+ | |||
+ | # Excludes hidden files and directories (uncomment to enable). | ||
+ | #nohidden | ||
+ | |||
+ | # Defines files and directories to exclude | ||
+ | # Remember that all the paths are relative at the mount points | ||
+ | # Format: " | ||
+ | # Format: " | ||
+ | # Format: " | ||
+ | # Format: " | ||
+ | exclude *.unrecoverable | ||
+ | exclude /tmp/ | ||
+ | exclude / | ||
+ | exclude /.Trash-0/ | ||
+ | exclude /*.vhdx | ||
+ | exclude .thumbs.db | ||
+ | exclude /VMs/ | ||
+ | exclude / | ||
+ | exclude logs/ | ||
+ | exclude log/ | ||
+ | #exclude .config/ | ||
+ | exclude .cache/ | ||
+ | exclude / | ||
+ | exclude .log | ||
+ | |||
+ | # Defines the block size in kibi bytes (1024 bytes) (uncomment to enable). | ||
+ | # WARNING: Changing this value is for experts only! | ||
+ | # Default value is 256 -> 256 kibi bytes -> 262144 bytes | ||
+ | # Format: " | ||
+ | #blocksize 256 | ||
+ | |||
+ | # Defines the hash size in bytes (uncomment to enable). | ||
+ | # WARNING: Changing this value is for experts only! | ||
+ | # Default value is 16 -> 128 bits | ||
+ | # Format: " | ||
+ | #hashsize 16 | ||
+ | |||
+ | # Automatically save the state when syncing after the specified amount | ||
+ | # of GB processed (uncomment to enable). | ||
+ | # This option is useful to avoid to restart from scratch long ' | ||
+ | # commands interrupted by a machine crash. | ||
+ | # It also improves the recovering if a disk break during a ' | ||
+ | # Default value is 0, meaning disabled. | ||
+ | # Format: " | ||
+ | autosave 100 | ||
+ | |||
+ | # Defines the pooling directory where the virtual view of the disk | ||
+ | # array is created using the " | ||
+ | # The files are not really copied here, but just linked using | ||
+ | # symbolic links. | ||
+ | # This directory must be outside the array. | ||
+ | # Format: "pool DIR" | ||
+ | #pool /pool | ||
+ | |||
+ | # Defines a custom smartctl command to obtain the SMART attributes | ||
+ | # for each disk. This may be required for RAID controllers and for | ||
+ | # some USB disk that cannot be autodetected. | ||
+ | # In the specified options, the " | ||
+ | # Refers at the smartmontools documentation about the possible options: | ||
+ | # RAID -> https:// | ||
+ | # USB -> https:// | ||
+ | #smartctl d1 -d sat %s | ||
+ | #smartctl d2 -d usbjmicron %s | ||
+ | #smartctl parity -d areca,1/1 /dev/sg0 | ||
+ | #smartctl 2-parity -d areca,2/1 /dev/sg0 | ||
+ | </ | ||
+ | ++++ | ||
<- home_server: | <- home_server: |