/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 | 37 # Test force faulting a VDEV with 'zpool offline -f' 42 # 2. Offline a vdev, force fault it, clear the fault, and online it. 55 # Ensure we don't leave disks in the offline state 62 log_assert "Executing 'zpool offline -f' with correct options succeeds" 79 log_must zpool offline -$arg $TESTPOOL $disk 84 # Offline a disk, force fault it, clear the fault, and online it 85 log_must zpool offline $TESTPOOL $disk 86 check_state $TESTPOOL $disk "offline" 87 log_must zpool offline -$arg $TESTPOOL $disk 90 check_state $TESTPOOL $disk "offline" [all …]
|
H A D | zpool_offline_001_pos.ksh | 37 # Executing 'zpool offline' with valid parameters succeeds. 40 # 1. Create an array of correctly formed 'zpool offline' options 55 # Ensure we don't leave disks in the offline state 64 log_assert "Executing 'zpool offline' with correct options succeeds" 79 log_must zpool offline ${args[$i]} $TESTPOOL $disk 80 log_must check_state $TESTPOOL $disk "offline" 82 log_mustnot zpool offline ${args[$i]} $TESTPOOL $disk 91 log_note "Issuing repeated 'zpool offline' commands succeeds." 100 log_must zpool offline ${args[$index]} $TESTPOOL $disk 101 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 | 38 # Turning disks in a pool offline should fail when there is no longer 43 # 2. Verify that we can offline as many disks as the redundancy level 57 # Ensure we don't leave disks in the offline state 69 log_assert "Turning both disks offline should fail." 101 log_must zpool offline $TESTPOOL ${disks[$j]} 102 check_state $TESTPOOL ${disks[$j]} "offline" || \ 103 log_fail "Failed to set ${disks[$j]} offline" 107 # Hold one disk offline, verify the others can't be offlined. 108 log_must zpool offline $TESTPOOL ${disks[$i]} 109 check_state $TESTPOOL ${disks[$i]} "offline" || \ [all …]
|
H A D | online_offline_001_pos.ksh | 38 # Turning a disk offline and back online during I/O completes. 42 # 2. For each disk in the mirror, set it offline and online 56 # Ensure we don't leave disks in the offline state 68 log_assert "Turning a disk offline and back online during I/O completes." 75 log_must zpool offline $TESTPOOL $disk 76 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 | 34 # Scrubbing a pool with offline devices correctly preserves DTL entries 38 # 2. Offline the first device 41 # 5. Online the first device and offline the second device 58 # Update to [online|offline] $device status on $pool synchronously 66 if [[ $status != "online" && $status != "offline" ]]; then 90 log_assert "Scrubbing a pool with offline devices correctly preserves DTLs" 111 # 2. Offline the first device 112 zpool_do_sync 'offline' $TESTPOOL2 $DISK1 120 # 5. Online the first device and offline the second device 122 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 | 39 # zpool offline returns an error when run as a user 42 # 1. Attempt to offline a device in a pool 50 | grep OFFLINE ) 53 log_fail "A disk was taken offline!" 59 log_assert "zpool offline returns an error when run as a user" 61 log_mustnot zpool offline $TESTPOOL.virt /$TESTDIR/disk-1.dat 64 log_mustnot zpool offline -t $TESTPOOL.virt /$TESTDIR/disk-1.dat 67 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 | 31 .Dt ZPOOL-OFFLINE 8 35 .Nm zpool-offline 36 .Nd take physical devices offline in ZFS storage pool 39 .Cm offline 54 .Cm offline 59 Takes the specified physical device offline. 62 is offline, no attempt is made to read or write to the device.
|
H A D | zpool-offline.8 | 35 .Nm zpool-offline 36 .Nd take physical devices offline in ZFS storage pool 39 .Cm offline 54 .Cm offline 59 Takes the specified physical device offline. 62 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_trim/ |
H A D | zpool_trim_online_offline.ksh | 28 # Trimming automatically resumes across offline/online. 33 # 3. Offline the disk. 48 log_must zpool offline $TESTPOOL $DISK1 65 log_must zpool offline $TESTPOOL $DISK1 70 log_fail "Trimming action date did not persist across offline/online" 73 log_pass "Trimming performs as expected across offline/online"
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_initialize/ |
H A D | zpool_initialize_online_offline.ksh | 32 # Initializing automatically resumes across offline/online. 37 # 3. Offline the disk. 50 log_must zpool offline $TESTPOOL $DISK1 67 log_must zpool offline $TESTPOOL $DISK1 72 log_fail "Initializing action date did not persist across offline/online" 75 log_pass "Initializing 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/slog/ |
H A D | slog_011_neg.ksh | 37 # Offline and online a log device passes. 48 log_assert "Offline and online a log device passes." 60 log_must zpool offline $TESTPOOL $ldev 62 log_must verify_slog_device $TESTPOOL $ldev 'OFFLINE' 'mirror' 72 log_pass "Offline and online a log device passes."
|
H A D | slog_015_neg.ksh | 22 # Concurrent sync writes with log offline/online works. 29 # 3.2. Perform log offline/online commands 66 log_must zpool offline $TESTPOOL $SDEV 67 log_must verify_slog_device $TESTPOOL $SDEV 'OFFLINE' 77 log_pass "Concurrent writes with slog offline/online works."
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cache/ |
H A D | cache_009_pos.ksh | 38 # Offline and online a cache device succeed. 50 log_assert "Offline and online a cache device succeed." 59 log_must zpool offline $TESTPOOL $ldev 61 log_must verify_cache_device $TESTPOOL $ldev 'OFFLINE' '' 70 log_pass "Offline and online a cache device succeed."
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/acl/off/ |
H A D | dosmode.ksh | 39 # 3. OFFLINE 125 # OFFLINE 128 log_must $changeflags offline $testfile 129 log_must hasflag offline $testfile 134 log_must user_run $owner $changeflags offline $testfile 136 log_must hasflag offline $testfile 138 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."
|