.. _Shutting Down Virtuozzo Storage Clusters:

Shutting Down Virtuozzo Storage Clusters
----------------------------------------

To shut down a Virtuozzo Storage cluster completely, do the following:

1. Stop all clients in the cluster. To do this, on each client:

   a. Shut down all running Containers and virtual machines.

   b. Unmount the cluster file system using the ``umount`` command. For example, if the cluster is mounted to the ``/vstorage/stor1`` directory on a client, you can unmount it as follows:

      ::

           # umount /vstorage/stor1

   c. Disable the automatic mounting of the cluster by removing the cluster entry from the ``/etc/fstab`` file.

2. Stop the ``shaman`` service and disable its automatic start:

   ::

       # systemctl stop shaman.service
       # systemctl disable shaman.service

3. Stop all MDS servers and disable their automatic start:

   ::

       # systemctl stop vstorage-mdsd.target
       # systemctl disable vstorage-mdsd.target

4. Stop all chunk servers and disable their automatic start:

   ::

       # systemctl stop vstorage-csd.target
       # systemctl disable vstorage-csd.target
