标签:reset gen one att dev ++ detach attach done
虚机里的xfs 目录上 创建一些目录,在目录下创建些文件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
标签:reset gen one att dev ++ detach attach done
原文地址:https://blog.51cto.com/13866624/2390634