• 环境

    • 两台HP DL165,服务器名:DL165-1和DL165-2,安装了CentOS5.8 + xen3.4.4,均成为xen节点;

    • 一台NAS服务器,SuperMicro 846,服务器名:SM846E900,安装了solaris 11+ZFS;

    利用solaris的comstar创建iSCSI target,在xen节点通过iSCSI client来访问iSCSI target。

  • 检查xen节点的xend-config配置

    node1
    $ sudo cat /etc/xen/xend-config.sxp
    ...
    (xend-relocation-server yes)
    (xend-relocation-port 8002)
    (xend-relocation-address '')
    (xend-relocation-hosts-allow '')
    ...
    node2
    $ sudo cat /etc/xen/xend-config.sxp
    ...
    (xend-relocation-server yes)
    (xend-relocation-port 8002)
    (xend-relocation-address '')
    (xend-relocation-hosts-allow '')
    ...
  • live migrate前的xm list

    node1
    $ sudo xm list
    Name                                        ID   Mem VCPUs      State   Time(s)
    CNOS-0058-32-iSCSI                           2  2048     2     -b----     29.0
    Domain-0                                     0   512     8     r-----   1786.5
    node2
    $ sudo xm list
    Name                                        ID   Mem VCPUs      State   Time(s)
    Domain-0                                     0   512     8     r-----   1815.7
  • live migrating

    在node1中

    $ sudo migrate --live <domU-id/domU-name> <node2-ip/node2-name>
  • live migrating中的xm list

    node1
    $ sudo xm list
    Name                                        ID   Mem VCPUs      State   Time(s)
    Domain-0                                     0   512     8     r-----   1801.4
    migrating-CNOS-0058-32-iSCSI                 2  2048     2     -b----     29.1
    node2
    $ sudo xm list
    Name                                        ID   Mem VCPUs      State   Time(s)
    CNOS-0058-32-iSCSI                           1  2048     2     -b----      0.1
    Domain-0                                     0   512     8     r-----   1787.9
  • 观察live migrating中的丢包情况

    在迁移的过程中ping CNOS-0058-32-iSCSI

    ...
    64 bytes from 192.168.33.71: icmp_seq=101 ttl=64 time=14.7 ms
    64 bytes from 192.168.33.71: icmp_seq=102 ttl=64 time=8.62 ms
    64 bytes from 192.168.33.71: icmp_seq=103 ttl=64 time=2.77 ms
    64 bytes from 192.168.33.71: icmp_seq=104 ttl=64 time=26.6 ms
    64 bytes from 192.168.33.71: icmp_seq=105 ttl=64 time=26.5 ms
    64 bytes from 192.168.33.71: icmp_seq=106 ttl=64 time=26.3 ms
    64 bytes from 192.168.33.71: icmp_seq=147 ttl=64 time=4.55 ms
    64 bytes from 192.168.33.71: icmp_seq=148 ttl=64 time=0.299 ms
    64 bytes from 192.168.33.71: icmp_seq=149 ttl=64 time=0.298 ms
    64 bytes from 192.168.33.71: icmp_seq=150 ttl=64 time=0.296 ms
    ...

    中间有41丢包,跟xen的宣传还是有很大出入。有可能是node1和node2与solaris11的连接之间有问题,目前还是用MTU=1500进行的连接,交换机设成MTU9000,但是linux只能设为1500才能连接solaris11