Create a Diagnostic
Partition
Creating a diagnostic partition requires
that you find a suitable partition using one of the query methods. You can then
retrieve a creation specification, and perform the actual creation.
To create a diagnostic partition, use the
following steps.
- Find a suitable partition by callingHostDiagnosticPartition.QueryAvailablePartitionorHostDiagnosticPartition.QueryPartitionCreateOptions.
- CallHostDiagnosticPartition.CreateDiagnosticPartition, passing in aHostDiagnosticPartitionCreateSpec, which includes information about the diagnostic type, id, storage type, and so on.
On success, this method creates the partition
and makes the partition the active partition if specified in the
active
parameter. On failure,
the diagnostic partition might exist, but will not be active even if the
partition was supposed to be made active.