Esxi + raid cachecade

操作前,卷必须卸载,操作前,卷必须卸载,操作前,卷必须卸载,否则这个卷上面正在跑的虚拟机会hang,并且产生锁文件,处理很麻烦

update 20241013:

cachecade vd要做成raid1 ,如果cacvd发生故障,没有及时同步到数据vd,vmfs中元数据将受损,虚拟机无法启动、无法删除。。。。

[root@test1:/vmfs/volumes] esxcli storage filesystem list
Mount Point                                        Volume Name                                 UUID                                 Mounted  Type             Size           Free
-------------------------------------------------  ------------------------------------------  -----------------------------------  -------  ------  -------------  -------------
/vmfs/volumes/661bc1a8-170447ef-5b31-ac1f6b3ce296  datastore3_sas2                             661bc1a8-170447ef-5b31-ac1f6b3ce296     true  VMFS-6  7999913459712  3113259892736
/vmfs/volumes/63164839-a3e1f330-98c0-089e019aa6b8  datastore1                                  63164839-a3e1f330-98c0-089e019aa6b8     true  VMFS-6   102542344192    68565336064
/vmfs/volumes/663830df-33db0de5-f147-ac1f6b3ce296  temp1                                       663830df-33db0de5-f147-ac1f6b3ce296     true  VMFS-6  2397933928448  2344846622720
/vmfs/volumes/63164839-7af2ecf9-8c8a-089e019aa6b8  OSDATA-63164839-7af2ecf9-8c8a-089e019aa6b8  63164839-7af2ecf9-8c8a-089e019aa6b8     true  VMFSOS   128580583424   118231138304
/vmfs/volumes/e39dadc6-f8464eb9-4483-3ec1ce9e1221  BOOTBANK1                                   e39dadc6-f8464eb9-4483-3ec1ce9e1221     true  vfat       4293591040     4013228032
/vmfs/volumes/c4e06c10-7841de80-3290-4c334c4e1893  BOOTBANK2     
  
[root@test1:/vmfs/volumes] esxcli storage filesystem unmount  --volume-uuid=661bc1a8-170447ef-5b31-ac1f6b3ce296

创建cachecade

./storcli64 /c0 add VD cachecade  Type = raid0 drives =16:18-19  WB

对vd设置cac

./storcli64  /c0/v2 set ssdcaching=on|off

验证

[root@test1:/opt/storcli/bin]  ./storcli64  /c0/dall show cachecade
<?xml version="1.0"?><output xmlns:esxcli="storcli">
<list type="string">
<string>
CLI Version = 007.2612.0000.0000 June 13, 2023
Operating system = VMkernel 8.0.1
Controller = 0
Status = Success
Description = Show Drive Group Succeeded


Cache Cade Virtual Drives :
=========================

-----------------------------------------------------------------------------
DG Arr Row EID:Slot DID Type  State BT       Size PDC  PI SED DS3  FSpace TR 
-----------------------------------------------------------------------------
 2 -   -   -        -   Cac0  Optl  N  237.468 GB dflt N  N   none N      N  
 2 0   -   -        -   RAID0 Optl  N  237.468 GB dflt N  N   none N      N  
 2 0   0   16:18    24  DRIVE Onln  N  237.486 GB dflt N  N   none -      N  
-----------------------------------------------------------------------------

Total Cache Cade Virtual Drives = 1

Cached Virtual Drives :
=====================

---------------------------------------------------------------
DG/VD TYPE  State Access Consist Cache Cac sCC     Size Name   
---------------------------------------------------------------
0/1   RAID6 Optl  RW     No      RWBD  RW  ON  7.275 TB data02 
1/2   RAID5 Optl  RW     No      RWBD  RW  ON  2.180 TB tmp1   
---------------------------------------------------------------

Total Cached Drives = 2
挂载卷

挂载卷

[root@test1:/vmfs/volumes] esxcli storage filesystem mount  --volume-uuid=661bc1a8-170447ef-5b31-ac1f6b3ce296
[root@test1:/vmfs/volumes] esxcli storage filesystem list
Mount Point                                        Volume Name                                 UUID                                 Mounted  Type             Size           Free
-------------------------------------------------  ------------------------------------------  -----------------------------------  -------  ------  -------------  -------------
/vmfs/volumes/63164839-a3e1f330-98c0-089e019aa6b8  datastore1                                  63164839-a3e1f330-98c0-089e019aa6b8     true  VMFS-6   102542344192    68565336064
/vmfs/volumes/663830df-33db0de5-f147-ac1f6b3ce296  temp1                                       663830df-33db0de5-f147-ac1f6b3ce296     true  VMFS-6  2397933928448  2344846622720
/vmfs/volumes/661bc1a8-170447ef-5b31-ac1f6b3ce296  datastore3_sas2                             661bc1a8-170447ef-5b31-ac1f6b3ce296     true  VMFS-6  7999913459712  2957003194368
/vmfs/volumes/63164839-7af2ecf9-8c8a-089e019aa6b8  OSDATA-63164839-7af2ecf9-8c8a-089e019aa6b8  63164839-7af2ecf9-8c8a-089e019aa6b8     true  VMFSOS   128580583424   118231138304
/vmfs/volumes/e39dadc6-f8464eb9-4483-3ec1ce9e1221  BOOTBANK1                                   e39dadc6-f8464eb9-4483-3ec1ce9e1221     true  vfat       4293591040     4013228032
/vmfs/volumes/c4e06c10-7841de80-3290-4c334c4e1893  BOOTBANK2                                   c4e06c10-7841de80-3290-4c334c4e1893     true  vfat       4293591040     4012572672

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注