Install Portworx on a SUSE Virtualization Two-Node with Arbiter Cluster
A Portworx cluster on a SUSE Virtualization (Harvester) two-node with arbiter (TNA) cluster is a compact, cost-effective topology designed for edge environments. The cluster consists of two control plane nodes and one arbiter (witness) node. The arbiter node stores the Portworx KVDB data, maintaining quorum and preventing split-brain. The arbiter node does not store application data or run workloads.
This topic provides instructions for installing Portworx Enterprise on a SUSE Virtualization TNA cluster with FlashArray. The installation follows the same process as Install Portworx on SUSE Virtualization, with additional TNA-specific prerequisites and configuration, which this topic calls out.
If your deployment requires more than three nodes, configure it as a regular Portworx cluster rather than a TNA cluster. For more information, see Install Portworx on SUSE Virtualization.
The following collection of tasks describes how to install Portworx on a SUSE Virtualization TNA cluster:
- Create a two-node cluster with a witness node
- Configure multipath for FlashArray
- Configure Udev rules
- Apply multipath and Udev configurations
- Set up user access in FlashArray
- Create pure.json file
- Add FlashArray configuration to a Kubernetes secret
- Generate Portworx specification
- Deploy Portworx Operator
- Deploy StorageCluster
- Create a StorageClass
- Update the CSI driver configuration
- Create a VM
- Verify Portworx installation
Complete all the tasks to install Portworx.
Prerequisites
In addition to the System Requirements, ensure that your SUSE Virtualization cluster meets the following requirements before installing Portworx Enterprise:
- Portworx version: 3.6.0 or later
- Portworx Operator version: 26.2.0 or later
- SUSE Virtualization version: 1.6.0 or later
- PX-Store version: Only PX-StoreV2 is supported for TNA clusters.
- Cluster topology: Exactly three nodes: two control plane nodes and one arbiter node that has only the
etcdrole. - Use FlashArray as the storage backend.
- Attach the backing storage disks to each control plane node.
- Allocate a dedicated system metadata device on each control plane node, and a dedicated KVDB device on the arbiter node.
- Disable kernel auto-updates on your cluster.
- Arbiter node: The arbiter node must meet the generic System Requirements with the following TNA-specific overrides:
Category TNA-Specific Requirement CPU Cores (Physical) 4 cores Network Latency 200ms maximum
- Portworx does not support sharedv4 volumes on SUSE Virtualization nodes that use the SLE Micro operating system. The overlay filesystem on these nodes prevents Portworx from completing the required mount operations for sharedv4. Portworx supports only PX Raw RWX volumes for KubeVirt workloads on SUSE Virtualization.
Create a two-node cluster with a witness node
Create the SUSE Virtualization two-node cluster with a witness node, as described in Witness Node in the Harvester documentation.
Configure multipath for FlashArray
To ensure compatibility between Portworx Enterprise and FlashArray, configure the multipath settings on your cluster before installation.
- FlashArray and Portworx Enterprise do not support user-friendly names. Set
user_friendly_namestonobefore installing Portworx Enterprise on your cluster. This ensures consistent device naming conventions between Portworx and FlashArray. - Add
polling_interval 10as recommended by RHEL Linux settings. This defines how often the system checks for path status updates. - To avoid interference from the multipathd service during Portworx volume operations, set the pxd device denylist rule.
Your /etc/multipath.conf file must follow this structure:
defaults {
user_friendly_names no
enable_foreign "^$"
polling_interval 10
}
devices {
device {
vendor "NVME"
product "Pure Storage FlashArray"
path_selector "queue-length 0"
path_grouping_policy group_by_prio
prio ana
failback immediate
fast_io_fail_tmo 10
user_friendly_names no
no_path_retry 0
features 0
dev_loss_tmo 60
}
device {
vendor "PURE"
product "FlashArray"
path_selector "service-time 0"
hardware_handler "1 alua"
path_grouping_policy group_by_prio
prio alua
failback immediate
path_checker tur
fast_io_fail_tmo 10
user_friendly_names no
no_path_retry 0
features 0
dev_loss_tmo 600
}
}
blacklist_exceptions {
property "(SCSI_IDENT_|ID_WWN)"
}
blacklist {
devnode "^pxd[0-9]*"
devnode "^pxd*"
device {
vendor "VMware"
product "Virtual disk"
}
}
Configure Udev rules
Configure queue settings with Udev rules on all nodes. For recommended settings for FlashArray, see Applying Queue Settings with Udev.
Apply multipath and Udev configurations
Apply the Multipath and Udev configurations created in the previous sections for the changes to take effect.
Use a CloudInit configuration in SUSE Virtualization to apply multipath and Udev configuration files consistently across all nodes.
-
Add the configuration files to the CloudInit configuration, as shown in the following example:
apiVersion: node.harvesterhci.io/v1beta1kind: CloudInitmetadata:name: <your-cloudinit-config-name>spec:contents: |stages:network:- name: "Configure pure storage"files:- path: /etc/udev/rules.d/99-pure-storage.rulespermissions: 0644content: |<plaintext-udev_conf>- path: /etc/multipath.confcontent: |<plaintext-multipath_conf>permissions: 0644- name: "Start multipathd service"systemctl:enable:- multipathdstart:- multipathdfilename: 99_multipathd.yamlmatchSelector: {} -
Apply the CloudInit configuration to your cluster:
kubectl apply -f <your-cloudinit-config-name>.yaml
Set up user access in FlashArray
To establish secure communication between Portworx and FlashArray, you must create a user account and generate an API token. This token serves as an authentication mechanism, allowing Portworx to interact with FlashArray and perform storage operations on behalf of the authorized user. This configuration ensures each tenant has access only to their assigned storage volumes.
This section provides the steps to generate an API token, which serves as your authorization within the FlashArray environment.
A FlashArray pod is a logical grouping on the storage array and is not related to Kubernetes Pods.
-
Create a new user:
- In the FlashArray dashboard, from the left navigation pane, click Settings.
The system displays the Settings page. - Click the Access tab.
- In the Users section, click the vertical ellipsis on the top-right side, and select Create User.

