Integrity Servers
1748165 Members
4348 Online
108758 Solutions
New Discussion юеВ

Re: How do you rebuild your SAS mirror from the OS

 
Andy Imm
Frequent Advisor

How do you rebuild your SAS mirror from the OS

Hello gurus,

We are running hpux 11.31, with internal SAS drives.

I see how to check if the internal hardware mirror is mirrored or not, but do not know how to actually resync the mirror.

This is what I get when I check to see if the disks are mirrored;

sasmgr get_info -D /dev/sasd1 -q raid

Tue Aug 24 14:29:13 2010

---------- LOGICAL DRIVE 1 ----------

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

Participating Physical Drive(s) :

SAS Address Enc Bay Size(MB) Type State

0x5000c50017be7dbd 1 2 140014 SECONDARY ONLINE
0x5000c50017bfa765 1 1 140014 PRIMARY ONLINE


13 REPLIES 13
Torsten.
Acclaimed Contributor

Re: How do you rebuild your SAS mirror from the OS

What you see is a RAID 1 (mirror) and the both participating disks in slots 1 and 2.

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!   
Clarete Riana
Valued Contributor

Re: How do you rebuild your SAS mirror from the OS

Hi Andy,

You do not need to do anything to resync or rebuild the drives. This will be taken care by the controller to which these disks are connected.What RAID controller do you have?

Even on a failure of a disk, you just have to replace the failed disk and the rebuild will be taken care by the controller when the disks are in a RAID configuration. Ofcourse there are limitations on the number of disks that can fail at a given point.

Regards,
Clarete
Torsten.
Acclaimed Contributor

Re: How do you rebuild your SAS mirror from the OS

The controller is the built in LSI SAS chip, the RAID is OPTMAL, so there is nothing to do.

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!   
Andy Imm
Frequent Advisor

Re: How do you rebuild your SAS mirror from the OS

Are you sure that the controller rebuilds automatically, and nothing is needed?

It wasn't until I went into the EFI and told the mirror to resync that I saw the mirror actually rebuilding.

Have any of you had your SAS drives replaced and the controller resynced the mirror? It didn't work for me automagically.
Torsten.
Acclaimed Contributor

Re: How do you rebuild your SAS mirror from the OS

It works.


The output with a bad disk:

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



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

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

Participating Physical Drive(s) :

SAS Address Enc Bay Size(MB) Type State

0x500000e014b31234 1 7 70007 PRIMARY ONLINE
0x500000e014b31234 1 8 70007 SECONDARY MISSING




Disk replaced and sync has started automagically:

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



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

Raid Level : RAID 1
Volume sas address : 0x9ad0b09c94c1234
Device Special File : /dev/rdsk/c1t0d0
Raid State : DEGRADED
Raid Status Flag : ENABLED RESYNC IN PROGRESS
Raid Size : 69878
Rebuild Rate : 0.00 %
Rebuild Progress : 23.18 %

Participating Physical Drive(s) :

SAS Address Enc Bay Size(MB) Type State

0x500000e014b31234 1 7 70007 PRIMARY ONLINE
0x5000c50006671234 1 8 70007 SECONDARY ONLINE



after the rebuild the RAID was again OPTIMAL.

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!   
Andy Imm
Frequent Advisor

Re: How do you rebuild your SAS mirror from the OS

I wonder why my RAID didn't resync?

I did have some errors in the syslog.log, but can't post them as I am not at my server.
Torsten.
Acclaimed Contributor

Re: How do you rebuild your SAS mirror from the OS

But your RAID is synced.

Raid State : OPTIMAL
Raid Status Flag : ENABLED

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!   
Andy Imm
Frequent Advisor

Re: How do you rebuild your SAS mirror from the OS

Yes, it is synced only after I went into the EFI and synced it.

This was in my syslog prior to going into the EFI;

Aug 24 08:54:16 vmunix: SAS driver at 0/2/1/0 (/dev/sasd1) : RAID volume at SAS address 0x05389f50e4c7a036 is in a degraded state.
Aug 24 08:54:32 vmunix: SAS driver at 0/2/1/0 (/dev/sasd1) : RAID volume at SAS address 0x05389f50e4c7a036 is in a degraded state.
Torsten.
Acclaimed Contributor

Re: How do you rebuild your SAS mirror from the OS

But compared to your initial post this is a different SAS address:




0x05389f50e4c7a036

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!