mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-16 04:42:55 +08:00
Update faildisk.sh
This commit is contained in:
parent
d903802ddf
commit
96363142a4
@ -1,6 +1,9 @@
|
||||
#!/bin/bash
|
||||
# arg = shortname disk e.g. sdc , omit the /dev
|
||||
|
||||
# Primarily used in ZFS VM to simulate disk failures in a zpool / test RAIDZx / DRAID recovery scenarios
|
||||
# NOTE rebooting will fix the failed disks
|
||||
|
||||
echo "Failing $1"
|
||||
echo offline > /sys/block/$1/device/state
|
||||
echo 1 > /sys/block/$1/device/delete
|
||||
|
Loading…
x
Reference in New Issue
Block a user