From f55e9708da8e04773a63eda20f8810705633e489 Mon Sep 17 00:00:00 2001 From: Wei Zhou Date: Mon, 24 Jul 2023 04:51:35 +0200 Subject: [PATCH] storage: add multiple local storages on kvm --- source/adminguide/storage.rst | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/source/adminguide/storage.rst b/source/adminguide/storage.rst index bee232e43f..e78e65d517 100644 --- a/source/adminguide/storage.rst +++ b/source/adminguide/storage.rst @@ -146,6 +146,30 @@ could provision 1 iSCSI LUN initially and then add a second iSCSI LUN when the first approaches capacity. +Using Multiple Local Storages (KVM only) +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Since CloudStack 4.17.0.0, multiple local storages are supported on KVM hosts. + +In order to use multiple local storages, you need to + +#. Enable Local Storage For User VMs in the zone setting + +#. Create local directories on kvm hosts + +#. Edit /etc/cloudstack/agent/agent.properties + + - Add extra directories to "local.storage.path" + - Add UUID of directories to "local.storage.uuid" (UUID can be generated by `uuidgen`) + + .. parsed-literal:: + + local.storage.uuid=a43943c1-1759-4073-9db1-bc0ea19203aa,f5b1220b-4446-42dc-a872-cffd281f9f8c + local.storage.path=/var/lib/libvirt/images,/var/lib/libvirt/images2 + +#. Restart cloudstack-agent service + + Storage Tags ~~~~~~~~~~~~