2011-04-25 13:43:51 +02:00
|
|
|
# Example configuration for snapraid
|
2011-03-12 10:23:42 +01:00
|
|
|
|
2013-11-02 15:55:57 +01:00
|
|
|
# Defines the file to use as parity storage
|
2011-04-25 13:43:51 +02:00
|
|
|
# It must NOT be in a data disk
|
2011-03-12 10:23:42 +01:00
|
|
|
# Format: "parity FILE_PATH"
|
2014-03-18 19:34:18 +01:00
|
|
|
parity /mnt/diskp/snapraid.parity
|
2011-03-12 10:23:42 +01:00
|
|
|
|
2013-11-02 15:55:57 +01:00
|
|
|
# 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
|
2013-11-17 14:12:57 +01:00
|
|
|
# protection required. Start from 2-parity, and follow in order.
|
2011-04-25 13:43:51 +02:00
|
|
|
# It must NOT be in a data disk
|
2013-10-26 00:05:23 +02:00
|
|
|
# Format: "X-parity FILE_PATH"
|
2014-03-18 19:34:18 +01:00
|
|
|
#2-parity /mnt/diskq/snapraid.2-parity
|
|
|
|
|
#3-parity /mnt/diskr/snapraid.3-parity
|
|
|
|
|
#4-parity /mnt/disks/snapraid.4-parity
|
|
|
|
|
#5-parity /mnt/diskt/snapraid.5-parity
|
|
|
|
|
#6-parity /mnt/disku/snapraid.6-parity
|
2011-04-25 13:43:51 +02:00
|
|
|
|
2011-09-20 22:35:15 +02:00
|
|
|
# Defines the files to use as content list
|
|
|
|
|
# You can use multiple specification to store more copies
|
2011-09-19 20:45:35 +02:00
|
|
|
# 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
|
2011-03-12 10:23:42 +01:00
|
|
|
# Format: "content FILE_PATH"
|
2014-03-18 19:34:18 +01:00
|
|
|
content /var/snapraid.content
|
|
|
|
|
content /mnt/disk1/snapraid.content
|
|
|
|
|
content /mnt/disk2/snapraid.content
|
2011-03-12 10:23:42 +01:00
|
|
|
|
2011-03-22 23:37:06 +01:00
|
|
|
# Defines the data disks to use
|
2014-09-03 23:21:51 +02:00
|
|
|
# The name and mount point association is relevant for parity, do not change it
|
2015-04-19 22:07:06 +02:00
|
|
|
# WARNING: Adding here your /home, /var or /tmp disks is NOT a good idea!
|
|
|
|
|
# SnapRAID is better suited for files that rarely changes!
|
2011-03-12 10:23:42 +01:00
|
|
|
# Format: "disk DISK_NAME DISK_MOUNT_POINT"
|
2016-01-10 21:19:20 +01:00
|
|
|
data d1 /mnt/disk1/
|
|
|
|
|
data d2 /mnt/disk2/
|
|
|
|
|
data d3 /mnt/disk3/
|
2011-03-12 10:23:42 +01:00
|
|
|
|
2011-12-08 22:40:30 +01:00
|
|
|
# Excludes hidden files and directories (uncomment to enable).
|
2013-08-25 17:50:22 +02:00
|
|
|
#nohidden
|
2011-12-08 22:40:30 +01:00
|
|
|
|
2011-03-22 23:37:06 +01:00
|
|
|
# Defines files and directories to exclude
|
2011-05-04 19:22:39 +02:00
|
|
|
# Remember that all the paths are relative at the mount points
|
2011-03-16 23:52:10 +01:00
|
|
|
# Format: "exclude FILE"
|
|
|
|
|
# Format: "exclude DIR/"
|
|
|
|
|
# Format: "exclude /PATH/FILE"
|
|
|
|
|
# Format: "exclude /PATH/DIR/"
|
2011-10-09 23:41:08 +02:00
|
|
|
exclude *.unrecoverable
|
2011-05-04 19:22:39 +02:00
|
|
|
exclude /tmp/
|
2011-03-16 23:52:10 +01:00
|
|
|
exclude /lost+found/
|
|
|
|
|
|
2013-08-25 17:50:22 +02:00
|
|
|
# Defines the block size in kibi bytes (1024 bytes) (uncomment to enable).
|
2016-04-07 22:37:11 +02:00
|
|
|
# WARNING: Changing this value is for experts only!
|
2011-03-20 13:54:05 +01:00
|
|
|
# Default value is 256 -> 256 kibi bytes -> 262144 bytes
|
2014-02-12 22:10:06 +01:00
|
|
|
# Format: "blocksize SIZE_IN_KiB"
|
|
|
|
|
#blocksize 256
|
2011-03-16 23:52:10 +01:00
|
|
|
|
2016-04-07 22:37:11 +02:00
|
|
|
# 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 SIZE_IN_BYTES"
|
|
|
|
|
#hashsize 16
|
|
|
|
|
|
2015-04-21 21:40:36 +02:00
|
|
|
# Automatically save the state when syncing after the specified amount
|
2015-03-29 23:18:30 +02:00
|
|
|
# of GB processed (uncomment to enable).
|
2012-03-13 23:59:59 +01:00
|
|
|
# This option is useful to avoid to restart from scratch long 'sync'
|
|
|
|
|
# commands interrupted by a machine crash.
|
2013-08-25 17:50:22 +02:00
|
|
|
# It also improves the recovering if a disk break during a 'sync'.
|
2012-03-13 23:59:59 +01:00
|
|
|
# Default value is 0, meaning disabled.
|
2015-03-29 23:18:30 +02:00
|
|
|
# Format: "autosave SIZE_IN_GB"
|
2013-09-15 16:12:14 +02:00
|
|
|
#autosave 500
|
2012-03-13 23:59:59 +01:00
|
|
|
|
2013-02-22 22:17:54 +01:00
|
|
|
# Defines the pooling directory where the virtual view of the disk
|
2013-08-25 17:50:22 +02:00
|
|
|
# array is created using the "pool" command (uncomment to enable).
|
2013-02-22 22:17:54 +01:00
|
|
|
# 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
|
|
|
|
|
|
2015-04-08 22:56:44 +02:00
|
|
|
# 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 "%s" string is replaced by the device name.
|
|
|
|
|
# Refers at the smartmontools documentation about the possible options:
|
|
|
|
|
# RAID -> https://www.smartmontools.org/wiki/Supported_RAID-Controllers
|
|
|
|
|
# USB -> https://www.smartmontools.org/wiki/Supported_USB-Devices
|
|
|
|
|
#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
|
|
|
|
|
|