Installing and Configuring the Storage Nodes

[Note]Note

OpenStack Object Storage should work on any modern filesystem that supports Extended Attributes (XATTRS). We currently recommend XFS as it demonstrated the best overall performance for the swift use case after considerable testing and benchmarking at Rackspace. It is also the only filesystem that has been thoroughly tested.

  1. Install Storage node packages:

    # yum install openstack-swift-account openstack-swift-container openstack-swift-object xfsprogs
  2. For every device on the node you wish to use for storage, setup the XFS volume (/dev/sdb is used as an example). Use a single partition per drive. For example, in a server with 12 disks you may use one or two disks for the operating system which should not be touched in this step. The other 10 or 11 disks should be partitioned with a single partition, then formatted in XFS.

    # fdisk /dev/sdb

    mkfs.xfs -i size=1024 /dev/sdb1
    echo "/dev/sdb1 /srv/node/sdb1 xfs noatime,nodiratime,nobarrier,logbufs=8 0 0" >> /etc/fstab
    mkdir -p /srv/node/sdb1
    mount /srv/node/sdb1
    chown -R swift:swift /srv/node

  3. Create /etc/rsyncd.conf:

    uid = swift
    gid = swift
    log file = /var/log/rsyncd.log
    pid file = /var/run/rsyncd.pid
    address = <STORAGE_LOCAL_NET_IP>
    
    [account]
    max connections = 2
    path = /srv/node/
    read only = false
    lock file = /var/lock/account.lock
    
    [container]
    max connections = 2
    path = /srv/node/
    read only = false
    lock file = /var/lock/container.lock
    
    [object]
    max connections = 2
    path = /srv/node/
    read only = false
    lock file = /var/lock/object.lock         

  4. Edit the following line in /etc/default/rsync:

    RSYNC_ENABLE = true
  5. Start rsync daemon:

    # service rsync start
    [Note]Note

    The rsync daemon requires no authentication, so it should be run on a local, private network.

  6. Create the swift recon cache directory and set its permissions.

    # mkdir -p /var/swift/recon
    # chown -R swift:swift /var/swift/recon


loading table of contents...