Home > Servers > Systems Management > White Papers > Server Configuration Profiles: Reference Guide > Creating and initializing a virtual disk
SCP can be used to create and initialize a virtual disk. The following XML example illustrates how this operation can be accomplished with a template. The virtual disk is a part of RAID.Slot.2-1 using disk 0 and 9. The RAIDaction attribute specifies the Create activity, and the RAIDinitOperation attribute specifies how the VD will be initialized.
Note: Storage Component elements can be nested inside their parent Components to show the hierarchy of these devices. In the following example, Disk.Virtual.0 is a subcomponent of RAID.Slot.2-1. This is also reflected in the Disk.Virtual.0:RAID.Slot.2-1 FQDD.
Note: On PERC 11 controllers only, if the server that you are importing the SCP file to has VDs already created (for example: VD ID 239, VD ID 238) and the SCP file is going to reset the controller and create VDs, the new VDs will be created but the VD index ID of the first VD will start at 237, not 239.
<Component FQDD="RAID.Slot.2‐1">
<Component FQDD="Disk.Virtual.0:RAID.Slot.2‐1">
<Attribute Name="IncludedPhysicalDiskID"> Disk.Bay.0:Enclosure.External.0‐0:RAID.Slot.2‐1
</Attribute>
<Attribute Name="IncludedPhysicalDiskID"> Disk.Bay.9:Enclosure.External.0‐0:RAID.Slot.2‐1
</Attribute>
<Attribute Name="RAIDaction">Create</Attribute>
<Attribute Name="RAIDinitOperation">Fast</Attribute>
<Attribute Name="DiskCachePolicy">Default</Attribute>
<Attribute Name="RAIDdefaultWritePolicy">WriteBack</Attribute>
<Attribute Name="RAIDdefaultReadPolicy">Adaptive</Attribute>
<Attribute Name="Name">xmlconfig</Attribute>
<Attribute Name="Size">146163105792</Attribute>
<Attribute Name="StripeSize">128</Attribute>
<Attribute Name="SpanDepth">1</Attribute>
<Attribute Name="SpanLength">2</Attribute>
<Attribute Name="RAIDTypes">RAID 1</Attribute>
</Component>
</Component>
This action can also be performed without specifying the physical disks. If no physical disks are included in the VD creation, they will be chosen automatically.
<Component FQDD="RAID.Slot.2‐1">
<Component FQDD="Disk.Virtual.0:RAID.Slot.2‐1">
<Attribute Name="RAIDaction">CreateAuto</Attribute>
<Attribute Name="RAIDinitOperation">Fast</Attribute>
<Attribute Name="Name">xmlconfig</Attribute>
<Attribute Name="Size">0</Attribute>
<Attribute Name="RAIDTypes">RAID 1</Attribute>
</Component>
</Component>
Note: Because physical disk drives included in the VDs are selected automatically based on size and RAIDTypes, span parameters such as SpanLength and SpanDepth are also determined automatically. Hence, they also must not be specified in the input configuration XML file.
When Size value is specified as 0, the VD will be created with minimum number of disks required for the RAIDTypes.