环境架构
![MIS (3)](https://i0.wp.com/imgs.run/i/2023/11/29/656717cc3ec0a.png?w=640&ssl=1)
管理网络ip地址划分(192.168.0.X/24)
所在物理机 | 服务 | ip地址 | 网卡模式 |
---|---|---|---|
PC01 | vsphere | 192.168.0.140/24 | 桥接 |
PC01 | esxi01 | 192.168.0.141/24 | 桥接 |
PC01 | esxi02 | 192.168.0.142/24 | 桥接 |
PC02 | esxi03 | 192.168.0.143/24 | 桥接 |
![MIS (1)](https://i0.wp.com/imgs.run/i/2023/11/29/656717ce23ac4.png?w=640&ssl=1)
虚拟机网络ip地址划分(192.168.1.X/24)
存储网络ip地址划分(192.168.2.X/24)
(存储网络架构图同管理网络,省略)
所在物理机 | 服务 | ip地址 | 网卡模式 |
---|---|---|---|
PC01 | vsphere | 192.168.2.140/24 | 桥接 |
PC01 | esxi01 | 192.168.2.141/24 | 桥接 |
PC01 | esxi02 | 192.168.2.142/24 | 桥接 |
PC02 | esxi03 | 192.168.2.143/24 | 桥接 |
热迁网络ip地址划分(192.168.3.X/24)
(热迁网络架构图同管理网络,省略)
所在物理机 | 服务 | ip地址 | 网卡模式 |
---|---|---|---|
PC01 | vsphere | 192.168.3.140/24 | 桥接 |
PC01 | esxi01 | 192.168.3.141/24 | 桥接 |
PC01 | esxi02 | 192.168.3.142/24 | 桥接 |
PC02 | esxi03 | 192.168.3.143/24 | 桥接 |
1.部署iscsi服务器
安装前添加一张网卡,并配置到iSCSI网段
![image-20231123181706084](https://i0.wp.com/imgs.run/i/2023/11/29/656714caa0bfb.png?w=640&ssl=1)
1.1.安装StarWind iSCSI
![image-20231123170912865](https://i0.wp.com/imgs.run/i/2023/11/29/656714bcb5aeb.png?w=640&ssl=1)
![image-20231123171545351](https://i0.wp.com/imgs.run/i/2023/11/29/656714bf8d4ee.png?w=640&ssl=1)
![image-20231123171557329](https://i0.wp.com/imgs.run/i/2023/11/29/656714d514d42.png?w=640&ssl=1)
![image-20231123171626518](https://i0.wp.com/imgs.run/i/2023/11/29/656714c2991e0.png?w=640&ssl=1)
![image-20231123171640266](https://i0.wp.com/imgs.run/i/2023/11/29/656714e0d143b.png?w=640&ssl=1)
选择key文件
![image-20231123171722869](https://i0.wp.com/imgs.run/i/2023/11/29/656714e5114a6.png?w=640&ssl=1)
![image-20231123171745045](https://i0.wp.com/imgs.run/i/2023/11/29/656714e8edda6.png?w=640&ssl=1)
![image-20231123171826016](https://i0.wp.com/imgs.run/i/2023/11/29/656714ec8c593.png?w=640&ssl=1)
1.2.创建iSCSI目标
![image-20231123172924447](https://i0.wp.com/imgs.run/i/2023/11/29/656714f215219.png?w=640&ssl=1)
设置iSCSI目标名称
![image-20231123173020657](https://i0.wp.com/imgs.run/i/2023/11/29/656714fa7d005.png?w=640&ssl=1)
![image-20231123173111226](https://i0.wp.com/imgs.run/i/2023/11/29/6567150659efd.png?w=640&ssl=1)
1.3.创建iSCSI设备
![image-20231123173152339](https://i0.wp.com/imgs.run/i/2023/11/29/6567150958565.png?w=640&ssl=1)
设备类型选择虚拟磁盘
![image-20231123173529016](https://i0.wp.com/imgs.run/i/2023/11/29/6567150f53339.png?w=640&ssl=1)
设置虚拟磁盘的设备类型为磁盘文件(映像文件)存储
![image-20231123173734782](https://i0.wp.com/imgs.run/i/2023/11/29/656715120da52.png?w=640&ssl=1)
选择"创建一个新文件"存储
![image-20231123173718108](https://i0.wp.com/imgs.run/i/2023/11/29/65671510b0076.png?w=640&ssl=1)
![image-20231123175432815](https://i0.wp.com/imgs.run/i/2023/11/29/6567151255a1c.png?w=640&ssl=1)
![image-20231123180439130](https://i0.wp.com/imgs.run/i/2023/11/29/65671512b8848.png?w=640&ssl=1)
![image-20231123180510974](https://i0.wp.com/imgs.run/i/2023/11/29/65671511c20d4.png?w=640&ssl=1)
![image-20231123180535432](https://i0.wp.com/imgs.run/i/2023/11/29/6567158a8760b.png?w=640&ssl=1)
![image-20231123180544711](https://i0.wp.com/imgs.run/i/2023/11/29/65671591d44ac.png?w=640&ssl=1)
![image-20231123180606294](https://i0.wp.com/imgs.run/i/2023/11/29/6567159201bb2.png?w=640&ssl=1)
2. 配置用于iSCSI存储的虚拟网络
已配置了一张在iSCSI网段的网卡,故省略
![image-20231123181757957](https://i0.wp.com/imgs.run/i/2023/11/29/656714caa0bfb.png?w=640&ssl=1)
3.为ESXi主机配置iSCSI适配器
3.1.激活软件iSCSI适配器
![image-20231123182502376](https://i0.wp.com/imgs.run/i/2023/11/29/656715a4eeaaf.png?w=640&ssl=1)
![image-20231123182530642](https://i0.wp.com/imgs.run/i/2023/11/29/656715a03d647.png?w=640&ssl=1)
3.2.设置iSCSI网络
![image-20231123183456636](https://i0.wp.com/imgs.run/i/2023/11/29/656715a8d0960.png?w=640&ssl=1)
绑定到之前我们设置的网卡中
![image-20231123183511247](https://i0.wp.com/imgs.run/i/2023/11/29/656715a44d6fe.png?w=640&ssl=1)
其他ESXi主机同理
3.3.设置iSCSI的动态或静态发现
![image-20231123183823388](https://i0.wp.com/imgs.run/i/2023/11/29/656715aaadf60.png?w=640&ssl=1)
将iSCSI服务器ip填写(注意要同一网段)
![656715a76e64d.png](https://i0.wp.com/imgs.run/i/2023/11/29/656715a76e64d.png?w=640&ssl=1)
更新后会在"静态发现"页面中显示
![image-20231123184041636](https://i0.wp.com/imgs.run/i/2023/11/29/656715af998a9.png?w=640&ssl=1)
4. 为ESXi主机添加iSCSI存储
vsph 6.7 好像不能远程设置数据存储,我选择在esxi主机控制面板上创建
![image-20231123192957685](https://i0.wp.com/imgs.run/i/2023/11/29/6567167f74196.png?w=640&ssl=1)
![image-20231123193020512](https://i0.wp.com/imgs.run/i/2023/11/29/65671680b7763.png?w=640&ssl=1)
![image-20231123193031357](https://i0.wp.com/imgs.run/i/2023/11/29/65671682e52c5.png?w=640&ssl=1)
![](https://i0.wp.com/imgs.run/i/2023/11/29/65671686666df.png?w=640&ssl=1)
创建完成后刷新,即可在所有连接iSCSI服务器的esxi主机上显示该数据存储池
![image-20231123193325358](https://i0.wp.com/imgs.run/i/2023/11/29/656716892154c.png?w=640&ssl=1)
PS:同理再创建一个iSCSIstore_1(这里我命名成了iSCSIstore_3,后续也以这个名称示例),留到后续实验会用到
![image-20231128180532838](https://i0.wp.com/imgs.run/i/2023/11/29/6567169250f01.png?w=640&ssl=1)
Comments NOTHING