/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/fault/ |
H A D | auto_spare_shared.ksh | 28 # Spare devices (both files and disks) can be shared among different ZFS pools. 32 # 2. Add the same spare device to different pools 35 # 5. Verify the ZED kicks in a hot spare and check pool/device status 37 # 7. Verify the hot spare is available and check pool/device status 43 # Add one 512b spare device (4Kn would generate IO errors on replace) 61 log_assert "Spare devices can be shared among different ZFS pools" 71 SPARE_FILEDEV="$TEST_BASE_DIR/file-spare-dev" 76 for spare in $SPARE_FILEDEV $SPARE_DISKDEV; do 81 # 2. Add the same spare device to different pools 82 log_must_busy zpool add $TESTPOOL spare $spare [all …]
|
H A D | auto_spare_001_pos.ksh | 28 # Testing Fault Management Agent ZED Logic - Automated Auto-Spare Test when 36 # 5. Verify the ZED kicks in a hot spare and expected pool/device status 38 # 7. Verify the hot spare is available and expected pool/device status 50 log_assert "Testing automated auto-spare FMA test" 61 # 1. Create a dRAID pool with a distributed hot spare 65 # to distributed spare space and not data devices. 69 SPARE="draid1-0-0" 75 spare $SPARE_FILE 76 SPARE=$SPARE_FILE 91 # 5. Verify the ZED kicks in a hot spare and expected pool/device status [all …]
|
H A D | auto_spare_multiple.ksh | 29 # Testing Fault Management Agent ZED Logic - Automated Auto-Spare Test when 36 # 4. Verify the ZED kicks in a hot spare and expected pool/device status 39 # 7. Verify the ZED kicks in a second hot spare 70 SPARE_DEV1="$TEST_BASE_DIR/spare-dev1" 71 SPARE_DEV2="$TEST_BASE_DIR/spare-dev2" 77 # hot spare to provide test coverage for both configurations. 81 # distributed spare space and not data devices. 86 spare $SPARE_DEV1 93 $FAULT_DEV1 $FAULT_DEV2 $SAFE_DEV1 spare $SPARE_DEVS 100 spare $SPARE_DEVS [all …]
|
H A D | auto_offline_001_pos.ksh | 37 # 6. Repeat the same tests with a spare device: 38 # zed will use the spare to handle the removed data device 39 # 7. Repeat the same tests again with a faulted spare device: 48 # activate a hot spare. Additional work is planned to extend an existing ioctl 79 sparedev="$TEST_BASE_DIR/file-vdev-spare" 121 # 6. Repeat the same tests with a spare device: zed will use the spare to handle 125 # special vdev can not be replaced by a hot spare 130 # 1. Create a pool with a spare 133 log_must zpool add $TESTPOOL spare $sparedev 142 # 3. Verify the device is handled by the spare. [all …]
|
H A D | auto_spare_002_pos.ksh | 28 # Testing Fault Management Agent ZED Logic - Automated Auto-Spare Test when 36 # 5. Verify the ZED kicks in a hot spare and expected pool/device status 38 # 7. Verify the hot spare is available and expected pool/device status 50 log_assert "Testing automated auto-spare FMA test" 66 spare $SPARE_FILE 79 # 5. Verify the ZED kicks in a hot spare and expected pool/device status 80 log_note "Wait for ZED to auto-spare" 90 # 7. Verify the hot spare is available and expected pool/device status 98 log_pass "Auto-spare test successful"
|
H A D | auto_spare_ashift.ksh | 30 # Testing Fault Management Agent ZED Logic - Automated Auto-Spare Test when 35 # 2. Add one 512e spare device (4Kn would generate IO errors on replace) 38 # 5. Verify the ZED kicks in the hot spare and expected pool/device status 40 # 7. Verify the hot spare is available and expected pool/device status 73 # 2. Add one 512e spare device (4Kn would generate IO errors on replace) 77 log_must_busy zpool add $TESTPOOL spare $SPARE_DEVICE 85 # 5. Verify the ZED kicks in a hot spare and expected pool/device status 86 log_note "Wait for ZED to auto-spare" 96 # 7. Verify the hot spare is available and expected pool/device status
|
H A D | auto_spare_double.ksh | 23 # Try do induce a double spare condition and verify we're prevented from doing 28 # 2. Kick in first spare 31 # 5. Try to kick in the second spare for the new drive (which is now failed) 32 # 6. Verify that we can't kick in the second spare 70 # $2: 1st spare name 71 # $3: 2nd spare name 79 log_note "Kicking in first spare ($SPARE0)" 96 log_note "Kicking in second spare ($SPARE0)... This should not work..." 107 $TESTPOOL mirror $TEST_BASE_DIR/file{0,1} spare $TEST_BASE_DIR/file{2,3}
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_add/ |
H A D | add_nested_replacing_spare.ksh | 32 # 'zpool add' works with nested replacing/spare vdevs 35 # 1. Create a redundant pool with a spare device 36 # 2. Manually fault a device, wait for the hot-spare and then replace it: 37 # this creates a situation where replacing and spare vdevs are nested. 52 log_assert "'zpool add' works with nested replacing/spare vdevs" 63 SPARE_DEV1="$TEST_BASE_DIR/spare-dev1" 64 SPARE_DEV2="$TEST_BASE_DIR/spare-dev2" 75 # 1. Create a redundant pool with a spare device 78 log_must zpool add $TESTPOOL spare $SPARE_DEV1 80 # 2.1 Fault a device, verify the spare is kicked in [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/zfsd/ |
H A D | zfsd_hotspare_001_pos.ksh | 37 # If an active spare fails, it will be replaced by an available spare. 42 # 3. Verify that a spare gets activated 43 # 4. Fail the spare 44 # 5. Verify the failed spare was replaced by the other spare. 94 # The zpool history should log when a spare device becomes active 96 $GREP "spare in vdev=$fail_spare for vdev=$err_dev" > /dev/null 102 # fail the spare vdev 117 # The standby spare should be in use, while the original spare should 123 # The zpool history should log when a spare device becomes active 125 $GREP "spare in vdev=$standby_spare for vdev=$fail_spare" > /dev/null [all …]
|
H A D | zfsd_import_001_pos.ksh | 38 # replace its spare when reimported. 47 # 3. Verify that the spare is in use. 51 # 7. Verify that the vdev gets resilvered and the spare gets removed 53 # finished resilvering _before_ zfsd detached the spare. 75 # Wait for zfsd to activate the spare 97 #Finally, check that the spare deactivated 100 # Verify that the spare was detached after the scrub was complete 120 print("Spare detached at txg", detach_txg); 123 [ $? -ne 0 ] && log_fail "The spare detached before the resilver completed" 128 it will replace its spare when reinserted." [all …]
|
H A D | zfsd_hotspare_004_pos.ksh | 37 # If a vdev gets removed from a pool with a spare, the spare will be 44 # 3. Verify that the spare is in use. 46 # 5. Verify that the vdev gets resilvered and the spare gets removed 58 log_assert "Removing a disk from a pool results in the spare activating" 68 # Check that the spare was activated 79 # Finally, check that the spare deactivated 96 log_must create_pool $TESTPOOL $keyword $REMOVAL_NOP $OTHER_NOPS spare $SPARE_NOP
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_create/ |
H A D | zpool_create_006_pos.ksh | 73 spare $vdev6" \ 75 spare $vdev6 $vdev7" \ 76 "mirror $vdev0 $vdev1 spare $vdev2 mirror $vdev3 $vdev4" \ 86 spare $vdev6" \ 88 spare $vdev6 $vdev7" \ 89 "raidz $vdev0 $vdev1 spare $vdev2 raidz $vdev3 $vdev4" \ 95 spare $vdev6" \ 97 raidz2 $vdev6 $vdev7 $vdev8 spare $vdev9" \ 98 "raidz2 $vdev0 $vdev1 $vdev2 spare $vdev3 raidz2 $vdev4 $vdev5 $vdev6" \ 115 "spare $vdev0 $vdev1 $vdev2 mirror $vdev3 $vdev4 raidz $vdev5 $vdev6" [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zpool_create/ |
H A D | zpool_create_006_pos.ksh | 80 spare $vdev6" \ 82 spare $vdev6 $vdev7" \ 83 "mirror $vdev0 $vdev1 spare $vdev2 mirror $vdev3 $vdev4" \ 87 spare $vdev6" \ 89 spare $vdev6 $vdev7" \ 90 "raidz $vdev0 $vdev1 spare $vdev2 raidz $vdev3 $vdev4" \ 95 spare $vdev6" \ 97 raidz2 $vdev6 $vdev7 $vdev8 spare $vdev9" \ 98 "raidz2 $vdev0 $vdev1 $vdev2 spare $vdev3 raidz2 $vdev4 $vdev5 $vdev6" 105 raidz2 $vdev5 $vdev6 $vdev7 spare $vdev8" \ [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zpool_clear/ |
H A D | zpool_clear_004_pos.ksh | 37 # Verify 'zpool clear' can clear errors on spare devices. 41 # return an error when used on a spare vdev. This is really a test for whether 42 # zpool_find_vdev() from libzfs can work on a spare vdev. Note that we're 43 # talking about he mirror-like "spare-0" vdev, not the leaf hotspare vdev. 47 # 2. Activate a spare 48 # 3. Verify that "zpool clear" on the spare returns no errors 74 log_assert "Verify 'zpool clear' works on spare vdevs" 77 # Stop ZFSD so it won't interfere with our spare device. 86 typeset devlist="$VDEV1 $VDEV2 spare $SDEV" 93 log_must $ZPOOL clear $TESTPOOL1 "spare-0" [all …]
|
H A D | zpool_clear_003_neg.ksh | 35 # Verify 'zpool clear' cannot used on an available spare device. 38 # 1. Create a spare pool. 39 # 2. Try to clear the spare device 65 log_assert "Verify 'zpool clear' cannot clear error for spare device." 68 # make raw files to create a spare pool 71 log_must create_pool $TESTPOOL1 raidz $fbase.1 $fbase.2 $fbase.3 spare $fbase.4 74 log_pass "'zpool clear' works on spare device failed as expected."
|
/freebsd/tests/sys/cddl/zfs/tests/hotspare/ |
H A D | hotspare_detach_004_pos.ksh | 35 # If a hot spare is activated, 36 # and invoke "zpool replace" with this hot spare to another hot spare, 41 # 2. Activate a hot spare by 'zpool replace' with the basic dev, 42 # make sure there still have enough hot spare in available list. 43 # 3. Do 'zpool replace' with the hot spare to another AVAIL hot spare. 88 …v> <ndev>' against a hot spare device that have been activated should successful while the another… 103 …v> <ndev>' against a hot spare device that have been activated should successful while the another…
|
H A D | hotspare_add_002_pos.ksh | 35 # 'zpool add <pool> spare <vdev> ...' can successfully add the specified 41 # 2. Add hot spare devices to the pool 43 # 3. Verify the following devices could add to the spare list 75 log_must $ZPOOL add "$TESTPOOL" spare $ndev 80 log_must $ZPOOL add -f "$TESTPOOL" spare $ndev 86 log_assert "'zpool add <pool> spare <vdev> ...' can add devices to the pool while it has spare-in d… 101 log_pass "'zpool add <pool> spare <vdev> ...' executes successfully while it has spare-in device"
|
H A D | hotspare_create_001_neg.ksh | 107 set -A arg "$TESTPOOL ${pooldevs[1]} spare ${pooldevs[2]}" \ 108 "$TESTPOOL1 ${pooldevs[1]} spare $nonexist_dev" \ 109 "$TESTPOOL1 ${pooldevs[1]} spare ${pooldevs[0]}" \ 110 "$TESTPOOL1 ${pooldevs[1]} spare $mounted_dev" \ 111 "$TESTPOOL1 ${pooldevs[1]} spare $swap_dev" \ 112 "$TESTPOOL1 ${pooldevs[1]} spare ${pooldevs[1]}" 124 log_must $ZPOOL create $TESTPOOL1 ${pooldevs[1]} spare $dump_dev 126 log_must $ZPOOL create -f $TESTPOOL1 ${pooldevs[1]} spare $dump_dev 132 log_pass "'zpool create [-f]' with hot spare is failed as expected with inapplicable scenarios."
|
H A D | hotspare_detach_002_pos.ksh | 35 # If a hot spare have been activated, 37 # then the hot spare will become a functioning device, 39 # then the spare is automatically removed once the replace completes. 43 # 2. Activate a spare device to the pool 45 # 4. Verify the spare device will become a functioning device, 91 log_must $ZPOOL add -f $TESTPOOL spare $dev 95 …v> ...' against a functioning device that have spared should take the hot spare permanently swappi… 109 …l> <vdev> ...' against a functioning device that have spared take the hot spare permanently swappi…
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/redundancy/ |
H A D | redundancy_draid_spare3.ksh | 84 # spare-2 DEGRADED 0 0 0 87 # spare-3 DEGRADED 0 0 0 94 # spare-8 DEGRADED 0 0 0 97 # spare-9 ONLINE 0 0 0 108 # Distributed spare which replaces original online device 118 # Distributed spare in mirror with original device faulted 122 log_must check_vdev_state $TESTPOOL spare-8 "DEGRADED" 129 # Distributed spare in mirror with original device still online 132 log_must check_vdev_state $TESTPOOL spare-9 "ONLINE" 150 # Distributed spare faulted device replacement [all …]
|
/freebsd/cddl/usr.sbin/zfsd/ |
H A D | zfsd.8 | 72 will activate any available hot spare. 80 Once resilvering completes, any active hot spare will detach automatically. 87 Once resilvering completes, any active hot spare will detach automatically. 91 will activate any available hot spare. 100 will activate a hot spare if one is available. The defaults can be changed by 116 will activate a hot spare if one is available. The defaults can be changed by 130 ZFS will still use it, but zfsd will also activate a hot spare if one is 138 .It Spare addition 139 If the system administrator adds a hot spare to a pool that is already degraded, 141 will activate the spare. [all …]
|
/freebsd/usr.sbin/mptutil/ |
H A D | mptutil.8 | 137 spare. 143 Any drive not associated with a RAID volume as either a member or a hot spare 192 If any hot spare drives are configured, then they are listed as well. 310 as a hot spare. 316 then the hot spare will be dedicated to that volume. 319 will be used as a global hot spare backing all volumes for this controller. 325 Remove the hot spare 344 as a global hot spare: 355 The handling of spare drives appears to be unreliable. 358 firmware manages spares via spare drive [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_export/ |
H A D | zpool_export_004_pos.ksh | 37 # Verify zpool export succeed or fail with spare. 40 # 1. Create two mirror pools with same spare. 43 # 4. Replace one device with the spare and detach it in one pool. 46 # 7. Replace one device with the spare in one pool. 54 log_assert "Verify zpool export succeed or fail with spare." 69 log_must zpool create $TESTPOOL1 mirror $vdev0 $vdev1 spare $vdev4 70 log_must zpool create $TESTPOOL2 mirror $vdev2 $vdev3 spare $vdev4 86 log_pass "Verify zpool export succeed or fail with spare."
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_entry_link_resolver.c | 80 struct links_entry *spare; member 288 if (res->spare != NULL) { in find_entry() 289 archive_entry_free(res->spare->canonical); in find_entry() 290 archive_entry_free(res->spare->entry); in find_entry() 291 free(res->spare); in find_entry() 292 res->spare = NULL; in find_entry() 323 res->spare = le; in find_entry() 337 if (res->spare != NULL) { in next_entry() 338 archive_entry_free(res->spare->canonical); in next_entry() 339 archive_entry_free(res->spare->entry); in next_entry() [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_clear/ |
H A D | zpool_clear_003_neg.ksh | 38 # Verify 'zpool clear' cannot used to spare device. 41 # 1. Create a spare pool. 42 # 2. Try to clear the spare device 59 log_assert "Verify 'zpool clear' cannot clear error for spare device." 62 #make raw files to create a spare pool 70 $TESTDIR/file.3 spare $TESTDIR/file.4 74 log_pass "'zpool clear' works on spare device failed as expected."
|