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.c28 * Storage Pool Checkpoint
30 * A storage pool checkpoint can be thought of as a pool-wide snapshot or
36 * zpool on-disk features. If a pool has a checkpoint that is no longer
42 * flag is set to active when we create the checkpoint and remains active
43 * until the checkpoint is fully discarded. The entry in the MOS config
45 * references the state of the pool when we take the checkpoint. The entry
46 * remains populated until we start discarding the checkpoint or we rewind
49 * - Each vdev contains a vdev-wide space map while the pool has a checkpoint,
50 * which persists until the checkpoint is fully discarded. The space map
52 * 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.ksh23 # Discard checkpoint on a stressed pool. Ensure that we can
25 # operations that have to do with the checkpoint or change the
30 # 2. Take checkpoint
32 # 4. Start discarding checkpoint
33 # 5. Export pool while discarding checkpoint
36 # 8. Attempt to run checkpoint commands, or commands that
65 # discarding the checkpoint for a long time as with
66 # the current setup the checkpoint space maps should
76 log_must zpool checkpoint $NESTEDPOOL
80 log_must zpool checkpoint -d $NESTEDPOOL
[all …]
H A Dcheckpoint_after_rewind.ksh23 # Ensure that we can checkpoint a pool that we just rewound.
28 # 3. Take checkpoint
30 # 5. Rewind to checkpoint
31 # 6. Verify that the data before the checkpoint are present
32 # and the data after the checkpoint is gone
33 # 7. Take another checkpoint
44 log_must zpool checkpoint $TESTPOOL
48 log_must zpool import --rewind-to-checkpoint $TESTPOOL
51 log_must zpool checkpoint $TESTPOOL
56 log_pass "Checkpoint a pool that we just rewound."
H A Dcheckpoint_big_rewind.ksh23 # Rewind to checkpoint on a stressed pool. We basically try to
24 # fragment the pool before and after taking a checkpoint and
26 # blocks from the checkpoint have been reused.
30 # 2. Take checkpoint
34 # 5. Rewind to checkpoint
43 log_must zpool checkpoint $NESTEDPOOL
54 log_must zpool import -d $FILEDISKDIR --rewind-to-checkpoint $NESTEDPOOL
59 log_pass "Rewind to checkpoint on a stressed pool."
H A Dcheckpoint_sm_scale.ksh27 # Since a vdev-wide space map is introduced for the checkpoint
28 # we want to ensure that we cannot checkpoint a pool that does
40 # ensure that has the checkpoint feature
42 # 2. Ensure that you can checkpoint it
46 # 4. Ensure we fail trying to checkpoint it
49 # This test used to create the two pools and attempt to checkpoint
84 log_must zpool checkpoint $TESTPOOL1
89 log_mustnot zpool checkpoint $TESTPOOL2
92 log_pass "Fail to checkpoint pool with old spacemap encoding" \
H A Dcheckpoint_discard.ksh23 # Ensure that we can discard the checkpoint from a pool.
28 # 3. Take checkpoint
30 # 5. Discard checkpoint
42 log_must zpool checkpoint $TESTPOOL
46 log_must zpool checkpoint -d $TESTPOOL
49 log_mustnot zpool import --rewind-to-checkpoint $TESTPOOL
54 log_pass "Discard checkpoint from pool."
H A Dcheckpoint_discard_many.ksh23 # Take a checkpoint and discard checkpointed data twice. The
29 # 2. Populate it and then take a checkpoint
30 # 3. Do some changes afterwards, and then discard checkpoint
40 log_must zpool checkpoint $TESTPOOL
42 log_must zpool checkpoint -d $TESTPOOL
47 log_must zpool checkpoint $TESTPOOL
50 log_must zpool checkpoint -d $TESTPOOL
H A Dcheckpoint_invalid.ksh23 # Try each 'zpool checkpoint' and relevant 'zpool import' with
27 # does not have a checkpoint
57 # Trying all checkpoint args with all invalid targets
63 log_mustnot zpool checkpoint ${all_args[j]} \
72 # If the pool does not have a checkpoint, -d nor import rewind
75 log_mustnot zpool checkpoint -d $non_checkpointed
77 log_mustnot zpool import --rewind-to-checkpoint $non_checkpointed
80 log_pass "Badly formed checkpoint related commands with " \
H A Dcheckpoint_twice.ksh23 # Attempt to take a checkpoint for an already
28 # 2. Checkpoint it
29 # 3. Attempt to checkpoint it again (should fail).
37 log_must zpool checkpoint $TESTPOOL
38 log_mustnot zpool checkpoint $TESTPOOL
40 log_pass "Attempting to checkpoint an already checkpointed " \
H A Dcheckpoint_rewind.ksh28 # 3. Take checkpoint
30 # 5. Rewind to checkpoint
31 # 6. Verify that the data before the checkpoint are present
32 # and the data after the checkpoint is gone.
41 log_must zpool checkpoint $TESTPOOL
46 log_must zpool import --rewind-to-checkpoint $TESTPOOL
H A Dcheckpoint_zdb.ksh23 # Ensure that checkpoint verification within zdb works as
29 # 3. Take checkpoint
31 # 5. Verify zdb finds checkpoint when run on current state
36 # 8. Import pool and discard checkpoint
37 # 9. Verify zdb does not find the checkpoint anymore in the
58 log_must zpool checkpoint $TESTPOOL
78 log_must zpool checkpoint -d $TESTPOOL
H A Dcheckpoint_removal.ksh23 # Attempt to take a checkpoint while a removal is
30 # time window to attempt the checkpoint while the
35 # 5. Attempt to checkpoint (attempt should fail)
42 log_mustnot zpool checkpoint $TESTPOOL
68 # Remove disk and attempt to take checkpoint
73 log_pass "Attempting to checkpoint during removal fails as expected."
H A Dpool_checkpoint.kshlib21 # In general all the tests related to the pool checkpoint can
23 # provided by the checkpoint (e.g. checkpoint_rewind) and tests
24 # that stress-test the checkpoint (e.g. checkpoint_big_rewind).
37 # space, attempting to use vdevs that the checkpoint spacemap
205 NEWFILECONTENTS0="I survived after the checkpoint!"
206 NEWFILECONTENTS2="I was born after the checkpoint!"
243 # Ensure post-checkpoint state is not present
266 # Ensure post-checkpoint state is not present
300 # Ensure pre-checkpointed state that was removed post-checkpoint
354 status=$(zpool status $pool | grep "checkpoint:")
[all …]
H A Dcheckpoint_vdev_add.ksh24 # checkpoint but in the case of a rewind that device does
30 # 3. Take checkpoint
33 # 5. Rewind to checkpoint
45 log_must zpool checkpoint $TESTPOOL
55 log_must zpool import --rewind-to-checkpoint $TESTPOOL
H A Dcheckpoint_zhack_feat.ksh29 # 3. Take checkpoint
36 # can rewind to the checkpoint (before the feature was
54 log_must zpool checkpoint $TESTPOOL
63 log_must zpool import --rewind-to-checkpoint $TESTPOOL
67 log_pass "Rewind to checkpoint from unsupported pool feature."
H A Dcheckpoint_lun_expsz.ksh24 # checkpoint but in the case of a rewind that device rewinds
30 # 3. Take checkpoint
33 # 5. Rewind to checkpoint
47 log_must zpool checkpoint $NESTEDPOOL
58 log_must zpool import -d $FILEDISKDIR --rewind-to-checkpoint $NESTEDPOOL
H A Dcheckpoint_capacity.ksh26 # into account the space used by the checkpoint when deciding
34 # 3. Checkpoint the pool
36 # in ZFS as they are part of the checkpoint.
69 log_must zpool checkpoint $NESTEDPOOL
88 log_must zpool import -d $FILEDISKDIR --rewind-to-checkpoint $NESTEDPOOL
H A Dcheckpoint_conf_change.ksh24 # it has a checkpoint.
27 # 1. Create pool and take checkpoint
37 log_must zpool checkpoint $TESTPOOL
44 log_pass "Cannot change pool's config when pool has checkpoint."
H A Dcheckpoint_indirect.ksh23 # Ensure that checkpoint plays well with indirect mappings
29 # 3. Take checkpoint
50 log_must zpool checkpoint $NESTEDPOOL
60 log_pass "Running correctly on indirect setups with a checkpoint."
/freebsd/sys/contrib/openzfs/man/man8/
H A Dzpool-checkpoint.835 .Nm zpool-checkpoint
39 .Cm checkpoint
47 .Nm zpool Cm import --rewind-to-checkpoint .
48 The existence of a checkpoint in a pool prohibits the following
56 command indicates the existence of a checkpoint or the progress of discarding a
57 checkpoint from a pool.
59 can be used to check how much space the checkpoint takes from the pool.
64 Discards an existing checkpoint from
67 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.ksh23 # 'zpool wait' works when waiting for checkpoint discard to complete.
28 # 3. Checkpoint the pool and delete the data so that the space is unique to the
29 # checkpoint.
30 # 4. Discard the checkpoint using the '-w' flag.
51 log_must zpool checkpoint $TESTPOOL
53 # Make sure bulk of space is unique to checkpoint
59 log_bkgrnd zpool checkpoint -dw $TESTPOOL
66 log_must zpool checkpoint -d $TESTPOOL
88 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.ksh33 # is in checkpointed state. If checkpoint creation requested on
39 # 2. Create pool and checkpoint it.
43 # 6. Ensure, that checkpoint cannot be created.
80 # case 1: checkpoint exist, try to expand
83 log_must zpool checkpoint $pool
88 # case 2: expansion in progress, try to checkpoint
91 # expansion is still in progress when we attempt the checkpoint
100 log_mustnot zpool checkpoint $pool
/freebsd/sys/contrib/openzfs/man/man7/
H A Dzpoolconcepts.7445 .Ss Pool checkpoint
448 an administrator can checkpoint the pool's state and, in the case of a
449 mistake or failure, rewind the entire pool back to the checkpoint.
450 Otherwise, the checkpoint can be discarded when the procedure has completed
453 A pool checkpoint can be thought of as a pool-wide snapshot and should be used
456 Thus, certain operations are not allowed while a pool has a checkpoint.
462 has a checkpoint do not repair checkpointed data.
464 To create a checkpoint for a pool:
465 .Dl # Nm zpool Cm checkpoint Ar pool
470 .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.ksh32 # 4. Create a checkpoint
34 # 6. Discard the checkpoint
64 log_must zpool checkpoint $TESTPOOL
69 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.ksh32 # 7. Checkpoint the pool as one last attempt to preserve old blocks.
113 # rewind is successful during import we checkpoint the
115 # checkpoint (e.g they stay around). If this goes as
117 # further than the time that we took the checkpoint.
119 # Note that, ideally we would want to take a checkpoint
122 # while having a checkpoint, we take it after the
131 log_must zpool checkpoint $TESTPOOL1

123456