Aoe

From Skytech
Revision as of 09:38, 12 August 2012 by Martin (talk | contribs)
Jump to navigation Jump to search


Serversetup with AOE

install vblade-persist

Install vblade-persist if not already.

If you want to expose a complete LVM first do the usual stuff with (assuming /dev/md1 will be the exposed storage):

pvcreate /dev/md1
vgcreate storage /dev/md1

Setup vblade-persist

Then setup the appropriate shelf and slots on the netdevice you want with the storage backend you want:

/usr/sbin/vblade-persist setup 0 1 br0 /dev/md1

Then make sure it automatically starts on boot:

/usr/sbin/vblade-persist auto all

Lastly start it now (or reboot)

/usr/sbin/vblade-persist start all

You can always check status with

/usr/sbin/vblade-persist ls

#shelf slot netif source auto? stat
0 1 br0 /dev/md1 auto run

Client setup with AOE

Install tools

Install aoetools

apt-get install aoetools

Run aoe-stat and it should find the exposed storage*

aoe-stat 
e0.1      4000.526GB    br0 up            
e1.1      1500.300GB    br0 up            
e2.0       920.198GB    br0 up            

* - keep in mind aoe is not TCP - so it has to be on the same network as all the servers using it. All servers on that network can then see the exported data.

Now you should be able to run lvscan, vgs etc on all clients on this network and see all lvm-data.

If you want to automagically start various volumes, you could change

/etc/default/aoetools

INTERFACES="br0"
LVMGROUPS="storage nas mirrordata"

for instance