ProLiant Servers (ML,DL,SL)
cancel
Showing results for 
Search instead for 
Did you mean: 

hpacucli - can't add spare to RAID1

tiger-dsh
Occasional Visitor

hpacucli - can't add spare to RAID1

ctrl slot=0 pd all show

 

Smart Array 5i in Slot 0

array A (Failed)

physicaldrive 1:2 (port 1:id 2 , Parallel SCSI, 36.4 GB, OK)
physicaldrive 1:3 (port 1:id 3 , Parallel SCSI, 36.7 GB, Failed)

array B

physicaldrive 1:4 (port 1:id 4 , Parallel SCSI, 146.8 GB, OK)
physicaldrive 1:5 (port 1:id 5 , Parallel SCSI, 146.8 GB, OK)
physicaldrive 2:0 (port 2:id 0 , Parallel SCSI, 146.8 GB, OK)

unassigned

physicaldrive 2:1 (port 2:id 1 , Parallel SCSI, 36.6 GB, OK)

 

 

=> ctrl all show config

Smart Array 5i in Slot 0 ()

array A (Parallel SCSI, Unused Space: 0 MB)

logicaldrive 1 (33.9 GB, RAID 1+0, Interim Recovery Mode)

physicaldrive 1:2 (port 1:id 2 , Parallel SCSI, 36.4 GB, OK)
physicaldrive 1:3 (port 1:id 3 , Parallel SCSI, 36.7 GB, Failed)

array B (Parallel SCSI, Unused Space: 0 MB)

logicaldrive 2 (273.5 GB, RAID 5, OK)

physicaldrive 1:4 (port 1:id 4 , Parallel SCSI, 146.8 GB, OK)
physicaldrive 1:5 (port 1:id 5 , Parallel SCSI, 146.8 GB, OK)
physicaldrive 2:0 (port 2:id 0 , Parallel SCSI, 146.8 GB, OK)

unassigned

physicaldrive 2:1 (port 2:id 1 , Parallel SCSI, 36.6 GB, OK)

 

 

 

ctrl slot=0 array A add spares=2:1

Error: This operation is not supported with the current configuration. Use the
"show" command on devices to show additional details about the
configuration.

 

ctrl slot=0 array all add spares=2:1

Error: This operation is not supported with the current configuration. Use the
"show" command on devices to show additional details about the
configuration.

 

=> ctrl slot=0 logicaldrive 1 add drives=2:1

Error: This operation is not supported with the current configuration. Use the
"show" command on devices to show additional details about the
configuration.

 

=> ctrl slot=0 array A add spares=allunassigned

Error: This operation is not supported with the current configuration. Use the
"show" command on devices to show additional details about the
configuration.

 

=> ctrl all show status

Smart Array 5i in Slot 0
Controller Status: OK
Cache Status: OK

 

 

What am I doing wrong?

6 REPLIES
gregersenj
HPE Pro

Re: hpacucli - can't add spare to RAID1

Drive 1:2 is reportet as 36,4 GB

Drive 1:3 is reportet as 36,7 GB

Your spare drive is reportet as 36,6 GB

So you hotspare is smaller than one of the drives in the array.

 

As far as I remember, there was an advisory on problems with the size reporting, and possibly a FW fix.

 

But why are you adding a hot spare now?

 

A hot spare, is a spare disk, that is idle. Actually it's powered off, while not in use. it is supposed to kick in when a disk in the array(s) fail, and will be active until you replace te failed drive. Once you replace the failed drive, data from the spare will be copied to the replacement disk, and the hotspare will become spare again.

 

Also if you want a spare disk, why not have a disk that has the same size as the largest disk on the array controller, and then use it as a global spare disk for all arrays?

 

What happens if you replace the failed disk, and insert the spare disk. Does it start rebuild, as it should do?

 

Take a look on the technology brief's, they are very good:

http://h18004.www1.hp.com/products/servers/technology/whitepapers/proliant-storage.html

 

BR

/jag

 

tiger-dsh
Occasional Visitor

Re: hpacucli - can't add spare to RAID1

I replaced the drive manually to disk smaller size (36.6) and array start rebuilding.  After the rebuild, I'll try again to add hot spare 36.6G

tiger-dsh
Occasional Visitor

Re: hpacucli - can't add spare to RAID1

LOL, array failed after rebuilding.

 

hpacucli ctrl all show config

 

Smart Array 5i in Slot 0 ()

array A (Parallel SCSI, Unused Space: 0 MB)

logicaldrive 1 (33.9 GB, RAID 1+0, Failed)

physicaldrive 1:2 (port 1:id 2 , Parallel SCSI, 36.4 GB, Failed)
physicaldrive 1:3 (port 1:id 3 , Parallel SCSI, 36.6 GB, OK)

array B (Parallel SCSI, Unused Space: 0 MB)

logicaldrive 2 (273.5 GB, RAID 5, OK)

physicaldrive 1:4 (port 1:id 4 , Parallel SCSI, 146.8 GB, OK)
physicaldrive 1:5 (port 1:id 5 , Parallel SCSI, 146.8 GB, OK)
physicaldrive 2:0 (port 2:id 0 , Parallel SCSI, 146.8 GB, OK)

unassigned

physicaldrive 2:1 (port 2:id 1 , Parallel SCSI, 36.6 GB, OK)

 

sever is unreacheble now, because the system partition was on the array :)

gregersenj
HPE Pro

Re: hpacucli - can't add spare to RAID1

You have one chance, that might get you back.

 

Power off server.

Remove te new replacement drive.

Re-seat the failed drive (drive 1:2)

don't put a drive in 1:3

Power on-server.

Let it start in interim recovery mode (F2 when prompted by the array controller).

insert spare drive.

 

If re-seating drive 1:2 get it back on-line, it will restart rebuild, and if it stay up long enough your safe.

 

BR

/jag

 

rconti
Occasional Visitor

Re: hpacucli - can't add spare to RAID1

Same problem except with exact same size and model of drive. I'd like to put in a spare so it'll rebuild from the failed disk.  

 

Perhaps the solution is to delete the failed disk from the array and add a different one but that's a bit risky for my taste.

 

=> ctrl all show config

Smart Array P400 in Slot 0 ()

array A (SAS, Unused Space: 0 MB)

logicaldrive 1 (410.1 GB, RAID 5, Interim Recovery Mode)

physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 146 GB, OK)
physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 146 GB, OK)
physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS, 0 MB, Failed)
physicaldrive 1I:1:4 (port 1I:box 1:bay 4, SAS, 146 GB, OK)

unassigned

physicaldrive 2I:1:5 (port 2I:box 1:bay 5, SAS, 146 GB, OK)
physicaldrive 2I:1:6 (port 2I:box 1:bay 6, SAS, 146 GB, OK)
physicaldrive 2I:1:7 (port 2I:box 1:bay 7, SAS, 146 GB, OK)
physicaldrive 2I:1:8 (port 2I:box 1:bay 8, SAS, 146 GB, OK)

=> ctrl slot=0 array all add spares=2I:1:8

Error: This operation is not supported with the current configuration. Use the
"show" command on devices to show additional details about the
configuration.

gregersenj
HPE Pro

Re: hpacucli - can't add spare to RAID1

Replaceing a failed disk is not rocket sience ;-)

 

If you got hotswap disks, simply pull out the failed disk.

wait 30 sec.

insert the new/spare disk.

Reconstruktion start automatically.

All done on-line.

 

 

If you got internal disks (not accessible without removing the top/side cover).

Then the server must be powered down.

disk replaced.

server powered up.

 

 

BR

/jag