虚拟化知识点杂记
硬盘
Windows/Linux系统会在日常操作中产生大量的4k级别操作
数据库,web服务器,邮件服务器,更加关注随机读写性能,多线程小文件IOPS是关键衡量指标
IOPS每秒执行多少次操作
为什么16MB和4k-64线程读取比写入快,但是4k读取比写入慢呢
SSD闪存类型:SlC最好,MLC第二,TLC辣鸡,QLC第三
1bit,2bit,3bit,4bit
寿命(TBW)总写入量
40TBW 就是写40t之前没问题,之后可能丢数据,有可能会锁死
SSD随便读
企业级寿命按PB算
0.62PBW~=620TB
MTBF,平均故障时间
SAS可扩展,SATA不可
SSD>SAS>SATA
电源
服务器电源:
ATX电源
- 台式机,工作站,低端服务器
- 功率: 125-1200W
- 引脚: 20/24PIN
SSI电源
- 服务器
-功率: 300-1200W
- 连接不用线,直接插
热插拔冗余技术:N+1冗余,一般来说,两个电源以上的电源就可以热插拔
冗余特性:
1+1
每个50-100 使用最多
2+1
每个33-100
双机高可用技术:
双机的意义:实现系统在发生错误时进行切换,保证客户端业务不中断\
![](https://zyxweb.cn/wp-content/uploads/2020/03/图片-4.png)
Active server 运行,检测
Backup server 随时准备接管主机运行的应用服务,硬件可以不一样,操作系统一般一样
Shared Disk 存储应用程序的共享数据,并保证数据的一致性,完整性
Private Net:主备机的通讯通道 ,(检测两边,确定是活得,如b检测不到a,b就会接管服务),最好理解的话 ,类似于负载均衡,但原理不同
Public net :客户机和服务器的通信通道
Rose HA s双机软件
win linux unix(solaris)
Red Het Cluster Suite
hed linux
MSCS
win
datawrae
win linux unix
负载均衡(Load Blance):把一个服务器的负载交给多个服务器分担
一个服务器满,一个带宽满
服务器满:多台服务器组成群组,通过网络设备相连,根据配置的策略将用户请求在服务器群组中分发,并对服务器可用性的维护
带宽满:贷款或就近型算法,多条线路负载均衡,选择最优的链路,提高访问速度
![](https://zyxweb.cn/wp-content/uploads/2020/03/图片-5.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/图片-6.png)
轮询:新的连接被一次轮询分发到各个实服务器上,1-1,2-2,3-1
适合相同的软硬件配置并且
![](https://zyxweb.cn/wp-content/uploads/2020/03/图片-8.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/图片-9.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/图片-10.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/图片-11.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/图片-12.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/图片-13.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/图片-14.png)
前端接受请求,后端处理数据
![](https://zyxweb.cn/wp-content/uploads/2020/03/图片-64.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-3.png)
24槽的lto6比1槽的lto7便宜,2.5t压缩6.25t 1速率60MB
RAID
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-4.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-5.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-6.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-7.png)
不同容量不同品牌的硬盘可以组RAID
但会有木桶原理,已最小容量算
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-8.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-9.png)
对于RAID最小文件是64K,RAID的小文件靠的是缓存
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-10.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-11.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-12.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-13.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-14.png)
RAID5 逻辑盘的容量等于所有物理盘容量的总和减去一块物理盘的容量。
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-15.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-16.png)
在坏掉一块盘的时候,所有硬盘都要读取校验码和数据,非常容易坏其他盘
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-17.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-18.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-19.png)
RAID0:N块盘组成,逻辑容量为N块盘容量之和;
RAID1:两块盘组成,逻辑容量为一块盘容量;
RAID3:N+1块盘组成,逻辑容量为N块盘容量之和;
RAID5:N块盘组成,逻辑容量为N-1块盘容量之和;
RAID6:N块盘组成,逻辑容量为N-2块盘容量之和;
RAID10:2N块盘组成,逻辑容量为N块盘容量之和;
RAID50:假每个RAID5由N块盘组成,共有M个RAID5组成该RAID50,则逻辑容量为(N-1)*M块盘容量之和。
待补充 热备盘
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-20.png)
jbod不是raid
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-21.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-22.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-23.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-24.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-25.png)
raid 5和raid6 raid扩容会重建数据
1和0 不会
![](https://zyxweb.cn/wp-content/uploads/2020/03/图片-78.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/图片-79.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/1.jpg)
![](https://zyxweb.cn/wp-content/uploads/2020/03/2.jpg)
![](https://zyxweb.cn/wp-content/uploads/2020/03/eccbc87e4b5ce2f.jpg)
![](https://zyxweb.cn/wp-content/uploads/2020/03/a87ff679a2f3e71.jpg)
![](https://zyxweb.cn/wp-content/uploads/2020/03/e4da3b7fbbce234.jpg)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-45.png)
性能层与容量层是边写边存
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-46.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-47.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-48.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-49.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-50.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-51.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-52.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-53.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-54.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-55.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-57.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-58.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/2a4c6cb38e39d6f.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-61.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-62.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-63.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-64.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-66.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-65.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-67.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-68.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-56.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-69.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-70.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-71.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-72.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-73.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-74.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-75.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-76.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-77.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-78.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-79.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-80.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-96.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-97.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-98.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-99.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-100.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-102.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-101.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-103.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-104.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-105.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-106.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-107.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-108.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-109.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-110.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-111.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-112.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-113.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-114.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-115.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-116.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-117.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-118.png)
Iscsi 安装
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-119.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-120.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-121.png)
回来指定就完成
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-122.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-123.png)
虚拟机分层存储演示
盘上不能有分区
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-124.png)
还有一个复杂的命令:
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-125.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-126.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-127-1024x218.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-128.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-129.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-130.png)
![](https://zyxweb.cn/wp-content/uploads/2020/03/image-131.png)
分层读取的时候是从机械盘里直接读还是先放到性能层然后在读,如果直接从机械盘读,是不是只提高了写入的速度,读取还是机械的速度呢
对于微软Storege spaces来说,写入到性能层后不会立马删除,存在时间不确定
对于AMD StoreMi 写的时候加速,读的时候不会
// 3.30
第一章 虚拟化基础
![](https://zyxweb.cn/wp-content/uploads/2020/04/image.png)
![](https://zyxweb.cn/wp-content/uploads/2020/04/image-1.png)
![](https://zyxweb.cn/wp-content/uploads/2020/04/image-2.png)
1.1 虚拟化的概念和应用
什么是虚拟化
![](https://zyxweb.cn/wp-content/uploads/2020/04/image-3.png)
虚拟化的优势
![](https://zyxweb.cn/wp-content/uploads/2020/04/image-4.png)
虚拟化的应用
![](https://zyxweb.cn/wp-content/uploads/2020/04/image-5.png)
数据中心的虚拟化
![](https://zyxweb.cn/wp-content/uploads/2020/04/image-6.png)
1.2 虚拟化的类型
按实现层次和实现技术
![](https://zyxweb.cn/wp-content/uploads/2020/04/image-7.png)
按虚拟化对象分类
![](https://zyxweb.cn/wp-content/uploads/2020/04/image-8.png)
1.3 虚拟化与虚拟机
主机与虚拟机
![](https://zyxweb.cn/wp-content/uploads/2020/04/image-9.png)
虚拟机监控器(虚拟层)
![](https://zyxweb.cn/wp-content/uploads/2020/04/image-10.png)
虚拟机文件
![](https://zyxweb.cn/wp-content/uploads/2020/04/image-11.png)
虚拟机的主要特性
![](https://zyxweb.cn/wp-content/uploads/2020/04/image-12.png)
虚拟机的应用
![](https://zyxweb.cn/wp-content/uploads/2020/04/image-13.png)
1.4 虚拟化与数据中心
传统数据中心
![](https://zyxweb.cn/wp-content/uploads/2020/04/image-14.png)
![](https://zyxweb.cn/wp-content/uploads/2020/04/image-15.png)
软件定义数据中心
![](https://zyxweb.cn/wp-content/uploads/2020/04/image-16.png)
虚拟数据中心
![](https://zyxweb.cn/wp-content/uploads/2020/04/image-17.png)
1.5 虚拟化与云计算
云计算的概念
![](https://zyxweb.cn/wp-content/uploads/2020/04/image-18.png)
云计算的架构
![](https://zyxweb.cn/wp-content/uploads/2020/04/image-19.png)
云计算部署模式
![](https://zyxweb.cn/wp-content/uploads/2020/04/image-38.png)
1.6 主流企业级虚拟化解决方案
![](https://zyxweb.cn/wp-content/uploads/2020/04/image-39.png)
VMware NSX=SDN
VMware vSAN=SDS vitual
Hyper-V
![](https://zyxweb.cn/wp-content/uploads/2020/04/image-40-1024x449.png)
Linux KVM
![](https://zyxweb.cn/wp-content/uploads/2020/04/image-41.png)
Citrix 虚拟化产品
![](https://zyxweb.cn/wp-content/uploads/2020/04/image-42.png)
1.7 VMware vSphere虚拟化架构
![](https://zyxweb.cn/wp-content/uploads/2020/04/image-43.png)
应用服务:
- vmotion : 将正在运行的虚拟机从一台物理服务器移动至另一台物理服务器,而不影响最终用户。
- storage vmotion: 在线迁移运行中的虚拟机
- vSphere HA :高可用,
- Fault Tolerance (FT): 类似于双机,需要比较高的网络需求,同步内存数据,很少用,但现只能用四核虚拟cpu
安全性:
- DataProtection数据保护,备份还原
- vShield Fndpoint ,集成到NSX
自动化:
- Drs/ Storage DRS: 负载均衡,平衡虚拟机
- Auto Deploy : 自动脚本
- I/O control :
管理服务:
第一个管理下面所有
第二个是监控管理平台
vmware vsphere 主要功能
![](https://zyxweb.cn/wp-content/uploads/2020/04/image-44.png)
VMware vSphere 高可用
![](https://zyxweb.cn/wp-content/uploads/2020/04/image-45.png)
VMware vSphere数据中心的组成
![](https://zyxweb.cn/wp-content/uploads/2020/04/image-47.png)
存储:san
ip:
管理 v center
VMware vSphere 虚拟化规划要点
![](https://zyxweb.cn/wp-content/uploads/2020/04/image-48.png)
VMware vSphere 部署流程
![](https://zyxweb.cn/wp-content/uploads/2020/04/image-49.png)
第二章 基于VMware Workstation部署实验环境
![](https://zyxweb.cn/wp-content/uploads/2020/04/image-50.png)
2.1 安装 VMware Workstation
![](https://zyxweb.cn/wp-content/uploads/2020/04/image-51.png)
![](https://zyxweb.cn/wp-content/uploads/2020/04/image-52.png)
2.3 VMware Workstation 虚拟网络组件
![](https://zyxweb.cn/wp-content/uploads/2020/04/image-53.png)
![](https://zyxweb.cn/wp-content/uploads/2020/04/image-54.png)
第三章 安装VMware ESXi
![](https://zyxweb.cn/wp-content/uploads/2020/04/图片-4.png)
![](https://zyxweb.cn/wp-content/uploads/2020/04/图片-5.png)
![](https://zyxweb.cn/wp-content/uploads/2020/04/图片-6.png)
![](https://zyxweb.cn/wp-content/uploads/2020/04/图片-7.png)
第四章 vCenter
v Center主要功能
![](https://zyxweb.cn/wp-content/uploads/2020/05/image-14-1024x398.png)
![](https://zyxweb.cn/wp-content/uploads/2020/05/image-15-1024x708.png)
![](https://zyxweb.cn/wp-content/uploads/2020/05/image-16-1024x314.png)
![](https://zyxweb.cn/wp-content/uploads/2020/05/image-17-1024x411.png)
![](https://zyxweb.cn/wp-content/uploads/2020/05/image-18-1024x431.png)
![](https://zyxweb.cn/wp-content/uploads/2020/05/image-19-1024x321.png)
![](https://zyxweb.cn/wp-content/uploads/2020/05/image-20-1024x358.png)
![](https://zyxweb.cn/wp-content/uploads/2020/05/image-21-1024x283.png)
![](https://zyxweb.cn/wp-content/uploads/2020/05/image-22-1024x291.png)
![](https://zyxweb.cn/wp-content/uploads/2020/05/image-23-1024x450.png)