Create an object server configuration file for node #1: /etc/swift/object-server/1.conf and add the following lines to the file

[DEFAULT]
devices = /srv/1/node
mount_check = false
bind_port = 6010
user = swift
log_facility = LOG_LOCAL2

[pipeline:main]
pipeline = object-server

[app:object-server]
use = egg:swift#object

[object-replicator]
vm_test_mode = yes

[object-updater]

[object-auditor]

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 (6020, 6030 and 6040) and different local log values (LOG_LOCAL3, LOG_LOCAL4, LOG_LOCAL5).

sudo cp /etc/swift/object-server/1.conf /etc/swift/object-server/2.conf
sudo cp /etc/swift/object-server/1.conf /etc/swift/object-server/3.conf
sudo cp /etc/swift/object-server/1.conf /etc/swift/object-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.



loading table of contents...