mount /dev/vdb /test
rm -rf /test/*;sync;
for((i=0;i<10;++i))
do
#dir=/test/$(uuidgen)
dir=/test/$i
mkdir $dir
dd if=/dev/zero of=/$dir/$(uuidgen)_1_$i bs=4k count=1024000 oflag=sync &
dd if=/dev/zero of=/$dir/$(uuidgen)_2_$i bs=4k count=1024000 oflag=sync &
dd if=/dev/zero of=/$dir/$(uuidgen)_3_$i bs=4k count=1024000 oflag=sync &
done
主机侧模拟掉盘掉电
virsh detach-disk vmid vdb;virsh attach-disk [vmid] /dev/mapper/data-xfsbroken vdb;virsh reset vmid
原文:https://blog.51cto.com/13866624/2390634