Reference Guide
163 Lifecycle Controller Web Services Interface Guide for Linux
The input file GetDHSDisks.xml is shown below:
<p:GetDHSDisks_INPUT
xmlns:p=“http://schemas.dmtf.org/wbem/wscim/1/cimschema/2/root/dcim/DCIM_RAIDS
ervice”>
<p:Target>DISK.Virtual.1:RAID.Integrated.1-1</p:Target>
</p:GetDHSDisks_INPUT>
OUTPUT:
GetDHSDisks_OUTPUT
ReturnValue = 0
The following message may be fixed by deleting the job queue as referenced in Section 10.2.2.
<n1:GetDHSDisks_OUTPUT>
<n1:Message>Configuration already committed, cannot set
configuration</n1:Message>
<n1:MessageID>STOR023</n1:MessageID>
<n1:ReturnValue>2</n1:ReturnValue>
</n1:GetDHSDisks_OUTPUT>
16.19.2 Assigning the Hot-Spare-AssignSpare()
The AssignSpare() method is used to assign a physical disk drive 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:
wsman invoke -a AssignSpare
http://schemas.dmtf.org/wbem/wscim/1/cimschema/2/root/dcim/DCIM_RAIDService?
SystemCreationClassName=DCIM_ComputerSystem,CreationClassName=DCIM_RAIDService
,SystemName=DCIM:ComputerSystem,Name=DCIM:RAIDService
-h $IPADDRESS -V -v -c dummy.cert -P 443
-u $USERNAME -p $PASSWORD
-J AssignSpare.xml -j utf-8 -y basic
The input file AssignSpare.xml is shown below:
<p:AssignSpare_INPUT
xmlns:p="http://schemas.dmtf.org/wbem/wscim/1/cimschema/2/root/dcim/DCIM_RAIDS
ervice”>
<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:
<n1:AssignSpare_OUTPUT>
<n1:RebootRequired>YES</n1:RebootRequired>
<n1:ReturnValue>0</n1:ReturnValue>
</n1:AssignSpare_OUTPUT>
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 (PD) is too small for the virtual disk referenced (dedicated hot spare)