Using perccli to manage harddrives

List complete info of controller

This includes information like used raid type, physical and virtual drives or enclosure.

perccli /c0 show

List available drives

perccli /c0/eall/sall show

Show background initialization progress

perccli /c0/v0 show bgi

Add a drive to an existing raid cluster

perccli /c0/v0 start migrate type=raid6 option=add drives=<EnclosureID>:<Start-Slot>[-<End-Slot>]

Show the migration progress

perccli /c0/v0 show migrate

To rerun the command every 60 seconds prepend watch -n60.

Drive expansion

List installed filesystem type

df -Th

Expand partition

growpart /dev/<device-name> <partition-number>

Expand filesystem

resize2fs /dev/<device-name><partition-number>