/freebsd/tools/regression/zfs/zpool/offline/ |
H A D | mirror.t | 12 expect_ok ${ZPOOL} offline ${name0} ${disk0} 16 echo "status: One or more devices has been taken offline by the administrator." 26 echo " ${disk0} OFFLINE 0 0 0" 35 expect_ok ${ZPOOL} offline ${name0} ${disk1} 39 echo "status: One or more devices has been taken offline by the administrator." 50 echo " ${disk1} OFFLINE 0 0 0" 58 expect_ok ${ZPOOL} offline ${name0} ${disk0} 59 expect_fl ${ZPOOL} offline ${name0} ${disk1} 63 echo "status: One or more devices has been taken offline by the administrator." 73 echo " ${disk0} OFFLINE 0 0 0" [all …]
|
H A D | option-t.t | 12 expect_ok ${ZPOOL} offline ${name0} ${disk0} 16 echo "status: One or more devices has been taken offline by the administrator." 26 echo " ${disk0} OFFLINE 0 0 0" 36 echo "status: One or more devices has been taken offline by the administrator." 46 echo " ${disk0} OFFLINE 0 0 0" 56 expect_ok ${ZPOOL} offline -t ${name0} ${disk0} 60 echo "status: One or more devices has been taken offline by the administrator." 70 echo " ${disk0} OFFLINE 0 0 0" 94 expect_ok ${ZPOOL} offline ${name0} ${disk0} ${disk1} 98 echo "status: One or more devices has been taken offline by the administrator." [all …]
|
H A D | log.t | 12 expect_ok ${ZPOOL} offline ${name0} ${disk1} 16 echo "status: One or more devices has been taken offline by the administrator." 28 echo " ${disk1} OFFLINE 0 0 0" 38 expect_ok ${ZPOOL} offline ${name0} ${disk2} 42 echo "status: One or more devices has been taken offline by the administrator." 55 echo " ${disk2} OFFLINE 0 0 0" 64 expect_ok ${ZPOOL} offline ${name0} ${disk1} 65 expect_fl ${ZPOOL} offline ${name0} ${disk2} 69 echo "status: One or more devices has been taken offline by the administrator." 81 echo " ${disk1} OFFLINE 0 0 0" [all …]
|
H A D | raidz2.t | 12 expect_ok ${ZPOOL} offline ${name0} ${disk0} 16 echo "status: One or more devices has been taken offline by the administrator." 26 echo " ${disk0} OFFLINE 0 0 0" 36 expect_ok ${ZPOOL} offline ${name0} ${disk1} 40 echo "status: One or more devices has been taken offline by the administrator." 51 echo " ${disk1} OFFLINE 0 0 0" 60 expect_ok ${ZPOOL} offline ${name0} ${disk2} 64 echo "status: One or more devices has been taken offline by the administrator." 76 echo " ${disk2} OFFLINE 0 0 0" 85 expect_ok ${ZPOOL} offline ${name0} ${disk0} ${disk1} [all …]
|
H A D | raidz1.t | 12 expect_ok ${ZPOOL} offline ${name0} ${disk0} 16 echo "status: One or more devices has been taken offline by the administrator." 26 echo " ${disk0} OFFLINE 0 0 0" 35 expect_ok ${ZPOOL} offline ${name0} ${disk1} 39 echo "status: One or more devices has been taken offline by the administrator." 50 echo " ${disk1} OFFLINE 0 0 0" 58 expect_ok ${ZPOOL} offline ${name0} ${disk0} 59 expect_fl ${ZPOOL} offline ${name0} ${disk1} 63 echo "status: One or more devices has been taken offline by the administrator." 73 echo " ${disk0} OFFLINE 0 0 0" [all …]
|
H A D | io.t | 12 expect_ok ${ZPOOL} offline ${name0} ${disk0} 24 expect_ok ${ZPOOL} offline ${name0} ${disk1} 26 expect_ok ${ZPOOL} offline ${name0} ${disk3} 47 expect_ok ${ZPOOL} offline ${name0} ${disk1} 62 expect_ok ${ZPOOL} offline ${name0} ${disk1} 64 expect_ok ${ZPOOL} offline ${name0} ${disk3}
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_offline/ |
H A D | zpool_offline_003_pos.ksh | 36 # Test force faulting a VDEV with 'zpool offline -f' 41 # 2. Offline a vdev, force fault it, clear the fault, and online it. 54 # Ensure we don't leave disks in the offline state 61 log_assert "Executing 'zpool offline -f' with correct options succeeds" 78 log_must zpool offline -$arg $TESTPOOL $disk 83 # Offline a disk, force fault it, clear the fault, and online it 84 log_must zpool offline $TESTPOOL $disk 85 check_state $TESTPOOL $disk "offline" 86 log_must zpool offline -$arg $TESTPOOL $disk 89 check_state $TESTPOOL $disk "offline" [all …]
|
H A D | zpool_offline_001_pos.ksh | 36 # Executing 'zpool offline' with valid parameters succeeds. 39 # 1. Create an array of correctly formed 'zpool offline' options 54 # Ensure we don't leave disks in the offline state 63 log_assert "Executing 'zpool offline' with correct options succeeds" 78 log_must zpool offline ${args[$i]} $TESTPOOL $disk 79 log_must check_state $TESTPOOL $disk "offline" 81 log_mustnot zpool offline ${args[$i]} $TESTPOOL $disk 90 log_note "Issuing repeated 'zpool offline' commands succeeds." 99 log_must zpool offline ${args[$index]} $TESTPOOL $disk 100 log_must check_state $TESTPOOL $disk "offline" [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/online_offline/ |
H A D | online_offline_002_neg.ksh | 37 # Turning disks in a pool offline should fail when there is no longer 42 # 2. Verify that we can offline as many disks as the redundancy level 54 # Ensure we don't leave disks in the offline state 65 log_assert "Turning both disks offline should fail." 96 log_must zpool offline $TESTPOOL ${disks[$j]} 97 check_state $TESTPOOL ${disks[$j]} "offline" || \ 98 log_fail "Failed to set ${disks[$j]} offline" 102 # Hold one disk offline, verify the others can't be offlined. 103 log_must zpool offline $TESTPOOL ${disks[$i]} 104 check_state $TESTPOOL ${disks[$i]} "offline" || \ [all …]
|
H A D | online_offline_001_pos.ksh | 37 # Turning a disk offline and back online during I/O completes. 41 # 2. For each disk in the mirror, set it offline and online 53 # Ensure we don't leave disks in the offline state 65 log_assert "Turning a disk offline and back online during I/O completes." 72 log_must zpool offline $TESTPOOL $disk 73 log_must check_state $TESTPOOL $disk "offline"
|
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zpool_offline/ |
H A D | zpool_offline_001_pos.ksh | 35 # Executing 'zpool offline' with valid parameters succeeds. 38 # 1. Create an array of correctly formed 'zpool offline' options 63 # Ensure we don't leave disks in the offline state 75 log_assert "Executing 'zpool offline' with correct options succeeds" 90 log_must $ZPOOL offline ${args[$i]} $TESTPOOL $disk 91 check_state $TESTPOOL $disk "offline" 93 log_fail "$disk of $TESTPOOL did not match offline state" 96 log_mustnot $ZPOOL offline ${args[$i]} $TESTPOOL $disk 108 log_note "Issuing repeated 'zpool offline' commands succeeds." 117 log_must $ZPOOL offline ${args[$index]} $TESTPOOL $disk [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_scrub/ |
H A D | zpool_scrub_offline_device.ksh | 33 # Scrubbing a pool with offline devices correctly preserves DTL entries 37 # 2. Offline the first device 40 # 5. Online the first device and offline the second device 57 # Update to [online|offline] $device status on $pool synchronously 65 if [[ $status != "online" && $status != "offline" ]]; then 89 log_assert "Scrubbing a pool with offline devices correctly preserves DTLs" 110 # 2. Offline the first device 111 zpool_do_sync 'offline' $TESTPOOL2 $DISK1 119 # 5. Online the first device and offline the second device 121 zpool_do_sync 'offline' $TESTPOOL2 $DISK2 [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_user/misc/ |
H A D | zpool_offline_001_neg.ksh | 38 # zpool offline returns an error when run as a user 41 # 1. Attempt to offline a device in a pool 49 | grep OFFLINE ) 52 log_fail "A disk was taken offline!" 58 log_assert "zpool offline returns an error when run as a user" 60 log_mustnot zpool offline $TESTPOOL.virt /$TESTDIR/disk-1.dat 63 log_mustnot zpool offline -t $TESTPOOL.virt /$TESTDIR/disk-1.dat 66 log_pass "zpool offline returns an error when run as a user"
|
/freebsd/tests/sys/cddl/zfs/tests/cli_user/misc/ |
H A D | zpool_offline_001_neg.ksh | 38 # zpool offline returns an error when run as a user 41 # 1. Attempt to offline a device in a pool 58 | $GREP OFFLINE ) 61 log_fail "A disk was taken offline!" 67 log_assert "zpool offline returns an error when run as a user" 69 log_mustnot run_unprivileged "$ZPOOL offline $TESTPOOL.virt /$TESTDIR/disk-1.dat" 72 log_mustnot run_unprivileged "$ZPOOL offline -t $TESTPOOL.virt /$TESTDIR/disk-1.dat" 75 log_pass "zpool offline returns an error when run as a user"
|
/freebsd/sys/contrib/openzfs/man/man8/ |
H A D | zpool-online.8 | 30 .Dt ZPOOL-OFFLINE 8 34 .Nm zpool-offline 35 .Nd take physical devices offline in ZFS storage pool 38 .Cm offline 53 .Cm offline 58 Takes the specified physical device offline. 61 is offline, no attempt is made to read or write to the device.
|
H A D | zpool-offline.8 | 34 .Nm zpool-offline 35 .Nd take physical devices offline in ZFS storage pool 38 .Cm offline 53 .Cm offline 58 Takes the specified physical device offline. 61 is offline, no attempt is made to read or write to the device.
|
/freebsd/tests/sys/cddl/zfs/tests/cache/ |
H A D | cache_009_pos.ksh | 36 # Offline and online a cache device succeed. 56 log_assert "Offline and online a cache device succeed." 65 log_must $ZPOOL offline $TESTPOOL $ldev 67 log_must verify_cache_device $TESTPOOL $ldev 'OFFLINE' '' 68 log_note "Offline pool configuration, for reference:" 80 log_pass "Offline and online a cache device succeed."
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_initialize/ |
H A D | zpool_initialize_online_offline.ksh | 31 # Initializing automatically resumes across offline/online. 36 # 3. Offline the disk. 49 log_must zpool offline $TESTPOOL $DISK1 66 log_must zpool offline $TESTPOOL $DISK1 71 log_fail "Initializing action date did not persist across offline/online" 74 log_pass "Initializing performs as expected across offline/online"
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_trim/ |
H A D | zpool_trim_online_offline.ksh | 27 # Trimming automatically resumes across offline/online. 32 # 3. Offline the disk. 47 log_must zpool offline $TESTPOOL $DISK1 64 log_must zpool offline $TESTPOOL $DISK1 69 log_fail "Trimming action date did not persist across offline/online" 72 log_pass "Trimming performs as expected across offline/online"
|
/freebsd/tests/sys/cddl/zfs/tests/hotspare/ |
H A D | hotspare_onoffline_003_neg.ksh | 37 # invoke "zpool offline" & "zpool online" with this hot spare 42 # 2. Try 'zpool offline' & 'zpool online' with each hot spare 46 # 3. Verify offline/online results as expected. 73 log_mustnot $ZPOOL offline $TESTPOOL $dev 80 log_assert "'zpool offline/online <pool> <vdev>' should fail on inactive spares" 94 log_pass "'zpool offline/online <pool> <vdev>' against a hot spare works as expected."
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cache/ |
H A D | cache_009_pos.ksh | 37 # Offline and online a cache device succeed. 49 log_assert "Offline and online a cache device succeed." 58 log_must zpool offline $TESTPOOL $ldev 60 log_must verify_cache_device $TESTPOOL $ldev 'OFFLINE' '' 69 log_pass "Offline and online a cache device succeed."
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/slog/ |
H A D | slog_011_neg.ksh | 36 # Offline and online a log device passes. 47 log_assert "Offline and online a log device passes." 59 log_must zpool offline $TESTPOOL $ldev 61 log_must verify_slog_device $TESTPOOL $ldev 'OFFLINE' 'mirror' 71 log_pass "Offline and online a log device passes."
|
H A D | slog_015_neg.ksh | 21 # Concurrent sync writes with log offline/online works. 28 # 3.2. Perform log offline/online commands 65 log_must zpool offline $TESTPOOL $SDEV 66 log_must verify_slog_device $TESTPOOL $SDEV 'OFFLINE' 76 log_pass "Concurrent writes with slog offline/online works."
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/acl/off/ |
H A D | dosmode.ksh | 38 # 3. OFFLINE 124 # OFFLINE 127 log_must $changeflags offline $testfile 128 log_must hasflag offline $testfile 133 log_must user_run $owner $changeflags offline $testfile 135 log_must hasflag offline $testfile 137 log_mustnot user_run $other $changeflags offline $testfile
|
/freebsd/tests/sys/cddl/zfs/tests/slog/ |
H A D | slog_011_neg.ksh | 36 # Offline and online a log device passes. 56 log_assert "Offline and online a log device passes." 65 log_must $ZPOOL offline $TESTPOOL $ldev 67 log_must verify_slog_device $TESTPOOL $ldev OFFLINE mirror 77 log_pass "Offline and online a log device passes."
|