我一直在尝试 ZFS + DRBD + 实时迁移(我想充分理解它,以便在再次开始使用之前编写自己的自动化脚本ganeti
,然后是 openstack cinder
)。我的 ZFS + DRBD(双主模式)适用于共享存储。
然而,实时迁移只发挥了部分作用。
我有两台主机,具有相同的 libvirt 和 drbd 配置,甚至具有相同的 VM ZVOL 专用“卷”池(均为 2x1TB 镜像池 - 重新使用旧备份池中的一些旧磁盘),以及相同的 VM 配置(名为“d测试”)
“indra”是配备 16GB RAM 的 AMD FX-8150,搭载 ASUS Sabertooth 990FX m/b
fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc extd_apicid aperfmperf eagerfpu pni pclmulqdq monitor …
我同步我的新磁盘,输出drbdtop
:
Resource: myres: (Overall danger score: 14)
Local Disc(Primary):
volume 0 (/dev/drbd0): UpToDate(normal disk state)
volume 1 (/dev/drbd1): UpToDate(normal disk state)
volume 2 (/dev/drbd2): Inconsistent(data is not accessible or usable until resync is complete)
Connection to zfs.user.osdc2(Secondary): Connected(connected to zfs.user.osdc2)
volume 0:
UpToDate(normal disk state)
volume 1:
UpToDate(normal disk state)
volume 2:
Replication:SyncTarget(local volume is being synchronized with data from zfs.user.osdc2) 95.6% remaining UpToDate(normal disk state)
Run Code Online (Sandbox Code Playgroud)
但是cat /proc/drbd
关于我的资源没有输出。仅有的:
version: 9.0.9-1 (api:2/proto:86-112)
GIT-hash: f7b979e7af01813e031aac579140237640c94569 build by mockbuild@, …
Run Code Online (Sandbox Code Playgroud)