mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-30 03:47:05 -05:00
Adds the new pool command to create a virtual view for the array.
This commit is contained in:
parent
dc1909ea03
commit
38e1f4e251
13 changed files with 514 additions and 52 deletions
90
snapraid.txt
90
snapraid.txt
|
|
@ -13,7 +13,7 @@ snapraid [-c, --conf CONFIG]
|
|||
[-Z, --force-zero] [-E, --force-empty]
|
||||
[-s, --start BLKSTART] [-t, --count BLKCOUNT]
|
||||
[-v, --verbose]
|
||||
sync|diff|dup|check|fix
|
||||
sync|pool|diff|dup|check|fix
|
||||
|
||||
snapraid [-V, --version] [-h, --help]
|
||||
|
||||
|
|
@ -81,7 +81,7 @@ Other limitations are:
|
|||
With a Backup you are able to recover from a complete
|
||||
failure of the whole disk array.
|
||||
* Only file, timestamps, symlinks and hardlinks are saved.
|
||||
Permissions, ownership, extended attributes are not saved.
|
||||
Permissions, ownership and extended attributes are not saved.
|
||||
|
||||
|
||||
4 GETTING STARTED
|
||||
|
|
@ -156,6 +156,27 @@ When this command completes, your data is SAFE.
|
|||
At this point you can start using your array as you like, and periodically
|
||||
update the redundancy information running the "sync" command.
|
||||
|
||||
4.1 Pooling
|
||||
-----------
|
||||
|
||||
To have all the files in your array shown in the same directory tree,
|
||||
you can enable "pooling", that consists in creating a virtual view of all
|
||||
the files in your array using symbolic links.
|
||||
You can configure the "pooling" directory in the configuration file with:
|
||||
|
||||
pool /pool
|
||||
|
||||
or, if you are in Windows, with:
|
||||
|
||||
pool C:\pool
|
||||
|
||||
and then run the "pool" command.
|
||||
|
||||
snapraid pool
|
||||
|
||||
4.2 Checking & Fixing
|
||||
---------------------
|
||||
|
||||
To check the integrity of your data you can use the "check" command:
|
||||
|
||||
snapraid check
|
||||
|
|
@ -170,7 +191,7 @@ Note that the fix command will revert your data at the state of the
|
|||
last "sync" command executed. It works like a snapshot was taken
|
||||
in "sync".
|
||||
|
||||
In this regard snapraid is more like a backup program than a RAID
|
||||
In this regard SnapRAID is more like a backup program than a RAID
|
||||
system. For example, you can use it to recover from an accidentally
|
||||
deleted directory, simply running the fix command like.
|
||||
|
||||
|
|
@ -210,7 +231,22 @@ without losing the work already done.
|
|||
The "content", "parity" and "q-parity" files are modified if necessary.
|
||||
The files in the array are NOT modified.
|
||||
|
||||
5.2 diff
|
||||
5.2 pool
|
||||
--------
|
||||
|
||||
Creates or updates in the "pooling" directory a virtual view of all
|
||||
the files of your disk array.
|
||||
|
||||
The files are not really copied here, but just linked using
|
||||
symbolic links.
|
||||
|
||||
When updating, all the present symbolic links and empty
|
||||
subdirectories are deleted and replaced with the new
|
||||
view of the array. Any othe regular file is left in place.
|
||||
|
||||
Nothing is modified outside the pool directory.
|
||||
|
||||
5.3 diff
|
||||
--------
|
||||
|
||||
Lists all the files modified from the last "sync" command that
|
||||
|
|
@ -218,27 +254,27 @@ have to recompute their redundancy data.
|
|||
|
||||
Nothing is modified.
|
||||
|
||||
5.3 dup
|
||||
5.4 dup
|
||||
-------
|
||||
|
||||
Lists all the duplicate files. Two files are assumed equal if their hashes
|
||||
are matching. The effective data is not read.
|
||||
Lists all the duplicate files. Two files are assumed equal if their
|
||||
hashes are matching. The effective data is not read.
|
||||
|
||||
Nothing is modified.
|
||||
|
||||
5.4 check
|
||||
5.5 check
|
||||
---------
|
||||
|
||||
Checks all the files and the redundancy data.
|
||||
All the files are hashed and compared with the snapshot saved
|
||||
in the previous "sync" command.
|
||||
If you use the -A, --audit-only option, only the file
|
||||
If you use the -a, --audit-only option, only the file
|
||||
data is checked, and the redundandy data is ignored.
|
||||
|
||||
Files are identified by path, and checked by content.
|
||||
Nothing is modified.
|
||||
|
||||
5.5 fix
|
||||
5.6 fix
|
||||
-------
|
||||
|
||||
Checks and fix all the files. It's like "check" but it
|
||||
|
|
@ -284,6 +320,8 @@ SnapRAID provides the following options:
|
|||
Only the files present in the specified disk are processed.
|
||||
You must specify a disk name as named in the configuration
|
||||
file.
|
||||
In "check", you can make it faster, specifing also -a, --audit-only
|
||||
option, to avoid to access other disks to check parity data.
|
||||
If you combine --filter and --filter-disk options, only files
|
||||
matching both the two groups of rules are selected.
|
||||
This option can be used many times.
|
||||
|
|
@ -308,9 +346,6 @@ SnapRAID provides the following options:
|
|||
the previous one, and not resynched.
|
||||
The nanosecond part of timestamps is ignored because most of
|
||||
copy programs are not able to correctly restore it.
|
||||
Note that if you use this option, all the hard-links will be
|
||||
stored independently wasting space. So, if you use hard-links,
|
||||
it's better to don't use it.
|
||||
This option can be used only with the "sync" and "diff" commands.
|
||||
|
||||
-Z, --force-zero
|
||||
|
|
@ -425,7 +460,7 @@ You should use one option for each disk of the array.
|
|||
------------
|
||||
|
||||
Excludes all the hidden files and directory.
|
||||
In Unix hidden files are the ones starting with '.'.
|
||||
In Unix hidden files are the ones starting with ".".
|
||||
In Windows they are the ones with the hidden attribute.
|
||||
|
||||
7.6 exclude/include PATTERN
|
||||
|
|
@ -480,12 +515,16 @@ going to waste 1.2 GiB.
|
|||
---- 7.7.1 autosave SIZE_IN_GIBIBYTES ----
|
||||
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'
|
||||
This option is useful to avoid to restart from scratch long "sync"
|
||||
commands interrupted by a machine crash, or any other event that
|
||||
may interrupt SnapRAID.
|
||||
The SIZE argument is specified in gibibytes. Where one gibi bytes
|
||||
is 1073741824 bytes.
|
||||
|
||||
---- 7.7.2 pool DIR ----
|
||||
Defines the pooling directory where the virtual view of the disk
|
||||
array is created using the "pool" command.
|
||||
|
||||
7.8 Examples
|
||||
------------
|
||||
|
||||
|
|
@ -611,7 +650,9 @@ scheduled SnapRAID nightly sync.
|
|||
|
||||
Then proceed with the following steps.
|
||||
|
||||
---- 9.0.1 STEP 1 -> Reconfigure ----
|
||||
9.1 STEP 1 -> Reconfigure
|
||||
-------------------------
|
||||
|
||||
You need some space to recover, even better if you already have an additional
|
||||
disk, but in case, also an external USB or remote one is enough.
|
||||
|
||||
|
|
@ -627,7 +668,9 @@ to:
|
|||
|
||||
disk d1 /mnt/new_spare_disk/
|
||||
|
||||
---- 9.0.2 STEP 2 -> Fix ----
|
||||
9.2 STEP 2 -> Fix
|
||||
-----------------
|
||||
|
||||
Run the fix command, storing the log in an external file with:
|
||||
|
||||
snapraid -d NAME fix 2>fix.log
|
||||
|
|
@ -653,17 +696,24 @@ If you are satisfied of the recovering, you can now proceed further,
|
|||
but take care that after synching you will no more able to retry the
|
||||
"fix" command!
|
||||
|
||||
---- 9.0.3 STEP 3 -> Check ----
|
||||
9.3 STEP 3 -> Check
|
||||
-------------------
|
||||
|
||||
As paranoid check, you can now run a whole "check" command to ensure that
|
||||
everything is OK.
|
||||
|
||||
snapraid -d NAME check
|
||||
snapraid -d NAME -a check
|
||||
|
||||
Where NAME is the name of the disk, like "d1" as in our previous example.
|
||||
|
||||
The options -d and -a tell SnapRAID to check only the specified disk,
|
||||
and ignore all the other data and redundancy disks.
|
||||
|
||||
This command will take a long time.
|
||||
|
||||
---- 9.0.4 STEP 4 -> Sync ----
|
||||
9.4 STEP 4 -> Sync
|
||||
------------------
|
||||
|
||||
Run the "sync" command to resyncronize the array with the new disk.
|
||||
|
||||
To avoid a long time sync you can use the "--find-by-name" option to
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue