2011-04-25 13:43:51 +02:00
|
|
|
# Example configuration for snapraid
|
2011-03-12 10:23:42 +01:00
|
|
|
|
2011-04-25 13:43:51 +02:00
|
|
|
# Defines the file to use as Parity storage
|
|
|
|
|
# It must NOT be in a data disk
|
2011-03-12 10:23:42 +01:00
|
|
|
# Format: "parity FILE_PATH"
|
2011-03-22 23:37:06 +01:00
|
|
|
parity /mnt/diskpar/parity
|
2011-03-12 10:23:42 +01:00
|
|
|
|
2011-04-25 13:43:51 +02:00
|
|
|
# Defines the file to use as Q-Parity storage
|
|
|
|
|
# If specified, it enables a double failures protection like RAID6
|
|
|
|
|
# It must NOT be in a data disk
|
|
|
|
|
# Format: "q-parity FILE_PATH"
|
|
|
|
|
#q-parity /mnt/diskqar/q-parity
|
|
|
|
|
|
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"
|
2011-04-25 13:43:51 +02:00
|
|
|
content /var/snapraid/content
|
2011-12-08 10:34:32 +01:00
|
|
|
content /mnt/disk1/content
|
|
|
|
|
content /mnt/disk2/content
|
2011-03-12 10:23:42 +01:00
|
|
|
|
2011-03-22 23:37:06 +01:00
|
|
|
# Defines the data disks to use
|
2011-04-25 13:43:51 +02:00
|
|
|
# The order is relevant for parity, do not change it
|
2011-03-12 10:23:42 +01:00
|
|
|
# Format: "disk DISK_NAME DISK_MOUNT_POINT"
|
2011-03-22 23:37:06 +01:00
|
|
|
disk d1 /mnt/disk1/
|
|
|
|
|
disk d2 /mnt/disk2/
|
|
|
|
|
disk 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).
|
|
|
|
|
# nohidden
|
|
|
|
|
|
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/"
|
|
|
|
|
exclude *.bak
|
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/
|
|
|
|
|
|
2011-03-22 23:37:06 +01:00
|
|
|
# Defines the block size in kibi bytes (1024 bytes).
|
2011-03-20 13:54:05 +01:00
|
|
|
# Default value is 256 -> 256 kibi bytes -> 262144 bytes
|
2011-04-25 13:43:51 +02:00
|
|
|
# Format: "block_size SIZE_IN_KiB"
|
2011-03-17 09:54:02 +01:00
|
|
|
block_size 256
|
2011-03-16 23:52:10 +01:00
|
|
|
|
2012-03-13 23:59:59 +01:00
|
|
|
# Automatically save the state when synching after the specied amount
|
|
|
|
|
# of GiB processed.
|
|
|
|
|
# This option is useful to avoid to restart from scratch long 'sync'
|
|
|
|
|
# commands interrupted by a machine crash.
|
|
|
|
|
# The SIZE argument is specified in gibi bytes -> 1073741824 bytes
|
|
|
|
|
# Default value is 0, meaning disabled.
|
2013-07-20 09:12:15 +02:00
|
|
|
# Format: "autosave SIZE_IN_GiB"
|
2012-03-13 23:59:59 +01:00
|
|
|
# autosize 500
|
|
|
|
|
|
2013-02-22 22:17:54 +01:00
|
|
|
# Defines the pooling directory where the virtual view of the disk
|
|
|
|
|
# array is created using the "pool" command.
|
|
|
|
|
# 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
|
|
|
|
|
|