Shutting Down and Starting Up Cluster Nodes
To shut down a Storage cluster completely, do the following:
Stop and disable the following services:
shaman,pdrs,vstorage-iscsi, andva-agent(in case Virtuozzo Automator is installed):1 2# systemctl stop shaman pdrs vstorage-iscsid va-agent # systemctl disable shaman pdrs vstorage-iscsid va-agentCheck what containers and virtual machines are running in the cluster with the
prlctl listcommand and shut them down usingprlctl stop. For example:1 2 3 4 5 6# prlctl list UUID STATUS IP_ADDR T NAME {8330ff27-5e84-4d13-a69c-63f3f8a3c516} running - VM MyVM # prlctl stop MyVM Stopping the VM... The VM has been successfully stopped.Stop and disable the
prl-dispandvzservices:1 2# systemctl stop prl-disp vz # systemctl disable prl-disp vzIf you use Storage GUI, also stop and disable the
vstorage-ui-agentservice:1 2# systemctl stop vstorage-ui-agent # systemctl disable vstorage-ui-agentStop all clients in the cluster. To do this, on each client:
Make sure no storage files are opened using the
lsofutility. For example, for thestor1cluster, run1# lsof +D /vstorage/stor1Unmount the cluster file system using the
umountcommand. For example, if the cluster is mounted to the/vstorage/stor1directory on a client, you can unmount it as follows:1# umount /vstorage/stor1Disable the automatic mounting of the cluster by removing the cluster entry from the
/etc/fstabfile.
Stop and disable all CS and MDS servers:
1 2# systemctl stop vstorage-csd.target vstorage-mdsd.target # systemctl disable vstorage-csd.target vstorage-mdsd.targetShut down cluster servers.
To start up a Storage cluster again, do the following:
Power on cluster servers.
Start and enable all MDS and chunk servers:
1 2# systemctl start vstorage-mdsd.target vstorage-csd.target # systemctl enable vstorage-mdsd.target vstorage-csd.targetEnable the automatic mounting of the cluster by adding the cluster entry to the
/etc/fstabfile and mount the cluster file system using themountcommand.If you use Storage GUI, also start and enable the
vstorage-ui-agentservice:1 2# systemctl start vstorage-ui-agent # systemctl enable vstorage-ui-agentStart and enable the following services:
prl-disp,vz,shaman,pdrs,vstorage-iscsid, andva-agent(in case Virtuozzo Automator is installed):1 2# systemctl start prl-disp vz shaman pdrs vstorage-iscsid va-agent # systemctl enable prl-disp vz shaman pdrs vstorage-iscsid va-agentStart containers and virtual machines with the
prlctl startcommand. For example:1 2 3# prlctl start MyVM Starting the VM... The VM has been successfully started.