System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Add missing disk to hardware raid

 
SOLVED
Go to solution
debtboy
Advisor

Add missing disk to hardware raid

Hello everyone,

 

I have a simple question...

How do take an available physical drive (c0t1d0) and add it to a raid 1 configuration (c0t0d0) which has a drive missing?

 

see sasmgr output below:

 

Thu Apr 19 04:25:47 2012

---------- PHYSICAL DRIVES ----------
LUN dsf              SAS Address          Enclosure    Bay      Size(MB)

/dev/rdsk/c0t1d0     0x5000cca00b51a5c1     1            8      70007     

---------- LOGICAL DRIVE 5 ----------

Raid Level                                         : RAID 0              
Volume sas address                                 : 0x740fa4ea60e452c   
Raid State                                         : MISSING             
Raid Status Flag                                   : ENABLED INACTIVE    
Raid Size                                          : 0                   
Rebuild Rate                                       : 0.00 %              
Rebuild Progress                                   : 100.00 %            

Participating Physical Drive(s) :

SAS Address         Enc   Bay   Size(MB)      Type            State           


---------- LOGICAL DRIVE 7 ----------

Raid Level                                         : RAID 1              
Volume sas address                                 : 0x741fdab160e7893   
Device Special File                                : /dev/rdsk/c0t0d0    
Raid State                                         : DEGRADED            
Raid Status Flag                                   : ENABLED             
Raid Size                                          : 69618               
Rebuild Rate                                       : 0.00 %              
Rebuild Progress                                   : 100.00 %            

Participating Physical Drive(s) :

SAS Address         Enc   Bay   Size(MB)      Type            State           

0x5000cca00b524f25   1     7    70007         PRIMARY         ONLINE         
0x0                  0     0    70007         SECONDARY       MISSING

 

 

Server: RX3600

OS: 11iv3

Patches: recently patched (should be up to date)

Controller: HP 8 Internal Port SAS HBA with RAID

Drives: 72 gig, SAS, 15K, DP

 

 

 

I appreciate any help you could give,

Thank You

14 REPLIES
Torsten.
Acclaimed Contributor

Re: Add missing disk to hardware raid

You need to delete LOGICAL DRIVE 5, so this disk is free and unused and can replace the missing disk in LOGICAL DRIVE 7.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
debtboy
Advisor

Re: Add missing disk to hardware raid

Thank you for your reply!!

 

The disk is free to replace the missing drive, but I'm not sure about the command syntax for replacement.

Should I be using io_redirect_dsf?

 

In addition, when I add the disk to the array, will it rebuild off of the existing without data loss?

 

Thank you again for your help

Torsten.
Acclaimed Contributor

Re: Add missing disk to hardware raid

For disk replacements (RAID1) no commands needed, only for RAID0 replacements. Just insert the disk and check the status.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
debtboy
Advisor

Re: Add missing disk to hardware raid

Thank you again for the response.

 

I have removed the structure from the disk

pvremove /dev/rdsk/c0t1d0

 

I have physically removed the disk and rebooted.

 

I removed remaining special files, rebooted again.

rmsf -x

 

re-installed disk while system is up and check status which was again the same as above.

 

NOTE: (we have other rx6600s and rx3600s that do rebuild automatically when replaced live)

 

 

There is something unusual...

drvcfg -s from EFI shell will not let me view "Raid Properties" says inactive

 

I will look deeper into this and get back in a few days.

 

THANK YOU for your quick replies and awesome help!!!

 

 

 

Torsten.
Acclaimed Contributor

Re: Add missing disk to hardware raid

Currently your systms shows only 1 disk - in bay 8.

disk on bay 0 is missing (part of the mirror for logical drive 7), the disk for raid0 as logical drive 5 is missing too.

If you now want to use this disk from ld 5 for ld7 it only works if you delete the logical drive, otherwise you only "move" logical drive 5, because the information about logical drive config is still stored.

Deleting data from OS on the logical drive does not change anything.

