How-to : Expand a RAID array using omconfig / omreport CLI

dell

Introduction

This how-to will guide you through the expand operation of a RAID array, using only omreport and omconfig command line utilities.

In this post I will be expanding a RAID 5 array, from 1To to 2To, I am not going re-write some part of this process that I have already written in a previous post but you will find the references wherever they are required.

 

Master plan

Here is the master plan that should help you to best understand the process as a whole.

  1. Finding the controller number & ID
  2. Finding the pdisk (physical disk) ID
  3. Finding the vdisk (virtual disk) ID
  4. Expanding the array
  5. Checking the newly expanded array
  6. Have a drink !

 

 

1) Finding the controller number & ID

Please check this post for this part of the process.

 

2) Finding the pdisk (physical disk) ID

Please check this post for this part of the process.

 

3) Finding the vdisk (virtual disk) ID

We now need to find out what is the vdisk ID, it is quite straightforward (given we already have the <controller_ID>) :

[root@server ~]# omreport storage vdisk controller=1
 
Virtual Disk 0 on Controller PERC H810 Adapter (Slot 1)
 
Controller PERC H810 Adapter (Slot 1)
ID : 0
Status : Ok
Name : seances
State : Ready
Hot Spare Policy violated : Not Assigned
Encrypted : No
Layout : RAID-5
Size : 1,000.00 GB (999532441600 bytes)
T10 Protection Information Status : No
Associated Fluid Cache State : Not Applicable
Device Name : /dev/sdb
Bus Protocol : SAS
Media : HDD
Read Policy : Adaptive Read Ahead
Write Policy : Write Back
Cache Policy : Not Applicable
Stripe Element Size : 64 KB
Disk Cache Policy : Disabled

The vdisk ID, in the above example is : 0

 

 

4) Expanding the array

Now we have every informations we may need to expand the array, let’s do it ! The last thing we need to understand is the sizeinpercent parameter, this size is based on the maximum array size, this means that in our example :

4 x 2To = 6To maximum (RAID5 maximum size is : n - 1 for n drives), so 100% is 6To, given that we want to reach a 2To size we use 30% as sizeinpercent parameter.

Here is the final command :

omconfig storage vdisk controller=1 pdisk=0:0:0,0:0:1,0:0:2,0:0:3 vdisk=0 raid=r5 vdcapacityexpansion=yes sizeinpercent=30 action=reconfigure

 

 

5) Checking the newly expanded array

You can follow the progression by checking the vdisk informations :

omreport storage vdisk controller=1

 

 

Resources

 

More “Sysadmin” posts

 

Tagged on: , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site supports SyntaxHighlighter via WP SyntaxHighlighter. It can highlight your code.
How to highlight your code: Paste your code in the comment form, select it and then click the language link button below. This will wrap your code in a <pre> tag and format it when submitted.