From 9de5e9292704fe2634e2b14698c0df0f14065ee0 Mon Sep 17 00:00:00 2001 From: Chuck Thier Date: Thu, 30 Sep 2010 12:41:49 -0500 Subject: [PATCH] Updated loopback instructions per redbo --- doc/source/development_saio.rst | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/doc/source/development_saio.rst b/doc/source/development_saio.rst index b5d23ab63e..d850c76514 100644 --- a/doc/source/development_saio.rst +++ b/doc/source/development_saio.rst @@ -37,12 +37,11 @@ virtual machine will emulate running a four node Swift cluster. #. If you would like to use a loopback device instead of another partition: - #. `dd if=/dev/zero of=/swift-disk bs=1024 count=1000000` (modify count to - make a larger or smaller partition) - #. `losetup /dev/loop0 /swift-disk` - #. `mkfs.xfs -i size=1024 /dev/loop0` + #. `dd if=/dev/zero of=/srv/swift-disk bs=1024 count=0 seek=1000000` + (modify seek to make a larger or smaller partition) + #. `mkfs.xfs -i size=1024 /srv/swift-disk` #. Edit `/etc/fstab` and add - `/dev/loop0 /mnt/sdb1 xfs noatime,nodiratime,nobarrier,logbufs=8 0 0` + `/srv/swift-disk /mnt/sdb1 xfs loop,noatime,nodiratime,nobarrier,logbufs=8 0 0` #. `mkdir /mnt/sdb1` #. `mount /mnt/sdb1` @@ -55,7 +54,7 @@ virtual machine will emulate running a four node Swift cluster. #. Add to `/etc/rc.local` (before the `exit 0`):: mkdir /var/run/swift - chown : /var/run/swift + chown : /var/run/swift #. Create /etc/rsyncd.conf::