diff --git a/vm_map.sh b/vm_map.sh new file mode 100755 index 0000000..15c80dc --- /dev/null +++ b/vm_map.sh @@ -0,0 +1,5 @@ +vm_list=( $(virsh list | awk '{print $2}') ) + +for ((i=0; i<${#vm_list[@]}; i++)) do + ceph osd map hdd ${vm_list[i]} +done