Create a container server configuration file for node #1: /etc/swift/container-server/1.conf and add the following lines to the file
[DEFAULT] devices = /srv/1/node mount_check = false bind_port = 6011 user = swift log_facility = LOG_LOCAL2 [pipeline:main] pipeline = container-server [app:container-server] use = egg:swift#container [container-replicator] vm_test_mode = yes [container-updater] [container-auditor] [container-sync]
We need to create the configuration for the rest of the three virtual nodes (/srv/2/node, /srv/3/node, /srv/4/node ) as well. So we simply make three more copies of 1.conf and set unique bind ports for the rest of the nodes (6021, 6031 and 6041) and different local log values (LOG_LOCAL3, LOG_LOCAL4, LOG_LOCAL5).
sudo cp /etc/swift/container-server/1.conf /etc/swift/container-server/2.conf sudo cp /etc/swift/container-server/1.conf /etc/swift/container-server/3.conf sudo cp /etc/swift/container-server/1.conf /etc/swift/container-server/4.conf
Now we need to edit the files 2.conf, etc. created by the above command and edit the bind port number and local log values.
