1

For a HA clustered setup (RHEL 5.8), my HP DL 380p G8 server consists of this:

mirrored root disk(RAID 1):

array A
physicaldrive 1I:2:1 (port 1I:box 2:bay 1, SAS, 300 GB, OK)
physicaldrive 1I:2:2 (port 1I:box 2:bay 2, SAS, 300 GB, OK)

a hot spare for the root disk:

array A
physicaldrive 1I:2:4 (port 1I:box 2:bay 4, SAS, 1 TB, OK, spare)

and a backup disk(RAID 0):

array B
physicaldrive 1I:2:3 (port 1I:box 2:bay 3, SAS, 300 GB, OK)

My questions are:

1. What's the function of hot spare ?
2. Does the 1TB space assigned to the hot spare means it won't be available physically?
3. I want to change the space for the backup array to 1-TB and change the size of the hot spare to 300 GB. Can this be done without losing any data ? (Note I already have my application running in `/apps` folder.
ewwhite
  • 197,159
  • 92
  • 443
  • 809
dig_123
  • 285
  • 4
  • 11
  • I'm sorry, this looks very wrong. Can you post the full output of `ctrl all show config` from the `hpacucli` or `hpssacli` utility? – ewwhite May 05 '14 at 12:48

1 Answers1

1

1.- The hot spare is a disk that its used by your controller when one of the disk of the RAID 1 fails. When that happens, it will kick automatically the hot spare disk so you won´t loose redundancy. Then you will have to replace the faulty disk and when that happens, the controller will automatically restore the raid to its original state and disable the hot spare disk.

2.- That´s right, you can´t use the 1TB space assigned to the Hot Spare.

3.- You can do this if you are using hardware raid. Be aware that you will lose all the data on the 300GB disk. You should backup the info on this disk first. After that, just reboot the server and boot it using the HP Smart Array CD. Using this app you can change the settings on the array. You should be able to assign the 300GB backup disk as Hot Spare for the Array A and then assign the 1TB disk to the Array B.

I suppose that it will be possible to do this on a software RAID but I can´t help you with that because I lack the knowledge.

Hope it helps! ;)

Trinue
  • 116
  • 3
  • thanks for your reply. Do I lose data on my / partition if I perform step-3, i.e change the size of backup `physicaldrive 1I:2:3 (port 1I:box 2:bay 3, SAS, 300 GB, OK)` to `1 TB` and change the spare :`physicaldrive 1I:2:4 (port 1I:box 2:bay 4, SAS, 1 TB, OK, spare)` size to `300 GB` – dig_123 Apr 28 '14 at 12:02
  • You should not lose data if you perform the steps correctly. Basically you won´t be touching Array A and hot spare does not count as data disk so... But I would recommend doing a backup of / before starting with this process. – Trinue Apr 28 '14 at 12:39
  • This is a hardware RAID controller, and the operations the OP needs can be performed without dataloss. – ewwhite May 05 '14 at 12:49