Difference between revisions of "LSI: LSI StorCli Cheatsheet"
Jump to navigation
Jump to search
(add how to get the info for the drive expansion) |
|||
| Line 33: | Line 33: | ||
== Extend a RAID6 array (TT) == | == Extend a RAID6 array (TT) == | ||
| + | first identify your new disks and the existing virtual disk(s) using the show all command above | ||
| + | <pre> | ||
| + | [root@storage1 ~]# /opt/MegaRAID/storcli/storcli64 /c0 show all | ||
| + | [SNIP] | ||
| + | |||
| + | Virtual Drives = 1 | ||
| + | |||
| + | VD LIST : | ||
| + | ======= | ||
| + | |||
| + | -------------------------------------------------------------- | ||
| + | DG/VD TYPE State Access Consist Cache Cac sCC Size Name | ||
| + | -------------------------------------------------------------- | ||
| + | 0/239 RAID6 Optl RW Yes RWBD - ON 29.107 TB | ||
| + | -------------------------------------------------------------- | ||
| + | |||
| + | VD=Virtual Drive| DG=Drive Group|Rec=Recovery | ||
| + | Cac=CacheCade|OfLn=OffLine|Pdgd=Partially Degraded|Dgrd=Degraded | ||
| + | Optl=Optimal|dflt=Default|RO=Read Only|RW=Read Write|HD=Hidden|TRANS=TransportReady | ||
| + | B=Blocked|Consist=Consistent|R=Read Ahead Always|NR=No Read Ahead|WB=WriteBack | ||
| + | AWB=Always WriteBack|WT=WriteThrough|C=Cached IO|D=Direct IO|sCC=Scheduled | ||
| + | Check Consistency | ||
| + | |||
| + | Physical Drives = 8 | ||
| + | |||
| + | PD LIST : | ||
| + | ======= | ||
| + | |||
| + | ---------------------------------------------------------------------------- | ||
| + | EID:Slt DID State DG Size Intf Med SED PI SeSz Model Sp Type | ||
| + | ---------------------------------------------------------------------------- | ||
| + | 252:0 9 UGood - 7.276 TB SAS HDD N N 512B HUS728T8TAL5204 U - | ||
| + | 252:1 8 UGood - 7.276 TB SAS HDD N N 512B HUS728T8TAL5204 U - | ||
| + | 252:2 2 Onln 0 7.276 TB SAS HDD N N 512B HUS728T8TAL5204 U - | ||
| + | 252:3 3 Onln 0 7.276 TB SAS HDD N N 512B HUS728T8TAL5204 U - | ||
| + | 252:4 4 Onln 0 7.276 TB SAS HDD N N 512B HUS728T8TAL5204 U - | ||
| + | 252:5 5 Onln 0 7.276 TB SAS HDD N N 512B HUS728T8TAL5204 U - | ||
| + | 252:6 0 Onln 0 7.276 TB SAS HDD N N 512B HUS728T8TAL5204 U - | ||
| + | 252:7 1 Onln 0 7.276 TB SAS HDD N N 512B HUS728T8TAL5204 U - | ||
| + | ---------------------------------------------------------------------------- | ||
| + | |||
| + | EID=Enclosure Device ID|Slt=Slot No|DID=Device ID|DG=DriveGroup | ||
| + | DHS=Dedicated Hot Spare|UGood=Unconfigured Good|GHS=Global Hotspare | ||
| + | UBad=Unconfigured Bad|Sntze=Sanitize|Onln=Online|Offln=Offline|Intf=Interface | ||
| + | Med=Media Type|SED=Self Encryptive Drive|PI=Protection Info | ||
| + | SeSz=Sector Size|Sp=Spun|U=Up|D=Down|T=Transition|F=Foreign | ||
| + | UGUnsp=UGood Unsupported|UGShld=UGood shielded|HSPShld=Hotspare shielded | ||
| + | CFShld=Configured shielded|Cpybck=CopyBack|CBShld=Copyback Shielded | ||
| + | UBUnsp=UBad Unsupported|Rbld=Rebuild | ||
| + | |||
| + | Enclosures = 1 | ||
| + | |||
| + | Enclosure LIST : | ||
| + | ============== | ||
| + | |||
| + | ------------------------------------------------------------------------ | ||
| + | EID State Slots PD PS Fans TSs Alms SIM Port# ProdID VendorSpecific | ||
| + | ------------------------------------------------------------------------ | ||
| + | 252 OK 8 8 0 0 0 0 0 - VirtualSES | ||
| + | ------------------------------------------------------------------------ | ||
| + | |||
| + | EID=Enclosure Device ID | PD=Physical drive count | PS=Power Supply count | ||
| + | TSs=Temperature sensor count | Alms=Alarm count | SIM=SIM Count | ProdID=Product ID | ||
| + | |||
| + | [SNIP] | ||
| + | </pre> | ||
| + | In the above the virtual disk id is 239 and you can see that it a raid 6. | ||
| + | |||
| + | There is just the one enclosure (252) and a total of 8 drives in that enclosure. The new drives are the UGood ones are the top in "slot 0 and slot 1". This allows us to develop the following command line. | ||
<pre> | <pre> | ||
[root@storage1 ~]# /opt/MegaRAID/storcli/storcli64 /c0/v239 start migrate type=r6 option=add drives=252:0-1 | [root@storage1 ~]# /opt/MegaRAID/storcli/storcli64 /c0/v239 start migrate type=r6 option=add drives=252:0-1 | ||
| Line 40: | Line 109: | ||
Status = Success | Status = Success | ||
Description = Start VD Operation Success | Description = Start VD Operation Success | ||
| + | </pre> | ||
| + | |||
| + | you can monitor the progress with: | ||
| + | <pre> | ||
| + | [root@storage1 ~]# /opt/MegaRAID/storcli/storcli64 /c0/v239 show migrate | ||
| + | CLI Version = 007.1705.0000.0000 Mar 31, 2021 | ||
| + | Operating system = Linux 3.10.0-1127.el7.x86_64 | ||
| + | Controller = 0 | ||
| + | Status = Success | ||
| + | Description = None | ||
| + | |||
| + | |||
| + | VD Operation Status : | ||
| + | =================== | ||
| + | |||
| + | -------------------------------------------------------------- | ||
| + | VD Operation Progress% Status Estimated Time Left | ||
| + | -------------------------------------------------------------- | ||
| + | 239 Migrate 1 In progress 7 Days 2 Hours 35 Minutes | ||
| + | -------------------------------------------------------------- | ||
| + | |||
| + | |||
</pre> | </pre> | ||
Revision as of 14:41, 31 October 2023
Install Process
- Search for 'StorCli' here: http://www.avagotech.com/support/download-search
unzip 1.19.04_StorCLI.zip
cd storcli_all_os/
cd Linux
rpm -ivh ./storcli-1.19.04-1.noarch.rpm
rpm -qpl storcli-1.19.04-1.noarch.rpm
# Files are in /opt/MegaRAID/storcli/
# add this to you $PATHQuery
- Get everything
storcli64 /c0 show all
# and for a list of options; storcli64 /c0 show helpReset UBad to UGood
storcli /c0 /e252 /sall set goodConfiguring
- Example for setting up a RAID60 (on 36 Drives, 18 Drives per array)
[root@oswald ~]# storcli64 /c0 add vd type=raid60 drives=85:0-23,88:0-11 pdperarray=18
Controller = 0
Status = Success
Description = Add VD SucceededExtend a RAID6 array (TT)
first identify your new disks and the existing virtual disk(s) using the show all command above
[root@storage1 ~]# /opt/MegaRAID/storcli/storcli64 /c0 show all [SNIP] Virtual Drives = 1 VD LIST : ======= -------------------------------------------------------------- DG/VD TYPE State Access Consist Cache Cac sCC Size Name -------------------------------------------------------------- 0/239 RAID6 Optl RW Yes RWBD - ON 29.107 TB -------------------------------------------------------------- VD=Virtual Drive| DG=Drive Group|Rec=Recovery Cac=CacheCade|OfLn=OffLine|Pdgd=Partially Degraded|Dgrd=Degraded Optl=Optimal|dflt=Default|RO=Read Only|RW=Read Write|HD=Hidden|TRANS=TransportReady B=Blocked|Consist=Consistent|R=Read Ahead Always|NR=No Read Ahead|WB=WriteBack AWB=Always WriteBack|WT=WriteThrough|C=Cached IO|D=Direct IO|sCC=Scheduled Check Consistency Physical Drives = 8 PD LIST : ======= ---------------------------------------------------------------------------- EID:Slt DID State DG Size Intf Med SED PI SeSz Model Sp Type ---------------------------------------------------------------------------- 252:0 9 UGood - 7.276 TB SAS HDD N N 512B HUS728T8TAL5204 U - 252:1 8 UGood - 7.276 TB SAS HDD N N 512B HUS728T8TAL5204 U - 252:2 2 Onln 0 7.276 TB SAS HDD N N 512B HUS728T8TAL5204 U - 252:3 3 Onln 0 7.276 TB SAS HDD N N 512B HUS728T8TAL5204 U - 252:4 4 Onln 0 7.276 TB SAS HDD N N 512B HUS728T8TAL5204 U - 252:5 5 Onln 0 7.276 TB SAS HDD N N 512B HUS728T8TAL5204 U - 252:6 0 Onln 0 7.276 TB SAS HDD N N 512B HUS728T8TAL5204 U - 252:7 1 Onln 0 7.276 TB SAS HDD N N 512B HUS728T8TAL5204 U - ---------------------------------------------------------------------------- EID=Enclosure Device ID|Slt=Slot No|DID=Device ID|DG=DriveGroup DHS=Dedicated Hot Spare|UGood=Unconfigured Good|GHS=Global Hotspare UBad=Unconfigured Bad|Sntze=Sanitize|Onln=Online|Offln=Offline|Intf=Interface Med=Media Type|SED=Self Encryptive Drive|PI=Protection Info SeSz=Sector Size|Sp=Spun|U=Up|D=Down|T=Transition|F=Foreign UGUnsp=UGood Unsupported|UGShld=UGood shielded|HSPShld=Hotspare shielded CFShld=Configured shielded|Cpybck=CopyBack|CBShld=Copyback Shielded UBUnsp=UBad Unsupported|Rbld=Rebuild Enclosures = 1 Enclosure LIST : ============== ------------------------------------------------------------------------ EID State Slots PD PS Fans TSs Alms SIM Port# ProdID VendorSpecific ------------------------------------------------------------------------ 252 OK 8 8 0 0 0 0 0 - VirtualSES ------------------------------------------------------------------------ EID=Enclosure Device ID | PD=Physical drive count | PS=Power Supply count TSs=Temperature sensor count | Alms=Alarm count | SIM=SIM Count | ProdID=Product ID [SNIP]
In the above the virtual disk id is 239 and you can see that it a raid 6.
There is just the one enclosure (252) and a total of 8 drives in that enclosure. The new drives are the UGood ones are the top in "slot 0 and slot 1". This allows us to develop the following command line.
[root@storage1 ~]# /opt/MegaRAID/storcli/storcli64 /c0/v239 start migrate type=r6 option=add drives=252:0-1 CLI Version = 007.1705.0000.0000 Mar 31, 2021 Operating system = Linux 3.10.0-1127.el7.x86_64 Controller = 0 Status = Success Description = Start VD Operation Success
you can monitor the progress with:
[root@storage1 ~]# /opt/MegaRAID/storcli/storcli64 /c0/v239 show migrate CLI Version = 007.1705.0000.0000 Mar 31, 2021 Operating system = Linux 3.10.0-1127.el7.x86_64 Controller = 0 Status = Success Description = None VD Operation Status : =================== -------------------------------------------------------------- VD Operation Progress% Status Estimated Time Left -------------------------------------------------------------- 239 Migrate 1 In progress 7 Days 2 Hours 35 Minutes --------------------------------------------------------------