2022-03-28 03:32 PM
First off, I am a Netwitness fledgling! I recently replaced a couple of drives that are part of our RAID configuration. Went to replace another one and mistakenly ran the command to take a drive offline to one of our Global Hot Spares. The only command I see in the Hard Drive Replacement Guide talks about configuring a hot spare, specifically has the word "dedicated" in it. Since I didn't see any other commands that would work, I ran this command. It configured it as a Dedicated Hot Spare and not a Global Hot Spare. I tried taking it offline and rerunning the command with the word global instead of dedicated. That didn't work. Any idea what command(s) to run in order to configure as a Global Hot Spare vs. Dedicated?
2022-03-29 10:20 AM
A couple of questions...
1. What Netwitness version are you running
2. What type of storage is attached (I'm assuming an older DAC since you are targeting slot 14 which would not exist on a PowerVault
3. What model server are you running on (Series 4, Series 4S, Series 5, Series 6)
4. What is the firmware version of the PERC controller?
can you post the output of the nwraidtool.py -b
note:
c = controller number (so if you run "nwraidtool.py -b" look for what controller the enclosure is under (most likely it's controller 1))
e = enclosure number, so in your case it would be 191
s = slot number (so in your case 14)
so to clear the hotspare drive currently configured:
opt/MegaRAID/perccli/perccli64 /c1 /e191 /s14 delete hotsparedrive
Then to create a new one using enclosure affinity:
opt/MegaRAID/perccli/perccli64 /c1 /e191 /s14 add hotsparedrive enclaffinity
2022-03-28 04:38 PM
first off, you are probably using the old MegaCLI commands and should be using the perccli commands now.
Hot spare drive commands
The following commands create and delete hot spare drives:
/opt/MegaRAID/perccli/perccli64 /cx[/ex]/sx add hotsparedrive {dgs=<n|0,1,2...>}[enclaffinity]
/opt/MegaRAID/perccli/perccli64 /cx/[ex]/sx delete hotsparedrive
if you run the add without the 'dgs=n,n...' and without 'enclaffinity' it will be a global hot spare
if you want it to have affinity for it's own enclosure, add the 'enclaffinity'
if you want it dedicated to only specific dg's (ex for disk groups 1 and 2), then add the 'dgs=1,2'
Use the delete to clear the old Hot Spare config and then run the add to make it what you want.
I've attached the PERCCLI command reference guide also.
2022-03-29 09:50 AM
Thank you for the quick reply. I attempted the perccli command you suggested. I receive a syntax error, TOKEN_UNKNOWN, expecting TOKEN_FLUSH. The drive I want to configure is in slot 14 of the enclosure. It is to be used as a Global Hot Spare for the enclosure (191). I'm not sure what "cx" means. From the research I did, seems like it stands for controller. I tried both the delete and add hotsparedrive command. Assuming that I add on the [enclaffinity]? Anyways, any way that I try it produces the same syntax error.
I'm sure there is something that I am missing. Hoping you can help. Thank you.
2022-03-29 10:20 AM
A couple of questions...
1. What Netwitness version are you running
2. What type of storage is attached (I'm assuming an older DAC since you are targeting slot 14 which would not exist on a PowerVault
3. What model server are you running on (Series 4, Series 4S, Series 5, Series 6)
4. What is the firmware version of the PERC controller?
can you post the output of the nwraidtool.py -b
note:
c = controller number (so if you run "nwraidtool.py -b" look for what controller the enclosure is under (most likely it's controller 1))
e = enclosure number, so in your case it would be 191
s = slot number (so in your case 14)
so to clear the hotspare drive currently configured:
opt/MegaRAID/perccli/perccli64 /c1 /e191 /s14 delete hotsparedrive
Then to create a new one using enclosure affinity:
opt/MegaRAID/perccli/perccli64 /c1 /e191 /s14 add hotsparedrive enclaffinity
2022-03-29 11:55 AM
That worked! Had to add a / in front of opt, but it is now a GHS. What I had done wrong with your initial suggestion, was not putting spaces between cx ex and sx, as well as the /. Appreciate your assistance! Have a great day!