3165 Operation not valid for an online partition
Cause
This error occurs when an operation such as SetPartitionLocation is attempted and the specified partition is not marked as offline. The SetPartitionLocation operation is intended to change the specified location of a partition that has been taken offline before it is brought online; for example, to mount an archival partition burnt to optical media on a specified device or mount point.
Action
In the example scenario, use the MovePartition operation to move an online partition to a different location.