vSphere8超融合部署综合实验
介绍
2022.08.30 VMware 宣布正式发布 VMware vSphere 8
vSAN8.0 ESA要求25Gbps网络、VM认证的服务器和最低4块固态,ESA无需缓存盘.
https://blogs.vmware.com/china/2022/09/23/vmware-vsan-esa-osa-%e5%8c%ba%e5%88%ab%e4%b8%8e%e9%80%89%e6%8b%a9/
vSAN策略
https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vsan.doc/GUID-08911FD3-2462-4C1C-AE81-0D4DBC8F7990.html
实验规划
1、在vSphere7虚拟化平台上,以vSphere8为基础,部署4台全闪超融合。
2、IP分配
vcenter地址 172.16.10.220
esxi1 172.16.10.221
esxi2 172.16.10.222
esxi3 172.16.10.223
esxi4 172.16.10.224
3、ESXi配置为 16C 64G 400G系统盘 1T闪存盘x3
4、因环境限制,仅配置单网卡
5、因环境限制,无法部署vSAN ESA,仍然使用传统OSA模式,即每个磁盘组1块缓存盘
6、因模拟环境限制,vCenter安装在外部主机上
一、安装ESXi8
配置虚拟机
![](https://blog.ossq.cn/wp-content/uploads/2023/11/1-4.png)
安装ESXi8
![](https://blog.ossq.cn/wp-content/uploads/2023/11/2-4.png)
配置IP地址并登录测试
![](https://blog.ossq.cn/wp-content/uploads/2023/11/3-4.png)
安装其他3台ESXi主机
![](https://blog.ossq.cn/wp-content/uploads/2023/11/4-4.png)
二、安装vCenter8
通过windows发起安装vCenter
配置vSAN时不需要先将ESXi接入vCenter
三、配置vSAN集群
按vSAN向导配置
![](https://blog.ossq.cn/wp-content/uploads/2023/11/5-4.png)
![](https://blog.ossq.cn/wp-content/uploads/2023/11/6-4.png)
创建分布式交换机
![](https://blog.ossq.cn/wp-content/uploads/2023/11/7-4.png)
配置存储流量IP
![](https://blog.ossq.cn/wp-content/uploads/2023/11/8-4.png)
![](https://blog.ossq.cn/wp-content/uploads/2023/11/9-5.png)
声明磁盘,将每个主机的第一块硬盘标记为缓存层,后两块标记为容量层。
此时就遇到了vSphere全闪最大的问题,不滿足硬件的情况下,全闪也要标记缓存层
![](https://blog.ossq.cn/wp-content/uploads/2023/11/10-4.png)
![](https://blog.ossq.cn/wp-content/uploads/2023/11/11-4.png)
因环境限制,将vSAN与管理都放置在同一网卡上运行
![](https://blog.ossq.cn/wp-content/uploads/2023/11/12-4.png)
此时vSAN自动配置完成
![](https://blog.ossq.cn/wp-content/uploads/2023/11/13-3.png)
四、消除vSAN告警
查看vSAN当前告警
![](https://blog.ossq.cn/wp-content/uploads/2023/11/14-3.png)
SCSI控制器告警,无影响可消除
![](https://blog.ossq.cn/wp-content/uploads/2023/11/15-3.png)
因环境限制,配置到DSwitch-vSAN的网卡无法通讯,屏蔽此告警
![](https://blog.ossq.cn/wp-content/uploads/2023/11/16-3.png)
![](https://blog.ossq.cn/wp-content/uploads/2023/11/17-3.png)
五、开启DRS和HA
集群-配置-服务
![](https://blog.ossq.cn/wp-content/uploads/2023/11/18-2.png)
启动DRS
![](https://blog.ossq.cn/wp-content/uploads/2023/11/19-2.png)
启动HA
![](https://blog.ossq.cn/wp-content/uploads/2023/11/20-2.png)
六、调整vSAN存储策略
默认为vSAN Default Storage Policy策略,默认策略详情可查看官网https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vsan.doc/GUID-C228168F-6807-4C2A-9D74-E584CAF49A2A.html
![](https://blog.ossq.cn/wp-content/uploads/2023/11/21-2.png)
七、安装一台虚拟机
上传镜像文件,注意vSAN仅能存储VMDK文件,镜像需放置在本地磁盘
![](https://blog.ossq.cn/wp-content/uploads/2023/11/22-2.png)
安装Centos7系统
因环境限制,无法联网,无法安装vmtools
![](https://blog.ossq.cn/wp-content/uploads/2023/11/23-1.png)
八、在线迁移测试
需为VMkernel适配器配置vMotion
![](https://blog.ossq.cn/wp-content/uploads/2023/11/24-1.png)
从222不停机迁移到224
![](https://blog.ossq.cn/wp-content/uploads/2023/11/25-1.png)
迁移完成
![](https://blog.ossq.cn/wp-content/uploads/2023/11/26-1.png)
九、HA vSAN测试
ESXi4直接关机,测试Centos7是否自动拉起
![](https://blog.ossq.cn/wp-content/uploads/2023/11/27-1.png)
虚拟机自动在221重启
![](https://blog.ossq.cn/wp-content/uploads/2023/11/28-1.png)
vSAN进入故障状态,数据无丢失
![](https://blog.ossq.cn/wp-content/uploads/2023/11/29-1.png)
![](https://blog.ossq.cn/wp-content/uploads/2023/11/30-1.png)
此时vSAN会根据策略进行空间收缩,在存活主机上重建数据,vSAN容量从8T收缩为6T
![](https://blog.ossq.cn/wp-content/uploads/2023/11/31-1.png)
![](https://blog.ossq.cn/wp-content/uploads/2023/11/32.png)
十、剥离故障主机
假设此主机无法修复,进行剔除
![](https://blog.ossq.cn/wp-content/uploads/2023/11/33-1.png)
剔除后故障消除
![](https://blog.ossq.cn/wp-content/uploads/2023/11/34-1.png)
十一、增加新主机
为vSAN集群新增一台主机,横向扩展
![](https://blog.ossq.cn/wp-content/uploads/2023/11/35-1.png)
![](https://blog.ossq.cn/wp-content/uploads/2023/11/36-1.png)
![](https://blog.ossq.cn/wp-content/uploads/2023/11/37-1.png)
将主机加入DSwitch分布式交换机
![](https://blog.ossq.cn/wp-content/uploads/2023/11/38-1.png)
容量增加到8T
![](https://blog.ossq.cn/wp-content/uploads/2023/11/39-1.png)
十一、硬盘更换
因环境限制无法直接模拟
十二、硬盘新增(存在BUG,请勿使用)
目标:移除一块硬盘,插入另一块硬盘,增加容量层空间
缓存层无法直接更换
![](https://blog.ossq.cn/wp-content/uploads/2023/11/40-1.png)
容量层可以移除
![](https://blog.ossq.cn/wp-content/uploads/2023/11/41-1.png)
仅更换磁盘选择,视情况而定,若硬盘已经完全损坏,迁移磁盘可以能造成多次重试失败、主机卡顿
![](https://blog.ossq.cn/wp-content/uploads/2023/11/42-1.png)
移除完成
![](https://blog.ossq.cn/wp-content/uploads/2023/11/43-1.png)
vSAN容量下降为7T
![](https://blog.ossq.cn/wp-content/uploads/2023/11/44-1.png)
分离设备
![](https://blog.ossq.cn/wp-content/uploads/2023/11/45-1.png)
插入新硬盘后,标记磁盘为HDD
![](https://blog.ossq.cn/wp-content/uploads/2023/11/46-1.png)
与vSphere7不同,此处无法直接将硬盘添加至vSAN组
![](https://blog.ossq.cn/wp-content/uploads/2023/11/47-1.png)
临时处理措施,可以按新增服务器的方式操作。
十三、小结
整体与vSphere7变化不大,使用方式无异常,全闪模式对硬件有要求。