From 68355d7ea5e4e752a8493c42a5ca04adec98e621 Mon Sep 17 00:00:00 2001 From: tong li Date: Mon, 18 Mar 2013 13:57:19 -0400 Subject: [PATCH] Instruction for multi node setup misses /var/run/swift creation Multiple Server Swift Installation (Ubuntu) instruction does not indicate that the directory /var/run/swift needs to be created. That directory actually needs to be created and the ownship needs to be changed to the user/group which swift service runs under. This patch will fix the document and gives the steps how to create the directory and set the ownership right. It also gives instruction on how the script can be added so that swift services can be resarted after system reboots. Change-Id: Id61aa67cc0d6f66d749701e6ea824b1ff3b2c478 Fixes: bug #1156631 --- doc/source/howto_installmultinode.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/source/howto_installmultinode.rst b/doc/source/howto_installmultinode.rst index 71e2d3547c..a231f7b18a 100644 --- a/doc/source/howto_installmultinode.rst +++ b/doc/source/howto_installmultinode.rst @@ -86,6 +86,15 @@ General OS configuration and partitioning for each node export STORAGE_LOCAL_NET_IP=10.1.2.3 export PROXY_LOCAL_NET_IP=10.1.2.4 +#. Create directory /var/run/swift and change the ownership to the user and group + which Swift services will run under. Since the directory is only needed for runtime, + when system shuts down, the directory will be gone. It is necessary to have + the directory recreated when system is restarted. To do that, also add the + following lines into /etc/rc.local before line "exit 0". + + mkdir -p /var/run/swift + chown swift:swift /var/run/swift + .. note:: The random string of text in /etc/swift/swift.conf is used as a salt when hashing to determine mappings in the ring.