Skip to content

Commit

Permalink
Create and configure /var/cache/swift in SAIO
Browse files Browse the repository at this point in the history
Fixes bug #1024477

Change-Id: Id09bbff6bb4a5d032727d3ca53b3276b4769d178
  • Loading branch information
Florian Hines committed Jul 23, 2012
1 parent 6d4ba01 commit 0da1b4f
Showing 1 changed file with 65 additions and 12 deletions.
77 changes: 65 additions & 12 deletions doc/source/development_saio.rst
Expand Up @@ -73,6 +73,8 @@ another device when creating the VM, and follow these instructions.
#. `chown -R <your-user-name>:<your-group-name> /etc/swift /srv/[1-4]/ /var/run/swift` -- **Make sure to include the trailing slash after /srv/[1-4]/**
#. Add to `/etc/rc.local` (before the `exit 0`)::

mkdir /var/cache/swift /var/cache/swift2 /var/cache/swift3 /var/cache/swift4
chown <your-user-name>:<your-group-name> /var/cache/swift*
mkdir /var/run/swift
chown <your-user-name>:<your-group-name> /var/run/swift
#. Next, skip to :ref:`rsync-section`.
Expand Down Expand Up @@ -100,6 +102,8 @@ If you want to use a loopback device instead of another partition, follow these
#. `chown -R <your-user-name>:<your-group-name> /etc/swift /srv/[1-4]/ /var/run/swift` -- **Make sure to include the trailing slash after /srv/[1-4]/**
#. Add to `/etc/rc.local` (before the `exit 0`)::

mkdir /var/cache/swift /var/cache/swift2 /var/cache/swift3 /var/cache/swift4
chown <your-user-name>:<your-group-name> /var/cache/swift*
mkdir /var/run/swift
chown <your-user-name>:<your-group-name> /var/run/swift

Expand Down Expand Up @@ -329,13 +333,17 @@ Sample configuration files are provided with all defaults in line-by-line commen
bind_port = 6012
user = <your-user-name>
log_facility = LOG_LOCAL2
recon_cache_path = /var/cache/swift

[pipeline:main]
pipeline = account-server
pipeline = recon account-server

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

[filter:recon]
use = egg:swift#recon

[account-replicator]
vm_test_mode = yes

Expand All @@ -351,13 +359,17 @@ Sample configuration files are provided with all defaults in line-by-line commen
bind_port = 6022
user = <your-user-name>
log_facility = LOG_LOCAL3
recon_cache_path = /var/cache/swift2

[pipeline:main]
pipeline = account-server
pipeline = recon account-server

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

[filter:recon]
use = egg:swift#recon

[account-replicator]
vm_test_mode = yes

Expand All @@ -373,13 +385,17 @@ Sample configuration files are provided with all defaults in line-by-line commen
bind_port = 6032
user = <your-user-name>
log_facility = LOG_LOCAL4
recon_cache_path = /var/cache/swift3

[pipeline:main]
pipeline = account-server
pipeline = recon account-server

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

[filter:recon]
use = egg:swift#recon

[account-replicator]
vm_test_mode = yes

Expand All @@ -395,13 +411,17 @@ Sample configuration files are provided with all defaults in line-by-line commen
bind_port = 6042
user = <your-user-name>
log_facility = LOG_LOCAL5
recon_cache_path = /var/cache/swift4

[pipeline:main]
pipeline = account-server
pipeline = recon account-server

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

[filter:recon]
use = egg:swift#recon

[account-replicator]
vm_test_mode = yes

Expand All @@ -417,13 +437,17 @@ Sample configuration files are provided with all defaults in line-by-line commen
bind_port = 6011
user = <your-user-name>
log_facility = LOG_LOCAL2
recon_cache_path = /var/cache/swift

[pipeline:main]
pipeline = container-server
pipeline = recon container-server

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

[filter:recon]
use = egg:swift#recon

[container-replicator]
vm_test_mode = yes

Expand All @@ -441,13 +465,17 @@ Sample configuration files are provided with all defaults in line-by-line commen
bind_port = 6021
user = <your-user-name>
log_facility = LOG_LOCAL3
recon_cache_path = /var/cache/swift2

[pipeline:main]
pipeline = container-server
pipeline = recon container-server

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

[filter:recon]
use = egg:swift#recon

[container-replicator]
vm_test_mode = yes

Expand All @@ -465,13 +493,17 @@ Sample configuration files are provided with all defaults in line-by-line commen
bind_port = 6031
user = <your-user-name>
log_facility = LOG_LOCAL4
recon_cache_path = /var/cache/swift3

[pipeline:main]
pipeline = container-server
pipeline = recon container-server

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

[filter:recon]
use = egg:swift#recon

[container-replicator]
vm_test_mode = yes

Expand All @@ -489,13 +521,17 @@ Sample configuration files are provided with all defaults in line-by-line commen
bind_port = 6041
user = <your-user-name>
log_facility = LOG_LOCAL5
recon_cache_path = /var/cache/swift4

[pipeline:main]
pipeline = container-server
pipeline = recon container-server

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

[filter:recon]
use = egg:swift#recon

[container-replicator]
vm_test_mode = yes

Expand All @@ -514,13 +550,17 @@ Sample configuration files are provided with all defaults in line-by-line commen
bind_port = 6010
user = <your-user-name>
log_facility = LOG_LOCAL2
recon_cache_path = /var/cache/swift

[pipeline:main]
pipeline = object-server
pipeline = recon object-server

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

[filter:recon]
use = egg:swift#recon

[object-replicator]
vm_test_mode = yes

Expand All @@ -536,13 +576,17 @@ Sample configuration files are provided with all defaults in line-by-line commen
bind_port = 6020
user = <your-user-name>
log_facility = LOG_LOCAL3
recon_cache_path = /var/cache/swift2

[pipeline:main]
pipeline = object-server
pipeline = recon object-server

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

[filter:recon]
use = egg:swift#recon

[object-replicator]
vm_test_mode = yes

Expand All @@ -558,13 +602,17 @@ Sample configuration files are provided with all defaults in line-by-line commen
bind_port = 6030
user = <your-user-name>
log_facility = LOG_LOCAL4
recon_cache_path = /var/cache/swift3

[pipeline:main]
pipeline = object-server
pipeline = recon object-server

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

[filter:recon]
use = egg:swift#recon

[object-replicator]
vm_test_mode = yes

Expand All @@ -580,13 +628,17 @@ Sample configuration files are provided with all defaults in line-by-line commen
bind_port = 6040
user = <your-user-name>
log_facility = LOG_LOCAL5
recon_cache_path = /var/cache/swift4

[pipeline:main]
pipeline = object-server
pipeline = recon object-server

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

[filter:recon]
use = egg:swift#recon

[object-replicator]
vm_test_mode = yes

Expand Down Expand Up @@ -615,6 +667,7 @@ Setting up scripts for running Swift
sudo chown <your-user-name>:<your-group-name> /mnt/sdb1/*
mkdir -p /srv/1/node/sdb1 /srv/2/node/sdb2 /srv/3/node/sdb3 /srv/4/node/sdb4
sudo rm -f /var/log/debug /var/log/messages /var/log/rsyncd.log /var/log/syslog
find /var/cache/swift* -type f -name *.recon -exec -rm -f {} \;
sudo service rsyslog restart
sudo service memcached restart

Expand Down

0 comments on commit 0da1b4f

Please sign in to comment.