AoE on CentOS
here are my notes on installing an AoE server (vblade) on a CentOS 5.3 host:
su -c 'rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-3.noarch.rpm
then install yum-priorities, set priority=22 or so in /etc/yum.repos.d/epel.repo
(move this to 3.3 not needed)
wget http://superb-west.dl.sourceforge.net/sourceforge/aoetools/aoetools-30.tar.gz
yum install vblade tar -zxvf aoetools-30.tar.gz cd aoetools
yum install gcc make all install
(no idea why CentOS has vblade but no aoetools? maybe a
vblade in epel doesn't have udev stuff
http://superb-west.dl.sourceforge.net/sourceforge/aoetools/vblade-19.tgz
in /etc/udev/rules.d/60-aoe.rules
SUBSYSTEM=="aoe", KERNEL=="discover", NAME="etherd/%k", GROUP="disk", MODE="0220" SUBSYSTEM=="aoe", KERNEL=="err", NAME="etherd/%k", GROUP="disk", MODE="0440" SUBSYSTEM=="aoe", KERNEL=="interfaces", NAME="etherd/%k", GROUP="disk", MODE="0220" SUBSYSTEM=="aoe", KERNEL=="revalidate", NAME="etherd/%k", GROUP="disk", MODE="0220" # aoe block devices KERNEL=="etherd*", NAME="%k", GROUP="disk"
note how the equality tests are == and the assignments are = ? note that the kernel documentation is wrong for redhat in this regard.
[root@curly xen]# virt-install What is the name of your virtual machine? teste How much RAM should be allocated (in megabytes)? 1024 What would you like to use as the disk (file path)? /dev/etherd/e0.0 Would you like to enable graphics support? (yes or no) no What is the install location? http://mirrors.kernel.org/centos/5.3/os/x86_64/
then edit /etc/xen/xend-config.sxp
(xend-relocation-server yes) (xend-relocation-address '999.999.999.999') (xend-relocation-hosts-allow )
on the destination host (xend must be restarted. Also be aware of security aspects of this)