Issue link: https://read.uberflip.com/i/1334488
Chapter 4 85 How to do it... To configure our OpenStack Storage host, carry out the following steps: 1. We first create a new partition on our extra disk. This extra disk is seen as /dev/sdb, under our Linux installation. sudo fdisk /dev/sdb 2. Go through fdisk and ensure a single partition has been created. 3. To get Linux to see this new partition without rebooting, run partprobe to reread the disk layout. sudo partprobe 4. Once completed, we can create our filesystem. For this, we will use the XFS filesystem, as follows: sudo mkfs.xfs -i size=1024 /dev/sdb1 5. We can now create the required mount point and set up fstab to allow us to mount this new area, as follows: sudo mkdir /mnt/sdb1 6. Then, edit /etc/fstab to add in the following contents: /dev/sdb1 /mnt/sdb1 xfs noatime,nodiratime,nobarrier,logbufs=8 0 0 7. We can now mount this area, as follows: sudo mount /dev/sdb1 8. Once done, we can create the required file structure, as follows: sudo mkdir /mnt/sdb1/{1..4} sudo chown swift:swift /mnt/sdb1/* sudo ln -s /mnt/sdb1/{1..4} /srv sudo mkdir -p /etc/swift/{object-server,container- server,account-server} for S in {1..4}; do sudo mkdir -p /srv/${S}/node/sdb${S}; done sudo mkdir -p /var/run/swift sudo chown -R swift:swift /etc/swift /srv/{1..4}/ 9. To ensure OpenStack Storage can always start on boot, add the following commands to /etc/rc.local, before the line exit 0: mkdir -p /var/run/swift chown swift:swift /var/run/swift www.it-ebooks.info

