Sun Microsystems, Inc.  Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition
   Home | Current Systems | Former STK Products | EOL Systems | Components | General Info | Search | Feedback

Asset ID: 1-79-1569517.1
Update Date:2017-09-29
Keywords:

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  


Related Items
  • SPARC T4-1
  •  
  • Netra SPARC T4-1 Server
  •  
  • SPARC T3-2
  •  
  • SPARC T4-2
  •  
  • SPARC T3-1
  •  
Related Categories
  • PLA-Support>Sun Systems>SPARC>CMT>SN-SPARC: T4
  •  


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
Purpose
Scope
Details


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.

Purpose

 MegaCLI On-Line Virtual Disk (VD) conversion without re-installing the Operating System

Scope

This 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 plane
SPARC T3-4
SPARC T4-4

 

Details

When 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 disk
RAID 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 level

Option 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-3
Size                : 1.088 TB
Parity Size         : 557.861 GB
State               : Optimal
Strip Size          : 64 KB
Number Of Drives    : 3
Span Depth          : 1
Default Cache Policy: WriteBack, ReadAheadNone, Cached, No Write Cache if Bad BBU
Current Cache Policy: WriteBack, ReadAheadNone, Cached, No Write Cache if Bad BBU
Access Policy       : Read/Write
Disk Cache Policy   : Disk's Default
Encryption Type     : None
Default Power Savings Policy: Controller Defined
Current Power Savings Policy: None
Can spin up in 1 minute: Yes
LD has drives that support T10 power conditions: Yes
LD'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-3
Size                : 1.088 TB
State               : Optimal
Strip Size          : 64 KB
Number Of Drives    : 3
Span Depth          : 1
Default Cache Policy: WriteBack, ReadAheadNone, Cached, No Write Cache if Bad BBU
Current Cache Policy: WriteThrough, ReadAheadNone, Cached, No Write Cache if Bad BBU
Access Policy       : Read/Write
Disk Cache Policy   : Disk's Default
Ongoing Progresses:
  Reconstruction           : Completed 0%, Taken 3 min.
Encryption Type     : None
Default Power Savings Policy: Controller Defined
Current Power Savings Policy: None Can spin up in 1 minute: Yes
LD has drives that support T10 power conditions: Yes
LD'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-3
Size                : 1.088 TB
Parity Size         : 1.088 TB
State               : Optimal
Strip Size          : 64 KB
Number Of Drives    : 4
Span Depth          : 1
Default Cache Policy: WriteBack, ReadAheadNone, Cached, No Write Cache if Bad BBU
Current Cache Policy: WriteThrough, ReadAheadNone, Cached, No Write Cache if Bad BBU
Access Policy       : Read/Write
Disk Cache Policy   : Disk's Default Encryption
Type     : None
Default Power Savings Policy: Controller Defined
Current Power Savings Policy: None
Can spin up in 1 minute: Yes
LD has drives that support T10 power conditions: Yes
LD'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
  Copyright © 2018 Oracle, Inc.  All rights reserved.
 Feedback