Operating System - HP-UX
1753474 Members
4631 Online
108794 Solutions
New Discussion юеВ

How to change a disk of raid1 from sas controller?

 
SOLVED
Go to solution
Wangjerfee
Occasional Advisor

How to change a disk of raid1 from sas controller?

The disk config is as below:

sasmgr get_info -D /dev/sasd1 -q raid

Wed Jul 20 12:34:26 2016

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

/dev/rdsk/c2t0d0 0x5000c5002c248f4d 1 5 140014
/dev/rdsk/c2t3d0 0x5000c5002c254f19 1 3 140014

---------- LOGICAL DRIVE 4 ----------

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

Participating Physical Drive(s) :

SAS Address Enc Bay Size(MB) Type State

0x5000c5002c2466c9 1 4 140014 PRIMARY ONLINE
0x0 0 0 140014 SECONDARY MISSING

the secondary disk of the logical drviver4 failed,  I need use the  physical disk /dev/rdsk/c2t3d0 in bay3 to replace it, but when I pull out the failed disk from bay3 and plug the new disk in, it was recognized as a  physical disk, how can I use this disk to replace the failed disk of Raid1?

 

 

thanks !

 

14 REPLIES 14
Torsten.
Acclaimed Contributor

Re: How to change a disk of raid1 from sas controller?

This will get a bit complicated, can you tell server model and OS version?


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!   
Wangjerfee
Occasional Advisor

Re: How to change a disk of raid1 from sas controller?

 

 

 

The server is : ia64 hp server rx2660

OS is : HP-UX B.11. 31

Torsten.
Acclaimed Contributor

Re: How to change a disk of raid1 from sas controller?

Please send the complete output of

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

 

You are using the mirroring feature of tis LSI adapter. Normally it starts the rebuild automatically on a new replaced disk, but your disk was in use before in this system ... ?

 

Did you notice if the special device files remains the same when you swaped it in another slot?


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!   
Wangjerfee
Occasional Advisor

Re: How to change a disk of raid1 from sas controller?

Spoiler

sasmgr get_info -D /dev/sasd1 -q raid

Wed Jul 20 12:34:26 2016

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

/dev/rdsk/c2t0d0           0x5000c5002c248f4d    1                                 5                            140014
/dev/rdsk/c2t3d0           0x5000c5002c254f19     1                                 3                            140014

---------- LOGICAL DRIVE 4 ----------

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

Participating Physical Drive(s) :

SAS Address                       Enc  Bay   Size(MB)            Type                    State

0x5000c5002c2466c9      1       4       140014               PRIMARY            ONLINE
0x0                                      0      0       140014               SECONDARY      MISSING

The secondary disk of RAID1 pair should be the disk in bay 3.

I'm not sure if the disk in bay3 is used or not, how can I init it to a blank disk and can be use in the raid1 pair ?

Torsten.
Acclaimed Contributor

Re: How to change a disk of raid1 from sas controller?

If the disk in slot 3 is not used, pull it and insert in slot 0.

 

The mirrored pair is slot 4 and slot 0.


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!   
Wangjerfee
Occasional Advisor

Re: How to change a disk of raid1 from sas controller?

The failed disk of logical drviver 4 is in bay3, and the bay number of Rx2660 is from 1 to 8, bay0 is not exist.

If I can fix this problem use drvcfg -s in EFI shell?

 

 

Torsten.
Acclaimed Contributor

Re: How to change a disk of raid1 from sas controller?

The command output is showing 2 disks without RAID and a RAID pair with a missing disk.

So how many disks are really installed in which slots? The bad disk is replaced already?

 

SLot 0 is shown if the disk is removed, so inserting a new disk in the original slot *should* replace the bad disk.

 

 

What result do you get from

 

 

# sasmgr get_info -D /dev/sasd1 -q lun=all -q lun_locate


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
Solution

Re: How to change a disk of raid1 from sas controller?

It's too long ago since I worked with these systems ...

 

However, if replacing the disk won't work, we will try to make the new disk a spare - this will work, I'm quite sure.

Example:

 

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

 

This will make disk in slot 8 a 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!   
Wangjerfee
Occasional Advisor

Re: How to change a disk of raid1 from sas controller?

Spoiler
sasmgr get_info -D /dev/sasd1 -q lun=all -q lun_locate
/dev/rdsk/c2t0d0           0/1/1/0.0.0.0.0                1                5                   OFF
/dev/rdsk/c2t3d0           0/1/1/0.0.0.3.0                 1                3                   OFF

RAID VOL ID is 4 :
/dev/rdsk/c2t1d0 0/1/1/0.0.0.1.0

Physical disks in volume are :
1       4            OFF           HP EG0146FAWHU               HPDE
ERROR: More than one PHY in the iport: Invalid argument

The original disk status is disks in bay3 and bay4 make a raid1 pair, the disk in bay5 is the stand alone physical disk, several days ago, disk in bay3 failed, I change a disk and wait the sas controller to synchronise it , but when I check it by sasmgr command I found that the disk was recognized as a physical disk.