Home
last modified time | relevance | path

Searched full:spare (Results 1 – 25 of 530) sorted by relevance

12345678910>>...22

/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/fault/
H A Dauto_spare_shared.ksh27 # Spare devices (both files and disks) can be shared among different ZFS pools.
31 # 2. Add the same spare device to different pools
34 # 5. Verify the ZED kicks in a hot spare and check pool/device status
36 # 7. Verify the hot spare is available and check pool/device status
42 # Add one 512b spare device (4Kn would generate IO errors on replace)
60 log_assert "Spare devices can be shared among different ZFS pools"
70 SPARE_FILEDEV="$TEST_BASE_DIR/file-spare-dev"
75 for spare in $SPARE_FILEDEV $SPARE_DISKDEV; do
80 # 2. Add the same spare device to different pools
81 log_must_busy zpool add $TESTPOOL spare $spare
[all …]
H A Dauto_spare_001_pos.ksh27 # Testing Fault Management Agent ZED Logic - Automated Auto-Spare Test when
35 # 5. Verify the ZED kicks in a hot spare and expected pool/device status
37 # 7. Verify the hot spare is available and expected pool/device status
49 log_assert "Testing automated auto-spare FMA test"
60 # 1. Create a dRAID pool with a distributed hot spare
64 # to distributed spare space and not data devices.
68 SPARE="draid1-0-0"
74 spare $SPARE_FILE
75 SPARE=$SPARE_FILE
90 # 5. Verify the ZED kicks in a hot spare and expected pool/device status
[all …]
H A Dauto_spare_multiple.ksh28 # Testing Fault Management Agent ZED Logic - Automated Auto-Spare Test when
35 # 4. Verify the ZED kicks in a hot spare and expected pool/device status
38 # 7. Verify the ZED kicks in a second hot spare
69 SPARE_DEV1="$TEST_BASE_DIR/spare-dev1"
70 SPARE_DEV2="$TEST_BASE_DIR/spare-dev2"
76 # hot spare to provide test coverage for both configurations.
80 # distributed spare space and not data devices.
85 spare $SPARE_DEV1
92 $FAULT_DEV1 $FAULT_DEV2 $SAFE_DEV1 spare $SPARE_DEVS
99 spare $SPARE_DEVS
[all …]
H A Dauto_offline_001_pos.ksh36 # 6. Repeat the same tests with a spare device:
37 # zed will use the spare to handle the removed data device
38 # 7. Repeat the same tests again with a faulted spare device:
47 # activate a hot spare. Additional work is planned to extend an existing ioctl
78 sparedev="$TEST_BASE_DIR/file-vdev-spare"
120 # 6. Repeat the same tests with a spare device: zed will use the spare to handle
124 # special vdev can not be replaced by a hot spare
129 # 1. Create a pool with a spare
132 log_must zpool add $TESTPOOL spare $sparedev
141 # 3. Verify the device is handled by the spare.
[all …]
H A Dauto_spare_002_pos.ksh27 # Testing Fault Management Agent ZED Logic - Automated Auto-Spare Test when
35 # 5. Verify the ZED kicks in a hot spare and expected pool/device status
37 # 7. Verify the hot spare is available and expected pool/device status
49 log_assert "Testing automated auto-spare FMA test"
65 spare $SPARE_FILE
78 # 5. Verify the ZED kicks in a hot spare and expected pool/device status
79 log_note "Wait for ZED to auto-spare"
89 # 7. Verify the hot spare is available and expected pool/device status
97 log_pass "Auto-spare test successful"
H A Dauto_spare_ashift.ksh29 # Testing Fault Management Agent ZED Logic - Automated Auto-Spare Test when
34 # 2. Add one 512e spare device (4Kn would generate IO errors on replace)
37 # 5. Verify the ZED kicks in the hot spare and expected pool/device status
39 # 7. Verify the hot spare is available and expected pool/device status
72 # 2. Add one 512e spare device (4Kn would generate IO errors on replace)
76 log_must_busy zpool add $TESTPOOL spare $SPARE_DEVICE
84 # 5. Verify the ZED kicks in a hot spare and expected pool/device status
85 log_note "Wait for ZED to auto-spare"
95 # 7. Verify the hot spare is available and expected pool/device status
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_add/
H A Dadd_nested_replacing_spare.ksh31 # 'zpool add' works with nested replacing/spare vdevs
34 # 1. Create a redundant pool with a spare device
35 # 2. Manually fault a device, wait for the hot-spare and then replace it:
36 # this creates a situation where replacing and spare vdevs are nested.
51 log_assert "'zpool add' works with nested replacing/spare vdevs"
62 SPARE_DEV1="$TEST_BASE_DIR/spare-dev1"
63 SPARE_DEV2="$TEST_BASE_DIR/spare-dev2"
74 # 1. Create a redundant pool with a spare device
77 log_must zpool add $TESTPOOL spare $SPARE_DEV1
79 # 2.1 Fault a device, verify the spare is kicked in
[all …]
/freebsd/tests/sys/cddl/zfs/tests/zfsd/
H A Dzfsd_hotspare_001_pos.ksh37 # 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 Dzfsd_import_001_pos.ksh38 # 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 Dzfsd_hotspare_004_pos.ksh37 # 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 Dzpool_create_006_pos.ksh72 spare $vdev6" \
74 spare $vdev6 $vdev7" \
75 "mirror $vdev0 $vdev1 spare $vdev2 mirror $vdev3 $vdev4" \
85 spare $vdev6" \
87 spare $vdev6 $vdev7" \
88 "raidz $vdev0 $vdev1 spare $vdev2 raidz $vdev3 $vdev4" \
94 spare $vdev6" \
96 raidz2 $vdev6 $vdev7 $vdev8 spare $vdev9" \
97 "raidz2 $vdev0 $vdev1 $vdev2 spare $vdev3 raidz2 $vdev4 $vdev5 $vdev6" \
114 "spare $vdev0 $vdev1 $vdev2 mirror $vdev3 $vdev4 raidz $vdev5 $vdev6"
[all …]
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zpool_create/
H A Dzpool_create_006_pos.ksh80 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 Dzpool_clear_004_pos.ksh37 # 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 Dzpool_clear_003_neg.ksh35 # 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 Dhotspare_detach_004_pos.ksh35 # 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 Dhotspare_add_002_pos.ksh35 # '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 Dhotspare_create_001_neg.ksh107 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 Dhotspare_detach_002_pos.ksh35 # 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 Dredundancy_draid_spare3.ksh83 # spare-2 DEGRADED 0 0 0
86 # spare-3 DEGRADED 0 0 0
93 # spare-8 DEGRADED 0 0 0
96 # spare-9 ONLINE 0 0 0
107 # Distributed spare which replaces original online device
117 # Distributed spare in mirror with original device faulted
121 log_must check_vdev_state $TESTPOOL spare-8 "DEGRADED"
128 # Distributed spare in mirror with original device still online
131 log_must check_vdev_state $TESTPOOL spare-9 "ONLINE"
149 # Distributed spare faulted device replacement
[all …]
/freebsd/cddl/usr.sbin/zfsd/
H A Dzfsd.872 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 Dmptutil.8137 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 Dzpool_export_004_pos.ksh36 # Verify zpool export succeed or fail with spare.
39 # 1. Create two mirror pools with same spare.
42 # 4. Replace one device with the spare and detach it in one pool.
45 # 7. Replace one device with the spare in one pool.
53 log_assert "Verify zpool export succeed or fail with spare."
68 log_must zpool create $TESTPOOL1 mirror $vdev0 $vdev1 spare $vdev4
69 log_must zpool create $TESTPOOL2 mirror $vdev2 $vdev3 spare $vdev4
85 log_pass "Verify zpool export succeed or fail with spare."
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_clear/
H A Dzpool_clear_003_neg.ksh37 # Verify 'zpool clear' cannot used to spare device.
40 # 1. Create a spare pool.
41 # 2. Try to clear the spare device
58 log_assert "Verify 'zpool clear' cannot clear error for spare device."
61 #make raw files to create a spare pool
69 $TESTDIR/file.3 spare $TESTDIR/file.4
73 log_pass "'zpool clear' works on spare device failed as expected."
/freebsd/contrib/libarchive/libarchive/
H A Darchive_entry_link_resolver.c80 struct links_entry *spare; member
284 if (res->spare != NULL) { in find_entry()
285 archive_entry_free(res->spare->canonical); in find_entry()
286 archive_entry_free(res->spare->entry); in find_entry()
287 free(res->spare); in find_entry()
288 res->spare = NULL; in find_entry()
319 res->spare = le; in find_entry()
333 if (res->spare != NULL) { in next_entry()
334 archive_entry_free(res->spare->canonical); in next_entry()
335 archive_entry_free(res->spare->entry); in next_entry()
[all …]
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zpool_export/
H A Dzpool_export_004_pos.ksh36 # Verify zpool export succeed or fail with spare.
39 # 1. Create two mirror pools with same spare.
42 # 4. Replace one device with the spare and detach it in one pool.
45 # 7. Replace one device with the spare in one pool.
80 log_assert "Verify zpool export succeed or fail with spare."
94 log_must $ZPOOL create $TESTPOOL1 mirror $vdev0 $vdev1 spare $vdev4
95 log_must $ZPOOL create $TESTPOOL2 mirror $vdev2 $vdev3 spare $vdev4
111 log_pass "Verify zpool export succeed or fail with spare."

12345678910>>...22