Resposta a Criar Raid 10 (não Raid 6)
-
Primeiro, pegue o adaptador #
# MegaCli Adpallinfo -aall | grep '^Adapter' Adapter #0MegaCli ou megacli dependendo da distro * nix
Neste caso, o adaptador é
Adapter #0 -
Obtenha os valores do ID do dispositivo e do disco de espaço:
# MegaCli64 -PDlist -aall | grep -e '^Enclosure Device ID:' -e '^Slot Number:' Enclosure Device ID: 252 Slot Number: 0 Enclosure Device ID: 252 Slot Number: 1 Enclosure Device ID: 252 Slot Number: 2 Enclosure Device ID: 252 Slot Number: 3ID neste caso para todos, é 252
-
De acordo com o comando MegaCli para criar o RAID 10, é
MegaCli -CfgSpanAdd -r10 -Array0[E:S,E:S] -Array1[E:S,E:S] -aNMegaCli -CfgSpanAdd -R10 -Array0[252:0,252:2] -Array1[252:1,252:3] -a0Neste caso, crie um RAID 10, criando uma matriz para Raid0 com o disco 0 & 2, e outro arranjo para Raid1 com discos 1 e 3 e N = 0 (-a0)
-
Verifique o RAID
# megasasctl a0 LSI MegaRAID SAS 9271-4i encl:1 ldrv:1 batt:FAULT, low voltage, charge failed a0d0 1489GiB RAID 10 2x2 optimal a0e252s0 745GiB a0d0 online a0e252s1 745GiB a0d0 online a0e252s2 745GiB a0d0 online a0e252s3 745GiB a0d0 onlineOu se
megasasctlestiver indisponível:# MegaCli -LDInfo -Lall -aALL Adapter 0 -- Virtual Drive Information: Virtual Disk: 0 (Target Id: 0) Name: RAID Level: Primary-1, Secondary-0, RAID Level Qualifier-0 Size:1.454 TB State: Optimal Stripe Size: 256 KB Number Of Drives per span:2 Span Depth:2 Default Cache Policy: WriteBack, ReadAhead, Direct, No Write Cache if Bad BBU Current Cache Policy: WriteBack, ReadAhead, Direct, No Write Cache if Bad BBU Access Policy: Read/Write Disk Cache Policy: Enabled Encryption Type: None