From 873eca64673e075b37caacc1257d9d1d922a4ef2 Mon Sep 17 00:00:00 2001 From: "jinguk.kwon" Date: Fri, 20 Mar 2020 16:13:06 +0900 Subject: [PATCH] new file for vm map --- vm_map.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 vm_map.sh 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