• Buy Now
    • Rackspace Cloud
    • Email & Apps
    • Fanatical Support for AWS
    • Managed Google Cloud Platform
    • Office 365
  • Log In
    • MyRackspace Portal
    • Cloud Control Panel
    • Rackspace Webmail Login
    • Cloud Office Control Panel
  • Rackspace Logo
  • Developer Home
  • Developer Documentation
  • Blogs ▼
    • Technical Blog
    • Rackspace Blog
    • Solve: Thought Leadership
  • Support Documentation

Developer Docs


Let’s Build Something Powerful Together!

End-to-End Multicloud Solutions.   Solving Together.™   Learn more at Rackspace.com

Submit an issue
  • Rackspace Private Cloud, v12
  • Technical FAQ
    • Preface
      • About Rackspace Private Cloud Powered By Openstack
      • RPCO configuration
      • Rackspace Private Cloud support
    • FAQ
      • Operating system and architecture
      • Networking
      • Database architecture
      • Clustered queue management
      • Failover and high availability
      • Load balancing
      • Log aggregation and management
    • Document history and additional information
      • Additional resources
    • Disclaimer
  • Release Notes
    • Preface
      • About Rackspace Private Cloud Powered By Openstack
      • RPCO configuration
      • Rackspace Private Cloud support
    • What's new
      • What's new in RPCO r12.2
        • Load-Balancer-as-a-Service (LBaaS)
        • Security hardening
      • What's new in RPCO r12.1
        • Upgrades
      • What's new in RPCO r12.0 Liberty
        • Object Storage service (swift)
        • Networking service (neutron)
        • Compute service (nova)
        • Identity service (keystone)
        • Block Storage service (cinder)
        • Dashboard (horizon)
        • Image Service (glance)
        • Other changes
          • Virtual environments
          • RabbitMQ virtual hosts
          • Ceph metrics
      • Changes per release
    • Known issues
    • Document history and additional information
      • Additional resources
    • Disclaimer
  • Stand-alone Object Storage for RPCO Guide
    • Preface
      • About Rackspace Private Cloud Powered By Openstack
      • RPCO configuration
      • Rackspace Private Cloud support
    • Object Storage overview
      • Components
      • Configuration
      • System requirements
    • Install Object Storage
      • Example Object Storage installation architecture
      • Prerequisites
      • Configure and mount storage devices
      • Create networks
      • Configure an Object Storage deployment
        • Update the stand-alone Object Storage configuration files
        • Allow Identity users to use Object Storage
      • Run the Object Storage playbooks
      • Verify the installation
    • Object Storage monitoring
      • Service and response
      • Object Storage monitors
    • Object Storage configuration files
    • Document history and additional information
      • Additional resources
    • Disclaimer

Configure and mount storage devices#

The first step in the process of installing Object Storage for RPCO is configuring and mounting the storage devices. Object Storage for RPCO requires a minimum of three object storage devices with mounted storage drives.

The example commands in this procedure assume that the storage devices are labeled sdc through sdg.

  1. Determine the storage devices on the node to use for Object Storage.

  2. Format each of these devices with XFS. While formatting the devices, add a unique label for each device.

    Note

    Without labels, a failed drive can cause mount points to shift and data to become inaccessible.

    For example, create the file systems on the devices by using the mkfs command:

    $ apt-get install xfsprogs
    
    $ mkfs.xfs -f -i size=1024 -L sdc /dev/sdc
    $ mkfs.xfs -f -i size=1024 -L sdd /dev/sdd
    $ mkfs.xfs -f -i size=1024 -L sde /dev/sde
    $ mkfs.xfs -f -i size=1024 -L sdf /dev/sdf
    $ mkfs.xfs -f -i size=1024 -L sdg /dev/sdg
    
  3. Add the mount locations to the /etc/fstab file so that the storage devices are remounted on boot. The following example mount options are recommended when using XFS.

    Note

    Finish all modifications to the /etc/fstab file before mounting the new file systems created within the storage devices.

    LABEL=sdc /srv/node/sdc xfs noatime,nodiratime,nobarrier,logbufs=8,nobootwait 0 0
    LABEL=sdd /srv/node/sdd xfs noatime,nodiratime,nobarrier,logbufs=8,nobootwait 0 0
    LABEL=sde /srv/node/sde xfs noatime,nodiratime,nobarrier,logbufs=8,nobootwait 0 0
    LABEL=sdf /srv/node/sdf xfs noatime,nodiratime,nobarrier,logbufs=8,nobootwait 0 0
    LABEL=sdg /srv/node/sdg xfs noatime,nodiratime,nobarrier,logbufs=8,nobootwait 0 0
    
  4. Create the mount points for the devices by using the mkdir command:

    $ mkdir -p /srv/node/sdc
    $ mkdir -p /srv/node/sdd
    $ mkdir -p /srv/node/sde
    $ mkdir -p /srv/node/sdf
    $ mkdir -p /srv/node/sdg
    

    The mount point is referenced as the mount_point parameter in the swift.yml file (/etc/openstack_deploy/conf.d/swift.yml).

  5. Mount the storage devices by using the mount command:

    $ mount /srv/node/sdc
    $ mount /srv/node/sdd
    $ mount /srv/node/sde
    $ mount /srv/node/sdf
    $ mount /srv/node/sdg
    

To view an annotated example of the swift.yml file, see Object Storage configuration files.

For the devices mounted in the preceding steps, the mount locations would be as follows:

Device Mount location
/dev/sdc /srv/node/sdc
/dev/sdd /srv/node/sdd
/dev/sde /srv/node/sde
/dev/sdf /srv/node/sdf
/dev/sdg /srv/node/sdg

The entry in the swift.yml for the mounted devices would be as follows:

#    drives:
#        - name: sdc
#        - name: sdd
#        - name: sde
#        - name: sdf
#        - name: sdg
#    mount_point: /srv/node
Previous Prerequisites
Next Create networks
Developer Network
  • Developer Center
  • API Documentation and User Guides
  • SDKs
  • Rackspace How-To
Blogs
  • Technical Blog
  • Rackspace Blog
  • Solve: Thought Leadership
Other Information
  • Customer Stories
  • Events
  • Programs
  • Careers
  • Style Guide for Technical Content
©2020 Rackspace US, Inc.
  • ©2020 Rackspace US, Inc.
  • About Rackspace
  • Privacy Statement
  • Website Terms
  • Trademarks