Troubleshoot Dynamic Pools and KubeVirt Workloads
Use this topic to troubleshoot issues with dynamic pool failover, pool migration, rebalance, KubeVirt VM placement, and cluster upgrades.
For information about the alerts and cluster options referenced in this topic, see Cluster options, alerts, and metrics.
A pool does not fail over
If a dynamic pool does not fail over, check whether its volume configuration or an ongoing operation is preventing migration.
-
Check the storage pools:
-
To view storage pools on the current node, run:
pxctl service pool show -
To view storage pools across the cluster, run:
pxctl cluster provision-statusCheck the
DYNAMICcolumn. If a pool that you expect to be dynamic is not marked as dynamic, verify that it does not contain any of the following volumes that prevent pool failover:- Volumes with a replication factor greater than 1.
- SharedV4 volumes.
- Volumes with journal profiles. To disable journaling on these volumes so that the pool can become dynamic, see A pool is not dynamic because a volume uses journaling.
To resolve the issue, move the volume that prevents failover to a static pool or, where appropriate, reduce its replication factor. Then retry the migration.
-
-
Verify that no operation is blocking pool failover.
For the complete list of conditions, see Limitations.
-
Check for alerts related to pool failover:
pxctl alerts showFor more information on these alerts, see Alerts.
A pool is not dynamic because a volume uses journaling
A pool cannot become dynamic if it contains a volume that uses the journal I/O profile. Even one volume with the journal I/O profile prevents the entire pool from becoming dynamic.
You can disable journaling on a volume while it is online, without detaching the volume or restarting Portworx.
-
Identify pools that are not dynamic:
pxctl cluster provision-statusCheck the
DYNAMICcolumn. Pools that are not dynamic reportno. -
Inspect the volumes on each affected pool to identify those that use journaling:
pxctl volume inspect <volume-name>Check the volume's journal setting and I/O profile. A volume prevents the pool from becoming dynamic if its journal setting is on, or if its I/O profile is
journalorauto_journal. A volume with theautoI/O profile also prevents the pool from becoming dynamic if Portworx derives thejournalprofile for it. -
Verify that the application does not require journaling before disabling it.
-
Disable journaling on each affected volume. Run the command that matches the setting you found in the previous step. If both the journal setting and the I/O profile are set, run both commands.
-
If the journal setting is on, run:
pxctl volume update --journal off <volume-name> -
If the I/O profile is
journalorauto_journal, or if Portworx derives thejournalprofile for a volume with theautoI/O profile, run:pxctl volume update --io_profile=none <volume-name>
-
-
Verify that the pool is dynamic:
pxctl cluster provision-statusCheck the
DYNAMICcolumn. If no volumes or other conditions prevent dynamic pool eligibility, the pool reportsyesimmediately. You do not need to restart Portworx or rescan the pool. -
Prevent new volumes from using the
journalI/O profile:-
To change the default I/O profile for volumes created without an explicitly configured profile, run:
pxctl cluster options update --default-io-profile none -
Remove
io_profile: "journal"from anyStorageClassused to provision volumes on dynamic pools.
-
Pool failover is blocked by an HA update
If a node goes down while a high-availability (HA) update is in progress on a volume, the update can prevent the pool containing that volume from failing over. To resolve the issue, cancel the HA update.
-
Identify volumes with an ongoing HA update by inspecting the volumes in the affected pool:
pxctl volume inspect <volume-name-or-id> -
Cancel the HA update on each affected volume:
pxctl volume ha-update --cancel <volume-name-or-id> -
Verify that the pool has failed over:
pxctl cluster provision-statusCheck the
NODEcolumn to confirm that the pool is now on another node.
After the pool fails over, you can run the HA update again.
A pool migration does not progress
If a pool migration remains in the same stage, check the migration plan and the health of the source and destination nodes.
-
Check the migration status:
pxctl service pool migrate status --intent-id <intent-id>A migration progresses through the following stages:
initpendingdeactivation_in_progressactivation_in_progressactivation_pool_readyPLAN_SUCCEEDED -
After the migration reaches PLAN_SUCCEEDED, check the node health:
pxctl statusVerify that the source and destination nodes show an
Onlinestatus. -
Check the storage node status:
kubectl get storagenodes -A
An intent represents a node-level migration request. Each intent contains a failover plan for every pool being moved.
A plan that remains in init might be waiting for the failover sequencer while another pool attaches to the same destination node.
Not all pools moved after a node-level migration
A CLI-initiated node-level migration can report FAILOVER_SUCCEEDED even when some pools remain on the source node.
Portworx limits the number of concurrent pool failovers across the cluster. By default, up to 16 pools across five nodes can fail over at the same time. If other active migrations have used some of the available failover slots, Portworx moves only as many pools as the remaining slots allow and defers the rest. When this happens, Portworx raises the PoolFailoverPoolsDeferred alert.
This limit applies to all node-level pool migrations, including CLI-initiated migrations, migrations triggered by node failures, and migrations performed before upgrades. For example, if two nodes hosting many pools fail simultaneously, some pools might be deferred.
Portworx does not automatically retry deferred pools when failover slots become available. The deferred pools remain unmoved until another migration is initiated.
To resolve the issue:
-
Check which pools remain on the source node:
pxctl cluster provision-statusIn the output, check the
NODEcolumn for pools that are still on the source node. -
Verify that the pools are eligible for migration.
notePools containing volumes with a replication factor greater than 1, SharedV4 volumes, or journal volumes are not eligible for failover.
-
Wait for active migrations to complete:
pxctl service pool migrate list --active-only -
Run the node-level migration command again:
pxctl service pool migrate --node <node-id>
For information about configuring the maximum number of concurrent pool failovers, see Cluster options.
A pool affinity group is split across nodes
A pool affinity group is split when its pools are distributed across multiple nodes.
To investigate the issue:
-
Check the affinity group:
pxctl service pool affinity-group --group-by affinity-group -
Check the
SPLITcolumn.A value of
yesindicates that the pools in the affinity group are distributed across multiple nodes. -
Verify that an eligible node has enough capacity to host all pools in the affinity group.
Common reasons for a split affinity group include:
- No node has enough available pool slots for all pools in the group.
- A node that could host the group is cordoned, unhealthy, or in maintenance.
- The affinity group contains more pools than can fit on one node.
Portworx attempts to bring the pools together during rebalance.
If the group contains more pools than can fit on one node, consider splitting the workload across two affinity groups.
If the group remains split for 10 consecutive rebalance cycles, Portworx raises the PoolAffinityGroupSplit alert.
Pause pool failover
If a storage pool or node has an issue that requires investigation, you can temporarily pause automatic pool failover to prevent Portworx from initiating additional pool relocations while you troubleshoot the issue.
To pause automatic pool failover, run:
pxctl cluster options update --pause-pool-failovers=true
After resolving the issue, resume automatic pool failover:
pxctl cluster options update --pause-pool-failovers=false
Resume automatic pool failover after troubleshooting is complete. While failover is paused, Portworx does not automatically relocate pools when a node becomes unavailable, which can affect workload availability.
Rebalance does not run
Rebalance can be delayed or blocked by other cluster operations.
Check whether any of the following conditions apply:
- An upgrade is in progress.
- Pool failover is in progress.
- A failover intent is active.
- Any node is cordoned.
- Any node is in pool maintenance mode.
- Any node is
NotReady. - Any node is under memory, disk, or PID pressure.
- Any node is down but not decommissioned.
- Nodes are running different Portworx versions.
- Rebalance is paused by a cluster option.
A single node that meets one of these conditions pauses rebalance for the whole cluster, and Portworx does not raise an alert.
Also verify that non-decommissioned nodes are available as rebalance destinations.
Resolve the blocking condition and allow the next rebalance cycle to run.
For more information, see Dynamic pool rebalance.
A fastpath volume does not return to active after a pool move
During pool migration, Portworx switches fastpath volumes to the standard I/O path.
After the pool comes online on the destination node, Portworx attempts to reactivate fastpath for eligible volumes.
A volume can report an inactive fastpath state during and shortly after migration.
If a volume remains inactive:
- Allow time for fastpath to reactivate. Pools with many fastpath volumes can take longer to complete activation.
- Verify that no pool migration plan exists for the pool. Portworx prevents fastpath activation while a migration plan exists.
- Verify that the nodes involved in the remote fastpath connection run the same Portworx Enterprise version.
- Check for fastpath alerts on the affected volumes.
For more information, see Fastpath behavior during failover.
A VM migration from VMware fails
Rapid VM Migration runs a conversion job on a node that hosts a volume replica. The job requires access to the local thin pool metadata and the backing FlashArray volume.
If a migration fails, perform the following checks:
-
Review the conversion job logs for data-copy failures, resource pressure, and scheduler errors.
-
Verify that the Portworx nodes hosting the volume replicas are healthy.
-
Verify that the destination nodes have enough CPU and memory to schedule the intermediate VM instance.
-
Verify that pool failover is paused.
If a pool moves during an
XCOPYoperation, Portworx deletes the device-mapper (dm) devices thatXCOPYwrites to. This causes the copy to fail, and the migration pod continues to report errors.To recover:
-
Pause pool failover.
For more information, see Pause pool failover.
-
Check the
XCOPYpods for transientXCOPYerrors. -
If the pods report these errors, delete the hook pod in the
openshift-mtvnamespace.Deleting the hook pod removes the PVCs and
XCOPYpods and starts the migration again. With pool failover paused, the same pool-movement error does not recur.
-
-
If the cluster uses multiple FlashArrays, verify that the destination volumes are on the same FlashArray as the source datastore.
XCOPYcannot copy data between FlashArrays.To place the destination volumes on the same FlashArray, set the
kube_datastore_affinityparameter in the destinationStorageClassto the Kube Datastore (KDS) of the source VM disk:parameters:kube_datastore_affinity: <source-kds-name>Set this parameter only on the Portworx (
pxd)StorageClass. Do not set it on the FADAStorageClassthat you map in the storage map.If the VM has disks on different datastores, create a separate
StorageClassfor each datastore.
Intermediate VM instances and temporary conversion pods are removed automatically, whether the migration succeeds or fails.
For more information, see Migrate VMs from VMware to Kube Datastore.
A VM remains in the Scheduling state after node recovery
After multiple nodes recover from an outage, a VM can remain in the Scheduling state with its pod in Init:0/1, even though the storage pools are online and Portworx reports no attachment errors.
This condition typically indicates a backlog of pending VolumeAttachment objects rather than a Portworx storage failure.
When multiple nodes recover, Kubernetes can generate many attach and detach requests, which the CSI external attacher processes serially.
To investigate the issue:
-
Check the
VolumeAttachmentobjects associated with the affected VM's PVCs:kubectl get volumeattachment -
Check for pending
VolumeAttachmentobjects with the following characteristics:attachedisfalse.- No attachment or detachment errors are reported.
- No finalizers are set.
- The object is not being deleted.
-
To assess the cluster-wide backlog, compare the total number of
VolumeAttachmentobjects with the number that reportattached: false. -
Check the
csi-attachercontainer logs for client-side throttling:kubectl logs -n <portworx-namespace> deployment/px-csi-ext -c csi-attacher | grep "client-side throttling"Messages similar to the following confirm that the Kubernetes API client is throttling the attacher:
"Waited before sending request" delay="143ms" reason="client-side throttling, not priority and fairness" verb="PATCH" URL=".../volumeattachments/<csi-...>/status"If these messages don't appear, the pending
VolumeAttachmentobjects have a different cause. Check the other conditions in this section before you change any settings.
VMs with multiple disks can experience longer delays because all their PVCs must be attached before they can start.
Resolution
If the logs show client-side throttling, increase the --kube-api-qps and --kube-api-burst values for the csi-attacher container by using a ComponentK8sConfig custom resource. For the procedure and recommended values, see Configure CSI attacher API rate limits.
After the CSI external attacher processes the pending attachment requests, the VMs can start.
An upgrade remains in UpdatePaused
During a rolling upgrade, the Portworx Operator waits for dynamic pool relocation and VM migration to complete before continuing with a node.
While these operations are in progress, the StorageCluster reports UpdatePaused and the number of nodes remaining in the upgrade.
If the upgrade does not progress:
-
Check the nodes that are still pending:
kubectl get storagenodes -A -
Check active pool migrations:
pxctl service pool migrate list -
Check active VM live migrations:
kubectl get vmim -A
A VM live migration that cannot complete can prevent the upgrade from progressing. For example, the migration can remain pending if no eligible destination node has enough resources to run the VM.
Resolve the underlying scheduling issue. The Operator continues the upgrade during the next reconciliation.
If another node crashes or reboots during the upgrade, the Operator excludes that offline node as a pool relocation destination to protect VM availability.
Collect diagnostics
If you contact Portworx Support about a Kube Datastore issue, collect the following information:
- Output of
pxctl cluster provision-statusto show pool distribution and dynamic pool status. - Portworx diagnostics from the affected nodes. The diagnostics include the pool migration records and affinity group information. When remote fastpath is enabled, the diagnostics include NVMe-oF/TCP information, such as the output of
nvme list -vandnvme list-subsys -v, in themiscfolder.
For more information, see Collecting diagnostics.