Reviews the documentation.

This commit is contained in:
Andrea Mazzoleni 2013-09-11 21:46:22 +02:00
parent 7ca7225922
commit 4012d26986
3 changed files with 76 additions and 96 deletions

View file

@ -9,8 +9,8 @@ Synopsis
: [-p, --percentage PERC] [-o, --older-than DAYS]
: [-Z, --force-zero] [-E, --force-empty]
: [-U, --force-uuid] [-D, --force-device]
: [-s, --start BLKSTART] [-t, --count BLKCOUNT]
: [-v, --verbose] [-l, --log FILE]
: [-s, --start BLKSTART] [-t, --count BLKCOUNT]
: sync|status|scrub|diff|dup|pool|check|fix|rehash
:snapraid [-V, --version] [-h, --help]
@ -240,9 +240,12 @@ Commands
in the disk array are read, and the redundancy data is
recomputed.
Files are identified by inode and checked by time and size,
meaning that you can move them on the disk without triggering
any redundancy recomputation.
Files are identified by path and/or inode and checked by
size and timestamp.
If the size or timestamp are different, the redundancy data is
recomputed for the whole file.
Using inode allow you can move them on the disk
without triggering any redundancy recomputation.
You can stop this process at any time pressing Ctrl+C,
without losing the work already done.
@ -289,7 +292,7 @@ Commands
at least one time every two months.
You can use the -p, --percentage option to specify a different amount,
and the -o, --older-than option to specify a different age.
and the -o, --older-than option to specify a different age in days.
Note that if only one of -p and -o is specified the default value of
the other option is not used.
@ -352,7 +355,10 @@ Commands
This option can be used to change the hash kind used,
typically when upgrading from a 32 bits system to a 64
bits one to switch from murmur3 to the faster spooky2.
bits one to switch from MurmurHash3 to the faster SpookyHash.
If you are already using the optimal hash, this command
do nothing and just inform you that nothing has to be done.
The rehash isn't done immediately, but it takes place
progressively during the "sync" and "scrub" commands.
@ -470,7 +476,7 @@ Options
-U, --force-uuid
Forces the insecure operation of syncing, checking and fixing
with disks that have changed the UUID.
with disks that have changed their UUID.
If SnapRAID detects that some disks have changed UUID,
it stops proceeding unless you specify this option.
This allows to detect when your disks are mounted in the
@ -486,18 +492,9 @@ Options
physical device.
If SnapRAID detects that two disks have the same device ID,
it stops proceeding, because it's not a supported configuration.
But it could happen what you want to temporarely restore a lost
But it could happen that you want to temporarely restore a lost
disk in the free space left in an already used disk. and this
option will allow you to continue anyway.
-s, --start BLKSTART
Starts the processing from the specified
block number. It could be useful to retry to check
or fix some specific block, in case of a damaged disk.
-t, --count BLKCOUNT
Process only the specified number of blocks.
It's present mainly for advanced manual recovering.
option allows you to continue anyway.
-l, --log FILE
Outputs a detailed log to the specified file.
@ -506,6 +503,16 @@ Options
If this option is not specified, the log is printed in
the console using the standard error stream.
-s, --start BLKSTART
Starts the processing from the specified
block number. It could be useful to retry to check
or fix some specific block, in case of a damaged disk.
It's present mainly for advanced manual recovering.
-t, --count BLKCOUNT
Processes only the specified number of blocks.
It's present mainly for advanced manual recovering.
-v, --verbose
Prints more information in the processing.
@ -834,21 +841,9 @@ Parity
They are binary files, containing the computed redundancy of all the
blocks defined in the "content" file.
You do not need to understand its format, but it's described here
for documentation.
These files are read and written by the "sync" and "fix" commands, and
only read by "check".
For all the blocks at a given position, the parity and the q-parity
are computed as specified in:
:http://kernel.org/pub/linux/kernel/people/hpa/raid6.pdf
When a file block is shorter than the default block size, for example
because it's the last block of a file, it's assumed as filled with 0
at the end.
Encoding
SnapRAID in Unix ignores any encoding. It simply reads and stores the
file names with the same encoding used by the filesystem.