Unified File and Object Storage on GlusterFS 3.1 Howto

The following article is outdated. It remains here for historical purposes but is no longer valid.

This tutorial expects that you know how to install a working GlusterFS filesystem and add the swift components.[1]

  • Create a volume for storing the authentication data. This must be named “auth”.

    gluster volume create auth replica 2 server1:/data/auth server2:/data/auth

    gluster volume start auth

  • Create a volume for your storage. This will be referred to as an “account”.

    gluster volume create account1 replica 2 server1:/data/account1 server2:/data/account1

    gluster volume start account1

  • Run gluster-object-config

    # /usr/bin/gluster-object-config
    Enter external IP for Storage-Server: 192.168.0.10
    Enter Super Admin key: P-assword-1
    Enter FileSystem (Press Enter for default Glusterfs):
    Enter FileSystem (Press Enter for default Glusterfs):
    Enter Object server port (Press Enter for default 6010):
    Enter Container server port (Press Enter for default 6011):
    Enter Account server port (Press Enter for default 6012):
    Enter ‘1’ for https ‘2’ for ‘http’ (Recommended is https):1

  • Start the object service

    # gluster-object-start

  • Prepare the authentication store

    # gluster-object-prep -A https://192.168.0.10/auth/ -K P-assword-1

  • Add an administrative user to the account

    # gluster-object-add-user –admin -A https://192.168.0.10/auth/ -K P-assword-1 account1 adminuser1 adminpass1

To test, use “st” from the openstack-swift package:

# st -A https://192.168.0.10/auth/v1.0 -U account1:adminuser1 -K adminpass1 stat
Account: AUTH_bc4de365fd9e8a6a262d99056f5bd47f
Containers: 0
Objects: 0
Bytes: 0

That’s all there was to it.


[1] If you don’t, come see us on IRC – #gluster on freenode.

auth

Advertisements

~ by edwyseguru on August 25, 2011.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: