mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-04 05:40:14 -05:00
Compare commits
10 commits
19a5bd781f
...
7ba5f63d2d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7ba5f63d2d | ||
|
|
fe2a07fc78 | ||
|
|
76dd3d28ea | ||
|
|
34ac9a08e0 | ||
|
|
78337d7b70 | ||
|
|
9db5dc5ed1 | ||
|
|
e8726ce95a | ||
|
|
6971bd58c9 | ||
|
|
d6b0786eca | ||
|
|
5beb465d42 |
49 changed files with 2199 additions and 352 deletions
47
Makefile.am
47
Makefile.am
|
|
@ -1320,6 +1320,53 @@ endif # !HAVE_MEMORY_CHECKER
|
|||
$(TESTENV) $(SNAPRAID) $(CHECKFLAGS) -c $(REALLOC_SPLIT2) locate > /dev/null
|
||||
$(TESTENV) $(SNAPRAID) $(CHECKFLAGS) -c $(REALLOC_SPLIT2) sync
|
||||
$(TESTENV) $(SNAPRAID) $(CHECKFLAGS) -c $(REALLOC_SPLIT2) check
|
||||
$(MSG) Test adding a parity level after an interrupted normal shrink
|
||||
rm -rf bench/realloc-level
|
||||
mkdir -p bench/realloc-level/disk1
|
||||
mkdir -p bench/realloc-level/disk2
|
||||
mkdir -p bench/realloc-level/disk3
|
||||
mkdir -p bench/realloc-level/disk4
|
||||
mkdir -p bench/realloc-level/disk5
|
||||
mkdir -p bench/realloc-level/disk6
|
||||
dd bs=1024 count=1 if=/dev/urandom of=bench/realloc-level/disk1/data
|
||||
$(TESTENV) $(SNAPRAID) $(CHECKFLAGS) -c $(REALLOC_LEVEL1) sync
|
||||
dd bs=1024 count=1 if=/dev/urandom of=bench/realloc-level/disk1/tail
|
||||
$(TESTENV) $(SNAPRAID) $(CHECKFLAGS) -c $(REALLOC_LEVEL1) sync
|
||||
$(TESTENV) $(SNAPRAID) $(CHECKFLAGS) -c $(REALLOC_LEVEL2) -d 2-parity fix
|
||||
rm bench/realloc-level/disk1/tail
|
||||
$(TESTENV) $(SNAPRAID) $(CHECKFLAGS) -c $(REALLOC_LEVEL1) --test-kill-after-resize sync
|
||||
cp bench/realloc-level/content bench/realloc-level/content.checkpoint
|
||||
$(MSG) Accept the new level initialized at the old logical size
|
||||
$(TESTENV) $(SNAPRAID) $(CHECKFLAGS) -c $(REALLOC_LEVEL2) sync
|
||||
$(TESTENV) $(SNAPRAID) $(CHECKFLAGS) -c $(REALLOC_LEVEL2) check
|
||||
cp bench/realloc-level/content.checkpoint bench/realloc-level/content
|
||||
$(MSG) Accept the new level initialized at the checkpoint allocation
|
||||
$(TESTENV) $(SNAPRAID) $(CHECKFLAGS) -c $(REALLOC_LEVEL2) -d 2-parity fix
|
||||
$(TESTENV) $(SNAPRAID) $(CHECKFLAGS) -c $(REALLOC_LEVEL2) sync
|
||||
$(TESTENV) $(SNAPRAID) $(CHECKFLAGS) -c $(REALLOC_LEVEL2) check
|
||||
cp bench/realloc-level/content.checkpoint bench/realloc-level/content
|
||||
$(MSG) Accept the checkpoint allocation after adding files since fix
|
||||
dd bs=1024 count=2 if=/dev/urandom of=bench/realloc-level/disk1/growth
|
||||
$(TESTENV) $(SNAPRAID) $(CHECKFLAGS) -c $(REALLOC_LEVEL2) sync
|
||||
$(TESTENV) $(SNAPRAID) $(CHECKFLAGS) -c $(REALLOC_LEVEL2) check
|
||||
$(MSG) Test fix leaving pending parity shorter than the checkpoint allocation
|
||||
cp -p bench/realloc-level/disk1/data bench/realloc-level/disk2/data
|
||||
$(TESTENV) $(SNAPRAID) $(CHECKFLAGS) -c $(REALLOC_LEVEL2) sync
|
||||
cp -p bench/realloc-level/disk1/growth bench/realloc-level/disk1/tail
|
||||
$(TESTENV) $(SNAPRAID) $(CHECKFLAGS) -c $(REALLOC_LEVEL1) --test-kill-after-sync sync
|
||||
rm bench/realloc-level/disk2/data
|
||||
$(TESTENV) $(SNAPRAID) $(CHECKFLAGS) -c $(REALLOC_LEVEL1) fix
|
||||
$(TESTENV) $(SNAPRAID) $(CHECKFLAGS) -c $(REALLOC_LEVEL2) fix
|
||||
cp bench/realloc-level/content bench/realloc-level/content.checkpoint
|
||||
$(MSG) Resume after removing the pending additions
|
||||
mv bench/realloc-level/disk1/tail bench/realloc-level/tail
|
||||
$(TESTENV) $(SNAPRAID) $(CHECKFLAGS) -c $(REALLOC_LEVEL2) sync
|
||||
$(TESTENV) $(SNAPRAID) $(CHECKFLAGS) -c $(REALLOC_LEVEL2) check
|
||||
$(MSG) Resume with the pending additions still allocated
|
||||
mv bench/realloc-level/tail bench/realloc-level/disk1/tail
|
||||
cp bench/realloc-level/content.checkpoint bench/realloc-level/content
|
||||
$(TESTENV) $(SNAPRAID) $(CHECKFLAGS) -c $(REALLOC_LEVEL2) sync
|
||||
$(TESTENV) $(SNAPRAID) $(CHECKFLAGS) -c $(REALLOC_LEVEL2) check
|
||||
$(MSG) Test interrupted normal shrink after adding a parity split
|
||||
rm -rf bench/realloc-split
|
||||
mkdir -p bench/realloc-split/disk1
|
||||
|
|
|
|||
369
cmdline/check.c
369
cmdline/check.c
|
|
@ -174,20 +174,19 @@
|
|||
* Fix and quarantine model
|
||||
* ------------------------
|
||||
*
|
||||
* failed_struct distinguishes three properties of a recovery entry.
|
||||
* failed_struct distinguishes two properties of a recovery entry.
|
||||
*
|
||||
* is_bad means that the current file block is missing, unreadable or does not
|
||||
* match its expected current hash and therefore needs recovery.
|
||||
*
|
||||
* is_current means that buffer[index] contains certified CURRENT data, either
|
||||
* validated independently through import/search or successfully reconstructed
|
||||
* by RAID. Outside repair(), file_recover() writes this data to the original file
|
||||
* and reports it as fixed.
|
||||
* recovery tracks the data state of the block in buffer[index]:
|
||||
*
|
||||
* is_outofdate means that the recovered bytes associated with the entry cannot
|
||||
* be proven to represent the required CURRENT data. This is used both for the
|
||||
* auxiliary old CHG/REP/DELETED values of the pre-sync recovery strategy and
|
||||
* for ambiguous recovered CHG blocks. Outside repair(), an out-of-date candidate
|
||||
* RECOVERY_NONE not recovered (no valid replacement data available)
|
||||
* RECOVERY_CURRENT certified CURRENT data (via import/search or RAID)
|
||||
* RECOVERY_OUTOFDATE recovered candidate that cannot be certified CURRENT
|
||||
*
|
||||
* Outside repair(), file_recover() writes RECOVERY_CURRENT data to the original
|
||||
* file and reports it as fixed. An out-of-date candidate (RECOVERY_OUTOFDATE)
|
||||
* is written as best-effort data, but the containing file remains marked damaged
|
||||
* and is quarantined under the .unrecoverable name.
|
||||
*
|
||||
|
|
@ -226,6 +225,10 @@ static const char* es(int err)
|
|||
return "error";
|
||||
}
|
||||
|
||||
#define RECOVERY_NONE 0 /**< Not recovered (no valid candidate available) */
|
||||
#define RECOVERY_CURRENT 1 /**< Recovered and certified CURRENT (via import/search or RAID) */
|
||||
#define RECOVERY_OUTOFDATE 2 /**< Recovered candidate that cannot be certified CURRENT (best-effort / OLD / ambiguous) */
|
||||
|
||||
/**
|
||||
* A block participating in recovery.
|
||||
*
|
||||
|
|
@ -247,64 +250,31 @@ struct failed_struct {
|
|||
int is_bad;
|
||||
|
||||
/**
|
||||
* If the data associated with this entry cannot be proven to represent the
|
||||
* required CURRENT contents.
|
||||
* Data state of the buffer associated with this entry:
|
||||
*
|
||||
* This does not mean that the data is known to be wrong or actually old.
|
||||
* In particular, for a CHG block the stored hash describes the OLD contents,
|
||||
* but the block itself may not have changed even if the file was detected as
|
||||
* modified. Therefore data matching the OLD state may also be perfectly valid
|
||||
* CURRENT data.
|
||||
* RECOVERY_NONE:
|
||||
* The block is not recovered or does not contain valid replacement data.
|
||||
*
|
||||
* In the pre-sync parity strategy this is set on CHG, REP and DELETED entries
|
||||
* because their OLD contribution is being used or reconstructed as auxiliary
|
||||
* recovery state. Such data cannot be assumed to represent the required
|
||||
* CURRENT contents, even though in some cases OLD and CURRENT may actually be
|
||||
* identical.
|
||||
* RECOVERY_CURRENT:
|
||||
* buffer[index] contains certified CURRENT data.
|
||||
* During repair() strategy construction, this marks blocks obtained
|
||||
* and validated independently through import/search, making them reusable
|
||||
* as known inputs across strategies whose data generation is unchanged
|
||||
* (such as BLK and REBUILD).
|
||||
* Upon successful recovery, repair() marks all recovered non-outofdate blocks
|
||||
* with RECOVERY_CURRENT.
|
||||
* Outside repair(), file_recover() writes this data to the original file
|
||||
* and marks it FIXED.
|
||||
*
|
||||
* This provenance exists only for the current check/fix run. It is not encoded
|
||||
* in the recovered file itself, which is why a later fix cannot safely infer
|
||||
* that a readable CHG from a previous .unrecoverable file represents CURRENT
|
||||
* data.
|
||||
*
|
||||
* Out-of-date entries are excluded from hash validation. If an out-of-date
|
||||
* block is also is_bad, fix may still preserve the recovered bytes as the best
|
||||
* available copy, but the containing file remains damaged and quarantined as
|
||||
* .unrecoverable.
|
||||
*
|
||||
* is_outofdate and is_current are not boolean opposites:
|
||||
*
|
||||
* is_outofdate == 0 && is_current == 0 not recovered / not certified CURRENT
|
||||
* is_outofdate == 0 && is_current == 1 certified CURRENT data (via import/search or RAID)
|
||||
* is_outofdate == 1 && is_current == 0 recovered candidate that cannot be certified CURRENT
|
||||
*
|
||||
* is_outofdate == 1 && is_current == 1 is inconsistent and must never occur.
|
||||
* RECOVERY_OUTOFDATE:
|
||||
* buffer[index] contains a recovered candidate that cannot be proven to
|
||||
* represent the required CURRENT contents (e.g. reconstructed under the
|
||||
* pre-sync parity strategy, or ambiguous CHG).
|
||||
* If an out-of-date block is also is_bad, fix may still preserve the recovered
|
||||
* bytes as the best available copy, but the containing file remains damaged
|
||||
* and quarantined as .unrecoverable.
|
||||
*/
|
||||
int is_outofdate;
|
||||
|
||||
/**
|
||||
* If buffer[index] contains certified CURRENT data.
|
||||
*
|
||||
* During repair() strategy construction, is_current marks blocks obtained
|
||||
* and validated independently through import/search, making them reusable as
|
||||
* known inputs across strategies whose data generation is unchanged (such as
|
||||
* BLK and REBUILD).
|
||||
*
|
||||
* Upon successful recovery, repair() marks all recovered non-outofdate blocks
|
||||
* with is_current == 1.
|
||||
*
|
||||
* Outside repair(), file_recover() uses is_current == 1 to identify certified
|
||||
* CURRENT blocks to write back to the original file and mark as FIXED.
|
||||
*
|
||||
* This is independent from is_bad. A block obtained through import/search may
|
||||
* have is_bad == 1 because the original file still needs to be repaired while
|
||||
* is_current == 1 because buffer[index] already contains its validated CURRENT
|
||||
* contents.
|
||||
*
|
||||
* A value of zero means the buffer is not certified CURRENT; if is_outofdate
|
||||
* is also zero, the block was not recovered.
|
||||
*/
|
||||
int is_current;
|
||||
int recovery;
|
||||
|
||||
unsigned index; /**< Index of the failed block. */
|
||||
struct snapraid_block* block; /**< The failed block */
|
||||
|
|
@ -380,10 +350,31 @@ static int block_data_cmp(struct snapraid_state* state, int rehash, struct snapr
|
|||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the specified block has a trustworthy CURRENT hash under the given strategy.
|
||||
*
|
||||
* In the OLD recovery strategy, physical parity reflects the pre-sync state,
|
||||
* so RAID reconstructs the OLD content of this block. However, for a REP
|
||||
* block, block->hash describes the NEW (post-replace) data. Comparing the
|
||||
* reconstructed OLD bytes against the NEW hash would falsely fail validation.
|
||||
*/
|
||||
static int block_has_recovery_hash(const struct snapraid_block* block, int is_old_strategy)
|
||||
{
|
||||
unsigned state = block_state_get(block);
|
||||
|
||||
if (!block_has_updated_hash(block))
|
||||
return 0;
|
||||
|
||||
if (is_old_strategy && state == BLOCK_STATE_REP)
|
||||
return 0;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the hash of all the failed blocks we are expecting to recover are now matching.
|
||||
*/
|
||||
static int is_hash_matching(struct snapraid_state* state, int rehash, unsigned diskmax, struct failed_struct* failed, unsigned* failed_map, unsigned failed_count, void** buffer)
|
||||
static int is_hash_matching(struct snapraid_state* state, int rehash, unsigned diskmax, struct failed_struct* failed, unsigned* failed_map, unsigned failed_count, void** buffer, int is_old_strategy)
|
||||
{
|
||||
unsigned j;
|
||||
int hash_checked;
|
||||
|
|
@ -392,11 +383,8 @@ static int is_hash_matching(struct snapraid_state* state, int rehash, unsigned d
|
|||
|
||||
/* check if the recovered blocks are OK */
|
||||
for (j = 0; j < failed_count; ++j) {
|
||||
/* if we are expected to recover this block */
|
||||
if (!failed[failed_map[j]].is_outofdate
|
||||
/* if the block has a hash to check */
|
||||
&& block_has_updated_hash(failed[failed_map[j]].block)
|
||||
) {
|
||||
/* if the block has a hash to check in this strategy */
|
||||
if (block_has_recovery_hash(failed[failed_map[j]].block, is_old_strategy)) {
|
||||
/* if a hash doesn't match, fail the check */
|
||||
size_t pos_size = file_block_size(failed[failed_map[j]].file, failed[failed_map[j]].file_pos, state->block_size);
|
||||
if (block_data_cmp(state, rehash, failed[failed_map[j]].block, pos_size, buffer[failed[failed_map[j]].index]) != 0) {
|
||||
|
|
@ -457,7 +445,7 @@ static int is_parity_matching(struct snapraid_state* state, unsigned diskmax, un
|
|||
*
|
||||
* On success all parity levels are recomputed in buffer.
|
||||
*/
|
||||
static int repair_step(struct snapraid_state* state, int rehash, block_off_t pos, unsigned diskmax, struct failed_struct* failed, unsigned* failed_map, unsigned failed_count, void** buffer, void** buffer_recov)
|
||||
static int repair_step(struct snapraid_state* state, int rehash, block_off_t pos, unsigned diskmax, struct failed_struct* failed, unsigned* failed_map, unsigned failed_count, void** buffer, void** buffer_recov, int is_old_strategy)
|
||||
{
|
||||
unsigned i, n;
|
||||
int error;
|
||||
|
|
@ -496,6 +484,18 @@ static int repair_step(struct snapraid_state* state, int rehash, block_off_t pos
|
|||
* can provide independent validation. Otherwise one additional parity equation
|
||||
* is reserved exclusively for checking the candidate result.
|
||||
*
|
||||
* Which block states provide a trustworthy hash depends on the strategy:
|
||||
*
|
||||
* - CURRENT strategy (is_old_strategy == 0): BLK, REP, and REBUILD have
|
||||
* trustworthy CURRENT hashes. CHG blocks do not (their stored hash describes
|
||||
* pre-sync OLD data).
|
||||
*
|
||||
* - OLD strategy (is_old_strategy == 1): only BLK and REBUILD provide trustworthy
|
||||
* hashes (BLK represents synchronized data covered by pre-sync parity; REBUILD
|
||||
* data is always CURRENT). REP is excluded because its stored hash describes
|
||||
* NEW data while RAID reconstructs its pre-sync OLD contribution. CHG and DELETED
|
||||
* have no updated hash.
|
||||
*
|
||||
* The additional parity is an independent RAID equation, not an independent
|
||||
* hash of the recovered data. The candidate is accepted only if the complete
|
||||
* reconstructed block set satisfies this extra equation for the whole block.
|
||||
|
|
@ -506,11 +506,7 @@ static int repair_step(struct snapraid_state* state, int rehash, block_off_t pos
|
|||
*/
|
||||
has_hash = 0;
|
||||
for (i = 0; i < failed_count; ++i) {
|
||||
/* if we are expected to recover this block */
|
||||
if (!failed[failed_map[i]].is_outofdate
|
||||
/* if the block has a hash to check */
|
||||
&& block_has_updated_hash(failed[failed_map[i]].block)
|
||||
)
|
||||
if (block_has_recovery_hash(failed[failed_map[i]].block, is_old_strategy))
|
||||
has_hash = 1;
|
||||
}
|
||||
|
||||
|
|
@ -583,7 +579,7 @@ static int repair_step(struct snapraid_state* state, int rehash, block_off_t pos
|
|||
raid_data(r, id, ip, diskmax, state->block_size, buffer);
|
||||
|
||||
/* use the hash to check the result */
|
||||
if (is_hash_matching(state, rehash, diskmax, failed, failed_map, failed_count, buffer))
|
||||
if (is_hash_matching(state, rehash, diskmax, failed, failed_map, failed_count, buffer, is_old_strategy))
|
||||
return 0;
|
||||
|
||||
/* log */
|
||||
|
|
@ -661,7 +657,7 @@ static int repair_step(struct snapraid_state* state, int rehash, block_off_t pos
|
|||
* OLD and CURRENT contents happen to be identical.
|
||||
*
|
||||
* If no recovered CHG distinguishes the solution from OLD, all recovered
|
||||
* CHGs remain is_outofdate. This does not mean that their contents are
|
||||
* CHGs remain RECOVERY_OUTOFDATE. This does not mean that their contents are
|
||||
* necessarily wrong or actually old, only that CURRENT cannot be proven.
|
||||
*
|
||||
* 2. OLD strategy.
|
||||
|
|
@ -673,7 +669,7 @@ static int repair_step(struct snapraid_state* state, int rehash, block_off_t pos
|
|||
* contribution when possible, or reconstructed as auxiliary RAID unknowns.
|
||||
* This strategy is useful only when there is bad BLK/REBUILD data to
|
||||
* recover. Any bad CHG/REP reconstructed under this strategy remains
|
||||
* is_outofdate because it cannot be certified as the required CURRENT data.
|
||||
* RECOVERY_OUTOFDATE because it cannot be certified as the required CURRENT data.
|
||||
*
|
||||
* REBUILD is orthogonal to the OLD/CURRENT sync-history distinction. Its data
|
||||
* and stored hash are always CURRENT, while its physical parity is untrusted
|
||||
|
|
@ -721,9 +717,9 @@ static int repair_step(struct snapraid_state* state, int rehash, block_off_t pos
|
|||
* Return value:
|
||||
*
|
||||
* 0 A RAID solution was successfully validated under one of the two history
|
||||
* hypotheses. Some originally bad CHG/REP entries may still have
|
||||
* is_outofdate set, meaning that their required CURRENT contents could not
|
||||
* be proven. The caller must inspect is_outofdate before considering such
|
||||
* hypotheses. Some originally bad CHG/REP entries may still be marked
|
||||
* RECOVERY_OUTOFDATE, meaning that their required CURRENT contents could not
|
||||
* be proven. The caller must inspect the recovery status before considering such
|
||||
* blocks successfully recovered.
|
||||
*
|
||||
* >0 One or more recovery candidates were attempted but failed independent
|
||||
|
|
@ -753,7 +749,7 @@ static int repair(struct snapraid_state* state, int rehash, block_off_t pos, uns
|
|||
error = 0;
|
||||
|
||||
for (j = 0; j < failed_count; ++j)
|
||||
failed[j].is_current = 0;
|
||||
failed[j].recovery = RECOVERY_NONE;
|
||||
|
||||
/*
|
||||
* Nothing is missing or damaged.
|
||||
|
|
@ -886,10 +882,10 @@ static int repair(struct snapraid_state* state, int rehash, block_off_t pos, uns
|
|||
* consumes a RAID recovery equation.
|
||||
*
|
||||
* Keep is_bad set because the file block still needs to be
|
||||
* written back. is_current records that buffer[index] already
|
||||
* written back. RECOVERY_CURRENT records that buffer[index] already
|
||||
* contains certified CURRENT data.
|
||||
*/
|
||||
failed[j].is_current = 1;
|
||||
failed[j].recovery = RECOVERY_CURRENT;
|
||||
log_tag("repair_hash_import:%u: Fixed by import\n", j);
|
||||
} else {
|
||||
/*
|
||||
|
|
@ -930,7 +926,7 @@ static int repair(struct snapraid_state* state, int rehash, block_off_t pos, uns
|
|||
* only OLD and CURRENT generations, allowing their generation to be inferred
|
||||
* after the RAID solution itself has been validated.
|
||||
*/
|
||||
ret = repair_step(state, rehash, pos, diskmax, failed, failed_map, n, buffer, buffer_recov);
|
||||
ret = repair_step(state, rehash, pos, diskmax, failed, failed_map, n, buffer, buffer_recov, 0);
|
||||
|
||||
if (ret == 0) {
|
||||
int has_recovered_chg;
|
||||
|
|
@ -994,7 +990,7 @@ static int repair(struct snapraid_state* state, int rehash, block_off_t pos, uns
|
|||
*
|
||||
* If no recovered CHG distinguishes the solution from OLD, the RAID solution
|
||||
* remains valid but its generation is ambiguous. In that case all recovered
|
||||
* CHGs are marked is_outofdate together.
|
||||
* CHGs are marked RECOVERY_OUTOFDATE together.
|
||||
*/
|
||||
for (j = 0; j < failed_count; ++j) {
|
||||
unsigned block_state;
|
||||
|
|
@ -1074,51 +1070,52 @@ static int repair(struct snapraid_state* state, int rehash, block_off_t pos, uns
|
|||
}
|
||||
|
||||
if (has_recovered_chg) {
|
||||
if (current_generation_proven) {
|
||||
/*
|
||||
* At least one recovered CHG distinguishes this validated
|
||||
* RAID solution from OLD.
|
||||
*
|
||||
* Under the recovery invariant this proves that the solution
|
||||
* is CURRENT. The CURRENT classification therefore applies to
|
||||
* every CHG reconstructed by the same solution, including CHGs
|
||||
* with an INVALID OLD hash or with OLD == CURRENT contents.
|
||||
*/
|
||||
for (j = 0; j < failed_count; ++j) {
|
||||
if (failed[j].is_bad && block_state_get(failed[j].block) == BLOCK_STATE_CHG)
|
||||
failed[j].is_outofdate = 0;
|
||||
}
|
||||
|
||||
if (current_generation_proven)
|
||||
log_tag("repair_generation_current:%" PRIu64 ": Recovered CHG proves CURRENT generation\n", pos);
|
||||
} else {
|
||||
/*
|
||||
* The RAID solution itself was successfully validated,
|
||||
* but none of its recovered CHGs distinguishes CURRENT
|
||||
* from OLD.
|
||||
*
|
||||
* This does not prove that the bytes are actually old or
|
||||
* wrong. It only means that CURRENT cannot be proven.
|
||||
*
|
||||
* Preserve all recovered CHGs as best-effort data but
|
||||
* mark them out-of-date so the caller does not report
|
||||
* them as successfully recovered CURRENT contents.
|
||||
*/
|
||||
for (j = 0; j < failed_count; ++j) {
|
||||
if (failed[j].is_bad && block_state_get(failed[j].block) == BLOCK_STATE_CHG) {
|
||||
/* out-of-date entries cannot be certified CURRENT */
|
||||
failed[j].is_current = 0;
|
||||
failed[j].is_outofdate = 1;
|
||||
}
|
||||
}
|
||||
|
||||
else
|
||||
log_tag("repair_generation_unknown:%" PRIu64 ": Recovered CHG generation is ambiguous\n", pos);
|
||||
}
|
||||
}
|
||||
|
||||
/* mark all recovered non-outofdate blocks as current */
|
||||
/* mark all recovered blocks according to their proven generation */
|
||||
for (j = 0; j < failed_count; ++j) {
|
||||
if (failed[j].is_bad && !failed[j].is_outofdate)
|
||||
failed[j].is_current = 1;
|
||||
unsigned block_state;
|
||||
|
||||
if (!failed[j].is_bad)
|
||||
continue;
|
||||
|
||||
block_state = block_state_get(failed[j].block);
|
||||
|
||||
if (block_state == BLOCK_STATE_CHG) {
|
||||
if (current_generation_proven) {
|
||||
/*
|
||||
* At least one recovered CHG distinguishes this validated
|
||||
* RAID solution from OLD.
|
||||
*
|
||||
* Under the recovery invariant this proves that the solution
|
||||
* is CURRENT. The CURRENT classification therefore applies to
|
||||
* every CHG reconstructed by the same solution, including CHGs
|
||||
* with an INVALID OLD hash or with OLD == CURRENT contents.
|
||||
*/
|
||||
failed[j].recovery = RECOVERY_CURRENT;
|
||||
} else {
|
||||
/*
|
||||
* The RAID solution itself was successfully validated,
|
||||
* but none of its recovered CHGs distinguishes CURRENT
|
||||
* from OLD.
|
||||
*
|
||||
* This does not prove that the bytes are actually old or
|
||||
* wrong. It only means that CURRENT cannot be proven.
|
||||
*
|
||||
* Preserve all recovered CHGs as best-effort data but
|
||||
* mark them out-of-date so the caller does not report
|
||||
* them as successfully recovered CURRENT contents.
|
||||
*/
|
||||
failed[j].recovery = RECOVERY_OUTOFDATE;
|
||||
}
|
||||
} else {
|
||||
/* BLK, REP and REBUILD have trustworthy CURRENT hashes */
|
||||
failed[j].recovery = RECOVERY_CURRENT;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
@ -1244,7 +1241,7 @@ static int repair(struct snapraid_state* state, int rehash, block_off_t pos, uns
|
|||
* swap it with a preallocated scratch buffer so that the OLD reconstruction
|
||||
* is solved into scratch without overwriting the certified CURRENT bytes.
|
||||
*/
|
||||
if (block_state == BLOCK_STATE_REP && failed[j].is_bad && failed[j].is_current) {
|
||||
if (block_state == BLOCK_STATE_REP && failed[j].is_bad && failed[j].recovery == RECOVERY_CURRENT) {
|
||||
assert(scratch_count < state->level);
|
||||
rep_saved[scratch_count].j = j;
|
||||
rep_saved[scratch_count].buffer = buffer[failed[j].index];
|
||||
|
|
@ -1267,23 +1264,6 @@ static int repair(struct snapraid_state* state, int rehash, block_off_t pos, uns
|
|||
* state for recovering a BLK/REBUILD block.
|
||||
*/
|
||||
}
|
||||
|
||||
/*
|
||||
* Data associated with this entry is being interpreted as OLD.
|
||||
*
|
||||
* A readable entry has is_bad == 0 and therefore won't be
|
||||
* written back.
|
||||
*
|
||||
* If the entry itself was bad, this value may still be saved
|
||||
* as best-effort data, but it cannot be certified CURRENT.
|
||||
*
|
||||
* If buffer[index] was marked CURRENT in the first strategy
|
||||
* (e.g. an imported REP), clear is_current: during this strategy
|
||||
* the block is solved as an auxiliary OLD input. If the OLD
|
||||
* strategy succeeds, its proven CURRENT bytes will be restored.
|
||||
*/
|
||||
failed[j].is_current = 0;
|
||||
failed[j].is_outofdate = 1;
|
||||
} else if (failed[j].is_bad) {
|
||||
/*
|
||||
* All generation-dependent unsynchronized states were handled
|
||||
|
|
@ -1308,7 +1288,7 @@ static int repair(struct snapraid_state* state, int rehash, block_off_t pos, uns
|
|||
*/
|
||||
assert(block_state == BLOCK_STATE_BLK || block_state == BLOCK_STATE_REBUILD);
|
||||
|
||||
if (!failed[j].is_current) {
|
||||
if (failed[j].recovery != RECOVERY_CURRENT) {
|
||||
if (n >= state->level) {
|
||||
too_many_unknowns = 1;
|
||||
break;
|
||||
|
|
@ -1337,7 +1317,7 @@ static int repair(struct snapraid_state* state, int rehash, block_off_t pos, uns
|
|||
* or would just repeat the same recovery equations already attempted.
|
||||
*/
|
||||
if (!too_many_unknowns && something_to_recover && something_unsynced) {
|
||||
ret = repair_step(state, rehash, pos, diskmax, failed, failed_map, n, buffer, buffer_recov);
|
||||
ret = repair_step(state, rehash, pos, diskmax, failed, failed_map, n, buffer, buffer_recov, 1);
|
||||
|
||||
if (ret == 0) {
|
||||
/*
|
||||
|
|
@ -1359,41 +1339,40 @@ static int repair(struct snapraid_state* state, int rehash, block_off_t pos, uns
|
|||
unsigned idx = rep_saved[k].j;
|
||||
|
||||
buffer[failed[idx].index] = rep_saved[k].buffer;
|
||||
failed[idx].is_current = 1;
|
||||
failed[idx].is_outofdate = 0;
|
||||
failed[idx].recovery = RECOVERY_CURRENT;
|
||||
log_tag("repair_hash_import:%u: Restored CURRENT data after OLD retry\n", idx);
|
||||
}
|
||||
scratch_count = 0;
|
||||
|
||||
/*
|
||||
* Mark all recovered blocks according to their proven generation.
|
||||
* Any bad CHG/REP reconstructed here without validated CURRENT data is
|
||||
* OLD-compatible auxiliary data and cannot be certified as CURRENT.
|
||||
* Bad BLK and REBUILD blocks are certified CURRENT by their hash.
|
||||
*/
|
||||
for (j = 0; j < failed_count; ++j) {
|
||||
if (failed[j].is_bad) {
|
||||
unsigned block_state = block_state_get(failed[j].block);
|
||||
unsigned block_state;
|
||||
|
||||
if ((block_state == BLOCK_STATE_CHG || block_state == BLOCK_STATE_REP) && !failed[j].is_current) {
|
||||
/* out-of-date entries cannot be certified CURRENT */
|
||||
failed[j].is_current = 0;
|
||||
failed[j].is_outofdate = 1;
|
||||
log_tag("repair_hash_unknown:%u: Surely old data\n", j);
|
||||
}
|
||||
/*
|
||||
* Skip blocks that do not need recovery, or blocks already validated as
|
||||
* CURRENT via import/search (including imported REPs restored above from
|
||||
* scratch buffers) to prevent demoting them to RECOVERY_OUTOFDATE.
|
||||
*/
|
||||
if (!failed[j].is_bad || failed[j].recovery == RECOVERY_CURRENT)
|
||||
continue;
|
||||
|
||||
block_state = block_state_get(failed[j].block);
|
||||
|
||||
if (block_state == BLOCK_STATE_CHG || block_state == BLOCK_STATE_REP) {
|
||||
/* out-of-date entries cannot be certified CURRENT */
|
||||
failed[j].recovery = RECOVERY_OUTOFDATE;
|
||||
log_tag("repair_hash_unknown:%u: Surely old data\n", j);
|
||||
} else {
|
||||
/* BLK and REBUILD have trustworthy CURRENT hashes */
|
||||
failed[j].recovery = RECOVERY_CURRENT;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Returning success means that the RAID solution was validated.
|
||||
*
|
||||
* is_outofdate still tells the caller which originally bad
|
||||
* entries could not be proven to contain required CURRENT data.
|
||||
*/
|
||||
/* mark all recovered non-outofdate blocks as current */
|
||||
for (j = 0; j < failed_count; ++j) {
|
||||
if (failed[j].is_bad && !failed[j].is_outofdate)
|
||||
failed[j].is_current = 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -1416,22 +1395,9 @@ static int repair(struct snapraid_state* state, int rehash, block_off_t pos, uns
|
|||
unsigned idx = rep_saved[k].j;
|
||||
|
||||
buffer[failed[idx].index] = rep_saved[k].buffer;
|
||||
failed[idx].is_current = 1;
|
||||
failed[idx].is_outofdate = 0;
|
||||
failed[idx].recovery = RECOVERY_CURRENT;
|
||||
}
|
||||
|
||||
/*
|
||||
* No recovery strategy succeeded, so no out-of-date RAID candidate was
|
||||
* accepted. is_outofdate is also used temporarily while preparing the
|
||||
* OLD-history strategy, but that temporary classification must not escape
|
||||
* repair() on failure because the caller may interpret it as writable
|
||||
* best-effort recovered data.
|
||||
*
|
||||
* Independently validated CURRENT data remains identified by is_current.
|
||||
*/
|
||||
for (j = 0; j < failed_count; ++j)
|
||||
failed[j].is_outofdate = 0;
|
||||
|
||||
/*
|
||||
* Neither history hypothesis produced a usable RAID solution.
|
||||
*
|
||||
|
|
@ -1770,7 +1736,7 @@ static int file_recover(struct snapraid_state* state, int fix, int partial, bloc
|
|||
continue;
|
||||
|
||||
/* nothing to do if it could not be recovered */
|
||||
if (!failed[j].is_current && !failed[j].is_outofdate)
|
||||
if (failed[j].recovery == RECOVERY_NONE)
|
||||
continue;
|
||||
|
||||
if (!fix) {
|
||||
|
|
@ -1779,11 +1745,11 @@ static int file_recover(struct snapraid_state* state, int fix, int partial, bloc
|
|||
* recovered contents can be certified as the required CURRENT data.
|
||||
*
|
||||
* repair() may return success after validating the RAID solution while
|
||||
* leaving an unsynchronized bad block marked is_outofdate. Such a block
|
||||
* leaving an unsynchronized bad block marked RECOVERY_OUTOFDATE. Such a block
|
||||
* is still unrecoverable as CURRENT data and must make the containing
|
||||
* file DAMAGED rather than FIXED.
|
||||
*/
|
||||
if (failed[j].is_outofdate)
|
||||
if (failed[j].recovery == RECOVERY_OUTOFDATE)
|
||||
file_flag_set(failed[j].file, FILE_IS_DAMAGED);
|
||||
else
|
||||
file_flag_set(failed[j].file, FILE_IS_FIXED);
|
||||
|
|
@ -1805,7 +1771,7 @@ static int file_recover(struct snapraid_state* state, int fix, int partial, bloc
|
|||
* so that a SIGKILL cannot leave unproven recovered data
|
||||
* under the normal filename.
|
||||
*/
|
||||
if (failed[j].is_outofdate) {
|
||||
if (failed[j].recovery == RECOVERY_OUTOFDATE) {
|
||||
file_flag_set(failed[j].file, FILE_IS_DAMAGED);
|
||||
|
||||
/*
|
||||
|
|
@ -1857,7 +1823,7 @@ static int file_recover(struct snapraid_state* state, int fix, int partial, bloc
|
|||
}
|
||||
|
||||
/* if we are not sure that the recovered content is uptodate */
|
||||
if (failed[j].is_outofdate)
|
||||
if (failed[j].recovery == RECOVERY_OUTOFDATE)
|
||||
continue;
|
||||
|
||||
/*
|
||||
|
|
@ -2040,7 +2006,7 @@ static int state_check_process(struct snapraid_state* state, int fix, struct sna
|
|||
* pre-sync recovery hypothesis.
|
||||
*/
|
||||
failed[failed_count].is_bad = 0;
|
||||
failed[failed_count].is_outofdate = 0;
|
||||
failed[failed_count].recovery = RECOVERY_NONE;
|
||||
failed[failed_count].index = j;
|
||||
failed[failed_count].block = block;
|
||||
failed[failed_count].disk = disk;
|
||||
|
|
@ -2118,7 +2084,7 @@ static int state_check_process(struct snapraid_state* state, int fix, struct sna
|
|||
if (ret == -1) {
|
||||
/* save the failed block for the check/fix */
|
||||
failed[failed_count].is_bad = 1;
|
||||
failed[failed_count].is_outofdate = 0;
|
||||
failed[failed_count].recovery = RECOVERY_NONE;
|
||||
failed[failed_count].index = j;
|
||||
failed[failed_count].block = block;
|
||||
failed[failed_count].disk = disk;
|
||||
|
|
@ -2216,7 +2182,7 @@ static int state_check_process(struct snapraid_state* state, int fix, struct sna
|
|||
if (read_size == -1) {
|
||||
/* save the failed block for the check/fix */
|
||||
failed[failed_count].is_bad = 1; /* it's bad because we cannot read it */
|
||||
failed[failed_count].is_outofdate = 0;
|
||||
failed[failed_count].recovery = RECOVERY_NONE;
|
||||
failed[failed_count].index = j;
|
||||
failed[failed_count].block = block;
|
||||
failed[failed_count].disk = disk;
|
||||
|
|
@ -2265,7 +2231,7 @@ static int state_check_process(struct snapraid_state* state, int fix, struct sna
|
|||
* bytes alone.
|
||||
*/
|
||||
failed[failed_count].is_bad = 0; /* we assume the CHG block correct */
|
||||
failed[failed_count].is_outofdate = 0;
|
||||
failed[failed_count].recovery = RECOVERY_NONE;
|
||||
failed[failed_count].index = j;
|
||||
failed[failed_count].block = block;
|
||||
failed[failed_count].disk = disk;
|
||||
|
|
@ -2291,7 +2257,7 @@ static int state_check_process(struct snapraid_state* state, int fix, struct sna
|
|||
|
||||
/* save the failed block for the check/fix */
|
||||
failed[failed_count].is_bad = 1; /* it's bad because the hash doesn't match */
|
||||
failed[failed_count].is_outofdate = 0;
|
||||
failed[failed_count].recovery = RECOVERY_NONE;
|
||||
failed[failed_count].index = j;
|
||||
failed[failed_count].block = block;
|
||||
failed[failed_count].disk = disk;
|
||||
|
|
@ -2316,7 +2282,7 @@ static int state_check_process(struct snapraid_state* state, int fix, struct sna
|
|||
*/
|
||||
if (block_state == BLOCK_STATE_REP) {
|
||||
failed[failed_count].is_bad = 0; /* it's not bad */
|
||||
failed[failed_count].is_outofdate = 0;
|
||||
failed[failed_count].recovery = RECOVERY_NONE;
|
||||
failed[failed_count].index = j;
|
||||
failed[failed_count].block = block;
|
||||
failed[failed_count].disk = disk;
|
||||
|
|
@ -2376,7 +2342,7 @@ static int state_check_process(struct snapraid_state* state, int fix, struct sna
|
|||
|
||||
/* print a list of all unrecoverable errors in files */
|
||||
for (j = 0; j < failed_count; ++j) {
|
||||
if (failed[j].is_bad && !failed[j].is_current)
|
||||
if (failed[j].is_bad && failed[j].recovery != RECOVERY_CURRENT)
|
||||
log_tag("unrecoverable:%" PRIu64 ":%s:%s: Unrecoverable error at position %" PRIu64 "\n", i, failed[j].disk->name, esc_tag(failed[j].file->sub), failed[j].file_pos);
|
||||
}
|
||||
|
||||
|
|
@ -2388,7 +2354,7 @@ static int state_check_process(struct snapraid_state* state, int fix, struct sna
|
|||
|
||||
/* keep track of damaged files for blocks that could not be recovered */
|
||||
for (j = 0; j < failed_count; ++j) {
|
||||
if (!failed[j].is_bad || failed[j].is_current)
|
||||
if (!failed[j].is_bad || failed[j].recovery == RECOVERY_CURRENT)
|
||||
continue;
|
||||
|
||||
file_flag_set(failed[j].file, FILE_IS_DAMAGED);
|
||||
|
|
@ -2422,14 +2388,14 @@ static int state_check_process(struct snapraid_state* state, int fix, struct sna
|
|||
* one of the parity-history hypotheses. It does not necessarily mean that
|
||||
* every bad unsynced block was recovered to its CURRENT version.
|
||||
*
|
||||
* A bad block marked is_outofdate is therefore still an unrecoverable current
|
||||
* A bad block marked RECOVERY_OUTOFDATE is therefore still an unrecoverable current
|
||||
* data error even though the stripe-level RAID recovery succeeded.
|
||||
*/
|
||||
int partial_recover_error = 0;
|
||||
|
||||
/* print a list of all the errors in files */
|
||||
for (j = 0; j < failed_count; ++j) {
|
||||
if (failed[j].is_bad && failed[j].is_outofdate) {
|
||||
if (failed[j].is_bad && failed[j].recovery == RECOVERY_OUTOFDATE) {
|
||||
++partial_recover_error;
|
||||
log_tag("unrecoverable:%" PRIu64 ":%s:%s: Unrecoverable unsynced error at position %" PRIu64 "\n", i, failed[j].disk->name, esc_tag(failed[j].file->sub), failed[j].file_pos);
|
||||
}
|
||||
|
|
@ -3112,6 +3078,15 @@ int state_check(struct snapraid_state* state, int fix, block_off_t blockstart, b
|
|||
*/
|
||||
partial = blockstart != 0 || blockcount != 0;
|
||||
|
||||
/*
|
||||
* Fix is best-effort on each stripe. If a stripe cannot be recovered, it
|
||||
* is left unfixed and processing continues with the following stripes.
|
||||
* Consequently, repaired parity is not guaranteed to be contiguous: an
|
||||
* unrecoverable stripe may remain as a hole between successfully repaired
|
||||
* stripes. This is intentional, as stopping would prevent recovery of all
|
||||
* subsequent recoverable stripes.
|
||||
*/
|
||||
|
||||
blockmax = parity_allocated_size(state);
|
||||
size = blockmax * (data_off_t)state->block_size;
|
||||
|
||||
|
|
|
|||
|
|
@ -135,11 +135,11 @@ void parity_physical_reach_size(struct snapraid_parity_handle* handle, data_off_
|
|||
/*
|
||||
* Compute the physical reach of the logical parity layout across splits.
|
||||
*
|
||||
* physical_reach_size represents physical file presence, not parity validity.
|
||||
* Parity is not necessarily contiguous or valid within this range: blocks
|
||||
* may be invalid, stale, unwritten, or modified. Correctness is determined
|
||||
* per-block by the content state and validated independently via data hashes
|
||||
* and recomputation.
|
||||
* physical_reach_size represents physical file presence, not parity validity
|
||||
* or contiguity. Invalid, stale, unwritten, or sparse stripes may exist below
|
||||
* this boundary, for example when fix cannot recover a stripe but continues
|
||||
* with later ones. Such holes are allowed and need not be represented in the
|
||||
* content state.
|
||||
*
|
||||
* For split parity, splits concatenate linearly. If an earlier split is
|
||||
* physically shorter than its logical size, logical offsets beyond that
|
||||
|
|
@ -218,8 +218,9 @@ int parity_create(struct snapraid_parity_handle* handle, const struct snapraid_p
|
|||
* physical_reach_size does NOT imply that parity below this offset is valid.
|
||||
* Parity may be invalid, stale, unwritten, or sparse in any region below
|
||||
* this boundary. It only records the physical EOF boundary for I/O and
|
||||
* truncation. Parity validity is tracked independently per block through
|
||||
* the content state, data hashes, and recomputation.
|
||||
* truncation. The physical contents below this boundary are not necessarily
|
||||
* described by the content state. Recovery correctness is validated
|
||||
* independently using data hashes and recomputation.
|
||||
*
|
||||
* While a handle is open, physical_reach_size can intentionally differ from EOF.
|
||||
* In particular, preallocation may extend EOF without extending physical_reach_size.
|
||||
|
|
@ -810,8 +811,9 @@ int parity_open(struct snapraid_parity_handle* handle, const struct snapraid_par
|
|||
* physical_reach_size does NOT imply that parity below this offset is valid.
|
||||
* Parity may be invalid, stale, unwritten, or sparse in any region below
|
||||
* this boundary. It only records the physical EOF boundary for I/O and
|
||||
* truncation. Parity validity is tracked independently per block through
|
||||
* the content state, data hashes, and recomputation.
|
||||
* truncation. The physical contents below this boundary are not necessarily
|
||||
* described by the content state. Recovery correctness is validated
|
||||
* independently using data hashes and recomputation.
|
||||
*
|
||||
* While a handle is open, physical_reach_size can intentionally differ from EOF.
|
||||
* In particular, preallocation may extend EOF without extending physical_reach_size.
|
||||
|
|
|
|||
|
|
@ -30,10 +30,15 @@ struct snapraid_split_handle {
|
|||
*
|
||||
* This is the physical truncation and read limit of the split.
|
||||
*
|
||||
* physical_reach_size does NOT indicate that data below this offset is valid parity.
|
||||
* Parity may be invalid, stale, unwritten, or sparse at any point below this
|
||||
* boundary. Correctness is tracked independently per block in the content state
|
||||
* and verified through data hashes and recomputation.
|
||||
* physical_reach_size does NOT indicate that data below this offset is
|
||||
* valid or contiguous parity. Parity may be invalid, stale, unwritten,
|
||||
* or sparse at any point below this boundary. In particular, fix may
|
||||
* leave an unrecoverable stripe unfixed and continue repairing later
|
||||
* stripes, intentionally leaving holes inside the physical reach.
|
||||
*
|
||||
* Such holes are allowed and are not necessarily represented in the
|
||||
* content state. Recovery correctness is validated independently using
|
||||
* the stored data hashes or the available recovery validation.
|
||||
*
|
||||
* Data beyond physical_reach_size is disposable/preallocated and discarded by
|
||||
* parity_truncate(). A completed write advances physical_reach_size to the end of
|
||||
|
|
@ -118,8 +123,10 @@ void parity_size(struct snapraid_parity_handle* handle, data_off_t* out_size);
|
|||
* If the physical_reach_size of an earlier split is smaller than its logical size,
|
||||
* later splits cannot extend the logical offset past that missing region.
|
||||
*
|
||||
* Parity within this range is not necessarily valid or synchronized;
|
||||
* per-block validity is tracked independently in the content state.
|
||||
* Parity within this range is not necessarily valid, synchronized, or contiguous.
|
||||
* In particular, fix may leave an unrecoverable stripe unfixed and continue with
|
||||
* later stripes, so holes inside this range are allowed and are not necessarily
|
||||
* represented in the content state.
|
||||
*
|
||||
* For example, with two 100 GiB splits, if the first has physical_reach_size 90 GiB
|
||||
* and the second has physical_reach_size 100 GiB, the result is 90 GiB, not 190 GiB.
|
||||
|
|
|
|||
|
|
@ -145,13 +145,16 @@
|
|||
* position has not completed a successful scrub and therefore retains its
|
||||
* previous scrub age.
|
||||
*
|
||||
* Only a completely successful position is replaced with:
|
||||
* A successful position records the new last-known-good time and clears bad
|
||||
* and just-synchronized state:
|
||||
*
|
||||
* info_make(now, 0, 0, 0)
|
||||
* info_make(now, 0, rehash, 0)
|
||||
*
|
||||
* This records the new last-known-good time and clears bad, rehash and
|
||||
* just-synchronized state. Consequently, "scrub -p bad" clears a bad position
|
||||
* only after the whole position can again be verified successfully.
|
||||
* For a synchronized position (or one not undergoing rehash), rehash is
|
||||
* cleared as well (info_make(now, 0, 0, 0)). If the position is in rehash but
|
||||
* contains unsynchronized blocks, rehash remains pending (info_make(now, 0, 1, 0)).
|
||||
* Consequently, "scrub -p bad" clears a bad position only after the whole
|
||||
* position can again be verified successfully.
|
||||
*
|
||||
* Scrub writes only content metadata and hashes; it never writes user data or
|
||||
* parity. Autosave can therefore persist completed scrub positions
|
||||
|
|
@ -168,20 +171,27 @@
|
|||
*
|
||||
* The new hashes are not committed independently for each disk. They are
|
||||
* staged until the complete parity position has passed data reads, applicable
|
||||
* hash checks, and parity verification. Only then are the staged hashes copied
|
||||
* into the block state and the per-position rehash flag cleared.
|
||||
* hash checks, and parity verification, and can only be published if the
|
||||
* complete position is synchronized.
|
||||
*
|
||||
* Unsynchronized blocks (such as CHG or DELETED) retain OLD hashes that
|
||||
* recovery in check.c relies on to distinguish OLD and CURRENT generations
|
||||
* after an interrupted sync. Overwriting a CHG hash with the digest of CURRENT
|
||||
* bytes would destroy that provenance, causing valid recovery to be rejected.
|
||||
*
|
||||
* Because the rehash state is position-wide, if any block at the position is
|
||||
* unsynchronized, publication of all staged new hashes for that position is
|
||||
* deferred and the rehash flag remains set. All blocks at that position retain
|
||||
* their previous-generation hashes until a later successful sync resolves the
|
||||
* unsynchronized state and publishes the new hashes.
|
||||
*
|
||||
* Only when a position is fully synchronized and passes scrub are the staged
|
||||
* hashes copied into the block state and the per-position rehash flag cleared.
|
||||
* This keeps the hash generation and its info flag consistent across content
|
||||
* saves: a persisted rehash flag means the previous algorithm must still be
|
||||
* used for that position, while clearing the flag publishes the newly computed
|
||||
* hashes at the same successful scrub checkpoint.
|
||||
*
|
||||
* A CHG block has no current hash to validate. If such a position passes scrub,
|
||||
* physical parity has nevertheless been verified against the bytes just read.
|
||||
* The newly computed hash can then describe that verified parity baseline
|
||||
* using the new algorithm, while the block itself remains CHG and is still
|
||||
* conservatively treated as unsynchronized.
|
||||
*
|
||||
* Live filesystem model
|
||||
* ---------------------
|
||||
*
|
||||
|
|
@ -873,33 +883,30 @@ static int state_scrub_process(struct snapraid_state* state, struct snapraid_par
|
|||
*/
|
||||
} else {
|
||||
/*
|
||||
* Publish staged hashes before clearing the rehash flag. Both changes are then
|
||||
* persisted by the same content write, so a saved position is interpreted
|
||||
* consistently with either the previous or the current hash algorithm.
|
||||
* A completely clean scrub establishes a new last-known-good checkpoint for
|
||||
* the whole parity position.
|
||||
*
|
||||
* For a CHG block there was no current hash to validate directly. Reaching
|
||||
* this point nevertheless means parity agrees with the current bytes just
|
||||
* read, so these bytes form the verified parity baseline represented by the
|
||||
* newly stored digest. The block remains CHG and therefore still conservatively
|
||||
* requires sync.
|
||||
* During rehash, staged hashes can be published only if the complete position
|
||||
* is synchronized. Unsynchronized blocks (such as CHG or DELETED) retain OLD
|
||||
* hashes that recovery relies on to distinguish generations after an interrupted
|
||||
* sync.
|
||||
*
|
||||
* Rehash state is position-wide, so if any block at this position is unsynced,
|
||||
* keep all hashes in the previous generation and leave rehash pending. A later
|
||||
* successful sync will resolve the unsynced state and publish the new hashes.
|
||||
*/
|
||||
if (rehash) {
|
||||
/* store all the new hash already computed */
|
||||
if (rehash && !block_is_unsynced) {
|
||||
/* store all the new hashes already computed */
|
||||
for (j = 0; j < diskmax; ++j) {
|
||||
if (rehandle[j].block)
|
||||
memcpy(rehandle[j].block->hash, rehandle[j].hash, BLOCK_HASH_SIZE);
|
||||
}
|
||||
|
||||
/* complete the rehash */
|
||||
rehash = 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* A completely clean scrub establishes a new last-known-good checkpoint for
|
||||
* the whole parity position.
|
||||
*
|
||||
* Refresh the time and clear bad, rehash and justsynced together. In
|
||||
* particular this is the only normal scrub path that clears a previous bad
|
||||
* mark.
|
||||
*/
|
||||
info_set(&state->infoarr, blockcur, info_make(now, 0, 0, 0));
|
||||
info_set(&state->infoarr, blockcur, info_make(now, 0, rehash, 0));
|
||||
}
|
||||
|
||||
/* mark the state as needing write */
|
||||
|
|
|
|||
|
|
@ -742,7 +742,13 @@ void state_config(struct snapraid_state* state, const char* path, const char* co
|
|||
exit(EXIT_FAILURE);
|
||||
/* LCOV_EXCL_STOP */
|
||||
}
|
||||
if (hash_size < 2) {
|
||||
if (hash_size == 2) {
|
||||
/* LCOV_EXCL_START */
|
||||
log_fatal(EUSER, "Unsupported 'hashsize 2' specification in '%s' at line %u! The minimum supported hash size is 4.\n", path, line);
|
||||
exit(EXIT_FAILURE);
|
||||
/* LCOV_EXCL_STOP */
|
||||
}
|
||||
if (hash_size < 4) {
|
||||
/* LCOV_EXCL_START */
|
||||
log_fatal(EUSER, "Too small 'hashsize' specification in '%s' at line %u\n", path, line);
|
||||
exit(EXIT_FAILURE);
|
||||
|
|
@ -3184,7 +3190,15 @@ static void state_read_content(struct snapraid_state* state, const char* path, S
|
|||
/* LCOV_EXCL_STOP */
|
||||
}
|
||||
|
||||
if (hash_size < 2 || hash_size > HASH_MAX) {
|
||||
if (hash_size == 2) {
|
||||
/* LCOV_EXCL_START */
|
||||
decoding_error(path, f);
|
||||
log_fatal(ECONTENT, "Unsupported 'hashsize 2' specification in the content file! The minimum supported hash size is 4.\n");
|
||||
exit(EXIT_FAILURE);
|
||||
/* LCOV_EXCL_STOP */
|
||||
}
|
||||
|
||||
if (hash_size < 4 || hash_size > HASH_MAX) {
|
||||
/* LCOV_EXCL_START */
|
||||
decoding_error(path, f);
|
||||
log_fatal(ECONTENT, "Invalid 'hashsize' specification in the content file!\n");
|
||||
|
|
@ -6593,12 +6607,6 @@ void state_snapshot_write(struct snapraid_state* state, tommy_list* filterlist_d
|
|||
if (!state->snapshot)
|
||||
return;
|
||||
|
||||
/* if the filter disk is empty, all disks are potentially written */
|
||||
if (tommy_list_empty(filterlist_disk)) {
|
||||
msg_progress("Using live filesystems...\n");
|
||||
return;
|
||||
}
|
||||
|
||||
for (tommy_node* i = state->disklist; i != 0; i = i->next) {
|
||||
struct snapraid_disk* disk = i->data;
|
||||
|
||||
|
|
@ -6612,37 +6620,35 @@ void state_snapshot_write(struct snapraid_state* state, tommy_list* filterlist_d
|
|||
continue;
|
||||
}
|
||||
|
||||
/* if the disk is filtered in, it could be written, then we cannot use the snapshot */
|
||||
if (filter_path(filterlist_disk, 0, disk->name, 0) == 0) {
|
||||
int writable = tommy_list_empty(filterlist_disk) || filter_path(filterlist_disk, 0, disk->name, 0) == 0;
|
||||
|
||||
if (writable) {
|
||||
msg_progress("Using disk %s live filesystem...\n", disk->name);
|
||||
} else if (state_snapshot_dir(&disk->fss, SNAPSHOT_PENDING, disk) == 0) {
|
||||
msg_progress("Using disk %s pending snapshot...\n", disk->name);
|
||||
} else if (state_snapshot_dir(&disk->fss, SNAPSHOT_STABLE, disk) == 0) {
|
||||
msg_progress("Using disk %s stable snapshot...\n", disk->name);
|
||||
} else {
|
||||
/* fallback to standard mount point */
|
||||
log_error(EUSER, "WARNING! Disk %s snapshot missing, falling back to live filesystem.\n", disk->name);
|
||||
log_error(EUSER, "Recovery capability may be reduced if files have changed since the last successful sync.\n");
|
||||
msg_progress("Using disk %s live filesystem...\n", disk->name);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (state_snapshot_dir(&disk->fss, SNAPSHOT_PENDING, disk) == 0) {
|
||||
msg_progress("Using disk %s pending snapshot...\n", disk->name);
|
||||
/*
|
||||
* If sync was interrupted before updating parity, the content file
|
||||
* already records BLOCK_STATE_DELETED and pending deallocations, while the
|
||||
* deleted files remain physically present in the stable snapshot. Import them
|
||||
* into the import index so OLD recovery hypotheses can resolve them without
|
||||
* consuming RAID equations, even for disks that use the live filesystem for normal I/O.
|
||||
*/
|
||||
if (!tommy_list_empty(&disk->dealloclist) && state_snapshot_dir(&disk->fss, SNAPSHOT_STABLE, 0) == 0) {
|
||||
char vol[PATH_MAX];
|
||||
|
||||
/* if there is a dealloc list */
|
||||
if (!tommy_list_empty(&disk->dealloclist)) {
|
||||
msg_progress("Importing disk %s stable snapshot %" PRIu64 " deallocated files...\n", disk->name, (uint64_t)tommy_list_count(&disk->dealloclist));
|
||||
|
||||
/* if there is a previous snapshot */
|
||||
if (state_snapshot_dir(&disk->fss, SNAPSHOT_STABLE, 0) == 0) {
|
||||
msg_progress("Importing disk %s stable snapshot %" PRIu64 " deallocated files...\n", disk->name, (uint64_t)tommy_list_count(&disk->dealloclist));
|
||||
|
||||
/* set where to find deallocated files */
|
||||
char vol[PATH_MAX];
|
||||
if (fssnapshot_path(&disk->fss, SNAPSHOT_STABLE, vol, sizeof(vol)) == 0)
|
||||
state_dealloc(state, vol, &disk->dealloclist);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (state_snapshot_dir(&disk->fss, SNAPSHOT_STABLE, disk) == 0) {
|
||||
msg_progress("Using disk %s stable snapshot...\n", disk->name);
|
||||
} else {
|
||||
/* fallback to standard mount point */
|
||||
log_error(EUSER, "WARNING! Disk %s snapshot missing, falling back to live filesystem.\n", disk->name);
|
||||
log_error(EUSER, "Recovery capability may be reduced if files have changed since the last successful sync.\n");
|
||||
msg_progress("Using disk %s live filesystem...\n", disk->name);
|
||||
}
|
||||
if (fssnapshot_path(&disk->fss, SNAPSHOT_STABLE, vol, sizeof(vol)) == 0)
|
||||
state_dealloc(state, vol, &disk->dealloclist);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1693,8 +1693,16 @@ static int state_sync_process(struct snapraid_state* state, struct snapraid_pari
|
|||
/* drop until now */
|
||||
state_usage_waste(state);
|
||||
|
||||
if (os_signal_interrupt())
|
||||
if (os_signal_interrupt()) {
|
||||
/*
|
||||
* Mark the sync as incomplete on interruption during cooldown.
|
||||
* Partial progress is flushed and durable (*sync_durable = 1), but
|
||||
* completed-sync operations (state_commit() and snapshot promotion)
|
||||
* must not be executed.
|
||||
*/
|
||||
alert = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/* autosave */
|
||||
|
|
@ -1935,6 +1943,7 @@ int state_sync(struct snapraid_state* state, block_off_t blockstart, block_off_t
|
|||
block_off_t used_paritymax;
|
||||
data_off_t used_parity_size;
|
||||
data_off_t file_parity_size;
|
||||
unsigned file_parity_level = 0;
|
||||
data_off_t size;
|
||||
int ret;
|
||||
struct snapraid_parity_handle parity_handle[LEV_MAX];
|
||||
|
|
@ -2020,14 +2029,21 @@ int state_sync(struct snapraid_state* state, block_off_t blockstart, block_off_t
|
|||
}
|
||||
|
||||
/* keep the smallest physical parity extent */
|
||||
if (l == 0 || file_parity_size > out_size)
|
||||
if (l == 0 || file_parity_size > out_size) {
|
||||
file_parity_size = out_size;
|
||||
file_parity_level = l;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* A full parity rebuild or reallocation from zero reconstructs truncated
|
||||
* parity. Tail-only reallocation still relies on the existing prefix, so a
|
||||
* truncation before parity_tail remains fatal.
|
||||
*
|
||||
* New levels need the same physical coverage of valid blocks, not an exact
|
||||
* match with another level or the allocated extent. After an interrupted
|
||||
* sync, fix leaves pending parity to sync and may truncate its unwritten
|
||||
* tail. Sync will resize and regenerate that tail if it is still allocated.
|
||||
*/
|
||||
if (!state->opt.force_full && !(state->opt.force_realloc && state->opt.parity_tail == 0)) {
|
||||
/* if the parities are too small */
|
||||
|
|
@ -2040,8 +2056,9 @@ int state_sync(struct snapraid_state* state, block_off_t blockstart, block_off_t
|
|||
log_fatal(ESOFT, "to force a full rebuild of the parity.\n");
|
||||
} else {
|
||||
log_fatal(ESOFT, "It's possible that the parity disks are not mounted.\n");
|
||||
log_fatal(ESOFT, "If instead you are adding a new parity level, you can 'sync' using\n");
|
||||
log_fatal(ESOFT, "'snapraid --force-full sync' to force a full rebuild of the parity.\n");
|
||||
log_fatal(ESOFT, "If instead you are adding a new %s level, initialize it with\n", lev_name(file_parity_level));
|
||||
log_fatal(ESOFT, "'snapraid -d %s fix', and then run 'snapraid sync'.\n", lev_config_name(file_parity_level));
|
||||
log_fatal(ESOFT, "Alternatively, use 'snapraid --force-full sync' to rebuild all parity levels.\n");
|
||||
}
|
||||
exit(EXIT_FAILURE);
|
||||
/* LCOV_EXCL_STOP */
|
||||
|
|
|
|||
|
|
@ -2437,6 +2437,20 @@ einen Mount\-Punkt verdeckt war.
|
|||
.PP
|
||||
Platzieren Sie keine verschachtelten Mount\-Punkte oder Bind\-Mounts innerhalb
|
||||
von Datenfestplatten, wenn Dateisystem\-Snapshots aktiviert sind.
|
||||
.SS Mehrere Konfigurationen mit Dateisystem\-Snapshots
|
||||
Die Snapshot\-Unterstützung kann nicht sicher von mehreren unabhängigen
|
||||
SnapRAID\-Konfigurationen gemeinsam genutzt werden, die denselben
|
||||
Dateisystem\-Snapshot\-Namespace verwenden.
|
||||
.PP
|
||||
Unter Btrfs und Bcachefs darf nur eine SnapRAID\-Konfiguration mit aktivierter
|
||||
Snapshot\-Unterstützung Datenverzeichnisse innerhalb desselben Subvolumes
|
||||
verwenden. Unter ZFS gilt dieselbe Einschränkung für ein Dataset und unter
|
||||
NTFS für ein Volume.
|
||||
.PP
|
||||
Mehrere Konfigurationen, die denselben Snapshot\-Namespace teilen, verwenden
|
||||
dieselben Snapshots \`stable\`, \`pending\` und \`scan\`. Das Ausführen einer
|
||||
Konfiguration kann daher Wiederherstellungs\-Snapshots ersetzen oder löschen,
|
||||
die von einer anderen benötigt werden.
|
||||
.SS In\-Place\-Dateimodifikationen ohne Zeitstempeländerungen
|
||||
SnapRAID erkennt Dateimodifikationen durch den Vergleich von Dateigrößen
|
||||
und Änderungszeitstempeln (mtime).
|
||||
|
|
@ -2538,6 +2552,37 @@ Um diese Einschränkung zu vermeiden, sollten geschützte Dateien nicht über
|
|||
Hardlinks geändert werden, die von SnapRAID ausgeschlossen sind, oder es
|
||||
sollte sichergestellt werden, dass alle Hardlinks zu einer Datei im Scan
|
||||
enthalten sind, damit SnapRAID sie normalisieren kann.
|
||||
.SS Wiederherstellung nach einem unterbrochenen Multi\-Paritäts\-Sync
|
||||
In einem Array mit mehreren Paritätsfestplatten kann ein unterbrochener
|
||||
\`sync\` dazu führen, dass sich verschiedene Paritätsstufen vorübergehend
|
||||
in unterschiedlichen Aktualisierungszuständen befinden. Beispielsweise
|
||||
kann Parität 1 bereits neu aktualisierte Daten enthalten, während
|
||||
Parität 2 noch die alten Daten enthält.
|
||||
.PP
|
||||
Während \`check\` oder \`fix\` testet SnapRAID verschiedene
|
||||
Paritätskombinationen und validiert die rekonstruierten Daten anhand
|
||||
der bekannten Block\-Hashes (die den gesamten Block abdecken, typischerweise
|
||||
256 KiB).
|
||||
.PP
|
||||
Wenn SnapRAID eine Rekonstruktion mit einer inkonsistenten Mischung aus
|
||||
alter und neuer Parität versucht, erzeugen die linearen RAID\-Gleichungen
|
||||
fehlerhafte Daten. Damit eine solche ungültige Kombination fälschlicherweise
|
||||
akzeptiert wird, müssten die Gleichungen rein zufällig mindestens einen
|
||||
vollständigen 256\-KiB\-Block so perfekt rekonstruieren, dass sein Hash
|
||||
übereinstimmt, während andere nicht synchronisierte Blöcke desselben
|
||||
Stripes mit fehlerhaften Daten rekonstruiert werden.
|
||||
.PP
|
||||
Dieses Szenario beruht nicht auf einer Hash\-Kollision; vielmehr müssten
|
||||
die gemischten Paritätsgleichungen selbst zufällig genau den ursprünglichen
|
||||
256\-KiB\-Blockinhalt erzeugen. Dies ist zwar bei speziell konstruierten oder
|
||||
stark repetitiven Daten mathematisch denkbar, bei realen Daten jedoch
|
||||
praktisch unmöglich.
|
||||
.PP
|
||||
Wenn alle Festplatten fehlerfrei sind, beseitigt der Abschluss des
|
||||
unterbrochenen \`sync\` vor weiteren Änderungen diese Unklarheit. Wenn eine
|
||||
Festplatte ausgefallen ist und eine Wiederherstellung erforderlich ist,
|
||||
sollten vor dem Ausführen von \`check\` oder \`fix\` keine Änderungen an den
|
||||
Datenfestplatten vorgenommen werden.
|
||||
.SH ÜBERSETZUNG (TRANSLATION)
|
||||
Dieses Dokument ist eine automatische Übersetzung des englischen Handbuchs.
|
||||
Die maßgebliche Version finden Sie im englischen Handbuch.
|
||||
|
|
|
|||
|
|
@ -1924,6 +1924,21 @@ Bekannte Probleme (Known Issues)
|
|||
Platzieren Sie keine verschachtelten Mount-Punkte oder Bind-Mounts innerhalb
|
||||
von Datenfestplatten, wenn Dateisystem-Snapshots aktiviert sind.
|
||||
|
||||
Mehrere Konfigurationen mit Dateisystem-Snapshots
|
||||
Die Snapshot-Unterstützung kann nicht sicher von mehreren unabhängigen
|
||||
SnapRAID-Konfigurationen gemeinsam genutzt werden, die denselben
|
||||
Dateisystem-Snapshot-Namespace verwenden.
|
||||
|
||||
Unter Btrfs und Bcachefs darf nur eine SnapRAID-Konfiguration mit aktivierter
|
||||
Snapshot-Unterstützung Datenverzeichnisse innerhalb desselben Subvolumes
|
||||
verwenden. Unter ZFS gilt dieselbe Einschränkung für ein Dataset und unter
|
||||
NTFS für ein Volume.
|
||||
|
||||
Mehrere Konfigurationen, die denselben Snapshot-Namespace teilen, verwenden
|
||||
dieselben Snapshots `stable`, `pending` und `scan`. Das Ausführen einer
|
||||
Konfiguration kann daher Wiederherstellungs-Snapshots ersetzen oder löschen,
|
||||
die von einer anderen benötigt werden.
|
||||
|
||||
In-Place-Dateimodifikationen ohne Zeitstempeländerungen
|
||||
SnapRAID erkennt Dateimodifikationen durch den Vergleich von Dateigrößen
|
||||
und Änderungszeitstempeln (mtime).
|
||||
|
|
@ -2030,6 +2045,38 @@ Bekannte Probleme (Known Issues)
|
|||
sollte sichergestellt werden, dass alle Hardlinks zu einer Datei im Scan
|
||||
enthalten sind, damit SnapRAID sie normalisieren kann.
|
||||
|
||||
Wiederherstellung nach einem unterbrochenen Multi-Paritäts-Sync
|
||||
In einem Array mit mehreren Paritätsfestplatten kann ein unterbrochener
|
||||
`sync` dazu führen, dass sich verschiedene Paritätsstufen vorübergehend
|
||||
in unterschiedlichen Aktualisierungszuständen befinden. Beispielsweise
|
||||
kann Parität 1 bereits neu aktualisierte Daten enthalten, während
|
||||
Parität 2 noch die alten Daten enthält.
|
||||
|
||||
Während `check` oder `fix` testet SnapRAID verschiedene
|
||||
Paritätskombinationen und validiert die rekonstruierten Daten anhand
|
||||
der bekannten Block-Hashes (die den gesamten Block abdecken, typischerweise
|
||||
256 KiB).
|
||||
|
||||
Wenn SnapRAID eine Rekonstruktion mit einer inkonsistenten Mischung aus
|
||||
alter und neuer Parität versucht, erzeugen die linearen RAID-Gleichungen
|
||||
fehlerhafte Daten. Damit eine solche ungültige Kombination fälschlicherweise
|
||||
akzeptiert wird, müssten die Gleichungen rein zufällig mindestens einen
|
||||
vollständigen 256-KiB-Block so perfekt rekonstruieren, dass sein Hash
|
||||
übereinstimmt, während andere nicht synchronisierte Blöcke desselben
|
||||
Stripes mit fehlerhaften Daten rekonstruiert werden.
|
||||
|
||||
Dieses Szenario beruht nicht auf einer Hash-Kollision; vielmehr müssten
|
||||
die gemischten Paritätsgleichungen selbst zufällig genau den ursprünglichen
|
||||
256-KiB-Blockinhalt erzeugen. Dies ist zwar bei speziell konstruierten oder
|
||||
stark repetitiven Daten mathematisch denkbar, bei realen Daten jedoch
|
||||
praktisch unmöglich.
|
||||
|
||||
Wenn alle Festplatten fehlerfrei sind, beseitigt der Abschluss des
|
||||
unterbrochenen `sync` vor weiteren Änderungen diese Unklarheit. Wenn eine
|
||||
Festplatte ausgefallen ist und eine Wiederherstellung erforderlich ist,
|
||||
sollten vor dem Ausführen von `check` oder `fix` keine Änderungen an den
|
||||
Datenfestplatten vorgenommen werden.
|
||||
|
||||
Übersetzung (Translation)
|
||||
Dieses Dokument ist eine automatische Übersetzung des englischen Handbuchs.
|
||||
Die maßgebliche Version finden Sie im englischen Handbuch.
|
||||
|
|
|
|||
|
|
@ -2059,7 +2059,24 @@ einen Mount-Punkt verdeckt war.
|
|||
Platzieren Sie keine verschachtelten Mount-Punkte oder Bind-Mounts innerhalb
|
||||
von Datenfestplatten, wenn Dateisystem-Snapshots aktiviert sind.
|
||||
|
||||
16.3 In-Place-Dateimodifikationen ohne Zeitstempeländerungen
|
||||
16.3 Mehrere Konfigurationen mit Dateisystem-Snapshots
|
||||
------------------------------------------------------
|
||||
|
||||
Die Snapshot-Unterstützung kann nicht sicher von mehreren unabhängigen
|
||||
SnapRAID-Konfigurationen gemeinsam genutzt werden, die denselben
|
||||
Dateisystem-Snapshot-Namespace verwenden.
|
||||
|
||||
Unter Btrfs und Bcachefs darf nur eine SnapRAID-Konfiguration mit aktivierter
|
||||
Snapshot-Unterstützung Datenverzeichnisse innerhalb desselben Subvolumes
|
||||
verwenden. Unter ZFS gilt dieselbe Einschränkung für ein Dataset und unter
|
||||
NTFS für ein Volume.
|
||||
|
||||
Mehrere Konfigurationen, die denselben Snapshot-Namespace teilen, verwenden
|
||||
dieselben Snapshots `stable`, `pending` und `scan`. Das Ausführen einer
|
||||
Konfiguration kann daher Wiederherstellungs-Snapshots ersetzen oder löschen,
|
||||
die von einer anderen benötigt werden.
|
||||
|
||||
16.4 In-Place-Dateimodifikationen ohne Zeitstempeländerungen
|
||||
------------------------------------------------------------
|
||||
|
||||
SnapRAID erkennt Dateimodifikationen durch den Vergleich von Dateigrößen
|
||||
|
|
@ -2075,7 +2092,7 @@ Sie den Änderungszeitstempel der Datei (z. B. mit dem Dienstprogramm "touch").
|
|||
Andernfalls wird der Unterschied erst bei einem nachfolgenden "scrub" oder
|
||||
"check" als Hash-Fehlübereinstimmung erkannt.
|
||||
|
||||
16.4 Nicht-ASCII-Groß-/Kleinschreibung unter Windows
|
||||
16.5 Nicht-ASCII-Groß-/Kleinschreibung unter Windows
|
||||
----------------------------------------------------
|
||||
|
||||
SnapRAID verwendet auf allen Plattformen eine standardmäßige, vorhersehbare
|
||||
|
|
@ -2098,7 +2115,7 @@ verursacht. Um Abweichungen durch das Case-Folding von Windows zu vermeiden,
|
|||
geben Sie für alle Nicht-ASCII-Zeichen in Konfigurationspfaden und Filtern
|
||||
stets die exakte Groß-/Kleinschreibung an.
|
||||
|
||||
16.5 Dateiendung für nicht wiederherstellbare Dateien
|
||||
16.6 Dateiendung für nicht wiederherstellbare Dateien
|
||||
-----------------------------------------------------
|
||||
|
||||
Wenn `fix` eine beschädigte Datei nicht vollständig wiederherstellen kann,
|
||||
|
|
@ -2124,7 +2141,7 @@ Dateien und stellen Sie sicher, dass `exclude *.unrecoverable` in Ihrer
|
|||
Konfiguration enthalten ist, um zu verhindern, dass solche Dateien im
|
||||
Paritätsdatensatz erfasst werden.
|
||||
|
||||
16.6 Wiederherstellung mit partiellem Fix
|
||||
16.7 Wiederherstellung mit partiellem Fix
|
||||
-----------------------------------------
|
||||
|
||||
Wenn `fix` mit `-S, --start` oder `-B, --count` eingeschränkt wird,
|
||||
|
|
@ -2148,7 +2165,7 @@ fehlgeschlagen ist. Wenn ein partieller `fix` nicht wiederherstellbare Daten
|
|||
meldet, entfernen oder benennen Sie die betroffenen Dateien um, bevor Sie eine
|
||||
weitere Wiederherstellung versuchen, oder überprüfen Sie deren Inhalt manuell.
|
||||
|
||||
16.7 NTFS-Hardlinks und ausgeschlossene Pfade
|
||||
16.8 NTFS-Hardlinks und ausgeschlossene Pfade
|
||||
---------------------------------------------
|
||||
|
||||
Unter NTFS speichern Verzeichniseinträge Dateigröße und Zeitstempel
|
||||
|
|
@ -2175,6 +2192,40 @@ Hardlinks geändert werden, die von SnapRAID ausgeschlossen sind, oder es
|
|||
sollte sichergestellt werden, dass alle Hardlinks zu einer Datei im Scan
|
||||
enthalten sind, damit SnapRAID sie normalisieren kann.
|
||||
|
||||
16.9 Wiederherstellung nach einem unterbrochenen Multi-Paritäts-Sync
|
||||
--------------------------------------------------------------------
|
||||
|
||||
In einem Array mit mehreren Paritätsfestplatten kann ein unterbrochener
|
||||
`sync` dazu führen, dass sich verschiedene Paritätsstufen vorübergehend
|
||||
in unterschiedlichen Aktualisierungszuständen befinden. Beispielsweise
|
||||
kann Parität 1 bereits neu aktualisierte Daten enthalten, während
|
||||
Parität 2 noch die alten Daten enthält.
|
||||
|
||||
Während `check` oder `fix` testet SnapRAID verschiedene
|
||||
Paritätskombinationen und validiert die rekonstruierten Daten anhand
|
||||
der bekannten Block-Hashes (die den gesamten Block abdecken, typischerweise
|
||||
256 KiB).
|
||||
|
||||
Wenn SnapRAID eine Rekonstruktion mit einer inkonsistenten Mischung aus
|
||||
alter und neuer Parität versucht, erzeugen die linearen RAID-Gleichungen
|
||||
fehlerhafte Daten. Damit eine solche ungültige Kombination fälschlicherweise
|
||||
akzeptiert wird, müssten die Gleichungen rein zufällig mindestens einen
|
||||
vollständigen 256-KiB-Block so perfekt rekonstruieren, dass sein Hash
|
||||
übereinstimmt, während andere nicht synchronisierte Blöcke desselben
|
||||
Stripes mit fehlerhaften Daten rekonstruiert werden.
|
||||
|
||||
Dieses Szenario beruht nicht auf einer Hash-Kollision; vielmehr müssten
|
||||
die gemischten Paritätsgleichungen selbst zufällig genau den ursprünglichen
|
||||
256-KiB-Blockinhalt erzeugen. Dies ist zwar bei speziell konstruierten oder
|
||||
stark repetitiven Daten mathematisch denkbar, bei realen Daten jedoch
|
||||
praktisch unmöglich.
|
||||
|
||||
Wenn alle Festplatten fehlerfrei sind, beseitigt der Abschluss des
|
||||
unterbrochenen `sync` vor weiteren Änderungen diese Unklarheit. Wenn eine
|
||||
Festplatte ausgefallen ist und eine Wiederherstellung erforderlich ist,
|
||||
sollten vor dem Ausführen von `check` oder `fix` keine Änderungen an den
|
||||
Datenfestplatten vorgenommen werden.
|
||||
|
||||
|
||||
17 ÜBERSETZUNG (TRANSLATION)
|
||||
============================
|
||||
|
|
|
|||
|
|
@ -2393,6 +2393,20 @@ hacerse visible.
|
|||
.PP
|
||||
No coloque puntos de montaje anidados ni montajes bind dentro de los discos
|
||||
de datos cuando las instantáneas del sistema de archivos estén habilitadas.
|
||||
.SS Múltiples configuraciones con instantáneas del sistema de archivos
|
||||
El soporte para instantáneas no se puede compartir de forma segura entre
|
||||
múltiples configuraciones independientes de SnapRAID que utilicen el mismo
|
||||
espacio de nombres de instantáneas del sistema de archivos.
|
||||
.PP
|
||||
En Btrfs y Bcachefs, solo una configuración de SnapRAID con soporte de
|
||||
instantáneas habilitado puede usar directorios de datos dentro del mismo
|
||||
subvolumen. En ZFS, la misma restricción se aplica a un dataset, y en NTFS
|
||||
a un volumen.
|
||||
.PP
|
||||
Las múltiples configuraciones que comparten el mismo espacio de nombres de
|
||||
instantáneas utilizan las mismas instantáneas \`stable\`, \`pending\` y \`scan\`.
|
||||
Por lo tanto, ejecutar una configuración puede reemplazar o eliminar las
|
||||
instantáneas de recuperación requeridas por otra.
|
||||
.SS Modificaciones de archivos in situ sin cambios de marca de tiempo
|
||||
SnapRAID detecta modificaciones de archivos comparando tamaños de archivo y
|
||||
marcas de tiempo de modificación (mtime).
|
||||
|
|
@ -2487,6 +2501,34 @@ Para evitar esta limitación, evite modificar archivos protegidos a través
|
|||
de enlaces duros que estén excluidos de SnapRAID, o asegúrese de que
|
||||
todos los enlaces duros a un archivo se incluyan en el escaneo para que
|
||||
SnapRAID pueda normalizarlos.
|
||||
.SS Recuperación tras una sincronización de multiparidad interrumpida
|
||||
En una matriz con múltiples discos de paridad, un \`sync\` interrumpido
|
||||
puede dejar los niveles de paridad temporalmente desincronizados entre sí.
|
||||
Por ejemplo, la paridad 1 podría contener datos recién actualizados,
|
||||
mientras que la paridad 2 todavía contiene los datos antiguos.
|
||||
.PP
|
||||
Durante \`check\` o \`fix\`, SnapRAID prueba diferentes combinaciones de
|
||||
paridad y valida los datos reconstruidos con respecto a los hashes de
|
||||
bloque conocidos (que cubren el bloque completo, normalmente 256 KiB).
|
||||
.PP
|
||||
Si SnapRAID intenta una reconstrucción utilizando una combinación
|
||||
inconsistente de paridad antigua y nueva, las ecuaciones lineales de RAID
|
||||
producirán datos incorrectos. Para que esta combinación no válida se
|
||||
acepte por error, las ecuaciones tendrían que reconstruir accidentalmente
|
||||
al menos un bloque completo de 256 KiB de manera tan perfecta que su hash
|
||||
coincida, mientras que otros bloques no sincronizados en la misma banda
|
||||
se reconstruyen con datos incorrectos.
|
||||
.PP
|
||||
Este escenario no depende de una colisión de hashes; más bien, las propias
|
||||
ecuaciones de paridad mixta tendrían que generar de forma casual el
|
||||
contenido exacto del bloque de 256 KiB original. Si bien es matemáticamente
|
||||
concebible con datos especialmente preparados o muy repetitivos, es
|
||||
prácticamente imposible con datos reales.
|
||||
.PP
|
||||
Si todos los discos están sanos, completar el \`sync\` interrumpido antes
|
||||
de realizar más cambios elimina esta ambigüedad. Si un disco ha fallado
|
||||
y se requiere recuperación, evite modificar los discos de datos antes
|
||||
de ejecutar \`check\` o \`fix\`.
|
||||
.SH TRADUCCIóN (TRANSLATION)
|
||||
Este documento es una traducción automática del manual en inglés.
|
||||
Consulte el manual en inglés para obtener la versión oficial.
|
||||
|
|
|
|||
|
|
@ -1891,6 +1891,21 @@ Problemas conocidos (Known Issues)
|
|||
No coloque puntos de montaje anidados ni montajes bind dentro de los discos
|
||||
de datos cuando las instantáneas del sistema de archivos estén habilitadas.
|
||||
|
||||
Múltiples configuraciones con instantáneas del sistema de archivos
|
||||
El soporte para instantáneas no se puede compartir de forma segura entre
|
||||
múltiples configuraciones independientes de SnapRAID que utilicen el mismo
|
||||
espacio de nombres de instantáneas del sistema de archivos.
|
||||
|
||||
En Btrfs y Bcachefs, solo una configuración de SnapRAID con soporte de
|
||||
instantáneas habilitado puede usar directorios de datos dentro del mismo
|
||||
subvolumen. En ZFS, la misma restricción se aplica a un dataset, y en NTFS
|
||||
a un volumen.
|
||||
|
||||
Las múltiples configuraciones que comparten el mismo espacio de nombres de
|
||||
instantáneas utilizan las mismas instantáneas `stable`, `pending` y `scan`.
|
||||
Por lo tanto, ejecutar una configuración puede reemplazar o eliminar las
|
||||
instantáneas de recuperación requeridas por otra.
|
||||
|
||||
Modificaciones de archivos in situ sin cambios de marca de tiempo
|
||||
SnapRAID detecta modificaciones de archivos comparando tamaños de archivo y
|
||||
marcas de tiempo de modificación (mtime).
|
||||
|
|
@ -1990,6 +2005,35 @@ Problemas conocidos (Known Issues)
|
|||
todos los enlaces duros a un archivo se incluyan en el escaneo para que
|
||||
SnapRAID pueda normalizarlos.
|
||||
|
||||
Recuperación tras una sincronización de multiparidad interrumpida
|
||||
En una matriz con múltiples discos de paridad, un `sync` interrumpido
|
||||
puede dejar los niveles de paridad temporalmente desincronizados entre sí.
|
||||
Por ejemplo, la paridad 1 podría contener datos recién actualizados,
|
||||
mientras que la paridad 2 todavía contiene los datos antiguos.
|
||||
|
||||
Durante `check` o `fix`, SnapRAID prueba diferentes combinaciones de
|
||||
paridad y valida los datos reconstruidos con respecto a los hashes de
|
||||
bloque conocidos (que cubren el bloque completo, normalmente 256 KiB).
|
||||
|
||||
Si SnapRAID intenta una reconstrucción utilizando una combinación
|
||||
inconsistente de paridad antigua y nueva, las ecuaciones lineales de RAID
|
||||
producirán datos incorrectos. Para que esta combinación no válida se
|
||||
acepte por error, las ecuaciones tendrían que reconstruir accidentalmente
|
||||
al menos un bloque completo de 256 KiB de manera tan perfecta que su hash
|
||||
coincida, mientras que otros bloques no sincronizados en la misma banda
|
||||
se reconstruyen con datos incorrectos.
|
||||
|
||||
Este escenario no depende de una colisión de hashes; más bien, las propias
|
||||
ecuaciones de paridad mixta tendrían que generar de forma casual el
|
||||
contenido exacto del bloque de 256 KiB original. Si bien es matemáticamente
|
||||
concebible con datos especialmente preparados o muy repetitivos, es
|
||||
prácticamente imposible con datos reales.
|
||||
|
||||
Si todos los discos están sanos, completar el `sync` interrumpido antes
|
||||
de realizar más cambios elimina esta ambigüedad. Si un disco ha fallado
|
||||
y se requiere recuperación, evite modificar los discos de datos antes
|
||||
de ejecutar `check` o `fix`.
|
||||
|
||||
Traducción (Translation)
|
||||
Este documento es una traducción automática del manual en inglés.
|
||||
Consulte el manual en inglés para obtener la versión oficial.
|
||||
|
|
|
|||
|
|
@ -2026,7 +2026,24 @@ hacerse visible.
|
|||
No coloque puntos de montaje anidados ni montajes bind dentro de los discos
|
||||
de datos cuando las instantáneas del sistema de archivos estén habilitadas.
|
||||
|
||||
16.3 Modificaciones de archivos in situ sin cambios de marca de tiempo
|
||||
16.3 Múltiples configuraciones con instantáneas del sistema de archivos
|
||||
-----------------------------------------------------------------------
|
||||
|
||||
El soporte para instantáneas no se puede compartir de forma segura entre
|
||||
múltiples configuraciones independientes de SnapRAID que utilicen el mismo
|
||||
espacio de nombres de instantáneas del sistema de archivos.
|
||||
|
||||
En Btrfs y Bcachefs, solo una configuración de SnapRAID con soporte de
|
||||
instantáneas habilitado puede usar directorios de datos dentro del mismo
|
||||
subvolumen. En ZFS, la misma restricción se aplica a un dataset, y en NTFS
|
||||
a un volumen.
|
||||
|
||||
Las múltiples configuraciones que comparten el mismo espacio de nombres de
|
||||
instantáneas utilizan las mismas instantáneas `stable`, `pending` y `scan`.
|
||||
Por lo tanto, ejecutar una configuración puede reemplazar o eliminar las
|
||||
instantáneas de recuperación requeridas por otra.
|
||||
|
||||
16.4 Modificaciones de archivos in situ sin cambios de marca de tiempo
|
||||
----------------------------------------------------------------------
|
||||
|
||||
SnapRAID detecta modificaciones de archivos comparando tamaños de archivo y
|
||||
|
|
@ -2041,7 +2058,7 @@ de tiempo de modificación del archivo (por ejemplo, con la utilidad "touch").
|
|||
De lo contrario, la diferencia solo se detectará como una falta de
|
||||
coincidencia de hash durante un "scrub" o "check" posterior.
|
||||
|
||||
16.4 Coincidencia de mayúsculas y minúsculas no ASCII en Windows
|
||||
16.5 Coincidencia de mayúsculas y minúsculas no ASCII en Windows
|
||||
----------------------------------------------------------------
|
||||
|
||||
SnapRAID utiliza una codificación UTF-8 estándar y predecible en todas las
|
||||
|
|
@ -2065,7 +2082,7 @@ mayúsculas y minúsculas. Para evitar discrepancias derivadas del plegado de
|
|||
mayúsculas y minúsculas de Windows, especifique siempre la grafía exacta de
|
||||
los caracteres no ASCII en las rutas de configuración y filtros.
|
||||
|
||||
16.5 Sufijo de archivos no recuperables
|
||||
16.6 Sufijo de archivos no recuperables
|
||||
---------------------------------------
|
||||
|
||||
Cuando `fix` no puede recuperar por completo un archivo dañado, lo pone en
|
||||
|
|
@ -2087,7 +2104,7 @@ Evite utilizar la extensión `.unrecoverable` para archivos normales y asegúres
|
|||
de incluir `exclude *.unrecoverable` en su configuración para evitar que dichos
|
||||
archivos se rastreen en el conjunto de datos de paridad.
|
||||
|
||||
16.6 Recuperación con fix parcial
|
||||
16.7 Recuperación con fix parcial
|
||||
---------------------------------
|
||||
|
||||
Cuando `fix` se restringe mediante `-S, --start` o `-B, --count`,
|
||||
|
|
@ -2109,7 +2126,7 @@ avanzada, típicamente después de que un `fix` normal haya fallado. Si un `fix`
|
|||
parcial informa de datos no recuperables, elimine o renombre los archivos
|
||||
afectados antes de intentar otra recuperación, o verifique su contenido manualmente.
|
||||
|
||||
16.7 Enlaces duros en NTFS y rutas excluidas
|
||||
16.8 Enlaces duros en NTFS y rutas excluidas
|
||||
--------------------------------------------
|
||||
|
||||
En NTFS, las entradas de directorio almacenan en caché el tamaño del
|
||||
|
|
@ -2135,6 +2152,37 @@ de enlaces duros que estén excluidos de SnapRAID, o asegúrese de que
|
|||
todos los enlaces duros a un archivo se incluyan en el escaneo para que
|
||||
SnapRAID pueda normalizarlos.
|
||||
|
||||
16.9 Recuperación tras una sincronización de multiparidad interrumpida
|
||||
----------------------------------------------------------------------
|
||||
|
||||
En una matriz con múltiples discos de paridad, un `sync` interrumpido
|
||||
puede dejar los niveles de paridad temporalmente desincronizados entre sí.
|
||||
Por ejemplo, la paridad 1 podría contener datos recién actualizados,
|
||||
mientras que la paridad 2 todavía contiene los datos antiguos.
|
||||
|
||||
Durante `check` o `fix`, SnapRAID prueba diferentes combinaciones de
|
||||
paridad y valida los datos reconstruidos con respecto a los hashes de
|
||||
bloque conocidos (que cubren el bloque completo, normalmente 256 KiB).
|
||||
|
||||
Si SnapRAID intenta una reconstrucción utilizando una combinación
|
||||
inconsistente de paridad antigua y nueva, las ecuaciones lineales de RAID
|
||||
producirán datos incorrectos. Para que esta combinación no válida se
|
||||
acepte por error, las ecuaciones tendrían que reconstruir accidentalmente
|
||||
al menos un bloque completo de 256 KiB de manera tan perfecta que su hash
|
||||
coincida, mientras que otros bloques no sincronizados en la misma banda
|
||||
se reconstruyen con datos incorrectos.
|
||||
|
||||
Este escenario no depende de una colisión de hashes; más bien, las propias
|
||||
ecuaciones de paridad mixta tendrían que generar de forma casual el
|
||||
contenido exacto del bloque de 256 KiB original. Si bien es matemáticamente
|
||||
concebible con datos especialmente preparados o muy repetitivos, es
|
||||
prácticamente imposible con datos reales.
|
||||
|
||||
Si todos los discos están sanos, completar el `sync` interrumpido antes
|
||||
de realizar más cambios elimina esta ambigüedad. Si un disco ha fallado
|
||||
y se requiere recuperación, evite modificar los discos de datos antes
|
||||
de ejecutar `check` o `fix`.
|
||||
|
||||
|
||||
17 TRADUCCIóN (TRANSLATION)
|
||||
===========================
|
||||
|
|
|
|||
|
|
@ -2440,6 +2440,20 @@ devenir visible.
|
|||
Ne placez pas de points de montage imbriqués ou de montages bind dans les
|
||||
disques de données lorsque les instantanés du système de fichiers sont
|
||||
activés.
|
||||
.SS Plusieurs configurations avec instantanés du système de fichiers
|
||||
La prise en charge des instantanés ne peut pas être partagée en toute
|
||||
sécurité par plusieurs configurations SnapRAID indépendantes utilisant le
|
||||
même espace de noms d\'instantanés du système de fichiers.
|
||||
.PP
|
||||
Sur Btrfs et Bcachefs, une seule configuration SnapRAID avec prise en charge
|
||||
des instantanés activée peut utiliser des répertoires de données au sein du
|
||||
même sous\-volume. Sur ZFS, la même restriction s\'applique à un dataset, et
|
||||
sur NTFS à un volume.
|
||||
.PP
|
||||
Plusieurs configurations partageant le même espace de noms d\'instantanés
|
||||
utilisent les mêmes instantanés \`stable\`, \`pending\` et \`scan\`. L\'exécution
|
||||
d\'une configuration peut donc remplacer ou supprimer les instantanés de
|
||||
récupération requis par une autre.
|
||||
.SS Modifications de fichiers sur place sans changement d\'horodatage
|
||||
SnapRAID détecte les modifications de fichiers en comparant la taille des
|
||||
fichiers et les horodatages de modification (mtime).
|
||||
|
|
@ -2537,6 +2551,35 @@ Pour éviter cette limitation, évitez de modifier les fichiers protégés
|
|||
via des liens matériels exclus de SnapRAID, ou assurez\-vous que tous les
|
||||
liens matériels vers un fichier sont inclus dans l\'analyse afin que
|
||||
SnapRAID puisse les normaliser.
|
||||
.SS Récupération après un sync multi\-parité interrompu
|
||||
Dans une grappe avec plusieurs disques de parité, un \`sync\` interrompu
|
||||
peut laisser les niveaux de parité temporairement désynchronisés entre
|
||||
eux. Par exemple, la parité 1 peut déjà contenir les données nouvellement
|
||||
mises à jour, tandis que la parité 2 contient encore les anciennes données.
|
||||
.PP
|
||||
Lors d\'un \`check\` ou d\'un \`fix\`, SnapRAID teste différentes combinaisons
|
||||
de parités et valide les données reconstruites par rapport aux hachages
|
||||
de bloc connus (qui couvrent l\'intégralité du bloc, généralement 256 Kio).
|
||||
.PP
|
||||
Si SnapRAID tente une reconstruction en utilisant un mélange incohérent
|
||||
d\'ancienne et de nouvelle parité, les équations linéaires du RAID
|
||||
produiront des données incorrectes. Pour qu\'une telle combinaison
|
||||
invalide soit acceptée par erreur, il faudrait que les équations
|
||||
reconstruisent accidentellement au moins un bloc complet de 256 Kio
|
||||
de manière si parfaite que son hachage corresponde, tandis que d\'autres
|
||||
blocs non synchronisés de la même bande sont reconstruits avec des données
|
||||
erronées.
|
||||
.PP
|
||||
Ce scénario ne dépend pas d\'une collision de hachage ; il faudrait plutôt
|
||||
que les équations de parité mixte produisent elles\-mêmes par coïncidence
|
||||
le contenu exact du bloc original de 256 Kio. Bien que mathématiquement
|
||||
envisageable avec des données spécialement conçues ou très répétitives,
|
||||
c\'est pratiquement impossible avec des données réelles.
|
||||
.PP
|
||||
Si tous les disques sont sains, achever le \`sync\` interrompu avant
|
||||
d\'apporter d\'autres modifications élimine cette ambiguïté. Si un disque
|
||||
est tombé en panne et qu\'une récupération est requise, évitez de modifier
|
||||
les disques de données avant d\'exécuter \`check\` ou \`fix\`.
|
||||
.SH TRADUCTION (TRANSLATION)
|
||||
Ce document est une traduction automatique du manuel en anglais.
|
||||
Veuillez vous référer au manuel en anglais pour la version officielle.
|
||||
|
|
|
|||
|
|
@ -1935,6 +1935,21 @@ Problèmes connus (Known Issues)
|
|||
disques de données lorsque les instantanés du système de fichiers sont
|
||||
activés.
|
||||
|
||||
Plusieurs configurations avec instantanés du système de fichiers
|
||||
La prise en charge des instantanés ne peut pas être partagée en toute
|
||||
sécurité par plusieurs configurations SnapRAID indépendantes utilisant le
|
||||
même espace de noms d'instantanés du système de fichiers.
|
||||
|
||||
Sur Btrfs et Bcachefs, une seule configuration SnapRAID avec prise en charge
|
||||
des instantanés activée peut utiliser des répertoires de données au sein du
|
||||
même sous-volume. Sur ZFS, la même restriction s'applique à un dataset, et
|
||||
sur NTFS à un volume.
|
||||
|
||||
Plusieurs configurations partageant le même espace de noms d'instantanés
|
||||
utilisent les mêmes instantanés `stable`, `pending` et `scan`. L'exécution
|
||||
d'une configuration peut donc remplacer ou supprimer les instantanés de
|
||||
récupération requis par une autre.
|
||||
|
||||
Modifications de fichiers sur place sans changement d'horodatage
|
||||
SnapRAID détecte les modifications de fichiers en comparant la taille des
|
||||
fichiers et les horodatages de modification (mtime).
|
||||
|
|
@ -2037,6 +2052,36 @@ Problèmes connus (Known Issues)
|
|||
liens matériels vers un fichier sont inclus dans l'analyse afin que
|
||||
SnapRAID puisse les normaliser.
|
||||
|
||||
Récupération après un sync multi-parité interrompu
|
||||
Dans une grappe avec plusieurs disques de parité, un `sync` interrompu
|
||||
peut laisser les niveaux de parité temporairement désynchronisés entre
|
||||
eux. Par exemple, la parité 1 peut déjà contenir les données nouvellement
|
||||
mises à jour, tandis que la parité 2 contient encore les anciennes données.
|
||||
|
||||
Lors d'un `check` ou d'un `fix`, SnapRAID teste différentes combinaisons
|
||||
de parités et valide les données reconstruites par rapport aux hachages
|
||||
de bloc connus (qui couvrent l'intégralité du bloc, généralement 256 Kio).
|
||||
|
||||
Si SnapRAID tente une reconstruction en utilisant un mélange incohérent
|
||||
d'ancienne et de nouvelle parité, les équations linéaires du RAID
|
||||
produiront des données incorrectes. Pour qu'une telle combinaison
|
||||
invalide soit acceptée par erreur, il faudrait que les équations
|
||||
reconstruisent accidentellement au moins un bloc complet de 256 Kio
|
||||
de manière si parfaite que son hachage corresponde, tandis que d'autres
|
||||
blocs non synchronisés de la même bande sont reconstruits avec des données
|
||||
erronées.
|
||||
|
||||
Ce scénario ne dépend pas d'une collision de hachage ; il faudrait plutôt
|
||||
que les équations de parité mixte produisent elles-mêmes par coïncidence
|
||||
le contenu exact du bloc original de 256 Kio. Bien que mathématiquement
|
||||
envisageable avec des données spécialement conçues ou très répétitives,
|
||||
c'est pratiquement impossible avec des données réelles.
|
||||
|
||||
Si tous les disques sont sains, achever le `sync` interrompu avant
|
||||
d'apporter d'autres modifications élimine cette ambiguïté. Si un disque
|
||||
est tombé en panne et qu'une récupération est requise, évitez de modifier
|
||||
les disques de données avant d'exécuter `check` ou `fix`.
|
||||
|
||||
Traduction (Translation)
|
||||
Ce document est une traduction automatique du manuel en anglais.
|
||||
Veuillez vous référer au manuel en anglais pour la version officielle.
|
||||
|
|
|
|||
|
|
@ -2070,7 +2070,24 @@ Ne placez pas de points de montage imbriqués ou de montages bind dans les
|
|||
disques de données lorsque les instantanés du système de fichiers sont
|
||||
activés.
|
||||
|
||||
16.3 Modifications de fichiers sur place sans changement d'horodatage
|
||||
16.3 Plusieurs configurations avec instantanés du système de fichiers
|
||||
---------------------------------------------------------------------
|
||||
|
||||
La prise en charge des instantanés ne peut pas être partagée en toute
|
||||
sécurité par plusieurs configurations SnapRAID indépendantes utilisant le
|
||||
même espace de noms d'instantanés du système de fichiers.
|
||||
|
||||
Sur Btrfs et Bcachefs, une seule configuration SnapRAID avec prise en charge
|
||||
des instantanés activée peut utiliser des répertoires de données au sein du
|
||||
même sous-volume. Sur ZFS, la même restriction s'applique à un dataset, et
|
||||
sur NTFS à un volume.
|
||||
|
||||
Plusieurs configurations partageant le même espace de noms d'instantanés
|
||||
utilisent les mêmes instantanés `stable`, `pending` et `scan`. L'exécution
|
||||
d'une configuration peut donc remplacer ou supprimer les instantanés de
|
||||
récupération requis par une autre.
|
||||
|
||||
16.4 Modifications de fichiers sur place sans changement d'horodatage
|
||||
---------------------------------------------------------------------
|
||||
|
||||
SnapRAID détecte les modifications de fichiers en comparant la taille des
|
||||
|
|
@ -2085,7 +2102,7 @@ l'horodatage de modification du fichier (par exemple avec l'utilitaire
|
|||
"touch"). Sinon, la différence ne sera détectée que sous la forme d'une
|
||||
non-concordance de hachage lors d'un "scrub" ou "check" ultérieur.
|
||||
|
||||
16.4 Correspondance de casse non-ASCII sous Windows
|
||||
16.5 Correspondance de casse non-ASCII sous Windows
|
||||
---------------------------------------------------
|
||||
|
||||
SnapRAID utilise un encodage UTF-8 standard et prévisible sur toutes les
|
||||
|
|
@ -2108,7 +2125,7 @@ Pour éviter les écarts causés par le repliement de casse de Windows, spécifi
|
|||
toujours la casse exacte de tous les caractères non-ASCII dans les chemins de
|
||||
configuration et les filtres.
|
||||
|
||||
16.5 Suffixe des fichiers irrécupérables
|
||||
16.6 Suffixe des fichiers irrécupérables
|
||||
----------------------------------------
|
||||
|
||||
Lorsque `fix` ne peut pas récupérer entièrement un fichier endommagé, il le
|
||||
|
|
@ -2132,7 +2149,7 @@ assurez-vous que la règle `exclude *.unrecoverable` est incluse dans votre
|
|||
configuration afin d'empêcher le suivi de ces fichiers dans le jeu de données
|
||||
de parité.
|
||||
|
||||
16.6 Récupération avec fix partiel
|
||||
16.7 Récupération avec fix partiel
|
||||
----------------------------------
|
||||
|
||||
Lorsque `fix` est restreint avec `-S, --start` ou `-B, --count`,
|
||||
|
|
@ -2156,7 +2173,7 @@ signale des données irrécupérables, supprimez ou renommez les fichiers
|
|||
concernés avant de tenter une nouvelle récupération, ou vérifiez manuellement
|
||||
leur contenu.
|
||||
|
||||
16.7 Liens matériels NTFS et chemins exclus
|
||||
16.8 Liens matériels NTFS et chemins exclus
|
||||
-------------------------------------------
|
||||
|
||||
Sur NTFS, les entrées de répertoire mettent en cache la taille du fichier
|
||||
|
|
@ -2182,6 +2199,38 @@ via des liens matériels exclus de SnapRAID, ou assurez-vous que tous les
|
|||
liens matériels vers un fichier sont inclus dans l'analyse afin que
|
||||
SnapRAID puisse les normaliser.
|
||||
|
||||
16.9 Récupération après un sync multi-parité interrompu
|
||||
-------------------------------------------------------
|
||||
|
||||
Dans une grappe avec plusieurs disques de parité, un `sync` interrompu
|
||||
peut laisser les niveaux de parité temporairement désynchronisés entre
|
||||
eux. Par exemple, la parité 1 peut déjà contenir les données nouvellement
|
||||
mises à jour, tandis que la parité 2 contient encore les anciennes données.
|
||||
|
||||
Lors d'un `check` ou d'un `fix`, SnapRAID teste différentes combinaisons
|
||||
de parités et valide les données reconstruites par rapport aux hachages
|
||||
de bloc connus (qui couvrent l'intégralité du bloc, généralement 256 Kio).
|
||||
|
||||
Si SnapRAID tente une reconstruction en utilisant un mélange incohérent
|
||||
d'ancienne et de nouvelle parité, les équations linéaires du RAID
|
||||
produiront des données incorrectes. Pour qu'une telle combinaison
|
||||
invalide soit acceptée par erreur, il faudrait que les équations
|
||||
reconstruisent accidentellement au moins un bloc complet de 256 Kio
|
||||
de manière si parfaite que son hachage corresponde, tandis que d'autres
|
||||
blocs non synchronisés de la même bande sont reconstruits avec des données
|
||||
erronées.
|
||||
|
||||
Ce scénario ne dépend pas d'une collision de hachage ; il faudrait plutôt
|
||||
que les équations de parité mixte produisent elles-mêmes par coïncidence
|
||||
le contenu exact du bloc original de 256 Kio. Bien que mathématiquement
|
||||
envisageable avec des données spécialement conçues ou très répétitives,
|
||||
c'est pratiquement impossible avec des données réelles.
|
||||
|
||||
Si tous les disques sont sains, achever le `sync` interrompu avant
|
||||
d'apporter d'autres modifications élimine cette ambiguïté. Si un disque
|
||||
est tombé en panne et qu'une récupération est requise, évitez de modifier
|
||||
les disques de données avant d'exécuter `check` ou `fix`.
|
||||
|
||||
|
||||
17 TRADUCTION (TRANSLATION)
|
||||
===========================
|
||||
|
|
|
|||
|
|
@ -2416,6 +2416,19 @@ mount nel filesystem live potrebbe diventare visibile.
|
|||
.PP
|
||||
Non inserire punti di mount annidati o bind mount all\'interno dei dischi dati
|
||||
quando le snapshot del filesystem sono abilitate.
|
||||
.SS Configurazioni multiple con snapshot del filesystem
|
||||
Il supporto per gli snapshot non può essere condiviso in sicurezza da
|
||||
più configurazioni SnapRAID indipendenti che utilizzano lo stesso
|
||||
namespace di snapshot del filesystem.
|
||||
.PP
|
||||
Su Btrfs e Bcachefs, una sola configurazione SnapRAID con supporto snapshot
|
||||
abilitato può utilizzare directory dati all\'interno dello stesso subvolume.
|
||||
Su ZFS, la stessa restrizione si applica a un dataset, e su NTFS a un volume.
|
||||
.PP
|
||||
Le configurazioni multiple che condividono lo stesso namespace di snapshot
|
||||
utilizzano gli stessi snapshot \`stable\`, \`pending\` e \`scan\`. L\'esecuzione di
|
||||
una configurazione può quindi sostituire o eliminare gli snapshot di
|
||||
ripristino richiesti da un\'altra.
|
||||
.SS Modifiche ai file sul posto senza variazione di data/ora
|
||||
SnapRAID rileva le modifiche ai file confrontando le dimensioni dei file e
|
||||
i timestamp di modifica (mtime).
|
||||
|
|
@ -2510,6 +2523,34 @@ Per evitare questa limitazione, evitare di modificare i file protetti
|
|||
tramite hard link esclusi da SnapRAID, oppure assicurarsi che tutti gli
|
||||
hard link a un file siano inclusi nella scansione in modo che SnapRAID
|
||||
possa normalizzarli.
|
||||
.SS Recupero dopo un sync a parità multipla interrotto
|
||||
In un array con più dischi di parità, un \`sync\` interrotto può lasciare
|
||||
i livelli di parità temporaneamente disallineati tra loro. Ad esempio,
|
||||
la parità 1 potrebbe già contenere i dati appena aggiornati, mentre la
|
||||
parità 2 contiene ancora i vecchi dati.
|
||||
.PP
|
||||
Durante \`check\` o \`fix\`, SnapRAID prova diverse combinazioni di parità
|
||||
e convalida i dati ricostruiti rispetto agli hash dei blocchi noti
|
||||
(che coprono l\'intero blocco, tipicamente 256 KiB).
|
||||
.PP
|
||||
Se SnapRAID tenta una ricostruzione utilizzando una combinazione
|
||||
incoerente di parità vecchia e nuova, le equazioni lineari del RAID
|
||||
produrranno dati errati. Affinché questa combinazione non valida venga
|
||||
accettata erroneamente, le equazioni dovrebbero accidentalmente
|
||||
ricostruire almeno un blocco completo da 256 KiB in modo così perfetto
|
||||
da far corrispondere il suo hash, mentre altri blocchi non sincronizzati
|
||||
nella stessa stripe vengono ricostruiti con dati errati.
|
||||
.PP
|
||||
Questo scenario non dipende da una collisione di hash; piuttosto, le
|
||||
equazioni di parità mista dovrebbero produrre casualmente l\'esatto
|
||||
contenuto originale del blocco da 256 KiB. Sebbene matematicamente
|
||||
possibile con dati appositamente creati o fortemente ripetitivi, è
|
||||
praticamente impossibile con dati reali.
|
||||
.PP
|
||||
Se tutti i dischi sono integri, completare il \`sync\` interrotto prima
|
||||
di apportare ulteriori modifiche rimuove questa ambiguità. Se un disco
|
||||
si è guastato ed è necessario il recupero, evitare di modificare i dischi
|
||||
dati prima di eseguire \`check\` o \`fix\`.
|
||||
.SH TRADUZIONE (TRANSLATION)
|
||||
Questo documento è una traduzione automatica del manuale in inglese.
|
||||
Fare riferimento al manuale in inglese per la versione ufficiale.
|
||||
|
|
|
|||
|
|
@ -1900,6 +1900,20 @@ Problemi noti (Known Issues)
|
|||
Non inserire punti di mount annidati o bind mount all'interno dei dischi dati
|
||||
quando le snapshot del filesystem sono abilitate.
|
||||
|
||||
Configurazioni multiple con snapshot del filesystem
|
||||
Il supporto per gli snapshot non può essere condiviso in sicurezza da
|
||||
più configurazioni SnapRAID indipendenti che utilizzano lo stesso
|
||||
namespace di snapshot del filesystem.
|
||||
|
||||
Su Btrfs e Bcachefs, una sola configurazione SnapRAID con supporto snapshot
|
||||
abilitato può utilizzare directory dati all'interno dello stesso subvolume.
|
||||
Su ZFS, la stessa restrizione si applica a un dataset, e su NTFS a un volume.
|
||||
|
||||
Le configurazioni multiple che condividono lo stesso namespace di snapshot
|
||||
utilizzano gli stessi snapshot `stable`, `pending` e `scan`. L'esecuzione di
|
||||
una configurazione può quindi sostituire o eliminare gli snapshot di
|
||||
ripristino richiesti da un'altra.
|
||||
|
||||
Modifiche ai file sul posto senza variazione di data/ora
|
||||
SnapRAID rileva le modifiche ai file confrontando le dimensioni dei file e
|
||||
i timestamp di modifica (mtime).
|
||||
|
|
@ -1999,6 +2013,35 @@ Problemi noti (Known Issues)
|
|||
hard link a un file siano inclusi nella scansione in modo che SnapRAID
|
||||
possa normalizzarli.
|
||||
|
||||
Recupero dopo un sync a parità multipla interrotto
|
||||
In un array con più dischi di parità, un `sync` interrotto può lasciare
|
||||
i livelli di parità temporaneamente disallineati tra loro. Ad esempio,
|
||||
la parità 1 potrebbe già contenere i dati appena aggiornati, mentre la
|
||||
parità 2 contiene ancora i vecchi dati.
|
||||
|
||||
Durante `check` o `fix`, SnapRAID prova diverse combinazioni di parità
|
||||
e convalida i dati ricostruiti rispetto agli hash dei blocchi noti
|
||||
(che coprono l'intero blocco, tipicamente 256 KiB).
|
||||
|
||||
Se SnapRAID tenta una ricostruzione utilizzando una combinazione
|
||||
incoerente di parità vecchia e nuova, le equazioni lineari del RAID
|
||||
produrranno dati errati. Affinché questa combinazione non valida venga
|
||||
accettata erroneamente, le equazioni dovrebbero accidentalmente
|
||||
ricostruire almeno un blocco completo da 256 KiB in modo così perfetto
|
||||
da far corrispondere il suo hash, mentre altri blocchi non sincronizzati
|
||||
nella stessa stripe vengono ricostruiti con dati errati.
|
||||
|
||||
Questo scenario non dipende da una collisione di hash; piuttosto, le
|
||||
equazioni di parità mista dovrebbero produrre casualmente l'esatto
|
||||
contenuto originale del blocco da 256 KiB. Sebbene matematicamente
|
||||
possibile con dati appositamente creati o fortemente ripetitivi, è
|
||||
praticamente impossibile con dati reali.
|
||||
|
||||
Se tutti i dischi sono integri, completare il `sync` interrotto prima
|
||||
di apportare ulteriori modifiche rimuove questa ambiguità. Se un disco
|
||||
si è guastato ed è necessario il recupero, evitare di modificare i dischi
|
||||
dati prima di eseguire `check` o `fix`.
|
||||
|
||||
Traduzione (Translation)
|
||||
Questo documento è una traduzione automatica del manuale in inglese.
|
||||
Fare riferimento al manuale in inglese per la versione ufficiale.
|
||||
|
|
|
|||
|
|
@ -2035,7 +2035,23 @@ mount nel filesystem live potrebbe diventare visibile.
|
|||
Non inserire punti di mount annidati o bind mount all'interno dei dischi dati
|
||||
quando le snapshot del filesystem sono abilitate.
|
||||
|
||||
16.3 Modifiche ai file sul posto senza variazione di data/ora
|
||||
16.3 Configurazioni multiple con snapshot del filesystem
|
||||
--------------------------------------------------------
|
||||
|
||||
Il supporto per gli snapshot non può essere condiviso in sicurezza da
|
||||
più configurazioni SnapRAID indipendenti che utilizzano lo stesso
|
||||
namespace di snapshot del filesystem.
|
||||
|
||||
Su Btrfs e Bcachefs, una sola configurazione SnapRAID con supporto snapshot
|
||||
abilitato può utilizzare directory dati all'interno dello stesso subvolume.
|
||||
Su ZFS, la stessa restrizione si applica a un dataset, e su NTFS a un volume.
|
||||
|
||||
Le configurazioni multiple che condividono lo stesso namespace di snapshot
|
||||
utilizzano gli stessi snapshot `stable`, `pending` e `scan`. L'esecuzione di
|
||||
una configurazione può quindi sostituire o eliminare gli snapshot di
|
||||
ripristino richiesti da un'altra.
|
||||
|
||||
16.4 Modifiche ai file sul posto senza variazione di data/ora
|
||||
-------------------------------------------------------------
|
||||
|
||||
SnapRAID rileva le modifiche ai file confrontando le dimensioni dei file e
|
||||
|
|
@ -2050,7 +2066,7 @@ di modifica del file (ad esempio con l'utilità "touch"). Altrimenti, la
|
|||
differenza verrà rilevata solo come mancata corrispondenza dell'hash durante
|
||||
un successivo "scrub" o "check".
|
||||
|
||||
16.4 Corrispondenza maiuscole/minuscole non ASCII in Windows
|
||||
16.5 Corrispondenza maiuscole/minuscole non ASCII in Windows
|
||||
------------------------------------------------------------
|
||||
|
||||
SnapRAID utilizza la codifica UTF-8 standard e prevedibile su tutte le
|
||||
|
|
@ -2074,7 +2090,7 @@ maiuscolo/minuscolo di Windows, specificare sempre l'esatta combinazione di
|
|||
maiuscole/minuscole per qualsiasi carattere non ASCII nei percorsi di
|
||||
configurazione e nei filtri.
|
||||
|
||||
16.5 Suffisso dei file irrecuperabili
|
||||
16.6 Suffisso dei file irrecuperabili
|
||||
-------------------------------------
|
||||
|
||||
Quando `fix` non riesce a recuperare completamente un file danneggiato,
|
||||
|
|
@ -2096,7 +2112,7 @@ Evitare di utilizzare l'estensione `.unrecoverable` per i normali file e
|
|||
assicurarsi che la regola `exclude *.unrecoverable` sia inclusa nella
|
||||
configurazione per evitare che tali file vengano tracciati nel dataset di parità.
|
||||
|
||||
16.6 Recupero con fix parziale
|
||||
16.7 Recupero con fix parziale
|
||||
------------------------------
|
||||
|
||||
Quando `fix` viene limitato usando `-S, --start` o `-B, --count`,
|
||||
|
|
@ -2118,7 +2134,7 @@ avanzato, tipicamente dopo che un normale `fix` è fallito. Se un `fix`
|
|||
parziale segnala dati irrecuperabili, rimuovere o rinominare i file interessati
|
||||
prima di tentare un altro recupero, oppure verificarne manualmente il contenuto.
|
||||
|
||||
16.7 Hard link NTFS e percorsi esclusi
|
||||
16.8 Hard link NTFS e percorsi esclusi
|
||||
--------------------------------------
|
||||
|
||||
Su NTFS, le voci di directory memorizzano nella cache la dimensione del
|
||||
|
|
@ -2144,6 +2160,37 @@ tramite hard link esclusi da SnapRAID, oppure assicurarsi che tutti gli
|
|||
hard link a un file siano inclusi nella scansione in modo che SnapRAID
|
||||
possa normalizzarli.
|
||||
|
||||
16.9 Recupero dopo un sync a parità multipla interrotto
|
||||
-------------------------------------------------------
|
||||
|
||||
In un array con più dischi di parità, un `sync` interrotto può lasciare
|
||||
i livelli di parità temporaneamente disallineati tra loro. Ad esempio,
|
||||
la parità 1 potrebbe già contenere i dati appena aggiornati, mentre la
|
||||
parità 2 contiene ancora i vecchi dati.
|
||||
|
||||
Durante `check` o `fix`, SnapRAID prova diverse combinazioni di parità
|
||||
e convalida i dati ricostruiti rispetto agli hash dei blocchi noti
|
||||
(che coprono l'intero blocco, tipicamente 256 KiB).
|
||||
|
||||
Se SnapRAID tenta una ricostruzione utilizzando una combinazione
|
||||
incoerente di parità vecchia e nuova, le equazioni lineari del RAID
|
||||
produrranno dati errati. Affinché questa combinazione non valida venga
|
||||
accettata erroneamente, le equazioni dovrebbero accidentalmente
|
||||
ricostruire almeno un blocco completo da 256 KiB in modo così perfetto
|
||||
da far corrispondere il suo hash, mentre altri blocchi non sincronizzati
|
||||
nella stessa stripe vengono ricostruiti con dati errati.
|
||||
|
||||
Questo scenario non dipende da una collisione di hash; piuttosto, le
|
||||
equazioni di parità mista dovrebbero produrre casualmente l'esatto
|
||||
contenuto originale del blocco da 256 KiB. Sebbene matematicamente
|
||||
possibile con dati appositamente creati o fortemente ripetitivi, è
|
||||
praticamente impossibile con dati reali.
|
||||
|
||||
Se tutti i dischi sono integri, completare il `sync` interrotto prima
|
||||
di apportare ulteriori modifiche rimuove questa ambiguità. Se un disco
|
||||
si è guastato ed è necessario il recupero, evitare di modificare i dischi
|
||||
dati prima di eseguire `check` o `fix`.
|
||||
|
||||
|
||||
17 TRADUZIONE (TRANSLATION)
|
||||
===========================
|
||||
|
|
|
|||
|
|
@ -2173,6 +2173,18 @@ SnapRAIDは警告(WARNING)を報告し、その先をスキャンしませ
|
|||
.PP
|
||||
ファイルシステムスナップショットが有効な場合は、データディスク内にネストされた
|
||||
マウントポイントやバインドマウントを配置しないでください。
|
||||
.SS ファイルシステムスナップショット使用時の複数設定
|
||||
同じファイルシステムのスナップショット名前空間を使用する複数の独立した
|
||||
SnapRAID設定で、スナップショットサポートを安全に共有することはできません。
|
||||
.PP
|
||||
BtrfsおよびBcachefsでは、スナップショットサポートが有効なSnapRAID設定は、
|
||||
同一サブボリューム内のデータディレクトリを1つしか使用できません。ZFSでは
|
||||
同じ制限がデータセットに、NTFSではボリュームに適用されます。
|
||||
.PP
|
||||
同じスナップショット名前空間を共有する複数の設定は、同一の \`stable\`、
|
||||
\`pending\`、および \`scan\` スナップショットを使用します。そのため、一方の設定を
|
||||
実行すると、もう一方の設定で必要なリカバリスナップショットが置換または
|
||||
削除される可能性があります。
|
||||
.SS タイムスタンプの変更を伴わないインプレースファイル変更
|
||||
SnapRAIDは、ファイルサイズと変更タイムスタンプ(mtime)を比較することによって
|
||||
ファイルの変更を検出します。
|
||||
|
|
@ -2258,6 +2270,32 @@ SnapRAID は、スキャン中に同じファイルへのハードリンクが2
|
|||
保護対象のファイルを変更しないようにするか、SnapRAID が正常に正規化
|
||||
できるように、ファイルへのすべてのハードリンクがスキャンに含まれるように
|
||||
してください。
|
||||
.SS 中断されたマルチパリティ sync 後の回復
|
||||
複数のパリティディスクを持つアレイにおいて、\`sync\` が中断されると、
|
||||
異なるパリティレベル間で更新状態が一時的に不一致になることがあります。
|
||||
たとえば、パリティ 1 にはすでに新しく更新されたデータが含まれている一方、
|
||||
パリティ 2 にはまだ古いデータが残っているといった状況です。
|
||||
.PP
|
||||
\`check\` または \`fix\` の実行中、SnapRAID はさまざまなパリティの組み合わせを
|
||||
試し、既知のブロックハッシュ(ブロック全体、通常 256 KiB をカバー)に
|
||||
対して再構築されたデータを検証します。
|
||||
.PP
|
||||
SnapRAID が新旧のパリティが混在する不整合な組み合わせを使用して再構築を
|
||||
試みた場合、線形 RAID 方程式は誤ったデータを生成します。このような無効な
|
||||
組み合わせが誤って受け入れられるには、同じストライプ内の他の非同期ブロックが
|
||||
不正なデータで再構築されているにもかかわらず、方程式が偶然にも少なくとも
|
||||
1つの完全な 256 KiB ブロックを完璧に再構築してハッシュを一致させる必要が
|
||||
あります。
|
||||
.PP
|
||||
この事態はハッシュの衝突によるものではありません。むしろ、混在した
|
||||
パリティ方程式自体が偶然にも元の正確な 256 KiB ブロック内容を生成する
|
||||
必要があります。これは特別に作成されたデータや極めて反復的なデータでは
|
||||
数学的に考えられますが、実際のデータでは事実上不可能です。
|
||||
.PP
|
||||
すべてのディスクが正常な場合は、それ以上の変更を加える前に中断された \`sync\`
|
||||
を完了させることで、この不確実性を排除できます。ディスクに障害が発生して
|
||||
回復が必要な場合は、\`check\` または \`fix\` を実行する前にデータディスクを
|
||||
変更しないようにしてください。
|
||||
.SH 翻訳 (TRANSLATION)
|
||||
この文書は英語版マニュアルの自動翻訳です。
|
||||
正確な記述については英語版マニュアルを参照してください。
|
||||
|
|
|
|||
|
|
@ -1671,6 +1671,19 @@ Name{number}
|
|||
ファイルシステムスナップショットが有効な場合は、データディスク内にネストされた
|
||||
マウントポイントやバインドマウントを配置しないでください。
|
||||
|
||||
ファイルシステムスナップショット使用時の複数設定
|
||||
同じファイルシステムのスナップショット名前空間を使用する複数の独立した
|
||||
SnapRAID設定で、スナップショットサポートを安全に共有することはできません。
|
||||
|
||||
BtrfsおよびBcachefsでは、スナップショットサポートが有効なSnapRAID設定は、
|
||||
同一サブボリューム内のデータディレクトリを1つしか使用できません。ZFSでは
|
||||
同じ制限がデータセットに、NTFSではボリュームに適用されます。
|
||||
|
||||
同じスナップショット名前空間を共有する複数の設定は、同一の `stable`、
|
||||
`pending`、および `scan` スナップショットを使用します。そのため、一方の設定を
|
||||
実行すると、もう一方の設定で必要なリカバリスナップショットが置換または
|
||||
削除される可能性があります。
|
||||
|
||||
タイムスタンプの変更を伴わないインプレースファイル変更
|
||||
SnapRAIDは、ファイルサイズと変更タイムスタンプ(mtime)を比較することによって
|
||||
ファイルの変更を検出します。
|
||||
|
|
@ -1761,6 +1774,33 @@ Name{number}
|
|||
できるように、ファイルへのすべてのハードリンクがスキャンに含まれるように
|
||||
してください。
|
||||
|
||||
中断されたマルチパリティ sync 後の回復
|
||||
複数のパリティディスクを持つアレイにおいて、`sync` が中断されると、
|
||||
異なるパリティレベル間で更新状態が一時的に不一致になることがあります。
|
||||
たとえば、パリティ 1 にはすでに新しく更新されたデータが含まれている一方、
|
||||
パリティ 2 にはまだ古いデータが残っているといった状況です。
|
||||
|
||||
`check` または `fix` の実行中、SnapRAID はさまざまなパリティの組み合わせを
|
||||
試し、既知のブロックハッシュ(ブロック全体、通常 256 KiB をカバー)に
|
||||
対して再構築されたデータを検証します。
|
||||
|
||||
SnapRAID が新旧のパリティが混在する不整合な組み合わせを使用して再構築を
|
||||
試みた場合、線形 RAID 方程式は誤ったデータを生成します。このような無効な
|
||||
組み合わせが誤って受け入れられるには、同じストライプ内の他の非同期ブロックが
|
||||
不正なデータで再構築されているにもかかわらず、方程式が偶然にも少なくとも
|
||||
1つの完全な 256 KiB ブロックを完璧に再構築してハッシュを一致させる必要が
|
||||
あります。
|
||||
|
||||
この事態はハッシュの衝突によるものではありません。むしろ、混在した
|
||||
パリティ方程式自体が偶然にも元の正確な 256 KiB ブロック内容を生成する
|
||||
必要があります。これは特別に作成されたデータや極めて反復的なデータでは
|
||||
数学的に考えられますが、実際のデータでは事実上不可能です。
|
||||
|
||||
すべてのディスクが正常な場合は、それ以上の変更を加える前に中断された `sync`
|
||||
を完了させることで、この不確実性を排除できます。ディスクに障害が発生して
|
||||
回復が必要な場合は、`check` または `fix` を実行する前にデータディスクを
|
||||
変更しないようにしてください。
|
||||
|
||||
翻訳 (Translation)
|
||||
この文書は英語版マニュアルの自動翻訳です。
|
||||
正確な記述については英語版マニュアルを参照してください。
|
||||
|
|
|
|||
|
|
@ -1806,7 +1806,22 @@ SnapRAIDは警告(WARNING)を報告し、その先をスキャンしませ
|
|||
ファイルシステムスナップショットが有効な場合は、データディスク内にネストされた
|
||||
マウントポイントやバインドマウントを配置しないでください。
|
||||
|
||||
16.3 タイムスタンプの変更を伴わないインプレースファイル変更
|
||||
16.3 ファイルシステムスナップショット使用時の複数設定
|
||||
-----------------------------
|
||||
|
||||
同じファイルシステムのスナップショット名前空間を使用する複数の独立した
|
||||
SnapRAID設定で、スナップショットサポートを安全に共有することはできません。
|
||||
|
||||
BtrfsおよびBcachefsでは、スナップショットサポートが有効なSnapRAID設定は、
|
||||
同一サブボリューム内のデータディレクトリを1つしか使用できません。ZFSでは
|
||||
同じ制限がデータセットに、NTFSではボリュームに適用されます。
|
||||
|
||||
同じスナップショット名前空間を共有する複数の設定は、同一の `stable`、
|
||||
`pending`、および `scan` スナップショットを使用します。そのため、一方の設定を
|
||||
実行すると、もう一方の設定で必要なリカバリスナップショットが置換または
|
||||
削除される可能性があります。
|
||||
|
||||
16.4 タイムスタンプの変更を伴わないインプレースファイル変更
|
||||
--------------------------------
|
||||
|
||||
SnapRAIDは、ファイルサイズと変更タイムスタンプ(mtime)を比較することによって
|
||||
|
|
@ -1821,7 +1836,7 @@ SnapRAIDにそのような変更を確実に認識させるには、ファイル
|
|||
場合、その差分は後続の "scrub" または "check" 中のハッシュ不一致としてのみ
|
||||
検出されます。
|
||||
|
||||
16.4 Windowsにおける非ASCII文字の大文字・小文字の一致
|
||||
16.5 Windowsにおける非ASCII文字の大文字・小文字の一致
|
||||
-----------------------------------
|
||||
|
||||
SnapRAIDはすべてのプラットフォームで標準的で予測可能なUTF-8エンコーディング
|
||||
|
|
@ -1840,7 +1855,7 @@ Unicodeファイル名全体で大文字・小文字の不区別を強制する
|
|||
ディングに起因する不一致を防ぐため、設定パスおよびフィルター内の非ASCII文字には
|
||||
常に正確な大文字・小文字を指定してください。
|
||||
|
||||
16.5 回復不能ファイルのサフィックス
|
||||
16.6 回復不能ファイルのサフィックス
|
||||
--------------------
|
||||
|
||||
`fix` が破損したファイルを完全に回復できない場合、その名前に `.unrecoverable`
|
||||
|
|
@ -1860,7 +1875,7 @@ SnapRAID はファイル名のみに基づいて隔離ファイルを識別す
|
|||
パリティデータセットで追跡されないように設定に `exclude *.unrecoverable` が含まれている
|
||||
ことを確認してください。
|
||||
|
||||
16.6 部分的な fix による回復
|
||||
16.7 部分的な fix による回復
|
||||
-------------------
|
||||
|
||||
`fix` を `-S, --start` または `-B, --count` で制限した場合、
|
||||
|
|
@ -1882,7 +1897,7 @@ SnapRAID は選択されたブロックのみを処理し、ファイルレベ
|
|||
別の回復を試みる前に対象のファイルを削除または名前変更するか、その内容を手動で
|
||||
確認してください。
|
||||
|
||||
16.7 NTFS ハードリンクと除外されたパス
|
||||
16.8 NTFS ハードリンクと除外されたパス
|
||||
------------------------
|
||||
|
||||
NTFS では、ディレクトリエントリが各ハードリンクのファイルサイズとタイム
|
||||
|
|
@ -1906,6 +1921,35 @@ SnapRAID は、スキャン中に同じファイルへのハードリンクが2
|
|||
できるように、ファイルへのすべてのハードリンクがスキャンに含まれるように
|
||||
してください。
|
||||
|
||||
16.9 中断されたマルチパリティ sync 後の回復
|
||||
---------------------------
|
||||
|
||||
複数のパリティディスクを持つアレイにおいて、`sync` が中断されると、
|
||||
異なるパリティレベル間で更新状態が一時的に不一致になることがあります。
|
||||
たとえば、パリティ 1 にはすでに新しく更新されたデータが含まれている一方、
|
||||
パリティ 2 にはまだ古いデータが残っているといった状況です。
|
||||
|
||||
`check` または `fix` の実行中、SnapRAID はさまざまなパリティの組み合わせを
|
||||
試し、既知のブロックハッシュ(ブロック全体、通常 256 KiB をカバー)に
|
||||
対して再構築されたデータを検証します。
|
||||
|
||||
SnapRAID が新旧のパリティが混在する不整合な組み合わせを使用して再構築を
|
||||
試みた場合、線形 RAID 方程式は誤ったデータを生成します。このような無効な
|
||||
組み合わせが誤って受け入れられるには、同じストライプ内の他の非同期ブロックが
|
||||
不正なデータで再構築されているにもかかわらず、方程式が偶然にも少なくとも
|
||||
1つの完全な 256 KiB ブロックを完璧に再構築してハッシュを一致させる必要が
|
||||
あります。
|
||||
|
||||
この事態はハッシュの衝突によるものではありません。むしろ、混在した
|
||||
パリティ方程式自体が偶然にも元の正確な 256 KiB ブロック内容を生成する
|
||||
必要があります。これは特別に作成されたデータや極めて反復的なデータでは
|
||||
数学的に考えられますが、実際のデータでは事実上不可能です。
|
||||
|
||||
すべてのディスクが正常な場合は、それ以上の変更を加える前に中断された `sync`
|
||||
を完了させることで、この不確実性を排除できます。ディスクに障害が発生して
|
||||
回復が必要な場合は、`check` または `fix` を実行する前にデータディスクを
|
||||
変更しないようにしてください。
|
||||
|
||||
|
||||
17 翻訳 (TRANSLATION)
|
||||
===================
|
||||
|
|
|
|||
|
|
@ -2220,6 +2220,17 @@ SnapRAID는 데이터 디스크를 스캔하는 동안 파일 시스템, 마운
|
|||
.PP
|
||||
파일 시스템 스냅샷이 활성화된 경우 데이터 디스크 내에 중첩된 마운트 지점이나
|
||||
바인드 마운트를 배치하지 마십시오.
|
||||
.SS 파일 시스템 스냅샷 사용 시 여러 설정
|
||||
동일한 파일 시스템 스냅샷 네임스페이스를 사용하는 여러 독립된 SnapRAID
|
||||
설정 간에는 스냅샷 지원을 안전하게 공유할 수 없습니다.
|
||||
.PP
|
||||
Btrfs 및 Bcachefs에서는 스냅샷 지원이 활성화된 단 하나의 SnapRAID 설정만이
|
||||
동일한 서브볼륨 내의 데이터 디렉터리를 사용할 수 있습니다. ZFS에서는 동일한
|
||||
제한이 데이터셋에 적용되며, NTFS에서는 볼륨에 적용됩니다.
|
||||
.PP
|
||||
동일한 스냅샷 네임스페이스를 공유하는 여러 설정은 동일한 \`stable\`, \`pending\`
|
||||
및 \`scan\` 스냅샷을 사용합니다. 따라서 하나의 설정을 실행하면 다른 설정에 필요한
|
||||
복구 스냅샷을 대체하거나 삭제할 수 있습니다.
|
||||
.SS 타임스탬프 변경 없는 인플레이스 파일 수정
|
||||
SnapRAID는 파일 크기와 수정 타임스탬프(mtime)를 비교하여 파일 수정을 감지합니다.
|
||||
.PP
|
||||
|
|
@ -2298,6 +2309,31 @@ SnapRAID는 스캔 중에 동일한 파일에 대한 하드 링크를 2개 이
|
|||
이러한 제한을 방지하려면 SnapRAID에서 제외된 하드 링크를 통해 보호된
|
||||
파일을 수정하지 않거나, SnapRAID가 이를 정규화할 수 있도록 파일의 모든
|
||||
하드 링크가 스캔에 포함되도록 하십시오.
|
||||
.SS 중단된 다중 패리티 sync 후 복구
|
||||
다중 패리티 디스크가 있는 어레이에서 \`sync\`가 중단되면 서로 다른
|
||||
패리티 레벨이 일시적으로 동기화되지 않은 상태로 남을 수 있습니다.
|
||||
예를 들어 패리티 1에는 새로 업데이트된 데이터가 이미 포함되어 있는 반면,
|
||||
패리티 2에는 여전히 이전 데이터가 남아 있을 수 있습니다.
|
||||
.PP
|
||||
\`check\` 또는 \`fix\`를 수행하는 동안 SnapRAID는 다양한 패리티 조합을
|
||||
시도하고 알려진 블록 해시(전체 블록을 포함하며 일반적으로 256 KiB)에 대해
|
||||
재구성된 데이터를 검증합니다.
|
||||
.PP
|
||||
SnapRAID가 이전 패리티와 새 패리티의 일치하지 않는 혼합을 사용하여
|
||||
재구성을 시도하면 선형 RAID 방정식은 잘못된 데이터를 생성합니다. 이러한
|
||||
유효하지 않은 조합이 잘못 수락되려면, 동일한 스트라이프의 다른 비동기화된
|
||||
블록이 잘못된 데이터로 재구성되는 와중에도 방정식이 우연히 하나 이상의
|
||||
완전한 256 KiB 블록을 완벽하게 재구성하여 해시가 일치해야 합니다.
|
||||
.PP
|
||||
이 시나리오는 해시 충돌에 의존하지 않습니다. 오히려 혼합된 패리티
|
||||
방정식 자체가 우연히 원래의 정확한 256 KiB 블록 내용을 생성해야 합니다.
|
||||
이는 특별히 조작되었거나 매우 반복적인 데이터에서는 수학적으로 가능하지만,
|
||||
실제 데이터에서는 사실상 불가능합니다.
|
||||
.PP
|
||||
모든 디스크가 정상인 경우 추가 변경을 수행하기 전에 중단된 \`sync\`를
|
||||
완료하면 이러한 불확실성이 제거됩니다. 디스크에 오류가 발생하여 복구가
|
||||
필요한 경우 \`check\` 또는 \`fix\`를 실행하기 전에 데이터 디스크를 수정하지
|
||||
마십시오.
|
||||
.SH 번역 (TRANSLATION)
|
||||
이 문서는 영어 매뉴얼의 자동 번역본입니다.
|
||||
공식 버전은 영어 매뉴얼을 참조하십시오.
|
||||
|
|
|
|||
|
|
@ -1718,6 +1718,18 @@ Name{number}
|
|||
파일 시스템 스냅샷이 활성화된 경우 데이터 디스크 내에 중첩된 마운트 지점이나
|
||||
바인드 마운트를 배치하지 마십시오.
|
||||
|
||||
파일 시스템 스냅샷 사용 시 여러 설정
|
||||
동일한 파일 시스템 스냅샷 네임스페이스를 사용하는 여러 독립된 SnapRAID
|
||||
설정 간에는 스냅샷 지원을 안전하게 공유할 수 없습니다.
|
||||
|
||||
Btrfs 및 Bcachefs에서는 스냅샷 지원이 활성화된 단 하나의 SnapRAID 설정만이
|
||||
동일한 서브볼륨 내의 데이터 디렉터리를 사용할 수 있습니다. ZFS에서는 동일한
|
||||
제한이 데이터셋에 적용되며, NTFS에서는 볼륨에 적용됩니다.
|
||||
|
||||
동일한 스냅샷 네임스페이스를 공유하는 여러 설정은 동일한 `stable`, `pending`
|
||||
및 `scan` 스냅샷을 사용합니다. 따라서 하나의 설정을 실행하면 다른 설정에 필요한
|
||||
복구 스냅샷을 대체하거나 삭제할 수 있습니다.
|
||||
|
||||
타임스탬프 변경 없는 인플레이스 파일 수정
|
||||
SnapRAID는 파일 크기와 수정 타임스탬프(mtime)를 비교하여 파일 수정을 감지합니다.
|
||||
|
||||
|
|
@ -1801,6 +1813,32 @@ Name{number}
|
|||
파일을 수정하지 않거나, SnapRAID가 이를 정규화할 수 있도록 파일의 모든
|
||||
하드 링크가 스캔에 포함되도록 하십시오.
|
||||
|
||||
중단된 다중 패리티 sync 후 복구
|
||||
다중 패리티 디스크가 있는 어레이에서 `sync`가 중단되면 서로 다른
|
||||
패리티 레벨이 일시적으로 동기화되지 않은 상태로 남을 수 있습니다.
|
||||
예를 들어 패리티 1에는 새로 업데이트된 데이터가 이미 포함되어 있는 반면,
|
||||
패리티 2에는 여전히 이전 데이터가 남아 있을 수 있습니다.
|
||||
|
||||
`check` 또는 `fix`를 수행하는 동안 SnapRAID는 다양한 패리티 조합을
|
||||
시도하고 알려진 블록 해시(전체 블록을 포함하며 일반적으로 256 KiB)에 대해
|
||||
재구성된 데이터를 검증합니다.
|
||||
|
||||
SnapRAID가 이전 패리티와 새 패리티의 일치하지 않는 혼합을 사용하여
|
||||
재구성을 시도하면 선형 RAID 방정식은 잘못된 데이터를 생성합니다. 이러한
|
||||
유효하지 않은 조합이 잘못 수락되려면, 동일한 스트라이프의 다른 비동기화된
|
||||
블록이 잘못된 데이터로 재구성되는 와중에도 방정식이 우연히 하나 이상의
|
||||
완전한 256 KiB 블록을 완벽하게 재구성하여 해시가 일치해야 합니다.
|
||||
|
||||
이 시나리오는 해시 충돌에 의존하지 않습니다. 오히려 혼합된 패리티
|
||||
방정식 자체가 우연히 원래의 정확한 256 KiB 블록 내용을 생성해야 합니다.
|
||||
이는 특별히 조작되었거나 매우 반복적인 데이터에서는 수학적으로 가능하지만,
|
||||
실제 데이터에서는 사실상 불가능합니다.
|
||||
|
||||
모든 디스크가 정상인 경우 추가 변경을 수행하기 전에 중단된 `sync`를
|
||||
완료하면 이러한 불확실성이 제거됩니다. 디스크에 오류가 발생하여 복구가
|
||||
필요한 경우 `check` 또는 `fix`를 실행하기 전에 데이터 디스크를 수정하지
|
||||
마십시오.
|
||||
|
||||
번역 (Translation)
|
||||
이 문서는 영어 매뉴얼의 자동 번역본입니다.
|
||||
공식 버전은 영어 매뉴얼을 참조하십시오.
|
||||
|
|
|
|||
|
|
@ -1853,7 +1853,21 @@ SnapRAID는 데이터 디스크를 스캔하는 동안 파일 시스템, 마운
|
|||
파일 시스템 스냅샷이 활성화된 경우 데이터 디스크 내에 중첩된 마운트 지점이나
|
||||
바인드 마운트를 배치하지 마십시오.
|
||||
|
||||
16.3 타임스탬프 변경 없는 인플레이스 파일 수정
|
||||
16.3 파일 시스템 스냅샷 사용 시 여러 설정
|
||||
--------------------------
|
||||
|
||||
동일한 파일 시스템 스냅샷 네임스페이스를 사용하는 여러 독립된 SnapRAID
|
||||
설정 간에는 스냅샷 지원을 안전하게 공유할 수 없습니다.
|
||||
|
||||
Btrfs 및 Bcachefs에서는 스냅샷 지원이 활성화된 단 하나의 SnapRAID 설정만이
|
||||
동일한 서브볼륨 내의 데이터 디렉터리를 사용할 수 있습니다. ZFS에서는 동일한
|
||||
제한이 데이터셋에 적용되며, NTFS에서는 볼륨에 적용됩니다.
|
||||
|
||||
동일한 스냅샷 네임스페이스를 공유하는 여러 설정은 동일한 `stable`, `pending`
|
||||
및 `scan` 스냅샷을 사용합니다. 따라서 하나의 설정을 실행하면 다른 설정에 필요한
|
||||
복구 스냅샷을 대체하거나 삭제할 수 있습니다.
|
||||
|
||||
16.4 타임스탬프 변경 없는 인플레이스 파일 수정
|
||||
----------------------------
|
||||
|
||||
SnapRAID는 파일 크기와 수정 타임스탬프(mtime)를 비교하여 파일 수정을 감지합니다.
|
||||
|
|
@ -1866,7 +1880,7 @@ SnapRAID가 이러한 변경 사항을 인식하도록 하려면 파일의 수
|
|||
업데이트하십시오(예: "touch" 유틸리티 사용). 그렇지 않으면 이 차이점은 이후의
|
||||
"scrub" 또는 "check" 중에 해시 불일치로만 감지됩니다.
|
||||
|
||||
16.4 Windows 비ASCII 대소문자 일치
|
||||
16.5 Windows 비ASCII 대소문자 일치
|
||||
---------------------------
|
||||
|
||||
SnapRAID는 모든 플랫폼에서 표준적이고 예측 가능한 UTF-8 인코딩을 사용하며,
|
||||
|
|
@ -1885,7 +1899,7 @@ Windows 파일 시스템은 임의의 시스템 종속 폴딩 테이블을 통
|
|||
방지하려면 구성 경로 및 필터의 비ASCII 문자에 대해 항상 정확한 대소문자를
|
||||
지정하십시오.
|
||||
|
||||
16.5 복구할 수 없는 파일 접미사
|
||||
16.6 복구할 수 없는 파일 접미사
|
||||
--------------------
|
||||
|
||||
`fix`가 손상된 파일을 완전히 복구할 수 없는 경우, 이름에 `.unrecoverable` 확장자를
|
||||
|
|
@ -1904,7 +1918,7 @@ SnapRAID는 오직 파일 이름으로만 격리 파일을 식별하므로, 우
|
|||
일반 파일에는 `.unrecoverable` 확장자를 사용하지 마시고, 해당 파일이 패리티 데이터셋에서
|
||||
추적되지 않도록 구성에 `exclude *.unrecoverable`이 포함되어 있는지 확인하십시오.
|
||||
|
||||
16.6 부분 fix 복구
|
||||
16.7 부분 fix 복구
|
||||
--------------
|
||||
|
||||
`fix`가 `-S, --start` 또는 `-B, --count`를 사용하여 제한되면,
|
||||
|
|
@ -1924,7 +1938,7 @@ SnapRAID는 선택된 블록에서만 작동하며 파일 수준의 완료 처
|
|||
시도하기 전에 영향을 받는 파일을 제거하거나 이름을 바꾸거나 해당 내용을
|
||||
수동으로 확인하십시오.
|
||||
|
||||
16.7 NTFS 하드 링크 및 제외된 경로
|
||||
16.8 NTFS 하드 링크 및 제외된 경로
|
||||
------------------------
|
||||
|
||||
NTFS에서는 디렉터리 항목이 각 하드 링크의 파일 크기와 타임스탬프를
|
||||
|
|
@ -1946,6 +1960,34 @@ SnapRAID는 스캔 중에 동일한 파일에 대한 하드 링크를 2개 이
|
|||
파일을 수정하지 않거나, SnapRAID가 이를 정규화할 수 있도록 파일의 모든
|
||||
하드 링크가 스캔에 포함되도록 하십시오.
|
||||
|
||||
16.9 중단된 다중 패리티 sync 후 복구
|
||||
-------------------------
|
||||
|
||||
다중 패리티 디스크가 있는 어레이에서 `sync`가 중단되면 서로 다른
|
||||
패리티 레벨이 일시적으로 동기화되지 않은 상태로 남을 수 있습니다.
|
||||
예를 들어 패리티 1에는 새로 업데이트된 데이터가 이미 포함되어 있는 반면,
|
||||
패리티 2에는 여전히 이전 데이터가 남아 있을 수 있습니다.
|
||||
|
||||
`check` 또는 `fix`를 수행하는 동안 SnapRAID는 다양한 패리티 조합을
|
||||
시도하고 알려진 블록 해시(전체 블록을 포함하며 일반적으로 256 KiB)에 대해
|
||||
재구성된 데이터를 검증합니다.
|
||||
|
||||
SnapRAID가 이전 패리티와 새 패리티의 일치하지 않는 혼합을 사용하여
|
||||
재구성을 시도하면 선형 RAID 방정식은 잘못된 데이터를 생성합니다. 이러한
|
||||
유효하지 않은 조합이 잘못 수락되려면, 동일한 스트라이프의 다른 비동기화된
|
||||
블록이 잘못된 데이터로 재구성되는 와중에도 방정식이 우연히 하나 이상의
|
||||
완전한 256 KiB 블록을 완벽하게 재구성하여 해시가 일치해야 합니다.
|
||||
|
||||
이 시나리오는 해시 충돌에 의존하지 않습니다. 오히려 혼합된 패리티
|
||||
방정식 자체가 우연히 원래의 정확한 256 KiB 블록 내용을 생성해야 합니다.
|
||||
이는 특별히 조작되었거나 매우 반복적인 데이터에서는 수학적으로 가능하지만,
|
||||
실제 데이터에서는 사실상 불가능합니다.
|
||||
|
||||
모든 디스크가 정상인 경우 추가 변경을 수행하기 전에 중단된 `sync`를
|
||||
완료하면 이러한 불확실성이 제거됩니다. 디스크에 오류가 발생하여 복구가
|
||||
필요한 경우 `check` 또는 `fix`를 실행하기 전에 데이터 디스크를 수정하지
|
||||
마십시오.
|
||||
|
||||
|
||||
17 번역 (TRANSLATION)
|
||||
===================
|
||||
|
|
|
|||
|
|
@ -2304,6 +2304,20 @@ systemie plików może stać się widoczny.
|
|||
.PP
|
||||
Nie umieszczaj zagnieżdżonych punktów montowania ani montowań bind wewnątrz
|
||||
dysków z danymi, gdy migawki systemu plików są włączone.
|
||||
.SS Wiele konfiguracji z migawkami systemu plików
|
||||
Obsługa migawek nie może być bezpiecznie współdzielona przez wiele
|
||||
niezależnych konfiguracji SnapRAID korzystających z tej samej przestrzeni
|
||||
nazw migawek systemu plików.
|
||||
.PP
|
||||
W systemach Btrfs i Bcachefs tylko jedna konfiguracja SnapRAID z włączoną
|
||||
obsługą migawek może używać katalogów danych w obrębie tego samego
|
||||
podwolumenu. W systemie ZFS to samo ograniczenie dotyczy datasetu, a w NTFS
|
||||
woluminu.
|
||||
.PP
|
||||
Wiele konfiguracji współdzielących tę samą przestrzeń nazw migawek używa tych
|
||||
samych migawek \`stable\`, \`pending\` oraz \`scan\`. Uruchomienie jednej
|
||||
konfiguracji może zatem zastąpić lub usunąć migawki odzyskiwania wymagane
|
||||
przez inną.
|
||||
.SS Modyfikacje plików w miejscu bez zmiany znacznika czasu
|
||||
SnapRAID wykrywa modyfikacje plików, porównując rozmiary plików oraz
|
||||
znaczniki czasu modyfikacji (mtime).
|
||||
|
|
@ -2399,6 +2413,34 @@ Aby uniknąć tego ograniczenia, należy unikać modyfikowania chronionych plik
|
|||
za pośrednictwem twardych dowiązań wykluczonych ze SnapRAID lub upewnić się,
|
||||
że wszystkie twarde dowiązania do danego pliku są uwzględnione w skanowaniu,
|
||||
aby SnapRAID mógł je znormalizować.
|
||||
.SS Odzyskiwanie po przerwanym sync z wieloma parzystościami
|
||||
W macierzy z wieloma dyskami parzystości przerwane polecenie \`sync\` może
|
||||
pozostawić różne poziomy parzystości chwilowo niezsynchronizowane ze sobą.
|
||||
Na przykład parzystość 1 może już zawierać nowo zaktualizowane dane,
|
||||
podczas gdy parzystość 2 nadal zawiera stare dane.
|
||||
.PP
|
||||
Podczas wykonywania \`check\` lub \`fix\` SnapRAID sprawdza różne kombinacje
|
||||
parzystości i weryfikuje zrekonstruowane dane z wykorzystaniem znanych
|
||||
skrótów bloków (obejmujących cały blok, zazwyczaj 256 KiB).
|
||||
.PP
|
||||
Jeśli SnapRAID podejmie próbę rekonstrukcji z użyciem niespójnej
|
||||
mieszanki starej i nowej parzystości, liniowe równania RAID dadzą
|
||||
nieprawidłowe dane. Aby taka niepoprawna kombinacja została omyłkowo
|
||||
zaakceptowana, równania musiałyby przypadkowo zrekonstruować co najmniej
|
||||
jeden pełny blok 256 KiB tak idealnie, aby jego skrót się zgadzał,
|
||||
podczas gdy inne niezsynchronizowane bloki w tym samym pasku zostaną
|
||||
zrekonstruowane z błędnymi danymi.
|
||||
.PP
|
||||
Scenariusz ten nie zależy od kolizji skrótów; wymagałby raczej, aby same
|
||||
równania mieszanej parzystości przypadkowo odtworzyły dokładną,
|
||||
oryginalną zawartość 256\-KiB bloku. Choć jest to matematycznie możliwe
|
||||
w przypadku specjalnie spreparowanych lub silnie powtarzalnych danych,
|
||||
jest to praktycznie niemożliwe w przypadku rzeczywistych danych.
|
||||
.PP
|
||||
Jeśli wszystkie dyski są sprawne, dokończenie przerwanego \`sync\` przed
|
||||
wprowadzeniem dalszych zmian usuwa tę niejednoznaczność. Jeśli nastąpiła
|
||||
awaria dysku i konieczne jest odzyskanie danych, należy unikać modyfikacji
|
||||
dysków danych przed uruchomieniem \`check\` lub \`fix\`.
|
||||
.SH TłUMACZENIE (TRANSLATION)
|
||||
Ten dokument jest automatycznym tłumaczeniem angielskiej instrukcji.
|
||||
Wersję oficjalną stanowi oryginalny podręcznik w języku angielskim.
|
||||
|
|
|
|||
|
|
@ -1802,6 +1802,21 @@ Znane problemy (Known Issues)
|
|||
Nie umieszczaj zagnieżdżonych punktów montowania ani montowań bind wewnątrz
|
||||
dysków z danymi, gdy migawki systemu plików są włączone.
|
||||
|
||||
Wiele konfiguracji z migawkami systemu plików
|
||||
Obsługa migawek nie może być bezpiecznie współdzielona przez wiele
|
||||
niezależnych konfiguracji SnapRAID korzystających z tej samej przestrzeni
|
||||
nazw migawek systemu plików.
|
||||
|
||||
W systemach Btrfs i Bcachefs tylko jedna konfiguracja SnapRAID z włączoną
|
||||
obsługą migawek może używać katalogów danych w obrębie tego samego
|
||||
podwolumenu. W systemie ZFS to samo ograniczenie dotyczy datasetu, a w NTFS
|
||||
woluminu.
|
||||
|
||||
Wiele konfiguracji współdzielących tę samą przestrzeń nazw migawek używa tych
|
||||
samych migawek `stable`, `pending` oraz `scan`. Uruchomienie jednej
|
||||
konfiguracji może zatem zastąpić lub usunąć migawki odzyskiwania wymagane
|
||||
przez inną.
|
||||
|
||||
Modyfikacje plików w miejscu bez zmiany znacznika czasu
|
||||
SnapRAID wykrywa modyfikacje plików, porównując rozmiary plików oraz
|
||||
znaczniki czasu modyfikacji (mtime).
|
||||
|
|
@ -1902,6 +1917,35 @@ Znane problemy (Known Issues)
|
|||
że wszystkie twarde dowiązania do danego pliku są uwzględnione w skanowaniu,
|
||||
aby SnapRAID mógł je znormalizować.
|
||||
|
||||
Odzyskiwanie po przerwanym sync z wieloma parzystościami
|
||||
W macierzy z wieloma dyskami parzystości przerwane polecenie `sync` może
|
||||
pozostawić różne poziomy parzystości chwilowo niezsynchronizowane ze sobą.
|
||||
Na przykład parzystość 1 może już zawierać nowo zaktualizowane dane,
|
||||
podczas gdy parzystość 2 nadal zawiera stare dane.
|
||||
|
||||
Podczas wykonywania `check` lub `fix` SnapRAID sprawdza różne kombinacje
|
||||
parzystości i weryfikuje zrekonstruowane dane z wykorzystaniem znanych
|
||||
skrótów bloków (obejmujących cały blok, zazwyczaj 256 KiB).
|
||||
|
||||
Jeśli SnapRAID podejmie próbę rekonstrukcji z użyciem niespójnej
|
||||
mieszanki starej i nowej parzystości, liniowe równania RAID dadzą
|
||||
nieprawidłowe dane. Aby taka niepoprawna kombinacja została omyłkowo
|
||||
zaakceptowana, równania musiałyby przypadkowo zrekonstruować co najmniej
|
||||
jeden pełny blok 256 KiB tak idealnie, aby jego skrót się zgadzał,
|
||||
podczas gdy inne niezsynchronizowane bloki w tym samym pasku zostaną
|
||||
zrekonstruowane z błędnymi danymi.
|
||||
|
||||
Scenariusz ten nie zależy od kolizji skrótów; wymagałby raczej, aby same
|
||||
równania mieszanej parzystości przypadkowo odtworzyły dokładną,
|
||||
oryginalną zawartość 256-KiB bloku. Choć jest to matematycznie możliwe
|
||||
w przypadku specjalnie spreparowanych lub silnie powtarzalnych danych,
|
||||
jest to praktycznie niemożliwe w przypadku rzeczywistych danych.
|
||||
|
||||
Jeśli wszystkie dyski są sprawne, dokończenie przerwanego `sync` przed
|
||||
wprowadzeniem dalszych zmian usuwa tę niejednoznaczność. Jeśli nastąpiła
|
||||
awaria dysku i konieczne jest odzyskanie danych, należy unikać modyfikacji
|
||||
dysków danych przed uruchomieniem `check` lub `fix`.
|
||||
|
||||
Tłumaczenie (Translation)
|
||||
Ten dokument jest automatycznym tłumaczeniem angielskiej instrukcji.
|
||||
Wersję oficjalną stanowi oryginalny podręcznik w języku angielskim.
|
||||
|
|
|
|||
|
|
@ -1937,7 +1937,24 @@ systemie plików może stać się widoczny.
|
|||
Nie umieszczaj zagnieżdżonych punktów montowania ani montowań bind wewnątrz
|
||||
dysków z danymi, gdy migawki systemu plików są włączone.
|
||||
|
||||
16.3 Modyfikacje plików w miejscu bez zmiany znacznika czasu
|
||||
16.3 Wiele konfiguracji z migawkami systemu plików
|
||||
--------------------------------------------------
|
||||
|
||||
Obsługa migawek nie może być bezpiecznie współdzielona przez wiele
|
||||
niezależnych konfiguracji SnapRAID korzystających z tej samej przestrzeni
|
||||
nazw migawek systemu plików.
|
||||
|
||||
W systemach Btrfs i Bcachefs tylko jedna konfiguracja SnapRAID z włączoną
|
||||
obsługą migawek może używać katalogów danych w obrębie tego samego
|
||||
podwolumenu. W systemie ZFS to samo ograniczenie dotyczy datasetu, a w NTFS
|
||||
woluminu.
|
||||
|
||||
Wiele konfiguracji współdzielących tę samą przestrzeń nazw migawek używa tych
|
||||
samych migawek `stable`, `pending` oraz `scan`. Uruchomienie jednej
|
||||
konfiguracji może zatem zastąpić lub usunąć migawki odzyskiwania wymagane
|
||||
przez inną.
|
||||
|
||||
16.4 Modyfikacje plików w miejscu bez zmiany znacznika czasu
|
||||
------------------------------------------------------------
|
||||
|
||||
SnapRAID wykrywa modyfikacje plików, porównując rozmiary plików oraz
|
||||
|
|
@ -1952,7 +1969,7 @@ pliku (na przykład za pomocą narzędzia "touch"). W przeciwnym razie różnica
|
|||
zostanie wykryta dopiero jako niezgodność skrótu podczas kolejnego "scrub"
|
||||
lub "check".
|
||||
|
||||
16.4 Dopasowywanie wielkości liter znaków spoza ASCII w systemie Windows
|
||||
16.5 Dopasowywanie wielkości liter znaków spoza ASCII w systemie Windows
|
||||
------------------------------------------------------------------------
|
||||
|
||||
SnapRAID używa standardowego, przewidywalnego kodowania UTF-8 na wszystkich
|
||||
|
|
@ -1975,7 +1992,7 @@ liter. Aby zapobiec rozbieżnościom wynikającym ze składania znaków przez
|
|||
Windows, zawsze podawaj dokładną wielkość liter w przypadku znaków spoza ASCII
|
||||
w ścieżkach konfiguracyjnych i filtrach.
|
||||
|
||||
16.5 Sufiks plików niemożliwych do odzyskania
|
||||
16.6 Sufiks plików niemożliwych do odzyskania
|
||||
---------------------------------------------
|
||||
|
||||
Gdy `fix` nie może w pełni odzyskać uszkodzonego pliku, poddaje go kwarantannie,
|
||||
|
|
@ -1997,7 +2014,7 @@ Unikaj używania rozszerzenia `.unrecoverable` dla zwykłych plików i upewnij s
|
|||
że w konfiguracji uwzględniono regułę `exclude *.unrecoverable`, aby zapobiec
|
||||
śledzeniu takich plików w zbiorze danych parzystości.
|
||||
|
||||
16.6 Odzyskiwanie za pomocą częściowego fix
|
||||
16.7 Odzyskiwanie za pomocą częściowego fix
|
||||
-------------------------------------------
|
||||
|
||||
Gdy polecenie `fix` jest ograniczone za pomocą `-S, --start` lub `-B, --count`,
|
||||
|
|
@ -2020,7 +2037,7 @@ zgłosi dane niemożliwe do odzyskania, przed podjęciem kolejnej próby odzyski
|
|||
należy usunąć lub zmienić nazwę plików, których to dotyczy, albo ręcznie zweryfikować
|
||||
ich zawartość.
|
||||
|
||||
16.7 Twarde dowiązania NTFS i wykluczone ścieżki
|
||||
16.8 Twarde dowiązania NTFS i wykluczone ścieżki
|
||||
------------------------------------------------
|
||||
|
||||
W systemie plików NTFS wpisy katalogowe niezależnie buforują rozmiar pliku
|
||||
|
|
@ -2047,6 +2064,37 @@ za pośrednictwem twardych dowiązań wykluczonych ze SnapRAID lub upewnić się
|
|||
że wszystkie twarde dowiązania do danego pliku są uwzględnione w skanowaniu,
|
||||
aby SnapRAID mógł je znormalizować.
|
||||
|
||||
16.9 Odzyskiwanie po przerwanym sync z wieloma parzystościami
|
||||
-------------------------------------------------------------
|
||||
|
||||
W macierzy z wieloma dyskami parzystości przerwane polecenie `sync` może
|
||||
pozostawić różne poziomy parzystości chwilowo niezsynchronizowane ze sobą.
|
||||
Na przykład parzystość 1 może już zawierać nowo zaktualizowane dane,
|
||||
podczas gdy parzystość 2 nadal zawiera stare dane.
|
||||
|
||||
Podczas wykonywania `check` lub `fix` SnapRAID sprawdza różne kombinacje
|
||||
parzystości i weryfikuje zrekonstruowane dane z wykorzystaniem znanych
|
||||
skrótów bloków (obejmujących cały blok, zazwyczaj 256 KiB).
|
||||
|
||||
Jeśli SnapRAID podejmie próbę rekonstrukcji z użyciem niespójnej
|
||||
mieszanki starej i nowej parzystości, liniowe równania RAID dadzą
|
||||
nieprawidłowe dane. Aby taka niepoprawna kombinacja została omyłkowo
|
||||
zaakceptowana, równania musiałyby przypadkowo zrekonstruować co najmniej
|
||||
jeden pełny blok 256 KiB tak idealnie, aby jego skrót się zgadzał,
|
||||
podczas gdy inne niezsynchronizowane bloki w tym samym pasku zostaną
|
||||
zrekonstruowane z błędnymi danymi.
|
||||
|
||||
Scenariusz ten nie zależy od kolizji skrótów; wymagałby raczej, aby same
|
||||
równania mieszanej parzystości przypadkowo odtworzyły dokładną,
|
||||
oryginalną zawartość 256-KiB bloku. Choć jest to matematycznie możliwe
|
||||
w przypadku specjalnie spreparowanych lub silnie powtarzalnych danych,
|
||||
jest to praktycznie niemożliwe w przypadku rzeczywistych danych.
|
||||
|
||||
Jeśli wszystkie dyski są sprawne, dokończenie przerwanego `sync` przed
|
||||
wprowadzeniem dalszych zmian usuwa tę niejednoznaczność. Jeśli nastąpiła
|
||||
awaria dysku i konieczne jest odzyskanie danych, należy unikać modyfikacji
|
||||
dysków danych przed uruchomieniem `check` lub `fix`.
|
||||
|
||||
|
||||
17 TłUMACZENIE (TRANSLATION)
|
||||
============================
|
||||
|
|
|
|||
|
|
@ -2341,6 +2341,20 @@ sistema de arquivos ativo pode se tornar visível.
|
|||
.PP
|
||||
Não coloque pontos de montagem aninhados ou montagens bind dentro de discos
|
||||
de dados quando os instantâneos do sistema de arquivos estiverem ativados.
|
||||
.SS Múltiplas configurações com instantâneos do sistema de arquivos
|
||||
O suporte a instantâneos não pode ser compartilhado com segurança por
|
||||
múltiplas configurações independentes do SnapRAID que usem o mesmo
|
||||
namespace de instantâneos do sistema de arquivos.
|
||||
.PP
|
||||
No Btrfs e Bcachefs, apenas uma configuração do SnapRAID com suporte a
|
||||
instantâneos ativado pode usar diretórios de dados dentro do mesmo
|
||||
subvolume. No ZFS, a mesma restrição se aplica a um dataset, e no NTFS
|
||||
a um volume.
|
||||
.PP
|
||||
Múltiplas configurações que compartilham o mesmo namespace de instantâneos
|
||||
usam os mesmos instantâneos \`stable\`, \`pending\` e \`scan\`. A execução de uma
|
||||
configuração pode, portanto, substituir ou excluir instantâneos de
|
||||
recuperação necessários para outra.
|
||||
.SS Modificações de arquivo no local sem alteração de data/hora
|
||||
O SnapRAID detecta modificações em arquivos comparando tamanhos de arquivo e
|
||||
carimbos de data/hora de modificação (mtime).
|
||||
|
|
@ -2434,6 +2448,34 @@ Para evitar essa limitação, evite modificar arquivos protegidos por meio
|
|||
de links físicos excluídos do SnapRAID, ou certifique\-se de que todos os
|
||||
links físicos de um arquivo sejam incluídos na verificação para que o
|
||||
SnapRAID possa normalizá\-los.
|
||||
.SS Recuperação após uma sincronização de multiparidade interrompida
|
||||
Em uma matriz com múltiplos discos de paridade, um \`sync\` interrompido
|
||||
pode deixar os níveis de paridade temporariamente fora de sincronia entre
|
||||
si. Por exemplo, a paridade 1 já pode conter dados recém\-atualizados,
|
||||
enquanto a paridade 2 ainda contém os dados antigos.
|
||||
.PP
|
||||
Durante \`check\` ou \`fix\`, o SnapRAID testa diferentes combinações de
|
||||
paridade e valida os dados reconstruídos em relação aos hashes de bloco
|
||||
conhecidos (cobrindo o bloco completo, normalmente 256 KiB).
|
||||
.PP
|
||||
Se o SnapRAID tentar uma reconstrução usando uma combinação inconsistente
|
||||
de paridade antiga e nova, as equações lineares de RAID produzirão dados
|
||||
incorretos. Para que essa combinação inválida seja aceita por engano,
|
||||
as equações teriam que reconstruir acidentalmente pelo menos um bloco
|
||||
completo de 256 KiB de maneira tão perfeita que seu hash corresponda,
|
||||
enquanto outros blocos não sincronizados na mesma faixa são reconstruídos
|
||||
com dados incorretos.
|
||||
.PP
|
||||
Esse cenário não depende de uma colisão de hash; em vez disso, as próprias
|
||||
equações de paridade mista teriam que gerar coincidentemente o conteúdo
|
||||
exato do bloco de 256 KiB original. Embora seja matematicamente concebível
|
||||
com dados especialmente preparados ou altamente repetitivos, é
|
||||
praticamente impossível com dados reais.
|
||||
.PP
|
||||
Se todos os discos estiverem íntegros, concluir o \`sync\` interrompido
|
||||
antes de fazer novas alterações remove essa ambiguidade. Se um disco tiver
|
||||
falhado e a recuperação for necessária, evite modificar os discos de dados
|
||||
antes de executar \`check\` ou \`fix\`.
|
||||
.SH TRADUçãO (TRANSLATION)
|
||||
Este documento é uma tradução automática do manual em inglês.
|
||||
Consulte o manual em inglês para a versão oficial.
|
||||
|
|
|
|||
|
|
@ -1839,6 +1839,21 @@ Problemas Conhecidos (Known Issues)
|
|||
Não coloque pontos de montagem aninhados ou montagens bind dentro de discos
|
||||
de dados quando os instantâneos do sistema de arquivos estiverem ativados.
|
||||
|
||||
Múltiplas configurações com instantâneos do sistema de arquivos
|
||||
O suporte a instantâneos não pode ser compartilhado com segurança por
|
||||
múltiplas configurações independentes do SnapRAID que usem o mesmo
|
||||
namespace de instantâneos do sistema de arquivos.
|
||||
|
||||
No Btrfs e Bcachefs, apenas uma configuração do SnapRAID com suporte a
|
||||
instantâneos ativado pode usar diretórios de dados dentro do mesmo
|
||||
subvolume. No ZFS, a mesma restrição se aplica a um dataset, e no NTFS
|
||||
a um volume.
|
||||
|
||||
Múltiplas configurações que compartilham o mesmo namespace de instantâneos
|
||||
usam os mesmos instantâneos `stable`, `pending` e `scan`. A execução de uma
|
||||
configuração pode, portanto, substituir ou excluir instantâneos de
|
||||
recuperação necessários para outra.
|
||||
|
||||
Modificações de arquivo no local sem alteração de data/hora
|
||||
O SnapRAID detecta modificações em arquivos comparando tamanhos de arquivo e
|
||||
carimbos de data/hora de modificação (mtime).
|
||||
|
|
@ -1937,6 +1952,35 @@ Problemas Conhecidos (Known Issues)
|
|||
links físicos de um arquivo sejam incluídos na verificação para que o
|
||||
SnapRAID possa normalizá-los.
|
||||
|
||||
Recuperação após uma sincronização de multiparidade interrompida
|
||||
Em uma matriz com múltiplos discos de paridade, um `sync` interrompido
|
||||
pode deixar os níveis de paridade temporariamente fora de sincronia entre
|
||||
si. Por exemplo, a paridade 1 já pode conter dados recém-atualizados,
|
||||
enquanto a paridade 2 ainda contém os dados antigos.
|
||||
|
||||
Durante `check` ou `fix`, o SnapRAID testa diferentes combinações de
|
||||
paridade e valida os dados reconstruídos em relação aos hashes de bloco
|
||||
conhecidos (cobrindo o bloco completo, normalmente 256 KiB).
|
||||
|
||||
Se o SnapRAID tentar uma reconstrução usando uma combinação inconsistente
|
||||
de paridade antiga e nova, as equações lineares de RAID produzirão dados
|
||||
incorretos. Para que essa combinação inválida seja aceita por engano,
|
||||
as equações teriam que reconstruir acidentalmente pelo menos um bloco
|
||||
completo de 256 KiB de maneira tão perfeita que seu hash corresponda,
|
||||
enquanto outros blocos não sincronizados na mesma faixa são reconstruídos
|
||||
com dados incorretos.
|
||||
|
||||
Esse cenário não depende de uma colisão de hash; em vez disso, as próprias
|
||||
equações de paridade mista teriam que gerar coincidentemente o conteúdo
|
||||
exato do bloco de 256 KiB original. Embora seja matematicamente concebível
|
||||
com dados especialmente preparados ou altamente repetitivos, é
|
||||
praticamente impossível com dados reais.
|
||||
|
||||
Se todos os discos estiverem íntegros, concluir o `sync` interrompido
|
||||
antes de fazer novas alterações remove essa ambiguidade. Se um disco tiver
|
||||
falhado e a recuperação for necessária, evite modificar os discos de dados
|
||||
antes de executar `check` ou `fix`.
|
||||
|
||||
Tradução (Translation)
|
||||
Este documento é uma tradução automática do manual em inglês.
|
||||
Consulte o manual em inglês para a versão oficial.
|
||||
|
|
|
|||
|
|
@ -1974,7 +1974,24 @@ sistema de arquivos ativo pode se tornar visível.
|
|||
Não coloque pontos de montagem aninhados ou montagens bind dentro de discos
|
||||
de dados quando os instantâneos do sistema de arquivos estiverem ativados.
|
||||
|
||||
16.3 Modificações de arquivo no local sem alteração de data/hora
|
||||
16.3 Múltiplas configurações com instantâneos do sistema de arquivos
|
||||
--------------------------------------------------------------------
|
||||
|
||||
O suporte a instantâneos não pode ser compartilhado com segurança por
|
||||
múltiplas configurações independentes do SnapRAID que usem o mesmo
|
||||
namespace de instantâneos do sistema de arquivos.
|
||||
|
||||
No Btrfs e Bcachefs, apenas uma configuração do SnapRAID com suporte a
|
||||
instantâneos ativado pode usar diretórios de dados dentro do mesmo
|
||||
subvolume. No ZFS, a mesma restrição se aplica a um dataset, e no NTFS
|
||||
a um volume.
|
||||
|
||||
Múltiplas configurações que compartilham o mesmo namespace de instantâneos
|
||||
usam os mesmos instantâneos `stable`, `pending` e `scan`. A execução de uma
|
||||
configuração pode, portanto, substituir ou excluir instantâneos de
|
||||
recuperação necessários para outra.
|
||||
|
||||
16.4 Modificações de arquivo no local sem alteração de data/hora
|
||||
----------------------------------------------------------------
|
||||
|
||||
O SnapRAID detecta modificações em arquivos comparando tamanhos de arquivo e
|
||||
|
|
@ -1989,7 +2006,7 @@ de data/hora de modificação do arquivo (por exemplo, com o utilitário "touch"
|
|||
Caso contrário, a diferença só será detectada como uma incompatibilidade de
|
||||
hash durante um "scrub" ou "check" subsequente.
|
||||
|
||||
16.4 Correspondência de maiúsculas/minúsculas não-ASCII no Windows
|
||||
16.5 Correspondência de maiúsculas/minúsculas não-ASCII no Windows
|
||||
------------------------------------------------------------------
|
||||
|
||||
O SnapRAID utiliza codificação UTF-8 padrão e previsível em todas as plataformas,
|
||||
|
|
@ -2012,7 +2029,7 @@ maiúsculas/minúsculas. Para evitar discrepâncias decorrentes da conversão do
|
|||
Windows, sempre especifique a combinação exata de maiúsculas e minúsculas para
|
||||
caracteres não-ASCII em caminhos de configuração e filtros.
|
||||
|
||||
16.5 Sufixo de arquivos irrecuperáveis
|
||||
16.6 Sufixo de arquivos irrecuperáveis
|
||||
--------------------------------------
|
||||
|
||||
Quando o `fix` não consegue recuperar totalmente um arquivo danificado, ele o
|
||||
|
|
@ -2034,7 +2051,7 @@ Evite usar a extensão `.unrecoverable` para arquivos comuns e certifique-se de
|
|||
que `exclude *.unrecoverable` esteja incluído na sua configuração para evitar que
|
||||
esses arquivos sejam rastreados no conjunto de dados de paridade.
|
||||
|
||||
16.6 Recuperação com fix parcial
|
||||
16.7 Recuperação com fix parcial
|
||||
--------------------------------
|
||||
|
||||
Quando o `fix` é restrito usando `-S, --start` ou `-B, --count`,
|
||||
|
|
@ -2056,7 +2073,7 @@ normalmente após a falha de um `fix` normal. Se um `fix` parcial relatar
|
|||
dados irrecuperáveis, remova ou renomeie os arquivos afetados antes de tentar
|
||||
outra recuperação, ou verifique manualmente seu conteúdo.
|
||||
|
||||
16.7 Links físicos no NTFS e caminhos excluídos
|
||||
16.8 Links físicos no NTFS e caminhos excluídos
|
||||
-----------------------------------------------
|
||||
|
||||
No NTFS, as entradas de diretório armazenam em cache o tamanho do arquivo
|
||||
|
|
@ -2082,6 +2099,37 @@ de links físicos excluídos do SnapRAID, ou certifique-se de que todos os
|
|||
links físicos de um arquivo sejam incluídos na verificação para que o
|
||||
SnapRAID possa normalizá-los.
|
||||
|
||||
16.9 Recuperação após uma sincronização de multiparidade interrompida
|
||||
---------------------------------------------------------------------
|
||||
|
||||
Em uma matriz com múltiplos discos de paridade, um `sync` interrompido
|
||||
pode deixar os níveis de paridade temporariamente fora de sincronia entre
|
||||
si. Por exemplo, a paridade 1 já pode conter dados recém-atualizados,
|
||||
enquanto a paridade 2 ainda contém os dados antigos.
|
||||
|
||||
Durante `check` ou `fix`, o SnapRAID testa diferentes combinações de
|
||||
paridade e valida os dados reconstruídos em relação aos hashes de bloco
|
||||
conhecidos (cobrindo o bloco completo, normalmente 256 KiB).
|
||||
|
||||
Se o SnapRAID tentar uma reconstrução usando uma combinação inconsistente
|
||||
de paridade antiga e nova, as equações lineares de RAID produzirão dados
|
||||
incorretos. Para que essa combinação inválida seja aceita por engano,
|
||||
as equações teriam que reconstruir acidentalmente pelo menos um bloco
|
||||
completo de 256 KiB de maneira tão perfeita que seu hash corresponda,
|
||||
enquanto outros blocos não sincronizados na mesma faixa são reconstruídos
|
||||
com dados incorretos.
|
||||
|
||||
Esse cenário não depende de uma colisão de hash; em vez disso, as próprias
|
||||
equações de paridade mista teriam que gerar coincidentemente o conteúdo
|
||||
exato do bloco de 256 KiB original. Embora seja matematicamente concebível
|
||||
com dados especialmente preparados ou altamente repetitivos, é
|
||||
praticamente impossível com dados reais.
|
||||
|
||||
Se todos os discos estiverem íntegros, concluir o `sync` interrompido
|
||||
antes de fazer novas alterações remove essa ambiguidade. Se um disco tiver
|
||||
falhado e a recuperação for necessária, evite modificar os discos de dados
|
||||
antes de executar `check` ou `fix`.
|
||||
|
||||
|
||||
17 TRADUçãO (TRANSLATION)
|
||||
=========================
|
||||
|
|
|
|||
|
|
@ -2300,6 +2300,20 @@ sistemul de fișiere activ poate deveni vizibil.
|
|||
.PP
|
||||
Nu plasați puncte de montare imbricate sau montări bind în interiorul discurilor
|
||||
de date când instantaneele sistemului de fișiere sunt activate.
|
||||
.SS Configurații multiple cu instantanee ale sistemului de fișiere
|
||||
Suportul pentru instantanee nu poate fi partajat în siguranță de mai multe
|
||||
configurații independente SnapRAID care utilizează același spațiu de nume
|
||||
pentru instantanee al sistemului de fișiere.
|
||||
.PP
|
||||
Pe Btrfs și Bcachefs, o singură configurație SnapRAID cu suportul pentru
|
||||
instantanee activat poate utiliza directoare de date din cadrul aceluiași
|
||||
subvolum. Pe ZFS, aceeași restricție se aplică unui dataset, iar pe NTFS
|
||||
unui volum.
|
||||
.PP
|
||||
Configurațiile multiple care partajează același spațiu de nume pentru instantanee
|
||||
folosesc aceleași instantanee \`stable\`, \`pending\` și \`scan\`. Rularea unei
|
||||
configurații poate astfel înlocui sau șterge instantaneele de recuperare
|
||||
necesare alteia.
|
||||
.SS Modificări ale fișierelor pe loc fără schimbarea marcajului temporal
|
||||
SnapRAID detectează modificările fișierelor comparând dimensiunile fișierelor
|
||||
și marcajele temporale de modificare (mtime).
|
||||
|
|
@ -2394,6 +2408,34 @@ Pentru a evita această limitare, evitați modificarea fișierelor protejate
|
|||
prin legături dure care sunt excluse din SnapRAID, sau asigurați\-vă că toate
|
||||
legăturile dure către un fișier sunt incluse în scanare, astfel încât
|
||||
SnapRAID să le poată normaliza.
|
||||
.SS Recuperare după un sync multi\-paritate întrerupt
|
||||
Într\-o matrice cu mai multe discuri de paritate, un \`sync\` întrerupt
|
||||
poate lăsa nivelurile de paritate temporar nesincronizate între ele.
|
||||
De exemplu, paritatea 1 ar putea conține deja date nou actualizate,
|
||||
în timp ce paritatea 2 conține încă datele vechi.
|
||||
.PP
|
||||
În timpul \`check\` sau \`fix\`, SnapRAID încearcă diferite combinații de
|
||||
paritate și validează datele reconstruite pe baza hash\-urilor de bloc
|
||||
cunoscute (acoperind blocul complet, de obicei 256 KiB).
|
||||
.PP
|
||||
Dacă SnapRAID încearcă o reconstrucție folosind un amestec inconsistent
|
||||
de paritate veche și nouă, ecuațiile liniare RAID vor produce date
|
||||
incorecte. Pentru ca această combinație invalidă să fie acceptată în mod
|
||||
eronat, ecuațiile ar trebui să reconstruiască accidental cel puțin un
|
||||
bloc complet de 256 KiB atât de perfect încât hash\-ul său să se
|
||||
potrivească, în timp ce alte blocuri nesincronizate din aceeași bandă
|
||||
sunt reconstruite cu date incorecte.
|
||||
.PP
|
||||
Acest scenariu nu depinde de o coliziune de hash; mai degrabă, ecuațiile
|
||||
de paritate mixtă în sine ar trebui să producă din întâmplare conținutul
|
||||
exact al blocului original de 256 KiB. Deși este matematic posibil în
|
||||
cazul datelor special concepute sau extrem de repetitive, este practic
|
||||
imposibil cu date reale.
|
||||
.PP
|
||||
Dacă toate discurile sunt integre, finalizarea \`sync\`\-ului întrerupt
|
||||
înainte de a face alte modificări elimină această ambiguitate. Dacă un
|
||||
disc a cedat și este necesară recuperarea, evitați modificarea discurilor
|
||||
de date înainte de a rula \`check\` sau \`fix\`.
|
||||
.SH TRADUCERE (TRANSLATION)
|
||||
Acest document este o traducere automată a manualului în limba engleză.
|
||||
Consultați manualul în limba engleză pentru versiunea oficială.
|
||||
|
|
|
|||
|
|
@ -1798,6 +1798,21 @@ Probleme Cunoscute (Known Issues)
|
|||
Nu plasați puncte de montare imbricate sau montări bind în interiorul discurilor
|
||||
de date când instantaneele sistemului de fișiere sunt activate.
|
||||
|
||||
Configurații multiple cu instantanee ale sistemului de fișiere
|
||||
Suportul pentru instantanee nu poate fi partajat în siguranță de mai multe
|
||||
configurații independente SnapRAID care utilizează același spațiu de nume
|
||||
pentru instantanee al sistemului de fișiere.
|
||||
|
||||
Pe Btrfs și Bcachefs, o singură configurație SnapRAID cu suportul pentru
|
||||
instantanee activat poate utiliza directoare de date din cadrul aceluiași
|
||||
subvolum. Pe ZFS, aceeași restricție se aplică unui dataset, iar pe NTFS
|
||||
unui volum.
|
||||
|
||||
Configurațiile multiple care partajează același spațiu de nume pentru instantanee
|
||||
folosesc aceleași instantanee `stable`, `pending` și `scan`. Rularea unei
|
||||
configurații poate astfel înlocui sau șterge instantaneele de recuperare
|
||||
necesare alteia.
|
||||
|
||||
Modificări ale fișierelor pe loc fără schimbarea marcajului temporal
|
||||
SnapRAID detectează modificările fișierelor comparând dimensiunile fișierelor
|
||||
și marcajele temporale de modificare (mtime).
|
||||
|
|
@ -1897,6 +1912,35 @@ Probleme Cunoscute (Known Issues)
|
|||
legăturile dure către un fișier sunt incluse în scanare, astfel încât
|
||||
SnapRAID să le poată normaliza.
|
||||
|
||||
Recuperare după un sync multi-paritate întrerupt
|
||||
Într-o matrice cu mai multe discuri de paritate, un `sync` întrerupt
|
||||
poate lăsa nivelurile de paritate temporar nesincronizate între ele.
|
||||
De exemplu, paritatea 1 ar putea conține deja date nou actualizate,
|
||||
în timp ce paritatea 2 conține încă datele vechi.
|
||||
|
||||
În timpul `check` sau `fix`, SnapRAID încearcă diferite combinații de
|
||||
paritate și validează datele reconstruite pe baza hash-urilor de bloc
|
||||
cunoscute (acoperind blocul complet, de obicei 256 KiB).
|
||||
|
||||
Dacă SnapRAID încearcă o reconstrucție folosind un amestec inconsistent
|
||||
de paritate veche și nouă, ecuațiile liniare RAID vor produce date
|
||||
incorecte. Pentru ca această combinație invalidă să fie acceptată în mod
|
||||
eronat, ecuațiile ar trebui să reconstruiască accidental cel puțin un
|
||||
bloc complet de 256 KiB atât de perfect încât hash-ul său să se
|
||||
potrivească, în timp ce alte blocuri nesincronizate din aceeași bandă
|
||||
sunt reconstruite cu date incorecte.
|
||||
|
||||
Acest scenariu nu depinde de o coliziune de hash; mai degrabă, ecuațiile
|
||||
de paritate mixtă în sine ar trebui să producă din întâmplare conținutul
|
||||
exact al blocului original de 256 KiB. Deși este matematic posibil în
|
||||
cazul datelor special concepute sau extrem de repetitive, este practic
|
||||
imposibil cu date reale.
|
||||
|
||||
Dacă toate discurile sunt integre, finalizarea `sync`-ului întrerupt
|
||||
înainte de a face alte modificări elimină această ambiguitate. Dacă un
|
||||
disc a cedat și este necesară recuperarea, evitați modificarea discurilor
|
||||
de date înainte de a rula `check` sau `fix`.
|
||||
|
||||
Traducere (Translation)
|
||||
Acest document este o traducere automată a manualului în limba engleză.
|
||||
Consultați manualul în limba engleză pentru versiunea oficială.
|
||||
|
|
|
|||
|
|
@ -1933,7 +1933,24 @@ sistemul de fișiere activ poate deveni vizibil.
|
|||
Nu plasați puncte de montare imbricate sau montări bind în interiorul discurilor
|
||||
de date când instantaneele sistemului de fișiere sunt activate.
|
||||
|
||||
16.3 Modificări ale fișierelor pe loc fără schimbarea marcajului temporal
|
||||
16.3 Configurații multiple cu instantanee ale sistemului de fișiere
|
||||
-------------------------------------------------------------------
|
||||
|
||||
Suportul pentru instantanee nu poate fi partajat în siguranță de mai multe
|
||||
configurații independente SnapRAID care utilizează același spațiu de nume
|
||||
pentru instantanee al sistemului de fișiere.
|
||||
|
||||
Pe Btrfs și Bcachefs, o singură configurație SnapRAID cu suportul pentru
|
||||
instantanee activat poate utiliza directoare de date din cadrul aceluiași
|
||||
subvolum. Pe ZFS, aceeași restricție se aplică unui dataset, iar pe NTFS
|
||||
unui volum.
|
||||
|
||||
Configurațiile multiple care partajează același spațiu de nume pentru instantanee
|
||||
folosesc aceleași instantanee `stable`, `pending` și `scan`. Rularea unei
|
||||
configurații poate astfel înlocui sau șterge instantaneele de recuperare
|
||||
necesare alteia.
|
||||
|
||||
16.4 Modificări ale fișierelor pe loc fără schimbarea marcajului temporal
|
||||
-------------------------------------------------------------------------
|
||||
|
||||
SnapRAID detectează modificările fișierelor comparând dimensiunile fișierelor
|
||||
|
|
@ -1949,7 +1966,7 @@ marcajul temporal de modificare al fișierului (de exemplu, cu utilitarul
|
|||
"touch"). În caz contrar, diferența va fi detectată doar ca o neconcordanță
|
||||
de hash în timpul unui "scrub" sau "check" ulterior.
|
||||
|
||||
16.4 Potrivirea majusculelor/minusculelor non-ASCII în Windows
|
||||
16.5 Potrivirea majusculelor/minusculelor non-ASCII în Windows
|
||||
--------------------------------------------------------------
|
||||
|
||||
SnapRAID utilizează codificarea UTF-8 standard și previzibilă pe toate
|
||||
|
|
@ -1972,7 +1989,7 @@ distincție între majuscule și minuscule. Pentru a preveni discrepanțele apă
|
|||
din conversia efectuată de Windows, specificați întotdeauna forma exactă a
|
||||
caracterelor non-ASCII în căile de configurare și filtre.
|
||||
|
||||
16.5 Sufixul fișierelor nerecuperabile
|
||||
16.6 Sufixul fișierelor nerecuperabile
|
||||
--------------------------------------
|
||||
|
||||
Când `fix` nu poate recupera complet un fișier deteriorat, îl plasează în
|
||||
|
|
@ -1994,7 +2011,7 @@ Evitați utilizarea extensiei `.unrecoverable` pentru fișiere obișnuite și
|
|||
asigurați-vă că `exclude *.unrecoverable` este inclus în configurație pentru
|
||||
a preveni urmărirea acestor fișiere în setul de date de paritate.
|
||||
|
||||
16.6 Recuperare cu fix parțial
|
||||
16.7 Recuperare cu fix parțial
|
||||
------------------------------
|
||||
|
||||
Când `fix` este restricționat folosind `-S, --start` sau `-B, --count`,
|
||||
|
|
@ -2016,7 +2033,7 @@ de obicei după ce un `fix` normal a eșuat. Dacă un `fix` parțial raportează
|
|||
date nerecuperabile, eliminați sau redenumiți fișierele afectate înainte de a
|
||||
încerca o nouă recuperare, sau verificați manual conținutul acestora.
|
||||
|
||||
16.7 Legături dure NTFS și căi excluse
|
||||
16.8 Legături dure NTFS și căi excluse
|
||||
--------------------------------------
|
||||
|
||||
Pe NTFS, intrările din director memorează în cache dimensiunea fișierului
|
||||
|
|
@ -2042,6 +2059,37 @@ prin legături dure care sunt excluse din SnapRAID, sau asigurați-vă că toate
|
|||
legăturile dure către un fișier sunt incluse în scanare, astfel încât
|
||||
SnapRAID să le poată normaliza.
|
||||
|
||||
16.9 Recuperare după un sync multi-paritate întrerupt
|
||||
-----------------------------------------------------
|
||||
|
||||
Într-o matrice cu mai multe discuri de paritate, un `sync` întrerupt
|
||||
poate lăsa nivelurile de paritate temporar nesincronizate între ele.
|
||||
De exemplu, paritatea 1 ar putea conține deja date nou actualizate,
|
||||
în timp ce paritatea 2 conține încă datele vechi.
|
||||
|
||||
În timpul `check` sau `fix`, SnapRAID încearcă diferite combinații de
|
||||
paritate și validează datele reconstruite pe baza hash-urilor de bloc
|
||||
cunoscute (acoperind blocul complet, de obicei 256 KiB).
|
||||
|
||||
Dacă SnapRAID încearcă o reconstrucție folosind un amestec inconsistent
|
||||
de paritate veche și nouă, ecuațiile liniare RAID vor produce date
|
||||
incorecte. Pentru ca această combinație invalidă să fie acceptată în mod
|
||||
eronat, ecuațiile ar trebui să reconstruiască accidental cel puțin un
|
||||
bloc complet de 256 KiB atât de perfect încât hash-ul său să se
|
||||
potrivească, în timp ce alte blocuri nesincronizate din aceeași bandă
|
||||
sunt reconstruite cu date incorecte.
|
||||
|
||||
Acest scenariu nu depinde de o coliziune de hash; mai degrabă, ecuațiile
|
||||
de paritate mixtă în sine ar trebui să producă din întâmplare conținutul
|
||||
exact al blocului original de 256 KiB. Deși este matematic posibil în
|
||||
cazul datelor special concepute sau extrem de repetitive, este practic
|
||||
imposibil cu date reale.
|
||||
|
||||
Dacă toate discurile sunt integre, finalizarea `sync`-ului întrerupt
|
||||
înainte de a face alte modificări elimină această ambiguitate. Dacă un
|
||||
disc a cedat și este necesară recuperarea, evitați modificarea discurilor
|
||||
de date înainte de a rula `check` sau `fix`.
|
||||
|
||||
|
||||
17 TRADUCERE (TRANSLATION)
|
||||
==========================
|
||||
|
|
|
|||
|
|
@ -2305,6 +2305,19 @@ bind\-монтирования внутри диска данных не под
|
|||
.PP
|
||||
Не размещайте вложенные точки монтирования или bind\-монтирования внутри дисков
|
||||
данных, когда включены снимки файловой системы.
|
||||
.SS Несколько конфигураций со снимками файловой системы
|
||||
Поддержка снимков не может безопасно совместно использоваться несколькими
|
||||
независимыми конфигурациями SnapRAID, использующими одно и то же
|
||||
пространство имен снимков файловой системы.
|
||||
.PP
|
||||
В Btrfs и Bcachefs только одна конфигурация SnapRAID с включенной поддержкой
|
||||
снимков может использовать каталоги данных в пределах одного и того же
|
||||
подтома. В ZFS то же ограничение применяется к датасету, а в NTFS — к тому.
|
||||
.PP
|
||||
Несколько конфигураций, использующих одно и то же пространство имен снимков,
|
||||
работают с одними и теми же снимками \`stable\`, \`pending\` и \`scan\`. Запуск
|
||||
одной конфигурации может перезаписать или удалить снимки восстановления,
|
||||
необходимые другой.
|
||||
.SS Изменения файлов на месте без изменения временных меток
|
||||
SnapRAID обнаруживает изменения файлов путем сравнения размеров файлов и
|
||||
временных меток модификации (mtime).
|
||||
|
|
@ -2397,6 +2410,34 @@ SnapRAID автоматически обнаруживает и нормализ
|
|||
Чтобы избежать этого ограничения, не изменяйте защищенные файлы через
|
||||
жесткие ссылки, исключенные из SnapRAID, либо убедитесь, что все жесткие
|
||||
ссылки на файл включены в сканирование, чтобы SnapRAID мог их нормализовать.
|
||||
.SS Восстановление после прерванного sync с несколькими четностями
|
||||
В массиве с несколькими дисками четности прерванный \`sync\` может оставить
|
||||
уровни четности временно рассинхронизированными относительно друг друга.
|
||||
Например, четность 1 уже может содержать обновленные данные, тогда как
|
||||
четность 2 все еще содержит старые данные.
|
||||
.PP
|
||||
Во время выполнения \`check\` или \`fix\` SnapRAID проверяет различные
|
||||
комбинации четностей и проверяет восстановленные данные по известным
|
||||
хэшам блоков (охватывающим блок целиком, обычно 256 КиБ).
|
||||
.PP
|
||||
Если SnapRAID пытается выполнить восстановление, используя
|
||||
несогласованную смесь старой и новой четности, линейные уравнения RAID
|
||||
дадут некорректные данные. Чтобы такая недействительная комбинация была
|
||||
ошибочно принята, уравнения должны были бы случайно восстановить хотя бы
|
||||
один полный блок размером 256 КиБ настолько идеально, чтобы его хэш
|
||||
совпал, тогда как другие несинхронизированные блоки в том же страйпе
|
||||
будут восстановлены с ошибочными данными.
|
||||
.PP
|
||||
Этот сценарий не зависит от коллизии хэшей; напротив, сами уравнения
|
||||
смешанной четности должны были бы случайно воспроизвести точное исходное
|
||||
содержимое 256\-КиБ блока. Хотя это математически возможно при специально
|
||||
подготовленных или сильно повторяющихся данных, на реальных данных это
|
||||
практически невозможно.
|
||||
.PP
|
||||
Если все диски исправны, завершение прерванного \`sync\` перед внесением
|
||||
дальнейших изменений устраняет эту неоднозначность. Если диск вышел из
|
||||
строя и требуется восстановление, избегайте изменения дисков данных перед
|
||||
запуском \`check\` или \`fix\`.
|
||||
.SH Перевод (TRANSLATION)
|
||||
Этот документ является автоматическим переводом английского руководства.
|
||||
Обратитесь к английскому руководству за официальной версией.
|
||||
|
|
|
|||
|
|
@ -1805,6 +1805,20 @@ Name{number}
|
|||
Не размещайте вложенные точки монтирования или bind-монтирования внутри дисков
|
||||
данных, когда включены снимки файловой системы.
|
||||
|
||||
Несколько конфигураций со снимками файловой системы
|
||||
Поддержка снимков не может безопасно совместно использоваться несколькими
|
||||
независимыми конфигурациями SnapRAID, использующими одно и то же
|
||||
пространство имен снимков файловой системы.
|
||||
|
||||
В Btrfs и Bcachefs только одна конфигурация SnapRAID с включенной поддержкой
|
||||
снимков может использовать каталоги данных в пределах одного и того же
|
||||
подтома. В ZFS то же ограничение применяется к датасету, а в NTFS — к тому.
|
||||
|
||||
Несколько конфигураций, использующих одно и то же пространство имен снимков,
|
||||
работают с одними и теми же снимками `stable`, `pending` и `scan`. Запуск
|
||||
одной конфигурации может перезаписать или удалить снимки восстановления,
|
||||
необходимые другой.
|
||||
|
||||
Изменения файлов на месте без изменения временных меток
|
||||
SnapRAID обнаруживает изменения файлов путем сравнения размеров файлов и
|
||||
временных меток модификации (mtime).
|
||||
|
|
@ -1902,6 +1916,35 @@ Name{number}
|
|||
жесткие ссылки, исключенные из SnapRAID, либо убедитесь, что все жесткие
|
||||
ссылки на файл включены в сканирование, чтобы SnapRAID мог их нормализовать.
|
||||
|
||||
Восстановление после прерванного sync с несколькими четностями
|
||||
В массиве с несколькими дисками четности прерванный `sync` может оставить
|
||||
уровни четности временно рассинхронизированными относительно друг друга.
|
||||
Например, четность 1 уже может содержать обновленные данные, тогда как
|
||||
четность 2 все еще содержит старые данные.
|
||||
|
||||
Во время выполнения `check` или `fix` SnapRAID проверяет различные
|
||||
комбинации четностей и проверяет восстановленные данные по известным
|
||||
хэшам блоков (охватывающим блок целиком, обычно 256 КиБ).
|
||||
|
||||
Если SnapRAID пытается выполнить восстановление, используя
|
||||
несогласованную смесь старой и новой четности, линейные уравнения RAID
|
||||
дадут некорректные данные. Чтобы такая недействительная комбинация была
|
||||
ошибочно принята, уравнения должны были бы случайно восстановить хотя бы
|
||||
один полный блок размером 256 КиБ настолько идеально, чтобы его хэш
|
||||
совпал, тогда как другие несинхронизированные блоки в том же страйпе
|
||||
будут восстановлены с ошибочными данными.
|
||||
|
||||
Этот сценарий не зависит от коллизии хэшей; напротив, сами уравнения
|
||||
смешанной четности должны были бы случайно воспроизвести точное исходное
|
||||
содержимое 256-КиБ блока. Хотя это математически возможно при специально
|
||||
подготовленных или сильно повторяющихся данных, на реальных данных это
|
||||
практически невозможно.
|
||||
|
||||
Если все диски исправны, завершение прерванного `sync` перед внесением
|
||||
дальнейших изменений устраняет эту неоднозначность. Если диск вышел из
|
||||
строя и требуется восстановление, избегайте изменения дисков данных перед
|
||||
запуском `check` или `fix`.
|
||||
|
||||
Перевод (Translation)
|
||||
Этот документ является автоматическим переводом английского руководства.
|
||||
Обратитесь к английскому руководству за официальной версией.
|
||||
|
|
|
|||
|
|
@ -1940,7 +1940,23 @@ bind-монтирования внутри диска данных не подд
|
|||
Не размещайте вложенные точки монтирования или bind-монтирования внутри дисков
|
||||
данных, когда включены снимки файловой системы.
|
||||
|
||||
16.3 Изменения файлов на месте без изменения временных меток
|
||||
16.3 Несколько конфигураций со снимками файловой системы
|
||||
--------------------------------------------------------
|
||||
|
||||
Поддержка снимков не может безопасно совместно использоваться несколькими
|
||||
независимыми конфигурациями SnapRAID, использующими одно и то же
|
||||
пространство имен снимков файловой системы.
|
||||
|
||||
В Btrfs и Bcachefs только одна конфигурация SnapRAID с включенной поддержкой
|
||||
снимков может использовать каталоги данных в пределах одного и того же
|
||||
подтома. В ZFS то же ограничение применяется к датасету, а в NTFS — к тому.
|
||||
|
||||
Несколько конфигураций, использующих одно и то же пространство имен снимков,
|
||||
работают с одними и теми же снимками `stable`, `pending` и `scan`. Запуск
|
||||
одной конфигурации может перезаписать или удалить снимки восстановления,
|
||||
необходимые другой.
|
||||
|
||||
16.4 Изменения файлов на месте без изменения временных меток
|
||||
------------------------------------------------------------
|
||||
|
||||
SnapRAID обнаруживает изменения файлов путем сравнения размеров файлов и
|
||||
|
|
@ -1955,7 +1971,7 @@ SnapRAID обнаруживает изменения файлов путем с
|
|||
случае различие будет обнаружено только как несоответствие хэша во время
|
||||
последующего "scrub" или "check".
|
||||
|
||||
16.4 Сопоставление регистра символов non-ASCII в Windows
|
||||
16.5 Сопоставление регистра символов non-ASCII в Windows
|
||||
--------------------------------------------------------
|
||||
|
||||
SnapRAID использует стандартную, предсказуемую кодировку UTF-8 на всех
|
||||
|
|
@ -1979,7 +1995,7 @@ Windows и ее упорным стремлением к псевдонимиз
|
|||
всегда указывайте точный регистр для любых символов non-ASCII в путях
|
||||
конфигурации и фильтрах.
|
||||
|
||||
16.5 Суффикс невосстановимых файлов
|
||||
16.6 Суффикс невосстановимых файлов
|
||||
-----------------------------------
|
||||
|
||||
Когда `fix` не может полностью восстановить поврежденный файл, он помещает его
|
||||
|
|
@ -2001,7 +2017,7 @@ SnapRAID удаляет устаревший файл `.unrecoverable`. Кара
|
|||
убедитесь, что в вашей конфигурации указано правило `exclude *.unrecoverable`,
|
||||
чтобы такие файлы не отслеживались в наборе данных четности.
|
||||
|
||||
16.6 Восстановление с частичным fix
|
||||
16.7 Восстановление с частичным fix
|
||||
-----------------------------------
|
||||
|
||||
Когда `fix` ограничен с помощью `-S, --start` или `-B, --count`,
|
||||
|
|
@ -2023,7 +2039,7 @@ SnapRAID работает только с выбранными блоками и
|
|||
о невосстановимых данных, удалите или переименуйте затронутые файлы перед
|
||||
попыткой повторного восстановления либо проверьте их содержимое вручную.
|
||||
|
||||
16.7 Жесткие ссылки NTFS и исключенные пути
|
||||
16.8 Жесткие ссылки NTFS и исключенные пути
|
||||
-------------------------------------------
|
||||
|
||||
В NTFS записи каталогов кэшируют размер файла и временные метки независимо
|
||||
|
|
@ -2047,6 +2063,37 @@ SnapRAID автоматически обнаруживает и нормализ
|
|||
жесткие ссылки, исключенные из SnapRAID, либо убедитесь, что все жесткие
|
||||
ссылки на файл включены в сканирование, чтобы SnapRAID мог их нормализовать.
|
||||
|
||||
16.9 Восстановление после прерванного sync с несколькими четностями
|
||||
-------------------------------------------------------------------
|
||||
|
||||
В массиве с несколькими дисками четности прерванный `sync` может оставить
|
||||
уровни четности временно рассинхронизированными относительно друг друга.
|
||||
Например, четность 1 уже может содержать обновленные данные, тогда как
|
||||
четность 2 все еще содержит старые данные.
|
||||
|
||||
Во время выполнения `check` или `fix` SnapRAID проверяет различные
|
||||
комбинации четностей и проверяет восстановленные данные по известным
|
||||
хэшам блоков (охватывающим блок целиком, обычно 256 КиБ).
|
||||
|
||||
Если SnapRAID пытается выполнить восстановление, используя
|
||||
несогласованную смесь старой и новой четности, линейные уравнения RAID
|
||||
дадут некорректные данные. Чтобы такая недействительная комбинация была
|
||||
ошибочно принята, уравнения должны были бы случайно восстановить хотя бы
|
||||
один полный блок размером 256 КиБ настолько идеально, чтобы его хэш
|
||||
совпал, тогда как другие несинхронизированные блоки в том же страйпе
|
||||
будут восстановлены с ошибочными данными.
|
||||
|
||||
Этот сценарий не зависит от коллизии хэшей; напротив, сами уравнения
|
||||
смешанной четности должны были бы случайно воспроизвести точное исходное
|
||||
содержимое 256-КиБ блока. Хотя это математически возможно при специально
|
||||
подготовленных или сильно повторяющихся данных, на реальных данных это
|
||||
практически невозможно.
|
||||
|
||||
Если все диски исправны, завершение прерванного `sync` перед внесением
|
||||
дальнейших изменений устраняет эту неоднозначность. Если диск вышел из
|
||||
строя и требуется восстановление, избегайте изменения дисков данных перед
|
||||
запуском `check` или `fix`.
|
||||
|
||||
|
||||
17 Перевод (TRANSLATION)
|
||||
========================
|
||||
|
|
|
|||
|
|
@ -2302,6 +2302,19 @@ skanning av en ögonblicksbild.
|
|||
.PP
|
||||
Placera inte kapslade monteringspunkter eller bind\-monteringar inuti
|
||||
datadiskar när filsystemögonblicksbilder är aktiverade.
|
||||
.SS Flera konfigurationer med filsystemögonblicksbilder
|
||||
Stöd för ögonblicksbilder kan inte delas säkert mellan flera oberoende
|
||||
SnapRAID\-konfigurationer som använder samma namnrymd för
|
||||
filsystemögonblicksbilder.
|
||||
.PP
|
||||
På Btrfs och Bcachefs får endast en SnapRAID\-konfiguration med stöd för
|
||||
ögonblicksbilder aktiverat använda datakataloger inom samma undervolym.
|
||||
På ZFS gäller samma begränsning för ett dataset, och på NTFS för en volym.
|
||||
.PP
|
||||
Flera konfigurationer som delar samma namnrymd för ögonblicksbilder använder
|
||||
samma \`stable\`\-, \`pending\`\- och \`scan\`\-ögonblicksbilder. Att köra en
|
||||
konfiguration kan därför ersätta eller ta bort återställningsögonblicksbilder
|
||||
som krävs av en annan.
|
||||
.SS Filändringar på plats utan tidsstämpeländringar
|
||||
SnapRAID upptäcker filändringar genom att jämföra filstorlekar och
|
||||
ändringstidsstämplar (mtime).
|
||||
|
|
@ -2389,6 +2402,33 @@ den sökvägen).
|
|||
För att undvika denna begränsning, undvik att modifiera skyddade filer via
|
||||
hårda länkar som är exkluderade från SnapRAID, eller se till att alla hårda
|
||||
länkar till en fil inkluderas i skanningen så att SnapRAID kan normalisera dem.
|
||||
.SS Återställning efter ett avbrutet multi\-paritets\-sync
|
||||
I en array med flera paritetsdiskar kan ett avbrutet \`sync\` lämna
|
||||
paritetsnivåerna tillfälligt osynkroniserade med varandra. Till exempel
|
||||
kan paritet 1 redan innehålla nyligen uppdaterade data, medan paritet 2
|
||||
fortfarande innehåller gamla data.
|
||||
.PP
|
||||
Under \`check\` eller \`fix\` provar SnapRAID olika paritetskombinationer och
|
||||
validerar rekonstruerade data mot kända blockhashar (som täcker hela
|
||||
blocket, vanligtvis 256 KiB).
|
||||
.PP
|
||||
Om SnapRAID försöker en rekonstruktion med en inkonsekvent blandning av
|
||||
gammal och ny paritet ger de linjära RAID\-ekvationerna felaktiga data.
|
||||
För att en sådan ogiltig kombination felaktigt ska accepteras måste
|
||||
ekvationerna av en slump rekonstruera minst ett helt 256 KiB\-block så
|
||||
perfekt att dess hash matchar, medan andra osynkroniserade block i samma
|
||||
stripe rekonstrueras med felaktiga data.
|
||||
.PP
|
||||
Detta scenario beror inte på en hashkollision; snarare måste ekvationerna
|
||||
med blandad paritet i sig råka producera det exakta ursprungliga
|
||||
innehållet i 256 KiB\-blocket. Även om detta är matematiskt tänkbart med
|
||||
specialkonstruerade eller mycket repetitiva data, är det praktiskt taget
|
||||
omöjligt med verkliga data.
|
||||
.PP
|
||||
Om alla diskar är felfria elimineras denna tvetydighet genom att slutföra
|
||||
det avbrutna \`sync\` innan fler ändringar görs. Om en disk har gått sönder
|
||||
och återställning krävs bör du undvika att ändra datadiskarna innan du kör
|
||||
\`check\` eller \`fix\`.
|
||||
.SH ÖVERSäTTNING (TRANSLATION)
|
||||
Detta dokument är en automatisk översättning av den engelska manualen.
|
||||
Se den engelska manualen för den officiella versionen.
|
||||
|
|
|
|||
|
|
@ -1800,6 +1800,20 @@ Kända problem (Known Issues)
|
|||
Placera inte kapslade monteringspunkter eller bind-monteringar inuti
|
||||
datadiskar när filsystemögonblicksbilder är aktiverade.
|
||||
|
||||
Flera konfigurationer med filsystemögonblicksbilder
|
||||
Stöd för ögonblicksbilder kan inte delas säkert mellan flera oberoende
|
||||
SnapRAID-konfigurationer som använder samma namnrymd för
|
||||
filsystemögonblicksbilder.
|
||||
|
||||
På Btrfs och Bcachefs får endast en SnapRAID-konfiguration med stöd för
|
||||
ögonblicksbilder aktiverat använda datakataloger inom samma undervolym.
|
||||
På ZFS gäller samma begränsning för ett dataset, och på NTFS för en volym.
|
||||
|
||||
Flera konfigurationer som delar samma namnrymd för ögonblicksbilder använder
|
||||
samma `stable`-, `pending`- och `scan`-ögonblicksbilder. Att köra en
|
||||
konfiguration kan därför ersätta eller ta bort återställningsögonblicksbilder
|
||||
som krävs av en annan.
|
||||
|
||||
Filändringar på plats utan tidsstämpeländringar
|
||||
SnapRAID upptäcker filändringar genom att jämföra filstorlekar och
|
||||
ändringstidsstämplar (mtime).
|
||||
|
|
@ -1892,6 +1906,34 @@ Kända problem (Known Issues)
|
|||
hårda länkar som är exkluderade från SnapRAID, eller se till att alla hårda
|
||||
länkar till en fil inkluderas i skanningen så att SnapRAID kan normalisera dem.
|
||||
|
||||
Återställning efter ett avbrutet multi-paritets-sync
|
||||
I en array med flera paritetsdiskar kan ett avbrutet `sync` lämna
|
||||
paritetsnivåerna tillfälligt osynkroniserade med varandra. Till exempel
|
||||
kan paritet 1 redan innehålla nyligen uppdaterade data, medan paritet 2
|
||||
fortfarande innehåller gamla data.
|
||||
|
||||
Under `check` eller `fix` provar SnapRAID olika paritetskombinationer och
|
||||
validerar rekonstruerade data mot kända blockhashar (som täcker hela
|
||||
blocket, vanligtvis 256 KiB).
|
||||
|
||||
Om SnapRAID försöker en rekonstruktion med en inkonsekvent blandning av
|
||||
gammal och ny paritet ger de linjära RAID-ekvationerna felaktiga data.
|
||||
För att en sådan ogiltig kombination felaktigt ska accepteras måste
|
||||
ekvationerna av en slump rekonstruera minst ett helt 256 KiB-block så
|
||||
perfekt att dess hash matchar, medan andra osynkroniserade block i samma
|
||||
stripe rekonstrueras med felaktiga data.
|
||||
|
||||
Detta scenario beror inte på en hashkollision; snarare måste ekvationerna
|
||||
med blandad paritet i sig råka producera det exakta ursprungliga
|
||||
innehållet i 256 KiB-blocket. Även om detta är matematiskt tänkbart med
|
||||
specialkonstruerade eller mycket repetitiva data, är det praktiskt taget
|
||||
omöjligt med verkliga data.
|
||||
|
||||
Om alla diskar är felfria elimineras denna tvetydighet genom att slutföra
|
||||
det avbrutna `sync` innan fler ändringar görs. Om en disk har gått sönder
|
||||
och återställning krävs bör du undvika att ändra datadiskarna innan du kör
|
||||
`check` eller `fix`.
|
||||
|
||||
Översättning (Translation)
|
||||
Detta dokument är en automatisk översättning av den engelska manualen.
|
||||
Se den engelska manualen för den officiella versionen.
|
||||
|
|
|
|||
|
|
@ -1935,7 +1935,23 @@ skanning av en ögonblicksbild.
|
|||
Placera inte kapslade monteringspunkter eller bind-monteringar inuti
|
||||
datadiskar när filsystemögonblicksbilder är aktiverade.
|
||||
|
||||
16.3 Filändringar på plats utan tidsstämpeländringar
|
||||
16.3 Flera konfigurationer med filsystemögonblicksbilder
|
||||
--------------------------------------------------------
|
||||
|
||||
Stöd för ögonblicksbilder kan inte delas säkert mellan flera oberoende
|
||||
SnapRAID-konfigurationer som använder samma namnrymd för
|
||||
filsystemögonblicksbilder.
|
||||
|
||||
På Btrfs och Bcachefs får endast en SnapRAID-konfiguration med stöd för
|
||||
ögonblicksbilder aktiverat använda datakataloger inom samma undervolym.
|
||||
På ZFS gäller samma begränsning för ett dataset, och på NTFS för en volym.
|
||||
|
||||
Flera konfigurationer som delar samma namnrymd för ögonblicksbilder använder
|
||||
samma `stable`-, `pending`- och `scan`-ögonblicksbilder. Att köra en
|
||||
konfiguration kan därför ersätta eller ta bort återställningsögonblicksbilder
|
||||
som krävs av en annan.
|
||||
|
||||
16.4 Filändringar på plats utan tidsstämpeländringar
|
||||
----------------------------------------------------
|
||||
|
||||
SnapRAID upptäcker filändringar genom att jämföra filstorlekar och
|
||||
|
|
@ -1950,7 +1966,7 @@ filens ändringstidsstämpel (till exempel med verktyget "touch"). Annars
|
|||
kommer skillnaden endast att upptäckas som en hash-avvikelse under en
|
||||
efterföljande "scrub" eller "check".
|
||||
|
||||
16.4 Icke-ASCII skiftlägesmatchning i Windows
|
||||
16.5 Icke-ASCII skiftlägesmatchning i Windows
|
||||
---------------------------------------------
|
||||
|
||||
SnapRAID använder standardiserad, förutsägbar UTF-8-kodning på alla plattformar
|
||||
|
|
@ -1969,7 +1985,7 @@ och dess insisterande på skiftlägesokänslig aliasning. För att förhindra
|
|||
avvikelser till följd av Windows skiftlägesvikning, ange alltid det exakta
|
||||
skiftläget för eventuella icke-ASCII-tecken i konfigurationssökvägar och filter.
|
||||
|
||||
16.5 Suffix för oåterkalleliga filer
|
||||
16.6 Suffix för oåterkalleliga filer
|
||||
------------------------------------
|
||||
|
||||
När `fix` inte helt kan återställa en skadad fil sätter den filen i karantän
|
||||
|
|
@ -1991,7 +2007,7 @@ Undvik att använda filändelsen `.unrecoverable` för vanliga filer och se till
|
|||
att `exclude *.unrecoverable` ingår i din konfiguration för att förhindra att
|
||||
sådana filer spåras i paritetsdatamängden.
|
||||
|
||||
16.6 Återställning med partiell fix
|
||||
16.7 Återställning med partiell fix
|
||||
-----------------------------------
|
||||
|
||||
När `fix` begränsas med `-S, --start` eller `-B, --count`,
|
||||
|
|
@ -2013,7 +2029,7 @@ vanligtvis efter att en normal `fix` har misslyckats. Om en partiell `fix`
|
|||
rapporterar oåterkalleliga data, ta bort eller byt namn på de berörda filerna
|
||||
innan du försöker med en ny återställning, eller verifiera deras innehåll manuellt.
|
||||
|
||||
16.7 NTFS hårda länkar och exkluderade sökvägar
|
||||
16.8 NTFS hårda länkar och exkluderade sökvägar
|
||||
-----------------------------------------------
|
||||
|
||||
På NTFS cachelagrar katalogposter filstorlek och tidsstämplar oberoende
|
||||
|
|
@ -2037,6 +2053,36 @@ För att undvika denna begränsning, undvik att modifiera skyddade filer via
|
|||
hårda länkar som är exkluderade från SnapRAID, eller se till att alla hårda
|
||||
länkar till en fil inkluderas i skanningen så att SnapRAID kan normalisera dem.
|
||||
|
||||
16.9 Återställning efter ett avbrutet multi-paritets-sync
|
||||
---------------------------------------------------------
|
||||
|
||||
I en array med flera paritetsdiskar kan ett avbrutet `sync` lämna
|
||||
paritetsnivåerna tillfälligt osynkroniserade med varandra. Till exempel
|
||||
kan paritet 1 redan innehålla nyligen uppdaterade data, medan paritet 2
|
||||
fortfarande innehåller gamla data.
|
||||
|
||||
Under `check` eller `fix` provar SnapRAID olika paritetskombinationer och
|
||||
validerar rekonstruerade data mot kända blockhashar (som täcker hela
|
||||
blocket, vanligtvis 256 KiB).
|
||||
|
||||
Om SnapRAID försöker en rekonstruktion med en inkonsekvent blandning av
|
||||
gammal och ny paritet ger de linjära RAID-ekvationerna felaktiga data.
|
||||
För att en sådan ogiltig kombination felaktigt ska accepteras måste
|
||||
ekvationerna av en slump rekonstruera minst ett helt 256 KiB-block så
|
||||
perfekt att dess hash matchar, medan andra osynkroniserade block i samma
|
||||
stripe rekonstrueras med felaktiga data.
|
||||
|
||||
Detta scenario beror inte på en hashkollision; snarare måste ekvationerna
|
||||
med blandad paritet i sig råka producera det exakta ursprungliga
|
||||
innehållet i 256 KiB-blocket. Även om detta är matematiskt tänkbart med
|
||||
specialkonstruerade eller mycket repetitiva data, är det praktiskt taget
|
||||
omöjligt med verkliga data.
|
||||
|
||||
Om alla diskar är felfria elimineras denna tvetydighet genom att slutföra
|
||||
det avbrutna `sync` innan fler ändringar görs. Om en disk har gått sönder
|
||||
och återställning krävs bör du undvika att ändra datadiskarna innan du kör
|
||||
`check` eller `fix`.
|
||||
|
||||
|
||||
17 ÖVERSäTTNING (TRANSLATION)
|
||||
=============================
|
||||
|
|
|
|||
|
|
@ -2506,6 +2506,19 @@ bind\-монтування всередині диска даних не під
|
|||
.PP
|
||||
Не розміщуйте вкладені точки монтування або bind\-монтування всередині дисків
|
||||
даних, коли ввімкнено знімки файлової системи.
|
||||
.SS Кілька конфігурацій зі знімками файлової системи
|
||||
Підтримка знімків не може безпечно спільно використовуватися кількома
|
||||
незалежними конфігураціями SnapRAID, які використовують один і той самий
|
||||
простір імен знімків файлової системи.
|
||||
.PP
|
||||
У Btrfs та Bcachefs лише одна конфігурація SnapRAID з увімкненою підтримкою
|
||||
знімків може використовувати каталоги даних у межах одного підтому. У ZFS
|
||||
це ж обмеження стосується датасету, а в NTFS — тому.
|
||||
.PP
|
||||
Кілька конфігурацій, які спільно використовують один і той самий простір
|
||||
імен знімків, використовують однакові знімки \`stable\`, \`pending\` та \`scan\`.
|
||||
Запуск однієї конфігурації може замінити або видалити знімки відновлення,
|
||||
необхідні для іншої.
|
||||
.SS Модифікації файлів на місці без зміни позначок часу
|
||||
SnapRAID виявляє модифікації файлів шляхом порівняння розмірів файлів та
|
||||
позначок часу модифікації (mtime).
|
||||
|
|
@ -2596,6 +2609,33 @@ SnapRAID автоматично виявляє та нормалізує цей
|
|||
Щоб уникнути цього обмеження, не змінюйте захищені файли через жорсткі
|
||||
посилання, виключені зі SnapRAID, або переконайтеся, що всі жорсткі
|
||||
посилання на файл включені до сканування, щоб SnapRAID міг їх нормалізувати.
|
||||
.SS Відновлення після перерваного sync з кількома парностями
|
||||
У масиві з кількома дисками парності перерваний \`sync\` може залишити
|
||||
рівні парності тимчасово розсинхронізованими між собою. Наприклад,
|
||||
парність 1 вже може містити оновлені дані, тоді як парність 2 все ще
|
||||
містить старі дані.
|
||||
.PP
|
||||
Під час виконання \`check\` або \`fix\` SnapRAID випробовує різні комбінації
|
||||
парностей і перевіряє відновлені дані за відомими хешами блоків
|
||||
(що охоплюють блок цілком, зазвичай 256 КіБ).
|
||||
.PP
|
||||
Якщо SnapRAID намагається виконати відновлення, використовуючи
|
||||
неузгоджену суміш старої та нової парності, лінійні рівняння RAID
|
||||
дадуть неправильні дані. Щоб така недійсна комбінація була помилково
|
||||
прийнята, рівняння мали б випадково відновити хоча б один повний блок
|
||||
розміром 256 КіБ настільки ідеально, щоб його хеш збігся, тоді як інші
|
||||
несинхронізовані блоки в тій самій смузі будуть відновлені з помилковими
|
||||
даними.
|
||||
.PP
|
||||
Цей сценарій не залежить від колізії хешів; навпаки, самі рівняння
|
||||
змішаної парності мали б випадково відтворити точний вихідний вміст
|
||||
256\-КіБ блоку. Хоча це математично можливо для спеціально підготовлених
|
||||
або сильно повторюваних даних, на реальних даних це практично неможливо.
|
||||
.PP
|
||||
Якщо всі диски справні, завершення перерваного \`sync\` перед внесенням
|
||||
подальших змін усуває цю неоднозначність. Якщо диск вийшов з ладу і
|
||||
потрібне відновлення, уникайте змін на дисках даних перед запуском
|
||||
\`check\` або \`fix\`.
|
||||
.SH Переклад (TRANSLATION)
|
||||
Цей документ є автоматичним перекладом англійського посібника.
|
||||
Зверніться до англійського посібника для отримання офіційної версії.
|
||||
|
|
|
|||
|
|
@ -1992,6 +1992,20 @@ Name{number}
|
|||
Не розміщуйте вкладені точки монтування або bind-монтування всередині дисків
|
||||
даних, коли ввімкнено знімки файлової системи.
|
||||
|
||||
Кілька конфігурацій зі знімками файлової системи
|
||||
Підтримка знімків не може безпечно спільно використовуватися кількома
|
||||
незалежними конфігураціями SnapRAID, які використовують один і той самий
|
||||
простір імен знімків файлової системи.
|
||||
|
||||
У Btrfs та Bcachefs лише одна конфігурація SnapRAID з увімкненою підтримкою
|
||||
знімків може використовувати каталоги даних у межах одного підтому. У ZFS
|
||||
це ж обмеження стосується датасету, а в NTFS — тому.
|
||||
|
||||
Кілька конфігурацій, які спільно використовують один і той самий простір
|
||||
імен знімків, використовують однакові знімки `stable`, `pending` та `scan`.
|
||||
Запуск однієї конфігурації може замінити або видалити знімки відновлення,
|
||||
необхідні для іншої.
|
||||
|
||||
Модифікації файлів на місці без зміни позначок часу
|
||||
SnapRAID виявляє модифікації файлів шляхом порівняння розмірів файлів та
|
||||
позначок часу модифікації (mtime).
|
||||
|
|
@ -2087,6 +2101,34 @@ Name{number}
|
|||
посилання, виключені зі SnapRAID, або переконайтеся, що всі жорсткі
|
||||
посилання на файл включені до сканування, щоб SnapRAID міг їх нормалізувати.
|
||||
|
||||
Відновлення після перерваного sync з кількома парностями
|
||||
У масиві з кількома дисками парності перерваний `sync` може залишити
|
||||
рівні парності тимчасово розсинхронізованими між собою. Наприклад,
|
||||
парність 1 вже може містити оновлені дані, тоді як парність 2 все ще
|
||||
містить старі дані.
|
||||
|
||||
Під час виконання `check` або `fix` SnapRAID випробовує різні комбінації
|
||||
парностей і перевіряє відновлені дані за відомими хешами блоків
|
||||
(що охоплюють блок цілком, зазвичай 256 КіБ).
|
||||
|
||||
Якщо SnapRAID намагається виконати відновлення, використовуючи
|
||||
неузгоджену суміш старої та нової парності, лінійні рівняння RAID
|
||||
дадуть неправильні дані. Щоб така недійсна комбінація була помилково
|
||||
прийнята, рівняння мали б випадково відновити хоча б один повний блок
|
||||
розміром 256 КіБ настільки ідеально, щоб його хеш збігся, тоді як інші
|
||||
несинхронізовані блоки в тій самій смузі будуть відновлені з помилковими
|
||||
даними.
|
||||
|
||||
Цей сценарій не залежить від колізії хешів; навпаки, самі рівняння
|
||||
змішаної парності мали б випадково відтворити точний вихідний вміст
|
||||
256-КіБ блоку. Хоча це математично можливо для спеціально підготовлених
|
||||
або сильно повторюваних даних, на реальних даних це практично неможливо.
|
||||
|
||||
Якщо всі диски справні, завершення перерваного `sync` перед внесенням
|
||||
подальших змін усуває цю неоднозначність. Якщо диск вийшов з ладу і
|
||||
потрібне відновлення, уникайте змін на дисках даних перед запуском
|
||||
`check` або `fix`.
|
||||
|
||||
Переклад (Translation)
|
||||
Цей документ є автоматичним перекладом англійського посібника.
|
||||
Зверніться до англійського посібника для отримання офіційної версії.
|
||||
|
|
|
|||
|
|
@ -2127,7 +2127,23 @@ bind-монтування всередині диска даних не підт
|
|||
Не розміщуйте вкладені точки монтування або bind-монтування всередині дисків
|
||||
даних, коли ввімкнено знімки файлової системи.
|
||||
|
||||
16.3 Модифікації файлів на місці без зміни позначок часу
|
||||
16.3 Кілька конфігурацій зі знімками файлової системи
|
||||
-----------------------------------------------------
|
||||
|
||||
Підтримка знімків не може безпечно спільно використовуватися кількома
|
||||
незалежними конфігураціями SnapRAID, які використовують один і той самий
|
||||
простір імен знімків файлової системи.
|
||||
|
||||
У Btrfs та Bcachefs лише одна конфігурація SnapRAID з увімкненою підтримкою
|
||||
знімків може використовувати каталоги даних у межах одного підтому. У ZFS
|
||||
це ж обмеження стосується датасету, а в NTFS — тому.
|
||||
|
||||
Кілька конфігурацій, які спільно використовують один і той самий простір
|
||||
імен знімків, використовують однакові знімки `stable`, `pending` та `scan`.
|
||||
Запуск однієї конфігурації може замінити або видалити знімки відновлення,
|
||||
необхідні для іншої.
|
||||
|
||||
16.4 Модифікації файлів на місці без зміни позначок часу
|
||||
--------------------------------------------------------
|
||||
|
||||
SnapRAID виявляє модифікації файлів шляхом порівняння розмірів файлів та
|
||||
|
|
@ -2142,7 +2158,7 @@ SnapRAID виявляє модифікації файлів шляхом пор
|
|||
випадку різниця буде виявлена лише як невідповідність хешу під час
|
||||
наступного "scrub" або "check".
|
||||
|
||||
16.4 Зіставлення регістру символів non-ASCII у Windows
|
||||
16.5 Зіставлення регістру символів non-ASCII у Windows
|
||||
------------------------------------------------------
|
||||
|
||||
SnapRAID використовує стандартне, передбачуване кодування UTF-8 на всіх
|
||||
|
|
@ -2163,7 +2179,7 @@ SnapRAID використовує стандартне, передбачуван
|
|||
точний регістр для будь-яких символів non-ASCII у шляхах конфігурації та
|
||||
фільтрах.
|
||||
|
||||
16.5 Суфікс невідновлюваних файлів
|
||||
16.6 Суфікс невідновлюваних файлів
|
||||
----------------------------------
|
||||
|
||||
Коли `fix` не може повністю відновити пошкоджений файл, він поміщає його в
|
||||
|
|
@ -2185,7 +2201,7 @@ SnapRAID використовує стандартне, передбачуван
|
|||
переконайтеся, що правило `exclude *.unrecoverable` включено до вашої
|
||||
конфігурації, щоб такі файли не відстежувалися в наборі даних парності.
|
||||
|
||||
16.6 Відновлення з частковим fix
|
||||
16.7 Відновлення з частковим fix
|
||||
--------------------------------
|
||||
|
||||
Коли `fix` обмежено за допомогою `-S, --start` або `-B, --count`,
|
||||
|
|
@ -2207,7 +2223,7 @@ SnapRAID працює лише з вибраними блоками і не ви
|
|||
невідновлювані дані, видаліть або перейменуйте уражені файли перед спробою
|
||||
повторного відновлення або перевірте їхній вміст вручну.
|
||||
|
||||
16.7 Жорсткі посилання NTFS та виключені шляхи
|
||||
16.8 Жорсткі посилання NTFS та виключені шляхи
|
||||
----------------------------------------------
|
||||
|
||||
У файловій системі NTFS записи каталогів кешують розмір файлу та часові
|
||||
|
|
@ -2232,6 +2248,36 @@ SnapRAID автоматично виявляє та нормалізує цей
|
|||
посилання, виключені зі SnapRAID, або переконайтеся, що всі жорсткі
|
||||
посилання на файл включені до сканування, щоб SnapRAID міг їх нормалізувати.
|
||||
|
||||
16.9 Відновлення після перерваного sync з кількома парностями
|
||||
-------------------------------------------------------------
|
||||
|
||||
У масиві з кількома дисками парності перерваний `sync` може залишити
|
||||
рівні парності тимчасово розсинхронізованими між собою. Наприклад,
|
||||
парність 1 вже може містити оновлені дані, тоді як парність 2 все ще
|
||||
містить старі дані.
|
||||
|
||||
Під час виконання `check` або `fix` SnapRAID випробовує різні комбінації
|
||||
парностей і перевіряє відновлені дані за відомими хешами блоків
|
||||
(що охоплюють блок цілком, зазвичай 256 КіБ).
|
||||
|
||||
Якщо SnapRAID намагається виконати відновлення, використовуючи
|
||||
неузгоджену суміш старої та нової парності, лінійні рівняння RAID
|
||||
дадуть неправильні дані. Щоб така недійсна комбінація була помилково
|
||||
прийнята, рівняння мали б випадково відновити хоча б один повний блок
|
||||
розміром 256 КіБ настільки ідеально, щоб його хеш збігся, тоді як інші
|
||||
несинхронізовані блоки в тій самій смузі будуть відновлені з помилковими
|
||||
даними.
|
||||
|
||||
Цей сценарій не залежить від колізії хешів; навпаки, самі рівняння
|
||||
змішаної парності мали б випадково відтворити точний вихідний вміст
|
||||
256-КіБ блоку. Хоча це математично можливо для спеціально підготовлених
|
||||
або сильно повторюваних даних, на реальних даних це практично неможливо.
|
||||
|
||||
Якщо всі диски справні, завершення перерваного `sync` перед внесенням
|
||||
подальших змін усуває цю неоднозначність. Якщо диск вийшов з ладу і
|
||||
потрібне відновлення, уникайте змін на дисках даних перед запуском
|
||||
`check` або `fix`.
|
||||
|
||||
|
||||
17 Переклад (TRANSLATION)
|
||||
=========================
|
||||
|
|
|
|||
|
|
@ -2074,6 +2074,14 @@ SnapRAID 在扫描数据磁盘时不会跨越文件系统、挂载点或子卷
|
|||
因此,在扫描快照时,活动文件系统中被挂载点隐藏的目录可能会变为可见。
|
||||
.PP
|
||||
启用文件系统快照时,请勿在数据磁盘内放置嵌套挂载点或 bind 挂载。
|
||||
.SS 带有文件系统快照的多套配置
|
||||
使用相同文件系统快照命名空间的多套独立 SnapRAID 配置无法安全共享快照支持。
|
||||
.PP
|
||||
在 Btrfs 和 Bcachefs 上,只有一套启用了快照支持的 SnapRAID 配置可以使用
|
||||
同一子卷内的数据目录。在 ZFS 上,相同的限制适用于数据集,在 NTFS 上适用于卷。
|
||||
.PP
|
||||
共享相同快照命名空间的多套配置使用相同的 \`stable\`、\`pending\` 和 \`scan\` 快照。
|
||||
因此,运行其中一套配置可能会替换或删除另一套配置所需的恢复快照。
|
||||
.SS 未更改时间戳的原地文件修改
|
||||
SnapRAID 通过比较文件大小和修改时间戳(mtime)来检测文件修改。
|
||||
.PP
|
||||
|
|
@ -2141,6 +2149,26 @@ SnapRAID 仅对选定的块进行操作,而不执行文件级别的最终化
|
|||
为避免此限制,请避免通过已从 SnapRAID 中排除的硬链接来修改受保护
|
||||
的文件,或者确保文件的所有硬链接都包含在扫描中,以便 SnapRAID 可以
|
||||
对它们进行规范化。
|
||||
.SS 中断的多重奇偶校验 sync 后的恢复
|
||||
在具有多个奇偶校验磁盘的阵列中,中断的 \`sync\` 可能会使不同奇偶校验
|
||||
级别之间暂时彼此不同步。例如,奇偶校验 1 可能已经包含新更新的数据,
|
||||
而奇偶校验 2 仍包含旧数据。
|
||||
.PP
|
||||
在执行 \`check\` 或 \`fix\` 期间,SnapRAID 会尝试不同的奇偶校验组合,
|
||||
并根据已知的块哈希(覆盖整个块,通常为 256 KiB)验证重建的数据。
|
||||
.PP
|
||||
如果 SnapRAID 尝试使用新旧奇偶校验的不一致混合进行重建,线性 RAID
|
||||
方程将产生不正确的数据。要错误地接受这种无效组合,这些方程必须在同一
|
||||
条带中的其他未同步块被重建为错误数据的情况下,巧合地完美重建出至少一个
|
||||
完整的 256 KiB 块以使其哈希完全匹配。
|
||||
.PP
|
||||
这种情况并不依赖于哈希碰撞;相反,它需要混合奇偶校验方程本身碰巧
|
||||
生成原始的完整 256 KiB 块内容。虽然在特别构造的数据或高度重复的数据
|
||||
情况下在数学上是可能的,但在实际数据中这几乎是不可能的。
|
||||
.PP
|
||||
如果所有磁盘都运行良好,在进行进一步更改之前完成中断的 \`sync\` 可以消除
|
||||
这种不确定性。如果磁盘发生故障且需要恢复,在运行 \`check\` 或 \`fix\` 之前
|
||||
请避免修改任何数据磁盘。
|
||||
.SH 翻译 (TRANSLATION)
|
||||
本文档是英文手册的自动翻译。
|
||||
请参阅英文手册以获取权威版本。
|
||||
|
|
|
|||
|
|
@ -1572,6 +1572,15 @@ Name{number}
|
|||
|
||||
启用文件系统快照时,请勿在数据磁盘内放置嵌套挂载点或 bind 挂载。
|
||||
|
||||
带有文件系统快照的多套配置
|
||||
使用相同文件系统快照命名空间的多套独立 SnapRAID 配置无法安全共享快照支持。
|
||||
|
||||
在 Btrfs 和 Bcachefs 上,只有一套启用了快照支持的 SnapRAID 配置可以使用
|
||||
同一子卷内的数据目录。在 ZFS 上,相同的限制适用于数据集,在 NTFS 上适用于卷。
|
||||
|
||||
共享相同快照命名空间的多套配置使用相同的 `stable`、`pending` 和 `scan` 快照。
|
||||
因此,运行其中一套配置可能会替换或删除另一套配置所需的恢复快照。
|
||||
|
||||
未更改时间戳的原地文件修改
|
||||
SnapRAID 通过比较文件大小和修改时间戳(mtime)来检测文件修改。
|
||||
|
||||
|
|
@ -1644,6 +1653,27 @@ Name{number}
|
|||
的文件,或者确保文件的所有硬链接都包含在扫描中,以便 SnapRAID 可以
|
||||
对它们进行规范化。
|
||||
|
||||
中断的多重奇偶校验 sync 后的恢复
|
||||
在具有多个奇偶校验磁盘的阵列中,中断的 `sync` 可能会使不同奇偶校验
|
||||
级别之间暂时彼此不同步。例如,奇偶校验 1 可能已经包含新更新的数据,
|
||||
而奇偶校验 2 仍包含旧数据。
|
||||
|
||||
在执行 `check` 或 `fix` 期间,SnapRAID 会尝试不同的奇偶校验组合,
|
||||
并根据已知的块哈希(覆盖整个块,通常为 256 KiB)验证重建的数据。
|
||||
|
||||
如果 SnapRAID 尝试使用新旧奇偶校验的不一致混合进行重建,线性 RAID
|
||||
方程将产生不正确的数据。要错误地接受这种无效组合,这些方程必须在同一
|
||||
条带中的其他未同步块被重建为错误数据的情况下,巧合地完美重建出至少一个
|
||||
完整的 256 KiB 块以使其哈希完全匹配。
|
||||
|
||||
这种情况并不依赖于哈希碰撞;相反,它需要混合奇偶校验方程本身碰巧
|
||||
生成原始的完整 256 KiB 块内容。虽然在特别构造的数据或高度重复的数据
|
||||
情况下在数学上是可能的,但在实际数据中这几乎是不可能的。
|
||||
|
||||
如果所有磁盘都运行良好,在进行进一步更改之前完成中断的 `sync` 可以消除
|
||||
这种不确定性。如果磁盘发生故障且需要恢复,在运行 `check` 或 `fix` 之前
|
||||
请避免修改任何数据磁盘。
|
||||
|
||||
翻译 (Translation)
|
||||
本文档是英文手册的自动翻译。
|
||||
请参阅英文手册以获取权威版本。
|
||||
|
|
|
|||
|
|
@ -1707,7 +1707,18 @@ SnapRAID 在扫描数据磁盘时不会跨越文件系统、挂载点或子卷
|
|||
|
||||
启用文件系统快照时,请勿在数据磁盘内放置嵌套挂载点或 bind 挂载。
|
||||
|
||||
16.3 未更改时间戳的原地文件修改
|
||||
16.3 带有文件系统快照的多套配置
|
||||
------------------
|
||||
|
||||
使用相同文件系统快照命名空间的多套独立 SnapRAID 配置无法安全共享快照支持。
|
||||
|
||||
在 Btrfs 和 Bcachefs 上,只有一套启用了快照支持的 SnapRAID 配置可以使用
|
||||
同一子卷内的数据目录。在 ZFS 上,相同的限制适用于数据集,在 NTFS 上适用于卷。
|
||||
|
||||
共享相同快照命名空间的多套配置使用相同的 `stable`、`pending` 和 `scan` 快照。
|
||||
因此,运行其中一套配置可能会替换或删除另一套配置所需的恢复快照。
|
||||
|
||||
16.4 未更改时间戳的原地文件修改
|
||||
------------------
|
||||
|
||||
SnapRAID 通过比较文件大小和修改时间戳(mtime)来检测文件修改。
|
||||
|
|
@ -1718,7 +1729,7 @@ SnapRAID 通过比较文件大小和修改时间戳(mtime)来检测文件修
|
|||
为确保 SnapRAID 识别此类更改,请更新文件的修改时间戳(例如使用 “touch” 实用程序)。
|
||||
否则,该差异仅在后续的 “scrub” 或 “check” 期间作为哈希不匹配被检测到。
|
||||
|
||||
16.4 Windows 非 ASCII 大小写匹配
|
||||
16.5 Windows 非 ASCII 大小写匹配
|
||||
--------------------------
|
||||
|
||||
SnapRAID 在所有平台上均使用标准且可预测的 UTF-8 编码,仅对 ASCII 字符进行
|
||||
|
|
@ -1735,7 +1746,7 @@ Unicode 文件名之间强制实行不区分大小写。因此,Windows 掩盖
|
|||
执着所致。为了防止因 Windows 的大小写折叠而产生差异,请在配置路径和过滤器中
|
||||
始终为非 ASCII 字符指定准确的大小写。
|
||||
|
||||
16.5 无法恢复的文件后缀
|
||||
16.6 无法恢复的文件后缀
|
||||
--------------
|
||||
|
||||
当 `fix` 无法完全恢复损坏的文件时,它会通过在文件名后附加 `.unrecoverable`
|
||||
|
|
@ -1753,7 +1764,7 @@ Unicode 文件名之间强制实行不区分大小写。因此,Windows 掩盖
|
|||
请避免对常规文件使用 `.unrecoverable` 扩展名,并确保在配置中包含
|
||||
`exclude *.unrecoverable`,以防止在奇偶校验数据集中跟踪此类文件。
|
||||
|
||||
16.6 部分 fix 恢复
|
||||
16.7 部分 fix 恢复
|
||||
--------------
|
||||
|
||||
当使用 `-S, --start` 或 `-B, --count` 限制 `fix` 时,
|
||||
|
|
@ -1770,7 +1781,7 @@ SnapRAID 仅对选定的块进行操作,而不执行文件级别的最终化
|
|||
如果部分 `fix` 报告了无法恢复的数据,请在尝试另一次恢复之前删除受影响的
|
||||
文件或对其重命名,或者手动验证其内容。
|
||||
|
||||
16.7 NTFS 硬链接与排除的路径
|
||||
16.8 NTFS 硬链接与排除的路径
|
||||
-------------------
|
||||
|
||||
在 NTFS 上,目录条目会为每个硬链接单独缓存文件大小和时间戳。
|
||||
|
|
@ -1789,6 +1800,29 @@ SnapRAID 仅对选定的块进行操作,而不执行文件级别的最终化
|
|||
的文件,或者确保文件的所有硬链接都包含在扫描中,以便 SnapRAID 可以
|
||||
对它们进行规范化。
|
||||
|
||||
16.9 中断的多重奇偶校验 sync 后的恢复
|
||||
------------------------
|
||||
|
||||
在具有多个奇偶校验磁盘的阵列中,中断的 `sync` 可能会使不同奇偶校验
|
||||
级别之间暂时彼此不同步。例如,奇偶校验 1 可能已经包含新更新的数据,
|
||||
而奇偶校验 2 仍包含旧数据。
|
||||
|
||||
在执行 `check` 或 `fix` 期间,SnapRAID 会尝试不同的奇偶校验组合,
|
||||
并根据已知的块哈希(覆盖整个块,通常为 256 KiB)验证重建的数据。
|
||||
|
||||
如果 SnapRAID 尝试使用新旧奇偶校验的不一致混合进行重建,线性 RAID
|
||||
方程将产生不正确的数据。要错误地接受这种无效组合,这些方程必须在同一
|
||||
条带中的其他未同步块被重建为错误数据的情况下,巧合地完美重建出至少一个
|
||||
完整的 256 KiB 块以使其哈希完全匹配。
|
||||
|
||||
这种情况并不依赖于哈希碰撞;相反,它需要混合奇偶校验方程本身碰巧
|
||||
生成原始的完整 256 KiB 块内容。虽然在特别构造的数据或高度重复的数据
|
||||
情况下在数学上是可能的,但在实际数据中这几乎是不可能的。
|
||||
|
||||
如果所有磁盘都运行良好,在进行进一步更改之前完成中断的 `sync` 可以消除
|
||||
这种不确定性。如果磁盘发生故障且需要恢复,在运行 `check` 或 `fix` 之前
|
||||
请避免修改任何数据磁盘。
|
||||
|
||||
|
||||
17 翻译 (TRANSLATION)
|
||||
===================
|
||||
|
|
|
|||
|
|
@ -2308,6 +2308,17 @@ visible.
|
|||
.PP
|
||||
Do not place nested mount points or bind mounts inside data disks when
|
||||
filesystem snapshots are enabled.
|
||||
.SS Multiple configurations with filesystem snapshots
|
||||
Snapshot support cannot be safely shared by multiple independent
|
||||
SnapRAID configurations using the same filesystem snapshot namespace.
|
||||
.PP
|
||||
On Btrfs and Bcachefs, only one SnapRAID configuration with snapshot
|
||||
support enabled may use data directories within the same subvolume.
|
||||
On ZFS, the same restriction applies to a dataset, and on NTFS to a volume.
|
||||
.PP
|
||||
Multiple configurations sharing the same snapshot namespace use the same
|
||||
\`stable\`, \`pending\`, and \`scan\` snapshots. Running one configuration may
|
||||
therefore replace or delete recovery snapshots required by another.
|
||||
.SS In\-place file modifications without timestamp changes
|
||||
SnapRAID detects file modifications by comparing file sizes and
|
||||
modification timestamps (mtime).
|
||||
|
|
@ -2397,6 +2408,33 @@ opened through that path).
|
|||
To avoid this limitation, avoid modifying protected files through hard
|
||||
links that are excluded from SnapRAID, or ensure that all hard links to a
|
||||
file are included in the scan so SnapRAID can normalize them.
|
||||
.SS Recovery after an interrupted multi\-parity sync
|
||||
In an array with multiple parity disks, an interrupted \`sync\` can leave
|
||||
parity levels temporarily out of sync with each other. For example,
|
||||
parity 1 might already contain newly updated data, while parity 2 still
|
||||
contains the old data.
|
||||
.PP
|
||||
During \`check\` or \`fix\`, SnapRAID tries different parity combinations
|
||||
and validates reconstructed data against the known block hashes (covering
|
||||
the full block, typically 256 KiB).
|
||||
.PP
|
||||
If SnapRAID attempts a reconstruction using an inconsistent mix of old
|
||||
and new parity, the linear RAID equations will produce incorrect data.
|
||||
For this invalid combination to be falsely accepted, the equations would
|
||||
have to accidentally reconstruct at least one complete 256 KiB block so
|
||||
perfectly that its hash matches, while other unsynchronized blocks in the
|
||||
same stripe are reconstructed with incorrect data.
|
||||
.PP
|
||||
This scenario does not depend on a hash collision; rather, the mixed
|
||||
parity equations themselves would have to coincidentally yield the exact
|
||||
original 256 KiB block contents. While mathematically possible with
|
||||
specially crafted or highly repetitive data, it is practically impossible
|
||||
with real\-world data.
|
||||
.PP
|
||||
If all disks are healthy, completing the interrupted \`sync\` before making
|
||||
further changes removes this ambiguity. If a disk has failed and recovery
|
||||
is required, avoid modifying any data disks before running \`check\` or
|
||||
\`fix\`.
|
||||
.SH COPYRIGHT
|
||||
This file is Copyright (C) 2026 Andrea Mazzoleni
|
||||
.SH SEE ALSO
|
||||
|
|
|
|||
|
|
@ -1806,6 +1806,18 @@ Known Issues
|
|||
Do not place nested mount points or bind mounts inside data disks when
|
||||
filesystem snapshots are enabled.
|
||||
|
||||
Multiple configurations with filesystem snapshots
|
||||
Snapshot support cannot be safely shared by multiple independent
|
||||
SnapRAID configurations using the same filesystem snapshot namespace.
|
||||
|
||||
On Btrfs and Bcachefs, only one SnapRAID configuration with snapshot
|
||||
support enabled may use data directories within the same subvolume.
|
||||
On ZFS, the same restriction applies to a dataset, and on NTFS to a volume.
|
||||
|
||||
Multiple configurations sharing the same snapshot namespace use the same
|
||||
`stable`, `pending`, and `scan` snapshots. Running one configuration may
|
||||
therefore replace or delete recovery snapshots required by another.
|
||||
|
||||
In-place file modifications without timestamp changes
|
||||
SnapRAID detects file modifications by comparing file sizes and
|
||||
modification timestamps (mtime).
|
||||
|
|
@ -1900,6 +1912,34 @@ Known Issues
|
|||
links that are excluded from SnapRAID, or ensure that all hard links to a
|
||||
file are included in the scan so SnapRAID can normalize them.
|
||||
|
||||
Recovery after an interrupted multi-parity sync
|
||||
In an array with multiple parity disks, an interrupted `sync` can leave
|
||||
parity levels temporarily out of sync with each other. For example,
|
||||
parity 1 might already contain newly updated data, while parity 2 still
|
||||
contains the old data.
|
||||
|
||||
During `check` or `fix`, SnapRAID tries different parity combinations
|
||||
and validates reconstructed data against the known block hashes (covering
|
||||
the full block, typically 256 KiB).
|
||||
|
||||
If SnapRAID attempts a reconstruction using an inconsistent mix of old
|
||||
and new parity, the linear RAID equations will produce incorrect data.
|
||||
For this invalid combination to be falsely accepted, the equations would
|
||||
have to accidentally reconstruct at least one complete 256 KiB block so
|
||||
perfectly that its hash matches, while other unsynchronized blocks in the
|
||||
same stripe are reconstructed with incorrect data.
|
||||
|
||||
This scenario does not depend on a hash collision; rather, the mixed
|
||||
parity equations themselves would have to coincidentally yield the exact
|
||||
original 256 KiB block contents. While mathematically possible with
|
||||
specially crafted or highly repetitive data, it is practically impossible
|
||||
with real-world data.
|
||||
|
||||
If all disks are healthy, completing the interrupted `sync` before making
|
||||
further changes removes this ambiguity. If a disk has failed and recovery
|
||||
is required, avoid modifying any data disks before running `check` or
|
||||
`fix`.
|
||||
|
||||
Copyright
|
||||
This file is Copyright (C) 2026 Andrea Mazzoleni
|
||||
|
||||
|
|
|
|||
|
|
@ -1941,7 +1941,21 @@ visible.
|
|||
Do not place nested mount points or bind mounts inside data disks when
|
||||
filesystem snapshots are enabled.
|
||||
|
||||
16.3 In-place file modifications without timestamp changes
|
||||
16.3 Multiple configurations with filesystem snapshots
|
||||
------------------------------------------------------
|
||||
|
||||
Snapshot support cannot be safely shared by multiple independent
|
||||
SnapRAID configurations using the same filesystem snapshot namespace.
|
||||
|
||||
On Btrfs and Bcachefs, only one SnapRAID configuration with snapshot
|
||||
support enabled may use data directories within the same subvolume.
|
||||
On ZFS, the same restriction applies to a dataset, and on NTFS to a volume.
|
||||
|
||||
Multiple configurations sharing the same snapshot namespace use the same
|
||||
`stable`, `pending`, and `scan` snapshots. Running one configuration may
|
||||
therefore replace or delete recovery snapshots required by another.
|
||||
|
||||
16.4 In-place file modifications without timestamp changes
|
||||
----------------------------------------------------------
|
||||
|
||||
SnapRAID detects file modifications by comparing file sizes and
|
||||
|
|
@ -1956,7 +1970,7 @@ modification timestamp (for example, with the "touch" utility).
|
|||
Otherwise, the difference will only be detected as a hash mismatch
|
||||
during a subsequent "scrub" or "check".
|
||||
|
||||
16.4 Windows non-ASCII case matching
|
||||
16.5 Windows non-ASCII case matching
|
||||
------------------------------------
|
||||
|
||||
SnapRAID uses standard, predictable UTF-8 encoding across all platforms,
|
||||
|
|
@ -1977,7 +1991,7 @@ filenames and its insistence on case-insensitive aliasing. To prevent
|
|||
discrepancies arising from Windows's case folding, always specify the
|
||||
exact case for any non-ASCII characters in configuration paths and filters.
|
||||
|
||||
16.5 Unrecoverable files suffix
|
||||
16.6 Unrecoverable files suffix
|
||||
-------------------------------
|
||||
|
||||
When `fix` cannot fully recover a damaged file, it quarantines it by
|
||||
|
|
@ -1999,7 +2013,7 @@ Avoid using the `.unrecoverable` extension for regular files, and ensure
|
|||
that `exclude *.unrecoverable` is included in your configuration to
|
||||
prevent such files from being tracked in the parity dataset.
|
||||
|
||||
16.6 Partial fix recovery
|
||||
16.7 Partial fix recovery
|
||||
-------------------------
|
||||
|
||||
When `fix` is restricted using `-S, --start` or `-B, --count`,
|
||||
|
|
@ -2021,7 +2035,7 @@ typically after a normal `fix` has failed. If a partial `fix` reports
|
|||
unrecoverable data, remove or rename the affected files before attempting
|
||||
another recovery, or verify their contents manually.
|
||||
|
||||
16.7 NTFS hard links and excluded paths
|
||||
16.8 NTFS hard links and excluded paths
|
||||
---------------------------------------
|
||||
|
||||
On NTFS, directory entries cache file size and timestamps independently
|
||||
|
|
@ -2045,6 +2059,36 @@ To avoid this limitation, avoid modifying protected files through hard
|
|||
links that are excluded from SnapRAID, or ensure that all hard links to a
|
||||
file are included in the scan so SnapRAID can normalize them.
|
||||
|
||||
16.9 Recovery after an interrupted multi-parity sync
|
||||
----------------------------------------------------
|
||||
|
||||
In an array with multiple parity disks, an interrupted `sync` can leave
|
||||
parity levels temporarily out of sync with each other. For example,
|
||||
parity 1 might already contain newly updated data, while parity 2 still
|
||||
contains the old data.
|
||||
|
||||
During `check` or `fix`, SnapRAID tries different parity combinations
|
||||
and validates reconstructed data against the known block hashes (covering
|
||||
the full block, typically 256 KiB).
|
||||
|
||||
If SnapRAID attempts a reconstruction using an inconsistent mix of old
|
||||
and new parity, the linear RAID equations will produce incorrect data.
|
||||
For this invalid combination to be falsely accepted, the equations would
|
||||
have to accidentally reconstruct at least one complete 256 KiB block so
|
||||
perfectly that its hash matches, while other unsynchronized blocks in the
|
||||
same stripe are reconstructed with incorrect data.
|
||||
|
||||
This scenario does not depend on a hash collision; rather, the mixed
|
||||
parity equations themselves would have to coincidentally yield the exact
|
||||
original 256 KiB block contents. While mathematically possible with
|
||||
specially crafted or highly repetitive data, it is practically impossible
|
||||
with real-world data.
|
||||
|
||||
If all disks are healthy, completing the interrupted `sync` before making
|
||||
further changes removes this ambiguity. If a disk has failed and recovery
|
||||
is required, avoid modifying any data disks before running `check` or
|
||||
`fix`.
|
||||
|
||||
|
||||
17 COPYRIGHT
|
||||
============
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue