Ask Your Question

problem with install swift

asked 2013-08-03 21:37:25 -0500

baran gravatar image

updated 2013-08-04 05:23:55 -0500

Jobin gravatar image


there are three question: A, B, C

please answer me:

For install swift on vm:

First: Installing dependencies:

apt-get update

apt-get install curl gcc memcached rsync sqlite3 xfsprogs git-core python-setuptools

apt-get install python-coverage python-dev python-nose python-simplejson python-xattr python-eventlet python-greenlet python-pastedeploy python-netifaces python-pip python-dnspython python-mock

Next, choose either Using a partition for storage or Using a loopback device for storage: 1.Using a partition for storage: If you are going to use a separate partition for Swift data, be sure to add another device when creating the VM, and follow these instructions. 2.Using a loopback device for storage: If you want to use a loopback device instead of another partition, follow these instructions.

A) Which is better?????????????1 or 2????????????????? 1.mkdir /srv 2.truncate -s 1GB /srv/swift-disk (modify size to make a larger or smaller partition) 3.mkfs.xfs /srv/swift-disk 4.Edit /etc/fstab and add /srv/swift-disk /mnt/sdb1 xfs loop,noatime,nodiratime,nobarrier,logbufs=8 0 0

B) How log and edit and add and store and exit????????????? Vi /etc/fstab????????????????????????? 1.mkdir /mnt/sdb1 2.mount /mnt/sdb1

error: mount can't find in /etc/fstab or /etc/mtab 1.mkdir /mnt/sdb1/1 /mnt/sdb1/2 /mnt/sdb1/3 /mnt/sdb1/4 2.chown <your-user-name>:<your-group-name> /mnt/sdb1/*

C) what are your-user-name and your-group-name??????????????????????????????


edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2013-08-04 21:24:38 -0500

clayg gravatar image
  1. I've always prefer to use partitions, but I don't think there's any technical reasons. Adding a drive in virtualbox just seems like less work that setting up a loopback. When I'm on a cloud server with only one device - it's the typically the opposite, I prefer to setup a loopback. If you're not sure if you have a extra device or how to add one - use the loopback method.

  2. If you've never used vi before, oh you're in for a treat -> (I'm a 15 year newb!) ... for a more "traditional" notepad like experience, some people get by with nano -> ... if you're not familiar with fstab start here ->

  3. <your-user-name> and <your-group-name> are place holders in the docs; they should never be used literally. They are representative of the logged in user's name and group. On my system it's clayg; on production systems it might be swift; if you're running as the superuser it'll be root.

Good Luck!

edit flag offensive delete link more

answered 2013-08-06 07:39:39 -0500

baran gravatar image

thank you my friend.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-08-03 21:37:25 -0500

Seen: 338 times

Last updated: Aug 06 '13