| 253 | Let's assume we have a server with two MegaRAID SAS cards. |
| 254 | The first one is already setup but we have just plugged a disk bays on the second card. |
| 255 | |
| 256 | List physical disks on second card (only print enclosure and slots numbers): |
| 257 | {{{ |
| 258 | server:~# megacli -PDlist -a1 | grep -e '^Enclosure Device ID:' -e '^Slot Number:' |
| 259 | Enclosure Device ID: 0 |
| 260 | Slot Number: 0 |
| 261 | Enclosure Device ID: 0 |
| 262 | Slot Number: 1 |
| 263 | Enclosure Device ID: 0 |
| 264 | Slot Number: 2 |
| 265 | Enclosure Device ID: 0 |
| 266 | Slot Number: 3 |
| 267 | Enclosure Device ID: 0 |
| 268 | Slot Number: 4 |
| 269 | Enclosure Device ID: 0 |
| 270 | Slot Number: 5 |
| 271 | Enclosure Device ID: 0 |
| 272 | Slot Number: 6 |
| 273 | }}} |
| 274 | |
| 275 | Now we have all enclosure and slot number. Let's create the new array: |
| 276 | server:~# megacli -CfgLdAdd -r6 [0:0,0:1,0:2,0:3,0:4,0:5,0:6] -a1 |
| 277 | |
| 278 | Adapter 1: Created VD 0 |
| 279 | |
| 280 | Adapter 1: Configured the Adapter!! |
| 281 | |
| 282 | Exit Code: 0x00 |
| 283 | |