What disks and how many disks are currently inserted?
Only 1?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
debtboy
Advisor

Re: Add missing disk to hardware raid

Good Morning,

 

I really appreciate your patience.

 

2 drives inserted:

Enclosure 1 Bay 7 (boot disk)

Enclosure 1 Bay 8 (unused disk)

 

I was hoping to use Enc 1 Bay 8 (unused disk) as the missing RAID 1 mirror disk of (LD7)

 

Thank you again 

Torsten.
Acclaimed Contributor

Re: Add missing disk to hardware raid

Could you please send

# sasmgr get_info -D /dev/sasd0 -q raid

again?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Torsten.
Acclaimed Contributor

Re: Add missing disk to hardware raid

If the output is still the same compared to your first post, consider to move the disk from slot 8 to slot 0 and check again.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
debtboy
Advisor

Re: Add missing disk to hardware raid

Yes the same...


Fri Apr 20 05:06:40 2012

---------- PHYSICAL DRIVES ----------
LUN dsf              SAS Address          Enclosure    Bay      Size(MB)

/dev/rdsk/c0t1d0     0x5000cca00b51a5c1     1            8      70007     

---------- LOGICAL DRIVE 5 ----------

Raid Level                                         : RAID 0              
Volume sas address                                 : 0x740fa4ea60e452c   
Raid State                                         : MISSING             
Raid Status Flag                                   : ENABLED INACTIVE    
Raid Size                                          : 0                   
Rebuild Rate                                       : 0.00 %              
Rebuild Progress                                   : 100.00 %            

Participating Physical Drive(s) :

SAS Address         Enc   Bay   Size(MB)      Type            State           


---------- LOGICAL DRIVE 7 ----------

Raid Level                                         : RAID 1              
Volume sas address                                 : 0x741fdab160e7893   
Device Special File                                : /dev/rdsk/c0t0d0    
Raid State                                         : DEGRADED            
Raid Status Flag                                   : ENABLED             
Raid Size                                          : 69618               
Rebuild Rate                                       : 0.00 %              
Rebuild Progress                                   : 100.00 %            

Participating Physical Drive(s) :

SAS Address         Enc   Bay   Size(MB)      Type            State           

0x5000cca00b524f25   1     7    70007         PRIMARY         ONLINE         
0x0                  0     0    70007         SECONDARY       MISSING 

 

 

 

here is after moving from bay 8 to bay 0(1)

 

Fri Apr 20 05:12:40 2012

---------- PHYSICAL DRIVES ----------
LUN dsf              SAS Address          Enclosure    Bay      Size(MB)

/dev/rdsk/c0t1d0     0x5000cca00b51a5c1     1            1      70007     

---------- LOGICAL DRIVE 5 ----------

Raid Level                                         : RAID 0              
Volume sas address                                 : 0x740fa4ea60e452c   
Raid State                                         : MISSING             
Raid Status Flag                                   : ENABLED INACTIVE    
Raid Size                                          : 0                   
Rebuild Rate                                       : 0.00 %              
Rebuild Progress                                   : 100.00 %            

Participating Physical Drive(s) :

SAS Address         Enc   Bay   Size(MB)      Type            State           


---------- LOGICAL DRIVE 7 ----------

Raid Level                                         : RAID 1              
Volume sas address                                 : 0x741fdab160e7893   
Device Special File                                : /dev/rdsk/c0t0d0    
Raid State                                         : DEGRADED            
Raid Status Flag                                   : ENABLED             
Raid Size                                          : 69618               
Rebuild Rate                                       : 0.00 %              
Rebuild Progress                                   : 100.00 %            

Participating Physical Drive(s) :

SAS Address         Enc   Bay   Size(MB)      Type            State           

0x5000cca00b524f25   1     7    70007         PRIMARY         ONLINE         
0x0                  0     0    70007         SECONDARY       MISSING 

 

debtboy
Advisor

Re: Add missing disk to hardware raid

