![]() | Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition | ||
|
|
![]() |
||||||||||||||||
Solution Type Predictive Self-Healing Sure Solution 1569517.1 : SPARC T3/T4 : MegaCLI : How to Convert the RAID Level of a Virtual Drive (LUN) On-line
This document shows how you can convert a current Virtual Disk (VD) from one RAID type to another without deleting and recreating the Virtual Disks. In this Document
Applies to:SPARC T3-2 - Version All Versions to All Versions [Release All Releases]SPARC T4-2 - Version All Versions to All Versions [Release All Releases] SPARC T4-1 - Version All Versions to All Versions [Release All Releases] SPARC T3-1 - Version All Versions to All Versions [Release All Releases] Netra SPARC T4-1 Server - Version All Versions to All Versions [Release All Releases] Information in this document applies to any platform. PurposeMegaCLI On-Line Virtual Disk (VD) conversion without re-installing the Operating System ScopeThis feature is only available for SPARC T3/T4 systems with the optional HBA SAS6-R-INT-Z "Sun Storage 6B SAS PCIe RAID HBA INT". This HBA is not supported on the following SPARC T3/T4 platforms SPARC T3-1 with 16 Disk back planeSPARC T3-4SPARC T4-4
DetailsWhen carrying out Virtual Drive (VD) RAID conversion, it is important to take note that RAID Volumes have physical disk requirements. RAID 0 - Minimum of 1 Disk ( or more )RAID 1 - Mirror should only have 2 physical diskRAID 5 - Minimum of 3 physical disk ( or more )RAID 6 - Minimum of 4 physical disk ( or more )
To start RAID Virtual Drive On-line conversion the following "MegaCli" syntax can be used. Option 1 If the desired target RAID type needs additional disk drive, the following syntax should be used. MegaCli -LDRecon -Start -r<target-raid-type> -Add -PhysDrv[enclosure id:Slot#] -L<vdisk#> -a<Controller#> Note: This syntax may be applied in the following situation - Converting a 3 disk RAID5 to a 4 disk RAID6- Converting from a one disk RAID0 to a 2 disk RAID1- Increasing the number of drive without changing the RAID levelOption 2 If the desired target RAID type needs less disk drive, the following syntax should be used. MegaCli -LDRecon -Start -r<target-raid-type> -Rmv -PhysDrv[enclosure id:Slot#] -L<Vdisk#> -a<Controller#> Note: This syntax may be applied in the following situation - Converting a 2 disk RAID1 to a 1 disk RAID0 Option 3 If the desired target RAID type does not need additional disk drive, the following syntax applies MegaCli -LDRecon -Start -r<target-raid-type> -L<vdisk#> -a<controller#> Note: This syntax may be applied in the following situation - Converting a 4 disk RAID6 to a 4 disk RAID5
Monitoring virtual disk reconstruction progress To monitor the conversion Virtual Drive the following CLI command may be used MegaCli -LDRecon -ShowProg -L<vdisk#> -a<controller#> Note: This CLI will display the progress of the reconstruction in percent. MegaCli -LDRecon -ProgDsply -L<vdisk#> -a<controller#> Note: This CLI whill show a running status of the reconstruction until it reaches 100%
For Example In the example below we will be converting a 3 disk RAID 5 Virtual Drive into a RAID 6 Virtual Drive, on a netra T4-1 with 300GB SAS drive ( no activity ) the conversion took 10 hours to complete. STEP 1.) Check the state of the current Virtual Drive root@netra-t4-1-sin06-a:/opt/MegaRAID/CLI# ./MegaCli -LDInfo -Lall -aALL Adapter 0 -- Virtual Drive Information:Virtual Drive: 0 (Target Id: 0)Name :RAID Level : Primary-5, Secondary-0, RAID Level Qualifier-3Size : 1.088 TBParity Size : 557.861 GBState : OptimalStrip Size : 64 KBNumber Of Drives : 3Span Depth : 1Default Cache Policy: WriteBack, ReadAheadNone, Cached, No Write Cache if Bad BBUCurrent Cache Policy: WriteBack, ReadAheadNone, Cached, No Write Cache if Bad BBUAccess Policy : Read/WriteDisk Cache Policy : Disk's DefaultEncryption Type : NoneDefault Power Savings Policy: Controller DefinedCurrent Power Savings Policy: NoneCan spin up in 1 minute: YesLD has drives that support T10 power conditions: YesLD's IO profile supports MAX power savings with cached writes: Yes Exit Code: 0x00
STEP 2.) Begin the reconstruction of the Virtual Drive
root@netra-t4-1-sin06-a:/opt/MegaRAID/CLI# ./MegaCli -LDRecon -Start -r6 -Add -PhysDrv[252:3] -L0 -a0 Start Reconstruction of Virtual Drive Success. Exit Code: 0x00 root@netra-t4-1-sin06-a:/opt/MegaRAID/CLI#
Step 3.) Check the progress of RAID rebuild
root@netra-t4-1-sin06-a:/opt/MegaRAID/CLI# ./MegaCli -LDRecon -ShowProg -L0 -a0 Reconstruction on VD #0 (target id #0) Completed 0% in 2 Minutes. Exit Code: 0x00 root@netra-t4-1-sin06-a:/opt/MegaRAID/CLI#
Step 4.) Check the rebuild status using "-LDInfo" option
root@netra-t4-1-sin06-a:/opt/MegaRAID/CLI# ./MegaCli -LDInfo -Lall -aALL Adapter 0 -- Virtual Drive Information:Virtual Drive: 0 (Target Id: 0)Name :RAID Level : Primary-5, Secondary-0, RAID Level Qualifier-3Size : 1.088 TBState : OptimalStrip Size : 64 KBNumber Of Drives : 3Span Depth : 1Default Cache Policy: WriteBack, ReadAheadNone, Cached, No Write Cache if Bad BBUCurrent Cache Policy: WriteThrough, ReadAheadNone, Cached, No Write Cache if Bad BBUAccess Policy : Read/WriteDisk Cache Policy : Disk's DefaultOngoing Progresses: Reconstruction : Completed 0%, Taken 3 min.Encryption Type : NoneDefault Power Savings Policy: Controller DefinedCurrent Power Savings Policy: None Can spin up in 1 minute: YesLD has drives that support T10 power conditions: YesLD's IO profile supports MAX power savings with cached writes: Yes Exit Code: 0x00 root@netra-t4-1-sin06-a:/opt/MegaRAID/CLI#
Step 5.) Check the rebuild status with a progress bar
root@netra-t4-1-sin06-a:/opt/MegaRAID/CLI# ./MegaCli -LDRecon -ProgDsply -L0 -a0 Progress of Virtual Drives... Virtual Drive # Percent Complete Time Elps 0 ***********************01 %*********************** 00:06:18 Press <ESC> key to quit... root@netra-t4-1-sin06-a:/opt/MegaRAID/CLI# ./MegaCli -LDRecon -ProgDsply -L0 -a0 Virtual Drive # Percent Complete Time Elps 0 ######################100 %####################### 00:00:00 Press <ESC> key to quit...
Step 6.) After rebuild process is completed, verify that the primary RAID type has change
root@netra-t4-1-sin06-a:/opt/MegaRAID/CLI# ./MegaCli -LDInfo -Lall -aALL Adapter 0 -- Virtual Drive Information:Virtual Drive: 0 (Target Id: 0)Name :RAID Level : Primary-6, Secondary-0, RAID Level Qualifier-3Size : 1.088 TBParity Size : 1.088 TBState : OptimalStrip Size : 64 KBNumber Of Drives : 4Span Depth : 1Default Cache Policy: WriteBack, ReadAheadNone, Cached, No Write Cache if Bad BBUCurrent Cache Policy: WriteThrough, ReadAheadNone, Cached, No Write Cache if Bad BBUAccess Policy : Read/WriteDisk Cache Policy : Disk's Default EncryptionType : NoneDefault Power Savings Policy: Controller DefinedCurrent Power Savings Policy: NoneCan spin up in 1 minute: YesLD has drives that support T10 power conditions: YesLD's IO profile supports MAX power savings with cached writes: Yes Exit Code: 0x00 root@netra-t4-1-sin06-a:/opt/MegaRAID/CLI#
Attachments This solution has no attachment |
||||||||||||||||
|