mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-25 09:26:27 -05:00
Update manpage
This commit is contained in:
parent
93ca95f67d
commit
abcff253de
4 changed files with 167 additions and 70 deletions
|
|
@ -651,11 +651,11 @@ Print the status of the array \-> \`status\`
|
|||
.IP \(bu
|
||||
Control the disks \-> \`smart\`, \`probe\`, \`up\`, \`down\`
|
||||
.IP \(bu
|
||||
Make a backup/snapshot \-> \`sync\`
|
||||
Make a backup/recovery point \-> \`sync\`
|
||||
.IP \(bu
|
||||
Periodically check data \-> \`scrub\`
|
||||
.IP \(bu
|
||||
Restore the last backup/snapshot \-> \`fix\`.
|
||||
Restore the last backup/recovery point \-> \`fix\`.
|
||||
.PD
|
||||
.PP
|
||||
Commands must be written in lowercase.
|
||||
|
|
@ -885,9 +885,9 @@ The files in the array are NOT modified.
|
|||
.SS fix
|
||||
Fixes all the files and the parity data.
|
||||
.PP
|
||||
All files and parity data are compared with the snapshot
|
||||
state saved in the last \`sync\`.
|
||||
If a difference is found, it is reverted to the stored snapshot.
|
||||
All files and parity data are compared with the state saved in
|
||||
the last \`sync\`.
|
||||
If a difference is found, it is reverted to the stored state.
|
||||
.PP
|
||||
WARNING! The \`fix\` command does not differentiate between errors and
|
||||
intentional modifications. It unconditionally reverts the file state
|
||||
|
|
@ -1428,20 +1428,31 @@ Note that such disks are not affected by the \`up\` and \`down\` commands
|
|||
because they are expected to be always spinning.
|
||||
.SS snapshot
|
||||
Enable the use of filesystem snapshots for the \`sync\`, \`scrub\`,
|
||||
\`check\`, and \`fix\` commands, provided the underlying filesystem
|
||||
supports it.
|
||||
\`check\`, and \`fix\` commands.
|
||||
.PP
|
||||
When enabled, SnapRAID creates a read\-only snapshot of your data at the
|
||||
start of a \'sync\'. This ensures a consistent, point\-in\-time view of your
|
||||
files, preventing errors caused by concurrent file modifications.
|
||||
.PP
|
||||
This option applies exclusively to data disks formatted with the Btrfs
|
||||
filesystem. Parity disks, or data disks using other filesystems, will
|
||||
always use the live version of the filesystem.
|
||||
.PP
|
||||
When enabled, SnapRAID ensures atomic and consistent operations by
|
||||
reading from a frozen point\-in\-time image. This prevents errors
|
||||
caused by file modifications during execution and ensures that
|
||||
updated and deleted files remain available for parity\-based
|
||||
recovery of other disks.
|
||||
This significantly improves recovery: if a file is deleted from the live
|
||||
filesystem, it remains preserved in the snapshot. This prevents the parity
|
||||
from becoming \[dq]broken\[dq] for that block, ensuring you can still successfully
|
||||
recover data if another disk fails.
|
||||
.PP
|
||||
See the SNAPSHOTS section for more details.
|
||||
Only Btrfs is supported. Snapshots are stored in a hidden \'.snapraid\'
|
||||
directory at the root of the Btrfs subvolume containing your data.
|
||||
SnapRAID will automatically detect the subvolume root for each data path.
|
||||
.PP
|
||||
Snapshot creation and deletion require administrative privileges.
|
||||
Ensure SnapRAID is run with the necessary permissions (e.g., sudo) when
|
||||
this option is enabled.
|
||||
.PP
|
||||
See the SNAPSHOTSsection for a detailed explanation of the snapshot
|
||||
lifecycle.
|
||||
.SS nohidden
|
||||
Excludes all hidden files and directories.
|
||||
In Unix, hidden files are those starting with \`.\`.
|
||||
|
|
@ -1799,11 +1810,26 @@ If a file is updated or deleted from the live filesystem,
|
|||
it remains preserved in the snapshot. If a disk failure occurs
|
||||
before the next sync is run, SnapRAID uses the data preserved
|
||||
in the snapshot to reconstruct the failed disk.
|
||||
.PD
|
||||
.PP
|
||||
.RS 4
|
||||
.PD 0
|
||||
In case of a disk failure during an active sync process,
|
||||
SnapRAID is also able to read automatically from both the
|
||||
snapshot of the previous parity computation and the current one.
|
||||
This maximizes the probability of a full recovery by
|
||||
providing access to the exact data blocks required to solve
|
||||
the parity equations, even if those blocks were modified
|
||||
or deleted between syncs.
|
||||
.PD
|
||||
.PP
|
||||
.PD 0
|
||||
Without snapshots, an updated or deleted file on a healthy
|
||||
disk results in missing data blocks that may be required to
|
||||
fix other failed disks.
|
||||
.PD
|
||||
.RE
|
||||
.RE
|
||||
.PP
|
||||
Snapshots are created only for data disks and only if the underlying
|
||||
filesystem supports this functionality. Parity disks always use
|
||||
|
|
@ -1812,6 +1838,10 @@ the live filesystem. At present, this is supported exclusively on Btrfs.
|
|||
You can mix data disks with different filesystems. Only those that
|
||||
support snapshots will utilize them, while other disks will continue
|
||||
to operate directly on the live filesystem.
|
||||
.PP
|
||||
Snapshot creation and deletion require administrative privileges.
|
||||
Ensure SnapRAID is run with the necessary permissions (e.g., sudo)
|
||||
when snapshots are enabled.
|
||||
.SS Command Behavior with Snapshots
|
||||
The \`sync\` and \`scrub\` commands both operate exclusively on snapshots
|
||||
to ensure that all data operations are performed against a consistent,
|
||||
|
|
@ -1827,16 +1857,20 @@ point that matches the existing parity.
|
|||
For the \`check\` and \`fix\` commands, the use of the last snapshot
|
||||
depends on whether specific disks are targeted using the
|
||||
\-d, \-\-filter\-disk option.
|
||||
Any disk explicitly selected for checking or fixing will use
|
||||
the live filesystem. This allows \`check\` to verify the current state of
|
||||
your files and \`fix\` to physically restore data to the active disk.
|
||||
.PP
|
||||
All other data disks not specified by the \-d, \-\-filter\-disk option
|
||||
will be accessed via their snapshots. These disks act as stable
|
||||
references, providing the necessary data blocks to solve the parity
|
||||
equations without interference from live changes. If no \-d option is
|
||||
provided, SnapRAID assumes the operation applies to the entire array,
|
||||
in this case, \`check\` and \`fix\` will use the live filesystems exclusively.
|
||||
A disk explicitly selected via \-d (the \[dq]target\[dq] of the operation)
|
||||
always uses the live filesystem. For \`fix\`, this allows restoring
|
||||
data to the active disk replacement. For \`check\`, it allows simulating
|
||||
the \`fix\` operation under the same conditions.
|
||||
.PP
|
||||
All other data disks (the \[dq]reference\[dq] disks) will be accessed via
|
||||
their snapshots. This ensures that even if you are modifying files
|
||||
on your healthy disks while a recovery is in progress, SnapRAID
|
||||
has a stable, frozen reference to solve the parity equations.
|
||||
.PP
|
||||
If no \-d option is provided, SnapRAID assumes the operation applies
|
||||
to the entire array, in this case, \`check\` and \`fix\` will use the
|
||||
live filesystems exclusively.
|
||||
.PP
|
||||
All other commands operate exclusively on the live filesystem.
|
||||
.SH SNAPSHOTS LIFECYCLE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue