/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | spa_checkpoint.c | 27 * 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 D | checkpoint_discard_busy.ksh | 22 # 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 D | checkpoint_after_rewind.ksh | 22 # 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 D | checkpoint_big_rewind.ksh | 22 # 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 D | checkpoint_sm_scale.ksh | 26 # 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 D | checkpoint_discard.ksh | 22 # 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 D | checkpoint_discard_many.ksh | 22 # 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 D | checkpoint_invalid.ksh | 22 # 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 D | checkpoint_twice.ksh | 22 # 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 D | checkpoint_rewind.ksh | 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. 40 log_must zpool checkpoint $TESTPOOL 45 log_must zpool import --rewind-to-checkpoint $TESTPOOL
|
H A D | checkpoint_zdb.ksh | 22 # 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 D | checkpoint_removal.ksh | 22 # 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 D | pool_checkpoint.kshlib | 20 # 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 D | checkpoint_vdev_add.ksh | 23 # 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 D | checkpoint_zhack_feat.ksh | 28 # 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 D | checkpoint_lun_expsz.ksh | 23 # 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 D | checkpoint_capacity.ksh | 25 # 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 D | checkpoint_conf_change.ksh | 23 # 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 D | checkpoint_indirect.ksh | 22 # 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 D | zpool-checkpoint.8 | 34 .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 D | zpool_wait_discard.ksh | 22 # '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 D | raidz_expand_003_neg.ksh | 32 # 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 D | zpoolconcepts.7 | 449 .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 D | mmp_on_zdb.ksh | 31 # 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 D | import_rewind_config_changed.ksh | 31 # 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
|