Integrity Servers
cancel
Showing results for 
Search instead for 
Did you mean: 

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

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

It may have been from another server; This is from the right server, which is ok right now. I also had the hard drive replaced.

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

Thu Aug 26 10:27:17 2010

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

Raid Level : RAID 1
Volume sas address : 0x5389f50e4c7a036
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

0x500000e1129a01d2 1 1 140014 PRIMARY ONLINE
0x5000c5001d624151 1 2 140014 SECONDARY ONLINE


Torsten.
Acclaimed Contributor

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

If a drive goes bad the RAID will be degraded and you will get related messages until the drive is replaced and fully synced. The sync should start right after the disk is inserted.

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

It was probably an hour before I went into the EFI, and started the resync process.

If for some reason that the mirror doesn't resync like it appears for me, is there a command that you can run from the OS to re-sync the mirror?

Thanks for your help,
Andy
Torsten.
Acclaimed Contributor

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

Now nobody can say if the rebuilt was started or not ...


But the manual says


...

Integrated Mirror

The advantage of an IM is there is always a mirrored copy of the data. An IM
provides data protection for the system boot volume to safeguard critical
information such as the operating system on servers and high performance
workstations. An IM supports two simultaneous mirrored volumes, making an
array, providing fault-tolerant protection for critical data. Typically, one of these
volumes is the boot volume. If a disk in an IM fails, the hot swap capability allows
the volume to be easily restored by replacing the failed disk. The firmware then
automatically re-mirrors to the replaced disk.


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!