Home
last modified time | relevance | path

Searched full:checkpoint (Results 1 – 25 of 143) sorted by relevance

123456

/freebsd/sys/contrib/openzfs/module/zfs/
H A Dspa_checkpoint.c27 * Storage Pool Checkpoint
29 * A storage pool checkpoint can be thought of as a pool-wide snapshot or
35 * zpool on-disk features. If a pool has a checkpoint that is no longer
41 * flag is set to active when we create the checkpoint and remains active
42 * until the checkpoint is fully discarded. The entry in the MOS config
44 * references the state of the pool when we take the checkpoint. The entry
45 * remains populated until we start discarding the checkpoint or we rewind
48 * - Each vdev contains a vdev-wide space map while the pool has a checkpoint,
49 * which persists until the checkpoint is fully discarded. The space map
51 * but we want to keep around in case we decide to rewind to the checkpoint.
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/pool_checkpoint/
H A Dcheckpoint_discard_busy.ksh22 # Discard checkpoint on a stressed pool. Ensure that we can
24 # operations that have to do with the checkpoint or change the
29 # 2. Take checkpoint
31 # 4. Start discarding checkpoint
32 # 5. Export pool while discarding checkpoint
35 # 8. Attempt to run checkpoint commands, or commands that
64 # discarding the checkpoint for a long time as with
65 # the current setup the checkpoint space maps should
75 log_must zpool checkpoint $NESTEDPOOL
79 log_must zpool checkpoint -d $NESTEDPOOL
[all …]
H A Dcheckpoint_after_rewind.ksh22 # Ensure that we can checkpoint a pool that we just rewound.
27 # 3. Take checkpoint
29 # 5. Rewind to checkpoint
30 # 6. Verify that the data before the checkpoint are present
31 # and the data after the checkpoint is gone
32 # 7. Take another checkpoint
43 log_must zpool checkpoint $TESTPOOL
47 log_must zpool import --rewind-to-checkpoint $TESTPOOL
50 log_must zpool checkpoint $TESTPOOL
55 log_pass "Checkpoint a pool that we just rewound."
H A Dcheckpoint_big_rewind.ksh22 # Rewind to checkpoint on a stressed pool. We basically try to
23 # fragment the pool before and after taking a checkpoint and
25 # blocks from the checkpoint have been reused.
29 # 2. Take checkpoint
33 # 5. Rewind to checkpoint
42 log_must zpool checkpoint $NESTEDPOOL
53 log_must zpool import -d $FILEDISKDIR --rewind-to-checkpoint $NESTEDPOOL
58 log_pass "Rewind to checkpoint on a stressed pool."
H A Dcheckpoint_sm_scale.ksh26 # Since a vdev-wide space map is introduced for the checkpoint
27 # we want to ensure that we cannot checkpoint a pool that does
39 # ensure that has the checkpoint feature
41 # 2. Ensure that you can checkpoint it
45 # 4. Ensure we fail trying to checkpoint it
48 # This test used to create the two pools and attempt to checkpoint
83 log_must zpool checkpoint $TESTPOOL1
88 log_mustnot zpool checkpoint $TESTPOOL2
91 log_pass "Fail to checkpoint pool with old spacemap encoding" \
H A Dcheckpoint_discard.ksh22 # Ensure that we can discard the checkpoint from a pool.
27 # 3. Take checkpoint
29 # 5. Discard checkpoint
41 log_must zpool checkpoint $TESTPOOL
45 log_must zpool checkpoint -d $TESTPOOL
48 log_mustnot zpool import --rewind-to-checkpoint $TESTPOOL
53 log_pass "Discard checkpoint from pool."
H A Dcheckpoint_discard_many.ksh22 # Take a checkpoint and discard checkpointed data twice. The
28 # 2. Populate it and then take a checkpoint
29 # 3. Do some changes afterwards, and then discard checkpoint
39 log_must zpool checkpoint $TESTPOOL
41 log_must zpool checkpoint -d $TESTPOOL
46 log_must zpool checkpoint $TESTPOOL
49 log_must zpool checkpoint -d $TESTPOOL
H A Dcheckpoint_invalid.ksh22 # Try each 'zpool checkpoint' and relevant 'zpool import' with
26 # does not have a checkpoint
56 # Trying all checkpoint args with all invalid targets
62 log_mustnot zpool checkpoint ${all_args[j]} \
71 # If the pool does not have a checkpoint, -d nor import rewind
74 log_mustnot zpool checkpoint -d $non_checkpointed
76 log_mustnot zpool import --rewind-to-checkpoint $non_checkpointed
79 log_pass "Badly formed checkpoint related commands with " \
H A Dcheckpoint_twice.ksh22 # Attempt to take a checkpoint for an already
27 # 2. Checkpoint it
28 # 3. Attempt to checkpoint it again (should fail).
36 log_must zpool checkpoint $TESTPOOL
37 log_mustnot zpool checkpoint $TESTPOOL
39 log_pass "Attempting to checkpoint an already checkpointed " \
H A Dcheckpoint_rewind.ksh27 # 3. Take checkpoint
29 # 5. Rewind to checkpoint
30 # 6. Verify that the data before the checkpoint are present
31 # and the data after the checkpoint is gone.
40 log_must zpool checkpoint $TESTPOOL
45 log_must zpool import --rewind-to-checkpoint $TESTPOOL
H A Dcheckpoint_zdb.ksh22 # Ensure that checkpoint verification within zdb works as
28 # 3. Take checkpoint
30 # 5. Verify zdb finds checkpoint when run on current state
35 # 8. Import pool and discard checkpoint
36 # 9. Verify zdb does not find the checkpoint anymore in the
57 log_must zpool checkpoint $TESTPOOL
75 log_must zpool checkpoint -d $TESTPOOL
H A Dcheckpoint_removal.ksh22 # Attempt to take a checkpoint while a removal is
29 # time window to attempt the checkpoint while the
34 # 5. Attempt to checkpoint (attempt should fail)
41 log_mustnot zpool checkpoint $TESTPOOL
67 # Remove disk and attempt to take checkpoint
72 log_pass "Attempting to checkpoint during removal fails as expected."
H A Dpool_checkpoint.kshlib20 # In general all the tests related to the pool checkpoint can
22 # provided by the checkpoint (e.g. checkpoint_rewind) and tests
23 # that stress-test the checkpoint (e.g. checkpoint_big_rewind).
36 # space, attempting to use vdevs that the checkpoint spacemap
203 NEWFILECONTENTS0="I survived after the checkpoint!"
204 NEWFILECONTENTS2="I was born after the checkpoint!"
241 # Ensure post-checkpoint state is not present
264 # Ensure post-checkpoint state is not present
298 # Ensure pre-checkpointed state that was removed post-checkpoint
352 status=$(zpool status $pool | grep "checkpoint:")
[all …]
H A Dcheckpoint_vdev_add.ksh23 # checkpoint but in the case of a rewind that device does
29 # 3. Take checkpoint
32 # 5. Rewind to checkpoint
44 log_must zpool checkpoint $TESTPOOL
54 log_must zpool import --rewind-to-checkpoint $TESTPOOL
H A Dcheckpoint_zhack_feat.ksh28 # 3. Take checkpoint
35 # can rewind to the checkpoint (before the feature was
53 log_must zpool checkpoint $TESTPOOL
62 log_must zpool import --rewind-to-checkpoint $TESTPOOL
66 log_pass "Rewind to checkpoint from unsupported pool feature."
H A Dcheckpoint_lun_expsz.ksh23 # checkpoint but in the case of a rewind that device rewinds
29 # 3. Take checkpoint
32 # 5. Rewind to checkpoint
46 log_must zpool checkpoint $NESTEDPOOL
57 log_must zpool import -d $FILEDISKDIR --rewind-to-checkpoint $NESTEDPOOL
H A Dcheckpoint_capacity.ksh25 # into account the space used by the checkpoint when deciding
33 # 3. Checkpoint the pool
35 # in ZFS as they are part of the checkpoint.
68 log_must zpool checkpoint $NESTEDPOOL
86 log_must zpool import -d $FILEDISKDIR --rewind-to-checkpoint $NESTEDPOOL
H A Dcheckpoint_conf_change.ksh23 # it has a checkpoint.
26 # 1. Create pool and take checkpoint
36 log_must zpool checkpoint $TESTPOOL
43 log_pass "Cannot change pool's config when pool has checkpoint."
H A Dcheckpoint_indirect.ksh22 # Ensure that checkpoint plays well with indirect mappings
28 # 3. Take checkpoint
49 log_must zpool checkpoint $NESTEDPOOL
59 log_pass "Running correctly on indirect setups with a checkpoint."
/freebsd/sys/contrib/openzfs/man/man8/
H A Dzpool-checkpoint.834 .Nm zpool-checkpoint
38 .Cm checkpoint
46 .Nm zpool Cm import --rewind-to-checkpoint .
47 The existence of a checkpoint in a pool prohibits the following
55 command indicates the existence of a checkpoint or the progress of discarding a
56 checkpoint from a pool.
58 can be used to check how much space the checkpoint takes from the pool.
63 Discards an existing checkpoint from
66 Waits until the checkpoint has finished being discarded before returning.
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_wait/
H A Dzpool_wait_discard.ksh22 # 'zpool wait' works when waiting for checkpoint discard to complete.
27 # 3. Checkpoint the pool and delete the data so that the space is unique to the
28 # checkpoint.
29 # 4. Discard the checkpoint using the '-w' flag.
50 log_must zpool checkpoint $TESTPOOL
52 # Make sure bulk of space is unique to checkpoint
58 log_bkgrnd zpool checkpoint -dw $TESTPOOL
65 log_must zpool checkpoint -d $TESTPOOL
87 log_pass "'zpool wait -t discard' and 'zpool checkpoint -dw' work."
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/raidz/
H A Draidz_expand_003_neg.ksh32 # is in checkpointed state. If checkpoint creation requested on
38 # 2. Create pool and checkpoint it.
42 # 6. Ensure, that checkpoint cannot be created.
79 # case 1: checkpoint exist, try to expand
82 log_must zpool checkpoint $pool
87 # case 2: expansion in progress, try to checkpoint
90 # expansion is still in progress when we attempt the checkpoint
99 log_mustnot zpool checkpoint $pool
/freebsd/sys/contrib/openzfs/man/man7/
H A Dzpoolconcepts.7449 .Ss Pool checkpoint
452 an administrator can checkpoint the pool's state and, in the case of a
453 mistake or failure, rewind the entire pool back to the checkpoint.
454 Otherwise, the checkpoint can be discarded when the procedure has completed
457 A pool checkpoint can be thought of as a pool-wide snapshot and should be used
460 Thus, certain operations are not allowed while a pool has a checkpoint.
466 has a checkpoint do not repair checkpointed data.
468 To create a checkpoint for a pool:
469 .Dl # Nm zpool Cm checkpoint Ar pool
474 .Dl # Nm zpool Cm import Fl -rewind-to-checkpoint Ar pool
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/mmp/
H A Dmmp_on_zdb.ksh31 # 4. Create a checkpoint
33 # 6. Discard the checkpoint
63 log_must zpool checkpoint $TESTPOOL
68 log_must zpool checkpoint -d $TESTPOOL
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_import/
H A Dimport_rewind_config_changed.ksh31 # 7. Checkpoint the pool as one last attempt to preserve old blocks.
112 # rewind is successful during import we checkpoint the
114 # checkpoint (e.g they stay around). If this goes as
116 # further than the time that we took the checkpoint.
118 # Note that, ideally we would want to take a checkpoint
121 # while having a checkpoint, we take it after the
130 log_must zpool checkpoint $TESTPOOL1

123456