- In the Create User window, enter the details and set the role as Storage Admin.
- Click Create to add the new user.
- In the FlashArray dashboard, from the left navigation pane, click Settings.
-
Generate an API token:
- To create a token for the user, select the user from the Users list, click the vertical ellipsis on the right-hand side of the username, and select Create API Token.

- In the API Token window, leave the Expires in field empty to create a token that never expires.
- Click Create.
- Save the token information to avoid needing to recreate it later.
- To create a token for the user, select the user from the Users list, click the vertical ellipsis on the right-hand side of the username, and select Create API Token.
Create pure.json file
To integrate Portworx Enterprise with FlashArray, create a JSON configuration file (named pure.json) containing essential information about the FlashArray environment. This file should include the management endpoints and the API token you generated.
- Management endpoints: These are URLs or IP addresses that Portworx uses to communicate with FlashArray through API calls. To locate these, go to Settings > Network in your FlashArray dashboard. Note the IP addresses or hostnames of your management interfaces, prefixed with vir, indicating virtual interfaces.
important
For an IPv6 address, ensure that the IP address is enclosed in square brackets. For example: "MgmtEndPoint": "[XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX]".
- API token: Generated in the previous section.
Use the information above to create a JSON file. The following is a template for the configuration content, which you must populate with your specific information:
If you are configuring both FlashArray and FlashBlade, you can add FlashBlade configuration information in the same file. For more information, see the JSON file.
{
"FlashArrays": [
{
"MgmtEndPoint": "<fa-management-endpoint>",
"APIToken": "<fa-api-token>"
}
]
}
Add FlashArray configuration to a Kubernetes secret
To enable Portworx Enterprise to access the FlashArray configuration, add the pure.json file to a Kubernetes secret by running the following command to create a secret named px-pure-secret:
kubectl create secret generic px-pure-secret --namespace <stc-namespace> --from-file=pure.json
secret/px-pure-secret created
- The specific name
px-pure-secretis required so that Portworx Enterprise can correctly identify and access the Kubernetes secret upon startup. This secret securely stores the FlashArray configuration details and allows Portworx Enterprise to access this information within the Kubernetes environment. - Ensure that the
px-pure-secretis in the same namespace where you plan to install Portworx Enterprise.
Generate Portworx specification
To install Portworx, first generate the Kubernetes manifests that you deploy in your SUSE Virtualization cluster. Follow these steps:
When generating the specification for TNA, you must select PX-StoreV2 in the Storage tab. TNA is not supported with PX-StoreV1.
-
Sign in to the Portworx Central console.
The system displays the Welcome to Portworx Central! page. -
In the Portworx Enterprise section, select Generate Cluster Spec.
The system displays the Generate Spec page. -
From the Portworx Version dropdown menu, select the Portworx version to install.
-
From the Platform dropdown menu, select DAS/SAN.
-
From the Distribution Name dropdown menu, select Rancher Kubernetes Engine (RKE).
-
To customize the configuration options, click Customize and perform the following steps:
- Basic tab:
-
To use an existing etcd cluster, do the following:
- Select the Your etcd details option.
- In the field provided, enter the host name or IP and port number. For example,
http://test.com.net:1234.
To add another etcd cluster, click the + icon.
noteYou can add up to three etcd clusters.
- Select one of the following authentication methods:
- Disable HTTPS – To use HTTP for etcd communication.
- Certificate Auth – To use HTTPS with an SSL certificate.
For more information, see Secure your etcd communication. - Password Auth – To use HTTPS with username and password authentication.
-
To use an internal Portworx-managed key-value store (KVDB), do the following:
- Select the Built-in option.
- TLS for internal KVDB is enabled by default. If Cert-Manager is already running in your Kubernetes cluster, deselect the Deploy Cert-Manager for TLS certificates option to avoid installation failures.
-
Click Next.
-
Storage tab:
- To enable Portworx to use all available, unused, and unmounted drives on the node, do the following:
- Select the Automatically scan disks option.
- From the Default IO Profile dropdown menu, select Auto.
This enables Portworx to automatically choose the best I/O profile based on detected workload patterns.
- Ensure that PX-Store V2 is selected in the Select PX-Store Version list because the TNA setup is supported only with PX-Store V2.
- Turn on the toggle: Enable Two Node Arbiter (TNA) Setup.
- For control plane nodes 1 and 2, enter the following details:
- Node Name: Node name from
kubectl get nodesoutput. - System Metadata Device: Enter the path of the system metadata device (for example,
/dev/sdb). - (Optional) Cluster Domain: Enter the cluster domain name.
- Node Name: Node name from
- For the arbiter node, enter the following details:
- Node Name: Node name from
kubectl get nodesoutput. - KVDB Device: Enter the path of the KVDB device (for example,
/dev/sdb). - Cluster Domain: The cluster domain name must be
witness. This value is set by default.
- Node Name: Node name from
- For control plane nodes 1 and 2, enter the following details:
- From the Journal Device dropdown menu, select one of the following:
- None – To use the default journaling setting.
- Auto – To automatically allocate journal devices.
- Custom – To manually enter a journal device path (applicable only for control plane nodes).
Enter the path of the journal device in the Journal Device Path field.
- Click Next.
- To enable Portworx to use all available, unused, and unmounted drives on the node, do the following:
-
Network tab:
- In the Interface(s) section, do the following:
- Enter the Data Network Interface to be used for data traffic.
- Enter the Management Network Interface to be used for management traffic.
- In the Advanced Settings section, do the following:
- Enter the Starting port for Portworx services.
- Click Next.
- In the Interface(s) section, do the following:
-
Deployment tab:
-
In the Kubernetes Distribution section, select Rancher Kubernetes Engine (RKE).
-
In the Component Settings section:
- Select the Enable Stork checkbox to enable Stork.
- Select the Restrict Data Protection RBAC checkbox to restrict RBAC permissions for Stork (if enabled). You cannot use Backup and DR capabilities with this restriction. For more information, see Restrict Data Protection RBAC.
- (Optional) Select the Remote Fastpath (NVMe-oF/TCP) checkbox to enable Remote Fastpath. For more information, see Remote Fastpath.
- Select the Enable Monitoring checkbox to enable monitoring of Portworx components and resources.
- To configure the monitoring stack, select one of the following:
- Portworx Managed - To enable Portworx to install and manage Prometheus and Operator automatically.
Ensure that no other Prometheus Operator instance is already running on the cluster. - User Managed - To configure and manage your own monitoring stack.
- Portworx Managed - To enable Portworx to install and manage Prometheus and Operator automatically.
- Select the Enable Autopilot checkbox to enable Portworx Autopilot. For a User Managed monitoring stack, Portworx supports the following metrics providers that Autopilot uses to fetch metrics for rule evaluation and automated actions.
- Prometheus - Provide a valid Prometheus URL
- Datadog - Provide a valid Datadog URL, Secret Name, and Secret Namespace. To create a Secret, see enable Datadog.
For more information on Autopilot, see Expanding your Storage Pool with Autopilot.
- To configure the monitoring stack, select one of the following:
- Select the Enable Telemetry checkbox to enable telemetry in the StorageCluster spec.
For more information, see Enable Pure1 integration for upgrades on a SUSE Virtualization cluster. - Enter the prefix for the Portworx cluster name in the Cluster Name Prefix field.
- Select the Secrets Store Type from the dropdown menu to store and manage secure information for features such as CloudSnaps and Encryption.
- Select the Enable Stork checkbox to enable Stork.
-
In the Environment Variables section, enter name-value pairs in the respective fields.
- To restrict Portworx services from listening on all network interfaces, set
PX_DISABLE_WILDCARD_LISTENERSto"true". By default, Portworx services listen on0.0.0.0(all interfaces). When this environment variable is set to true, each service listens only on its management IP, data IP, or local loopbacks as required. If you do not setPX_DISABLE_WILDCARD_LISTENERSto"true"during spec generation, you can add it later to the StorageCluster spec as an environment variable.
note- When you update
PX_DISABLE_WILDCARD_LISTENERSin StorageCluster, it triggers a rolling update of the cluster. This causes Portworx to restart on each node, and it comes up with the new network configuration. Make this change during a planned maintenance window. - You cannot switch the IP address family (IPv4 to IPv6 or IPv6 to IPv4) using
PX_PREFER_IPV6_NETWORK_IPwhilePX_DISABLE_WILDCARD_LISTENERSis set to"true". To switch the IP address family, first disablePX_DISABLE_WILDCARD_LISTENERS, switch the IP family, and then re-enablePX_DISABLE_WILDCARD_LISTENERS.
- To restrict Portworx services from listening on all network interfaces, set
-
In the Registry and Image Settings section:
- Enter the Custom Container Registry Location to download the Docker images.
- Enter the Kubernetes Docker Registry Secret that serves as the authentication to access the custom container registry.
- From the Image Pull Policy dropdown menu, select Default, Always, IfNotPresent, or Never.
This policy influences how images are managed on the node and when updates are applied.
-
In the Security Settings section, select the Enable Authorization checkbox to enable Role-Based Access Control (RBAC) and secure access to storage resources in your cluster.
-
Click Finish.
-
In the summary page, enter a name for the specification in the Spec Name field, and tags in the Spec Tags field.
-
Click Download .yaml to download the yaml file with the customized specification or Save Spec to save the specification.
-
-
- Basic tab:
-
Click Save & Download to generate the specification.
The generated StorageCluster resource for a TNA cluster automatically includes:
spec.nodes: entries for the two control plane nodes and the arbiter node, mapping each node to itssystemMetadataDeviceorkvdbDeviceandclusterDomain.spec.nodes.storage.useAll: set totruefor the control plane nodes.annotations.portworx.io/misc-args: a misc arg set to-rt_opts small_conf=1 -T px-storev2.
To use unmounted drives even if they have a partition or file system, configure this by using the spec.nodes.storage.useAllWithPartitions field in the control plane node configuration.
Example:
- selector:
nodeName: "master-node1"
storage:
systemMetadataDevice: /dev/sda1
useAllWithPartitions: true
When the TNA topology is detected, the Portworx Operator validates the StorageCluster spec:
- Each control plane node entry in
spec.nodesmust specifysystemMetadataDevice. If you setclusterDomainon one control plane node, set it on both. - The arbiter node entry in
spec.nodesmust specifykvdbDevice. The Portworx Operator setsclusterDomaintowitnessfor the arbiter node.
If a required entry is missing, the Portworx Operator reports a validation error for the StorageCluster.
Deploy Portworx Operator
Use the Operator specifications you generated in the Generate Portworx specification section, and deploy the Portworx Operator by running the following command.
kubectl apply -f '<url-generated-from-portworx-central-spec-gen>'
namespace/portworx created
serviceaccount/portworx-operator created
clusterrole.rbac.authorization.k8s.io/portworx-operator created
clusterrolebinding.rbac.authorization.k8s.io/portworx-operator created
deployment.apps/portworx-operator created
Deploy StorageCluster
-
(Optional) If you are using SUSE Virtualization version 1.6.0 or later, do the following. Otherwise, skip to the next step.
- Create a Stork
SnapshotStorageClassobject.apiVersion: storage.k8s.io/v1kind: StorageClassmetadata:name: stork-snapshot-scannotations:cdi.harvesterhci.io/storageProfileVolumeModeAccessModes: |{"Block":["ReadWriteOnce"]}provisioner: stork-snapshotallowVolumeExpansion: truereclaimPolicy: DeletevolumeBindingMode: Immediate - Apply the StorageClass:
kubectl apply -f stork-snapshot-sc.yaml
- Create a Stork
-
Use the StorageCluster specifications you generated in the Generate Portworx specification section, and deploy the StorageCluster by running the following command.
kubectl apply -f '<url-generated-from-portworx-central-spec-gen>'storagecluster.core.libopenstorage.org/px-cluster-xxxxxxxx-xxxx-xxxx-xxxx-8dfd338e915b created
After deployment, Portworx detects that the FlashArray secret is present when it starts up and can use the specified FlashArray as a storage provider.
The Portworx Operator detects the TNA topology and adds the tolerations that allow Portworx to run on the arbiter node, including the node-role.kubernetes.io/etcd=true:NoExecute toleration used by SUSE Virtualization witness nodes.
Create a StorageClass
Create a StorageClass if one does not already exist. The following is an example StorageClass.
-
Create the px-kubevirt-sc.yaml file:
StorageClassapiVersion: storage.k8s.io/v1kind: StorageClassmetadata:name: px-rwx-block-kubevirtprovisioner: pxd.portworx.comparameters:cdi.kubevirt.io/storage.contentType: kubevirtrepl: "3"nodiscard: "true" # Disables discard operations on the block devicevolumeBindingMode: ImmediateallowVolumeExpansion: true -
Run the following command to apply your StorageClass:
kubectl apply -f px-kubevirt-sc.yaml
Update the CSI driver configuration
-
Sign in to the SUSE Virtualization UI.
-
Navigate to Advanced > Settings.
-
Search for and select
csi-driver-config. -
Click the vertical ellipsis, and select Edit Setting to access the configuration options.
-
Set the Provisioner to the third-party CSI driver
pxd.portworx.com. -
Configure the Volume Snapshot Class Name to
px-csi-snapclass. This setting points to the name of the VolumeSnapshotClass used for creating volume snapshots or VM snapshots.
Create a VM
Refer to the applicable version of the SUSE Virtualization: Create a Virtual Machine guide and KubeVirt user guide to create a KubeVirt VM.
After you create the VMs, each VM starts running in a virt-launcher Pod.
Verify Portworx installation
You can use the SUSE Virtualization console to verify that the VM is backed by Portworx and FlashArray.
-
Sign in to the SUSE Virtualization console.
-
Go to Virtual Machines > Your VM > Volumes.
-
Confirm that the attached disk uses the
px-rwx-block-kubevirtStorageClass.
To verify the TNA cluster:
-
List the Portworx Pods:
kubectl get pods -n <px-namespace> -o wide | grep -e portworx -e pxIn a TNA deployment, different Pods run on different nodes:
- Control plane nodes (2 nodes): Run the full set of Portworx Pods, including
portworx-api,px-cluster,portworx-kvdb,stork, and other Portworx components. - Arbiter node (1 node): Runs only the
portworx-api,px-cluster, andportworx-kvdbPods. The arbiter node is a storageless node.
- Control plane nodes (2 nodes): Run the full set of Portworx Pods, including
-
Note the name of a
px-clusterPod, and run the following command, specifying the Pod name:kubectl exec <px-pod-name> -n <px-namespace> -- /opt/pwx/bin/pxctl statusVerify the following in the output:
- Status displays
PX is operational. - Total Nodes: Shows two nodes with storage and one node without storage.
- The arbiter node displays No Storage.
- Status displays
-
Verify that the StorageCluster and StorageNodes are online:
kubectl -n <px-namespace> get storageclusterkubectl -n <px-namespace> get storagenodesThe status must display
Onlinefor the StorageCluster and for all three nodes.