1. Summary for more information about Ubuntu, see Ubuntu topics page http://www.linuxidc.com/topicnews.aspx? Tid = 2 all operations involved in this article are verified on the effectuserver11.1064-bit system. This article references InstructionsforaMultipleServerSwiftInstalla of Openstackswift.
1. Summary
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2
All operations involved in this article are verified on the 64-bit Ubuntu Server 11.10 system. This article references Openstackswift's Instructions for a Multiple Server SwiftInstallation (Ubuntu) documentation. The details are as follows:
- Linux: Ubuntu Server 11.10 64-bit oneiric
- Proxy Server IP: 192.168.112.129
- Storage Server One: 192.168.112.130
- Storage Server Two: 192.168.112.131
- Storage Server Three: 192.168.112.132
- Official documentation: www.openstack.org
- Reference: http://swift.openstack.org/howto_installmultinode.html
- Swift version: 1.4.8
- Swauth version: 1.0.4
2. Install dependency packages for each machine
- Sudo apt-get -- option Dpkg: Options: = -- force-confold -- assume-yes update
- Sudo apt-get install pep8 pylint python-pip screen unzip wget psmisc git-core lsof openssh-server vim-nox locate python-virtualenv python-unittest2 iputils-ping wget curl tcpdump euca2ools python-setuptools python -dev python-lxml python-pastescript python-pastedeploy python-paste sqlite3 python-pysqlite2 python-sqlalchemy python-mysqldb python-webob python-greenlet python-routes libldap2-dev libsasl2-dev python-bcrypt curl gcc python- configobj python-coverage python-dev python-eventlet python-greenlet python-netifaces python-nose python-pastedeploy python-setuptools python-simplejson python-webob python-xattr sqlite3 xfsprogs
3. Create swift users for each machine
Sudo useradd-mk/home/swift/-s/bin/bash swift
Sudo passwd swift # Add a password for a swift user. Here I set it to swift
Edit the/etc/sudoer file and add the following code at the end of the file:
Swift ALL = (ALL) NOPASSWD: ALL
4. Download the source code (for swift Users)
1. Download swauth and swift source code from the Proxy Machine
- Su swift # Switch to swift user
- Sudo mkdir/home/swift/openstack # create a directory to store
- Cd/home/swift/openstack
- Git clone https://github.com/openstack/swift.git # download swift
- Cd swift
- Git checkout 1.4.8 # Use version 1.4.8. You can
- # Use the git tag command to view the number of versions
- Git clone https://github.com/gholt/swauth.git # download swauth
- Cd swauth
- Git checkout 1.0.4
2. Download swift from the machine on each Storage Node
- Su swift # Switch to swift user
- Sudo mkdir/home/swift/openstack # create a directory to store
- Cd/home/swift/openstack
- Git clone https://github.com/openstack/swift.git # download swift
- Cd swift
- Git checkout 1.4.8 # Use version 1.4.8. In the swift directory, you can run the git tag command to check the number of versions.