Issue link: https://read.uberflip.com/i/1334488
Installing OpenStack Storage 86 How it works... We first created a new partition on our extra disk and formatted this with the XFS filesystem. XFS is very good at handling large objects and has the necessary extended attributes (xattr) required for the objects in this filesystem. Once created, we mounted this area, and then began to create the directory structure. The commands to create the directories and required symbolic links included a lot of bash shorthand, such as {1..4}. This shorthand essentially prints out 1 2 3 4 when expanded, but repeats the preceding attached text when it does so. Take for example the following piece of code: mkdir /mnt/sdb1/{1..4} It is the equivalent of: mkdir /mnt/sdb1/1 /mnt/sdb1/2 /mnt/sdb1/3 /mnt/sdb1/4 The effect of that short piece of code is the following directory structure: /etc/swift /object-server /container-server /account-server /mnt/sdb1 /1 -> /srv/1 /2 -> /srv/2 /3 -> /srv/3 /4 -> /srv/4 /srv/1/node/sdb1 /srv/2/node/sdb2 /srv/3/node/sdb3 /srv/4/node/sdb4 /var/run/swift What we have done is set up a filesystem that will see data replicated into the different device directories to mimic the actions and features OpenStack Storage requires. In production, these device directories would actually be physical servers and physical devices on the servers and won't necessarily have this directory structure. Configuring replication As required by a highly redundant and scalable object storage system, replication is a key requirement. The reason we went to great lengths to create multiple directories—named in a particular way so as to mimic actual devices—is that we want to set up replication between these "devices" using rsync. www.it-ebooks.info

