MegaCliForPartition
Mar 11, 2019
Technology
目的
分区,以便虚拟化场合.
硬件:24块硬盘,前两块做成系统盘,其他的则是单独配置:
查看现有分区
使用以下命令查看当前分区的情况:
# ./MegaCli64 -PDList -aAll | more
注意记录下有关磁盘情形,如:
Slot Number应该是升序的,0-23是SATA盘,38/39是SAS盘,记录下这一组数值,因为后面我们会针对这些值来分区。Slot Number是0
查看raid信息:
# ./MegaCli64 -LDInfo -Lall -aAll
除了virtual driver 0, 其他的都需要被删除。
貌似是有问题的,先装proxmox再操作。
Raid卡配置
F2, 弹出配置:
Delete Drive Group:
最后情况:
分区
脚本如下, 4组,而后为热备4个:
./MegaCli64 -CfgLdAdd -r5 [0:0,0:1,0:2,0:3,0:4] WB Direct -a0
./MegaCli64 -CfgLdAdd -r5 [0:5,0:6,0:7,0:8,0:9] WB Direct -a0
./MegaCli64 -CfgLdAdd -r5 [0:10,0:11,0:12,0:13,0:14] WB Direct -a0
./MegaCli64 -CfgLdAdd -r5 [0:15,0:16,0:17,0:18,0:19] WB Direct -a0
./MegaCli64 -PDHSP -Set [-EnclAffinity] [-nonRevertible] -PhysDrv[0:20] -a0
./MegaCli64 -PDHSP -Set [-EnclAffinity] [-nonRevertible] -PhysDrv[0:21] -a0
./MegaCli64 -PDHSP -Set [-EnclAffinity] [-nonRevertible] -PhysDrv[0:22] -a0
./MegaCli64 -PDHSP -Set [-EnclAffinity] [-nonRevertible] -PhysDrv[0:23] -a0