Issue link: https://read.uberflip.com/i/1334488
Administering OpenStack Storage 124 Getting ready Log in to a swift node that has a disk ready to be formatted for use with OpenStack Storage. How to do it... Carry out the following steps to prepare a hard drive for use within an OpenStack Storage node: 1. For this, we will assume our new drive is ready for use, has been set up with an appropriate partition, and is ready for formatting. Take for example the partition /dev/sdb1. To format it for use, using XFS, we run the following command: sudo mkfs.xfs -i size=1024 /dev/sdb1 2. This produces a summary screen of the new drive and partition, as follows: 3. Once formatted, we set the mount options in our /etc/fstab file, as follows: /dev/sdb1 /srv/node/sdb1 xfs noatime,nodiratime,nobarrier,logbu fs=8 0 0 4. If the directory mount point doesn't exist, create it, and then mount the filesystem as follows: mkdir -p /srv/node/sdb1 mount /srv/node/sdb1 How it works... While it is recommended you do thorough testing of OpenStack Storage for your own environments, it is generally recommended that you use the XFS filesystem. OpenStack Storage requires a filesystem that supports extended attributes (xattr) and it has been shown that XFS offers good all-round performance in all areas. In order to accommodate the metadata used by OpenStack Storage, we increase the inode size to 1024. This is set at the time of the format with the -i size=1024 parameter. www.it-ebooks.info

