Lines Matching +full:active +full:-
43 atf_check -s exit:0 gmultipath create "$name" ${md0} ${md1}
44 check_multipath_state ${md0} "OPTIMAL" "ACTIVE" "PASSIVE"
47 atf_check -s exit:0 gmultipath add "$name" ${md2}
48 check_multipath_state ${md0} "OPTIMAL" "ACTIVE" "PASSIVE" "PASSIVE"
58 atf_set "descr" "Create an Active/Active multipath device"
69 atf_check -s exit:0 gmultipath create -A "$name" ${md0} ${md1}
70 check_multipath_state "${md1} ${md0}" "OPTIMAL" "ACTIVE" "ACTIVE"
80 atf_set "descr" "Create an Active/Read multipath device"
91 atf_check -s exit:0 gmultipath create -R "$name" ${md0} ${md1}
92 check_multipath_state ${md0} "OPTIMAL" "ACTIVE" "READ"
112 # We need a non-zero offset to gmultipath won't see the label when it
116 atf_check gnop create -o $offset /dev/${md0}
117 atf_check gnop create -o $offset /dev/${md1}
118 atf_check -s exit:0 gmultipath label "$name" ${md0}.nop
122 atf_check -s exit:0 gmultipath add "$name" ${md1}.nop
123 NDEVS=`gmultipath list "$name" | grep -c 'md[0-9]*\.nop'`
127 atf_check -s exit:0 gnop destroy -f ${md0}.nop
129 NDEVS=`gmultipath list "$name" | grep -c 'md[0-9]*\.nop'`
133 atf_check gnop create -o $offset /dev/${md0}
135 # don't really care which path is active.
136 NDEVS=`gmultipath list "$name" | grep -c 'md[0-9]*\.nop'`
159 atf_check -s exit:0 gmultipath create "$name" ${md0} ${md1}
160 check_multipath_state ${md0} "OPTIMAL" "ACTIVE" "PASSIVE"
161 # Manually fail the active path
162 atf_check -s exit:0 gmultipath fail "$name" ${md0}
163 check_multipath_state ${md1} "DEGRADED" "FAIL" "ACTIVE"
185 atf_check -s exit:0 gmultipath create "$name" ${md0}.nop ${md1}.nop
188 atf_check gnop configure -r 100 -w 100 ${md0}.nop
189 atf_check -s exit:0 -o ignore -e ignore dd if=/dev/zero of=/dev/multipath/"$name" bs=4096 count=1
190 check_multipath_state ${md1}.nop "DEGRADED" "FAIL" "ACTIVE"
215 atf_check gnop create -z $physpath /dev/${md0}
216 atf_check gnop create -z $physpath /dev/${md1}
217 atf_check -s exit:0 gmultipath create "$name" ${md0}.nop ${md1}.nop
218 gmultipath_physpath=$(diskinfo -p multipath/"$name")
241 atf_check -s exit:0 gmultipath create "$name" ${md0} ${md1} ${md2}
242 check_multipath_state ${md0} "OPTIMAL" "ACTIVE" "PASSIVE" "PASSIVE"
245 atf_check -s exit:0 gmultipath prefer "$name" ${md2}
246 check_multipath_state ${md2} "OPTIMAL" "PASSIVE" "PASSIVE" "ACTIVE"
267 atf_check -s exit:0 gmultipath create "$name" ${md0} ${md1}
270 atf_check -s exit:0 gmultipath fail "$name" ${md0}
271 check_multipath_state ${md1} "DEGRADED" "FAIL" "ACTIVE"
274 atf_check -s exit:0 gmultipath restore "$name" ${md0}
275 check_multipath_state ${md1} "OPTIMAL" "PASSIVE" "ACTIVE"
285 …"descr" "A failed path should be restored if an I/O error is encountered on all other active paths"
299 atf_check -s exit:0 gmultipath create "$name" ${md0}.nop ${md1}.nop
301 atf_check -s exit:0 gmultipath fail "$name" ${md0}.nop
304 atf_check gnop configure -r 100 -w 100 ${md1}.nop
305 atf_check -s exit:0 -o ignore -e ignore \
308 # Now the first path should be active, and the second should be failed
309 check_multipath_state ${md0}.nop "DEGRADED" "ACTIVE" "FAIL"
319 atf_set "descr" "Manually rotate the active path"
331 atf_check -s exit:0 gmultipath create "$name" ${md0} ${md1} ${md2}
332 check_multipath_state ${md0} "OPTIMAL" "ACTIVE" "PASSIVE" "PASSIVE"
335 atf_check -s exit:0 gmultipath rotate "$name"
336 check_multipath_state ${md2} "OPTIMAL" "PASSIVE" "PASSIVE" "ACTIVE"
338 atf_check -s exit:0 gmultipath rotate "$name"
339 check_multipath_state ${md1} "OPTIMAL" "PASSIVE" "ACTIVE" "PASSIVE"
341 atf_check -s exit:0 gmultipath rotate "$name"
342 check_multipath_state ${md0} "OPTIMAL" "ACTIVE" "PASSIVE" "PASSIVE"