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.
Procedure
1 | Find a suitable partition by calling
HostDiagnosticPartition.QueryAvailablePartition
or
HostDiagnosticPartition.QueryPartitionCreateOptions.
|
2 | Call
HostDiagnosticPartition.CreateDiagnosticPartition,
passing in a
HostDiagnosticPartitionCreateSpec, 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.