First Chapter
GitBook allows you to organize your book into chapters, each chapter is stored in a separate file like this one.
按照之前老的配置,我们都是一个raw image作为base image,然后创建qcow2作为写层。pv作为kvm的storage pool。
一: Base Image
[root@idc02-dockerzone-10112314 images]# file centos6-base
centos6-base: x86 boot sector; GRand Unified Bootloader, stage1 version 0x3, stage2 address 0x2000, stage2 segment 0x200, GRUB version 0.94; partition 1: ID=0x83, starthead 1, startsector 63, 41929587 sectors, code offset 0x48
[root@idc02-dockerzone-10112314 images]# qemu-img info centos6-base
image: centos6-base
file format: raw
virtual size: 20G (21474836480 bytes)
disk size: 20G
centos6-base作为raw格式作为一个base image。
二:Copy On Write
[root@idc02-dockerzone-10112314 os]# file 10_1_123_158
10_1_123_158: QEMU QCOW Image (v3), has backing file (path /var/lib/libvirt//images/centos6-base), 21474836480 bytes
[root@idc02-dockerzone-10112314 os]# qemu-img info 10_1_123_158
image: 10_1_123_158
file format: qcow2
virtual size: 20G (21474836480 bytes)
disk size: 1.1G
cluster_size: 65536
backing file: /var/lib/libvirt//images/centos6-base
Format specific information:
compat: 1.1
lazy refcounts: false
三:Storage Pool
[root@idc02-dockerzone-10112314 os]# virsh pool-list --all
Name State Autostart
-------------------------------------------
ceph-kvm-pool active yes
kvm active yes
[root@idc02-dockerzone-10112314 os]# virsh vol-list kvm
Name Path
------------------------------------------------------------------------------
10.1.123.158 /dev/kvmpool/10.1.123.158
1_1_1_1 /dev/kvmpool/1_1_1_1
上面存储的一个特定都是基于主机自身的存储模式,这种存储模式基本决定了我们没法充分利用各个物理机的就算资源。
四:Current Configuration
目前准备docker/KVM和ceph集群混合部署:
(1)一个机柜就是一个ceph集群,单机是ssd+sas
(2)一个机柜就是一个KVM/docker资源池
(3)双万兆网卡、双千兆网卡;万兆网卡配置bond4上联到同一个机柜的TOR交换机之上,使用非业务网段IP地址;双千兆网卡bond4上联到TOR交换机作为业务口