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-03-22 23:37:06 +01:00
|
|
|
# Defines the file to use as content list
|
2011-04-25 13:43:51 +02:00
|
|
|
# You can use multiple specification to store more copies of the file
|
|
|
|
|
# It's suggested to have at least N+1 copies of the file, where N is the number of parity files.
|
|
|
|
|
# It must NOT be in a data disk
|
|
|
|
|
# It can be in the disks used for parity storage
|
2011-03-12 10:23:42 +01:00
|
|
|
# Format: "content FILE_PATH"
|
2011-03-22 23:37:06 +01:00
|
|
|
content /mnt/diskpar/content
|
2011-04-25 13:43:51 +02:00
|
|
|
#content /mnt/diskqar/content
|
|
|
|
|
content /var/snapraid/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-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-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
|
|
|
|