8f5d4d2455
This patch adds all the relevant EC documentation to the source tree. Notable additions are: - Updated SAIO documentation - Updates to existing swift documentation; and - Erasure Coding overview Co-Authored-By: Alistair Coles <alistair.coles@hp.com> Co-Authored-By: Thiago da Silva <thiago@redhat.com> Co-Authored-By: John Dickinson <me@not.mn> Co-Authored-By: Clay Gerrard <clay.gerrard@gmail.com> Co-Authored-By: Tushar Gohad <tushar.gohad@intel.com> Co-Authored-By: Samuel Merritt <sam@swiftstack.com> Co-Authored-By: Christian Schwede <christian.schwede@enovance.com> Co-Authored-By: Yuan Zhou <yuan.zhou@intel.com> Change-Id: I0403016a4bb7dad9535891632753b0e5e9d402eb Implements: blueprint swift-ec Signed-off-by: Thiago da Silva <thiago@redhat.com>
21 lines
863 B
Bash
Executable File
21 lines
863 B
Bash
Executable File
#!/bin/bash
|
|
|
|
swift-init all stop
|
|
# Remove the following line if you did not set up rsyslog for individual logging:
|
|
sudo find /var/log/swift -type f -exec rm -f {} \;
|
|
sudo umount /mnt/sdb1
|
|
# If you are using a loopback device set SAIO_BLOCK_DEVICE to "/srv/swift-disk"
|
|
sudo mkfs.xfs -f ${SAIO_BLOCK_DEVICE:-/dev/sdb1}
|
|
sudo mount /mnt/sdb1
|
|
sudo mkdir /mnt/sdb1/1 /mnt/sdb1/2 /mnt/sdb1/3 /mnt/sdb1/4
|
|
sudo chown ${USER}:${USER} /mnt/sdb1/*
|
|
mkdir -p /srv/1/node/sdb1 /srv/1/node/sdb5 \
|
|
/srv/2/node/sdb2 /srv/2/node/sdb6 \
|
|
/srv/3/node/sdb3 /srv/3/node/sdb7 \
|
|
/srv/4/node/sdb4 /srv/4/node/sdb8
|
|
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 {} \;
|
|
# On Fedora use "systemctl restart <service>"
|
|
sudo service rsyslog restart
|
|
sudo service memcached restart
|