Sorry, it appears there may have been something wrong with that physical (unused) disk.

I replaced it with another and a new Logical Drive (132) was created automatically.

 

Now from the EFI shell, I was able delete LD132 and LD5 leaving me with the following...

 

Fri Apr 20 06:17:40 2012

---------- PHYSICAL DRIVES ----------
LUN dsf              SAS Address          Enclosure    Bay      Size(MB)

/dev/rdsk/c0t3d0     0x5000c5000b00ac81     1            8      70007     

---------- LOGICAL DRIVE 7 ----------

Raid Level                                         : RAID 1              
Volume sas address                                 : 0x741fdab160e7893   
Device Special File                                : /dev/rdsk/c0t0d0    
Raid State                                         : DEGRADED            
Raid Status Flag                                   : ENABLED             
Raid Size                                          : 69618               
Rebuild Rate                                       : 0.00 %              
Rebuild Progress                                   : 100.00 %            

Participating Physical Drive(s) :

SAS Address         Enc   Bay   Size(MB)      Type            State           

0x5000cca00b524f25   1     7    70007         PRIMARY         ONLINE         
0x0                  0     0    70007         SECONDARY       MISSING

 

 

I have 2 drives:

Enclosure 1 Bay 7 (boot disk)

Enclosure 1 Bay 8 (new unused disk)

 

Is there a way to make /dev/rdsk/c0t3d0 part of LD7 without loosing the boot disk data?

 

Thank you again

Torsten.
Acclaimed Contributor

Re: Add missing disk to hardware raid

Did you insert the disk from slot 8 into slot 0?

 

It doesn't look so in your output.

 

Try this:

 

- remove disk from slot 8

- do

    # sasmgr -f reset -D /dev/sasd_

- insert disk in slot 0

- check status

 

The system waits for a disk in slot 0 for a rebuild.

 

If all does not work, we can add the disk as spare. 

 


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
debtboy
Advisor

Re: Add missing disk to hardware raid

Thanks for your reply,

 

removed disk from slot 8

reset sasd1

replaced in slot 1

 

Status...

 


Device (/dev/sasd1) has been RESET.
# sasmgr get_info -D /dev/sasd1 -q raid

Fri Apr 20 08:25:55 2012

---------- PHYSICAL DRIVES ----------
LUN dsf              SAS Address          Enclosure    Bay      Size(MB)

/dev/rdsk/c0t3d0     0x5000c5000b00ac81     1            1      70007     

---------- LOGICAL DRIVE 7 ----------

Raid Level                                         : RAID 1              
Volume sas address                                 : 0x741fdab160e7893   
Device Special File                                : /dev/rdsk/c0t0d0    
Raid State                                         : DEGRADED            
Raid Status Flag                                   : ENABLED             
Raid Size                                          : 69618               
Rebuild Rate                                       : 0.00 %              
Rebuild Progress                                   : 100.00 %            

Participating Physical Drive(s) :

SAS Address         Enc   Bay   Size(MB)      Type            State           

0x5000cca00b524f25   1     7    70007         PRIMARY         ONLINE         
0x0                  0     0    70007         SECONDARY       MISSING 

 

 

I really appreciate your time and patience

Torsten.
Acclaimed Contributor
Solution

Re: Add missing disk to hardware raid

Somehow the controller became confused, the normal order is from slot 1 to slot 8, but it expect a disk in encl. 0 slot 0.

I would first delete LD5 (if you don't need it):

# sasmgr delete -D /dev/sasd0 -q raid -q raid_vol=5

then add the disk in slot 8 (move it back to slot 8) as spare:

# sasmgr add -D /dev/sasd0 -q raid -q spare -q enc_bay=1:8

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
debtboy
Advisor

Re: Add missing disk to hardware raid

Yes I agree, the controller seems to have lost it's reference, as there is no enclosure 0 nor slot 0.

 

LD5 has been deleted, but I'm not going to create a spare right now.

 

I really appreciate all the help you've given me,

Thank You