我精确地遵循了这些说明(我使用11.04和11.10从头开始使用AMI的相同结果)
(使用11.04)社区AMI:ami-e016ca89
https://help.ubuntu.com/11.04/serverguide/C/drbd.html
和
(使用11.10)社区AMI:ami-baba68d3
https://help.ubuntu.com/11.10/serverguide/C/drbd.html
启动过程时出现以下错误:
root@drbd01:~# sudo /etc/init.d/drbd start * Starting DRBD resources Can not load the drbd module.
创建了一个卷(在两个版本上)250gb卷,附加为/ dev / xvdm
这是我的配置文件:
global { usage-count no; } common { syncer { rate 100M; } } resource r0 { protocol C; startup { wfc-timeout 15; degr-wfc-timeout 60; } net { cram-hmac-alg sha1; shared-secret "secret"; } on drbd01 { device /dev/drbd0; disk xvdm; address -MY AWS PUBLIC ELASTIC IP WAS HERE-:7788; Meta-disk internal; } on drbd02 { device /dev/drbd0; disk /dev/xvdm; address -MY AWS PUBLIC ELASTIC IP WAS HERE-:7788; Meta-disk internal; } }
解决方法
在cyberx86的帮助下,我做了一个搜索并找到了这个,这是有效的.
$sudo apt-get install linux-image-extra-virtual $sudo depmod -a $sudo modprobe drbd
引用:http://www.mail-archive.com/ubuntu-cloud@lists.ubuntu.com/msg00588.html