| Previous | Next |
| ERROR_VOLMGR_PACK_CONFIG_OFFLINE | ERROR_VOLMGR_NOT_PRIMARY_PACK |
ERROR_VOLMGR_PACK_CONFIG_ONLINE
Identify the owner before touching the layout: volmgr pack config online
ERROR_VOLMGR_PACK_CONFIG_ONLINE (0xC0380051) is emitted by the volmgr path when the request expects an offline pack configuration, but the disk group is currently active and online. The deciding object is dynamic-disk pack identity, quorum and replicated configuration log, so the first investigation belongs there rather than in a generic “disk failure” bucket.
Minimum diagnostic set
| Storage diagnostic field | Value |
|---|---|
| Identity and generation | pack GUID and name, online state, primary flag, disk inventory, configuration-log sequence numbers, quorum view and failing transaction ID |
| Narrow experiment | query the pack configuration state, perform one controlled online/offline transition, and repeat the identical metadata operation |
| Closest comparison | ERROR_VOLMGR_PACK_CONFIG_OFFLINE |
| Owning object | dynamic-disk pack identity, quorum and replicated configuration log |
| Rejected invariant | the request expects an offline pack configuration, but the disk group is currently active and online |
A management layer handling this result should report later recovery errors separately, because they answer a different question from the failed storage operation.
Reproduce without destructive cleanup
- Associate this result with one caller, one transaction and one target UniqueId.
- Save the pre-call and post-call inventories, including pack GUID and name, online state, primary flag, disk inventory, configuration-log sequence numbers, quorum view and failing transaction ID.
- Use this A/B case without touching unrelated storage: query the pack configuration state, perform one controlled online/offline transition, and repeat the identical metadata operation.
- Validate both the HRESULT and the on-disk or provider state after the relevant reopen, remount or attach cycle.
Use ERROR_VOLMGR_PACK_CONFIG_OFFLINE as the nearest comparison. This result is specific to the request expects an offline pack configuration, but the disk group is currently active and online; the neighboring result belongs to another validation or lifecycle branch. Keeping both names prevents a generic storage label from hiding the actual owner.
Mechanism-specific note
Pack configuration state controls which metadata transitions are legal; it is not the same as one disk being offline in Disk Management. Capture the pack state and the state of each disk separately, then perform one explicit state transition and refresh the pack object before retrying.
Restore the contract
Repair the pack configuration through supported dynamic-disk management, preserving GUIDs and the newest valid log sequence; avoid sector-level edits to replicated metadata. Apply the change through the supported storage API, then close and reacquire affected objects before retrying.
- the first retry uses newly enumerated identifiers rather than cached handles.
- The durable metadata or provider state agrees with the success returned after it.
- A second run after close/reopen does not recreate the rejected condition.
- the nearby
ERROR_VOLMGR_PACK_CONFIG_OFFLINEpath remains separately testable and separately logged.
Technical references
- Microsoft: COM error codes for VOLMGR, VHD and SDIAG — defines the volmgr objects used to interpret it.
- Microsoft: Virtual Disk Service object model — primary API or object-model reference.
- Microsoft: Pack object — use this source to verify volmgr state and parameters.
- Microsoft: Virtual Disk Service common return codes — documents the supported management path relevant to this HRESULT.
Looking for a different code? Search another status or error code.