![]() Hopefully this helps if anyone is looking to run some MegaRAID commands. Set everything back to good: sudo /opt/MegaRAID/MegaCli/MegaCli64 -PDMakeGood -PhysDrv -Force -a0.Delete the virtual drive you don’t want: /opt/MegaRAID/MegaCli/MegaCli64 -CfgLdDel -L$VIRTUAL_DRIVE_ID -a0.List the existing virtual drives: /opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -Lall -a0. ![]() If you mess up and need to delete an array, or just want to convert between different RAID levels, you can delete existing arrays following these steps: Change the scheduler: echo deadline > /sys/block/$/queue/scheduler.Turn readahead off: /opt/MegaRAID/MegaCli/MegaCli64 -LDSetProp NORA -L1 -a0.Set direct, no cache: /opt/MegaRAID/MegaCli/MegaCli64 -LDSetProp -Direct -L1 -a0.Set write-through: /opt/MegaRAID/MegaCli/MegaCli64 -LDSetProp WT -L1 -a0.Some other things we needed to do were set things like readahead, disk scheduler, etc. Add an entry to fstab: echo "/dev/sdb /data0 xfs noatime" | sudo tee -a /etc/fstab.Now we follow the same steps as above to format/mount the disk. Set all the drives to “Good” in MegaCLI (this marks them as unconfigured but spun up):.In our case - the slot numbers were 0 - 23. The only way I was able to do this was manually look through the output of the first command. Figure out the slot number of the 24 drives.Figure out the Enclosure Device ID ($id below) of the 24 drives we want to RAID: /opt/MegaRAID/MegaCli/MegaCli64 -PDList -a0 | grep -e '^Enclosure Device ID:' | head -1 | cut -f2-d':' | xargs.List the current virtual drives: /opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -Lall -a0.Inquiry Data: SEAGATE ST91000640SS AS099XG4QFD1 Non Coerced Size: 931.012 GB Ĭoerced Size: 931.0 GB You can check with lsblk:ĭrive's position: DiskGroup: 1, Span: 0, Arm: 21 Once the disks are set to JBOD, each one should appear to the OS.Set each disk from above to be in JBOD mode: /opt/MegaRAID/MegaCli/MegaCli64 -PDMakeJBOD -PhysDrv -a0. ![]() If JBOD is disabled from step 6, turn JBOD support on: /opt/MegaRAID/MegaCli/MegaCli64 AdpSetProp EnableJBOD 1 -a0.On all of our servers, this returns: Adapter 0: JBOD: Disabled, so we need to turn it on. Check and see if JBOD support is enabled: /opt/MegaRAID/MegaCli/MegaCli64 AdpGetProp EnableJBOD -aALL.Set all the drives to “Good” in MegaCLI (this marks them as unconfigured but spun up): /opt/MegaRAID/MegaCli/MegaCli64 -PDMakeGood -PhysDrv -Force -a0 note the numbers 1 - 8 are the slot numbers of the disks, make sure the change these to match your slot numbers.In our case - the slot numbers were 1 - 8. Figure out the slot number of the 8 drives we are going to JBOD.Figure out the Enclosure Device ID of the 8 drives we want to JBOD: /opt/MegaRAID/MegaCli/MegaCli64 -PDList -a0 | grep -e '^Enclosure Device ID:' | head -1 | cut -f2-d':' | xargs. ![]() This could corrupt or even delete the OS on the server, so be careful. It’s important to note the physical drives that are part of this - as we don’t want to use them for our new array. For our servers - this should already show a single virtual drive for the OS.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |