圖解XenServer的SR,VDI,VBD之間的關係

今天在xenserver5.6下給一Ubuntu VM添加virtual disk時提示不能添加,如下圖

查了下文檔原來是因爲每個VM都有disk數量的限制

The current version of the XenServer product family has the following general limitations on virtual devices

for VMs. Note that specific guest operating systems may have lower limits for certain features. These

limitations are noted in the individual guest installation section.

*A maximum of 8 VCPUs are supported by XenCenter.

*except for SLES 10 SP1 and RHEL 4.x, which support 3. RHEL 5.0/5.1/5.2 support 3, but can support 7 when the kernel is patched with the Citrix Tools for Virtual Machines. The same applies for Oracle andCentOS 5.0/5.1/5.2

google了下,發現雖然不能通過xencenter添加,但是xenserver也支持CLI命令行的方式來管理。在使用xe命令添加vdisk時,首先需要理解xenserver下的SR,VDI,VBD這三個概念。如下圖

存儲庫 (SR)

虛擬磁盤映像 (VDI)

物理塊設備 (PBD)

虛擬塊設備 (VBD)

下面就以圖形來說明這些術語之間的關係。

1、SR

定義了一個名爲存儲庫 (SR) 的容器來描述存儲虛擬磁盤映像 (VDI) 的特定存儲目標。SR 具有對本地連接的 IDE、SATA、SCSI 和 SAS驅動器和遠程連接的 iSCSI、NFS、SAS 和光纖通道的內置支持,因而非常靈活。

利用xe命令看到如下信息,部分顯示內容被省略

[root@xs-10 ~]# xe sr-list

[root@xs-10 ~]# xe sr-list name-label=xenserver
uuid ( RO)                : 0554628e-448d-fbdf-4544-04cc4f390529
         name-label ( RW): xenserver
   name-description ( RW): iSCSI SR [172.20.10.107 (iqn.2007-10.uit.com:techtest.xenserver)]
               host ( RO): xs-10.8
               type ( RO): lvmoiscsi
       content-type ( RO):

uuid ( RO)                : c2b41896-467e-b936-6836-754eb22d36de

         name-label ( RW): vmware vsphere

   name-description ( RW): CIFS ISO Library [\\172.20.1.249\software\ISO\vmware vsphere]

               host ( RO): xs-10.8

               type ( RO): iso

       content-type ( RO): iso

uuid ( RO)                : 4188b1ee-76bc-10ed-dc15-6c7a236ce9aa

         name-label ( RW): Ubuntu

   name-description ( RW): CIFS ISO Library [\\172.20.1.249\software\ISO\linux\Ubuntu]

               host ( RO): xs-10.8

               type ( RO): iso

       content-type ( RO): iso

結合圖形,不難理解,所謂的SR就是一個存儲倉庫,裏面存儲了很多的ISO文件,你可以利用這些ISO文件來存儲東西,如vmware vsphere、ubuntu這兩個SR。又或者當做存儲虛擬機文件的倉庫,例如xenserver這個SR。下面接着看SR下一層的對象,叫做VDI.


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