XENSERVER异构资源池

 1 、条件

CPU类型:在一个资源池中,必须为同厂商的CPU 类型(Intel CPU或者AMD CPU)

操作系统:同一版本的XenServer ,补丁包相同。

时间:两个XenServer系统时间要相同,建议使用NTP服务器

许可证:加入资源池之前,需要有测试版或者正式版许可证服务器

其他条件:加入池的这台XenServer,本身无虚拟机以及没挂载任何存储。(除了本地存储)

注:不能在一个池内混用 Intel 和 AMD 的 CPU。另外需要 CPU 能够支持 Intel FlexMigration  或 AMD EnhanceMigration    功能。这个功能是提供 VM 虚机 CPU Feature Mask 的功能,可以屏蔽一些 CPU 的特性指令集。

2、环境

硬件环境
Host 型号 CPU
 XS1 LENOVO WQ R680 G7 Intel(R) Xeon(R) CPU E7- 4850
XS2 LENOVO WQ R680 G7 Intel(R) Xeon(R) CPU E7- 4850
XS3 HP  ProLiant DL580 Intel(R) Xeon(R) CPU E7- 4820

 

软件环境
系统 版本
Citrix XenServer 6.0.201

(1)、查看CPU类型        使用命令:xe host-cpu-info查看三台XS的型号

[root@Server1 ~]# xe host-cpu-info
cpu_count                : 20
                   vendor: GenuineIntel
                    speed: 1995.040
                modelname: Intel(R) Xeon(R) CPU E7- 4850  @ 2.00GHz
                   family: 6
                    model: 47
                 stepping: 2
                    flags: fpu de tsc msr pae mce cx8 apic sep mtrr mca cmov pat clflush acpi mmx fxsr sse sse2 ss ht constant_tsc nonstop_tsc aperfmperf pni vmx est ssse3 sse4_1 sse4_2 x2apic popcnt hypervisor ida arat tpr_shadow vnmi flexpriority ept vpid
                 features: 00bee3fd-bfebfbff-00000001-2c000800
    features_after_reboot: 00bee3fd-bfebfbff-00000001-2c000800
        physical_features: 00bee3fd-bfebfbff-00000001-2c000800
                 maskable: full


[root@Server2 ~]# xe host-cpu-info
cpu_count                : 20
                   vendor: GenuineIntel
                    speed: 1995.082
                modelname: Intel(R) Xeon(R) CPU E7- 4850  @ 2.00GHz
                   family: 6
                    model: 47
                 stepping: 2
                    flags: fpu de tsc msr pae mce cx8 apic sep mtrr mca cmov pat clflush acpi mmx fxsr sse sse2 ss ht constant_tsc nonstop_tsc aperfmperf pni vmx est ssse3 sse4_1 sse4_2 x2apic popcnt hypervisor ida arat tpr_shadow vnmi flexpriority ept vpid
                 features: 00bee3fd-bfebfbff-00000001-2c000800
    features_after_reboot: 00bee3fd-bfebfbff-00000001-2c000800
        physical_features: 00bee3fd-bfebfbff-00000001-2c000800
                 maskable: full

 

[root@Server3 ~]# xe host-cpu-info
cpu_count                : 16
                   vendor: GenuineIntel
                    speed: 1997.904
                modelname: Intel(R) Xeon(R) CPU E7- 4820  @ 2.00GHz
                   family: 6
                    model: 47
                 stepping: 2
                    flags: fpu de tsc msr pae mce cx8 apic sep mtrr mca cmov pat clflush acpi mmx fxsr sse sse2 ss ht nx constant_tsc nonstop_tsc aperfmperf pni pclmulqdq vmx est ssse3 sse4_1 sse4_2 x2apic popcnt aes hypervisor ida arat tpr_shadow vnmi flexpriority ept vpid
                 features: 02bee3ff-bfebfbff-00000001-2c100800
    features_after_reboot: 02bee3ff-bfebfbff-00000001-2c100800
        physical_features: 02bee3ff-bfebfbff-00000001-2c100800
                 maskable: full

(2)、从①中获取CPU的features值

Server1   features:00bee3fd-bfebfbff-00000001-2c000800
Server2   features:00bee3fd-bfebfbff-00000001-2c000800
Server3   features:02bee3ff-bfebfbff-00000001-2c100800


参数说明:features                                 当前 CPU 使用的 feature  
                    features_after_reboot            修改后重启使用的 feature  
                    physical_features                   CPU 物理上支持的 feature
                    maskable:Full                     表示该 CPU 硬件支持修改 FeatureMask

通过两台不同的CPU的features值,两者“相与”,可以计算出COMMON MASK

我们可以通过一个简单的方法,不用手动去算。从官网下载compare-cpu的文件。是一个二进制文件,下载好通过SSH 或者FTP传到XenServer上。我放在root目录下面

地址:http://www.citrix.com/static/ready/downloads/XenServer_6.0.x_Server_Hardware_Self-Test_Kit.zip

a、把①获取的的cpu信息,在XenServer分别保存成两个文件E4820.txt和E4850.txt

b、修改compare-cpu用户权限     方法:进入compare-cpu所在的目录,赋权:chmod -R 777  compare-cpu

在compare-cpu所在的目录下输入:./compare-cpu E4850.txt   E4820.txt  -v

得出common mask为:00BEE3FD-BFEBFBFF-00000001-2C000800

在三台XenServer上执行一下命令:

 xe   host-set-cpu-features   features=00BEE3FD-BFEBFBFF-00000001-2C000800  UUID=HOST_UUID   后面可以UUID也可以不跟。

最后需要重启三台XenServer,然后加入资源池即可!

重启后Server3(HP  ProLiant DL580)查看features值如图

 CTX127059

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章