Web Services Interface Guide
225 Dell Lifecycle Controller Web Services Interface Guide for Windows
16.16.2 Assigning the Hot Spare-AssignSpare()
The AssignSpare() method is used to assign a physical disk as a dedicated HotSpare for a virtual disk (VD),
or as a global HotSpare.
Invoke AssignSpare() with the following parameters and syntax:
TARGET: This parameter is the FQDD of the DCIM_PhysicalDiskView (Section 16.9)
VirtualDiskArray: Array of ElementName(s) where each identifies a different VD, currently only one VD can
be passed
EXAMPLE:
winrm i AssignSpare http://schemas.dmtf.org/wbem/wscim/1/cim-
schema/2/root/dcim/DCIM_RAIDService ?SystemCreationClassName=DCIM_ComputerSystem
+CreationClassName=DCIM_RAIDService +SystemName=DCIM:ComputerSystem
+Name=DCIM:RAIDService -u:[USER] -p:[PASSWORD]
-r:https://[IPADDRESS]/wsman -SkipCNcheck -SkipCAcheck -encoding:utf-8 -a:basic
-file:AssignSpare.xml
The input file AssignSpare.xml is shown below:
<p:AssignSpare_INPUT xmlns:p="http://schemas.dmtf.org/wbem/wscim/1/cim-
schema/2/root/dcim/DCIM_RAIDService">
<p:Target>Disk.Bay.3:Enclosure.Internal.0-0 :RAID.Integrated.1-1</p:Target>
<p:VirtualDiskArray>Disk.Virtual.0 :RAID.Integrated.1-1</p:VirtualDiskArray>
</p:AssignSpare_INPUT>
OUTPUT:
AssignSpare_OUTPUT
RebootRequired = YES
ReturnValue = 0
Nonconformance to the following restrictions may result in the error message below.
Virtual disk (VD) referenced (dedicated hot spare) is RAID-0, which cannot have hot spares
Physical disk drive(PDD) is too small for the virtual disk referenced (dedicated hot spare)
Physical disk drive is wrong type for the virtual disk (i.e. SATA PD to be used as hot spare for SAS VD)
Similar conditions when no VD referenced, which is the global hot spare attempted assignment
ERROR MESSAGE: