Operating System - HP-UX
1753502 Members
4942 Online
108794 Solutions
New Discussion

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

 
SOLVED
Go to solution
Torsten.
Acclaimed Contributor

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

make it a spare now

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 add -D /dev/sasd1 -q raid -q spare -q enc_bay=1:3

WARNING: Make sure that the spare disks size is
greater than or equal to atleast the size of one of the
physical disks.

This operation will overwrite the data on the disks.

Do you want to continue ?(y/n) [n]...

WARNING: This operation may take a few seconds.

Spare drive is added successfully.
aqltnm,sys,root # sasmgr get_info -D /dev/sasd1 -q raid

Mon Jul 25 11:22:00 2016

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

/dev/rdsk/c2t0d0 0x5000c5002c248f4d 1 5 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 RESYNC IN PROGRESS
Raid Size : 139236
Rebuild Rate : 0.00 %
Rebuild Progress : 0.07 %

Participating Physical Drive(s) :

SAS Address Enc Bay Size(MB) Type State

0x5000c5002c2466c9 1 4 140014 PRIMARY ONLINE
0x5000c5002c254f19 1 3 140014 SECONDARY ONLINE

OK, it worked!

the disk in bay3 was succes added to the RAID pair!

Torsten , many thanks for your support!

 

hgraaf
Occasional Visitor

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

Hi,

 

I've more or less the same problem.

But a question:

Did you exactly use bay 8 in your command?

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

 

Or did you use bay 3 to overwrite the missing disk:

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

After your change, what is the output of the command?

sasmgr get_info -D /dev/sasd1 -q raid

This gives me more understanding of the solution provided.

Thanks, Huib.

 

Torsten.
Acclaimed Contributor

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

If you want to use the disk in slot 3 as a spare then run

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

 


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!   
hgraaf
Occasional Visitor

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

Hi,

 

thanks for your fast reply.

I was not sure if it overwrites the empty/ missing data or add a new slot/ position.

Indeed, it worked, disk is now starting to sync. Disk 8 was my missing one.

:-)  Huib.