You can use Portworx with Pure Storage FlashArray as a cloud storage provider. This allows you to store your data on-premises with FlashArray while benefiting from Portworx cloud drive features, such as:
- Automatically provisioning block volumes
- Expanding a cluster by adding new drives or expanding existing ones
- Support for PX-Backup and Autopilot
Just like with other cloud providers, FlashArray interacts with the underlying drives and distributes volumes between registered arrays, while Portworx runs on top of the volumes that FlashArray presents.
FlashArray volumes are not the same as Portworx volumes; multiple Portworx volumes can reside on a single FlashArray volume. This makes it theoretically possible for Portworx to place multiple replicas on the same FlashArray volume.
To prevent any interference from
multipathdservice on Portworx volume operations, set the following pxd device denylist rule in the
product "Virtual disk"
- Portworx runs on each node and forms a storage pool based on configuration information provided in the storageCluster spec.
- When a user creates a PVC, Portworx provisions the volume from the storage pool.
- The PVCs consume space on the storage pool, and if space begins to run low, Portworx can add or expand drive space from FlashArray.
- If a node goes down for less than 2 minutes, Portworx will reattach FlashArray volumes when it recovers. If a node goes down for more than two minutes, a storageless node in the same zone will take up the volumes and assume the identity of the downed storage node.
Install Portworx and configure FlashArray
Before you install Portworx, ensure that your physical network is configured appropriately and that you meet the prerequisites. You must provide Portworx with your FlashArray configuration details during installation.
Configure your physical network
Before you can use Portworx with FlashArray, you must ensure your physical network is appropriately configured. The instructions in this document assume the following configuration details:
- Each FlashArray management IP address can be accessed by each node.
- Your cluster contains an up-and-running FlashArray with an existing dataplane connectivity layout (iSCSI, Fibre Channel).
- If you're using iSCSI, the storage node iSCSI initiators are on the same VLAN as the FlashArray iSCSI target ports.
- If you are using multiple network interface cards (NICs) to connect to an iSCSI host, then all of them must be accessible from the FlashArray management IP address.
- If you're using Fibre Channel, the storage node Fibre Channel WWNs have been correctly zoned to the FlashArray Fibre Channel WWN ports.
- You have an API token for a user on your FlashArray with at least
storage_adminpermissions. Check the documentation on your device for information on generating an API token.
- Have an on-prem kubernetes cluster with FlashArray.
- FlashArray must be running a minimum Purity//FA version of at least 4.8. Refer to the Supported models and versions topic for more information.
- Install the latest Linux multipath software package for your operating system. Refer to the Linux recommended settings article of the Pure Storage documentation for recommendations.
find_multipathsvalue must be set to
- If using iSCSI, have the latest iSCSI initiator software for your operating system.
- If using multiple NICs to connect to an iSCSI host, configure these interfaces using the steps in the Create Additional Interfaces (Optional) section on the Configuring Linux Host for iSCSI with FlashArray page.
- Both multipath and iSCSI, if being used, should have their services enabled in
systemdso that they start after reboots.
- If using Fibre Channel, install the latest Fibre Channel initiator software for your operating system.
- The FlashArray should be time-synced with the same time service as the Kubernetes cluster.
Portworx with FlashArray does not support user-friendly names in the
Once you've configured your physical network and ensured that you meet the prerequisites, you're ready to deploy Portworx:
Create a JSON file named
pure.jsonthat contains your FlashArray information:
You can add FlashBlade configuration information to this file if you're configuring both FlashArray and FlashBlade together. Refer to the JSON file reference for more information.
Enter the following
kubectl createcommand to create a Kubernetes secret called
kubectl create secret generic px-pure-secret --namespace kube-system --from-file=pure.json=<file path>
You must name the secret
Generate an install spec for your on-prem cluster. Make the following selections when you create your spec using the spec generator:
- On the Storage tab, select the Cloud storage environment.
- Ensure that CSI is enabled
- Select a protocol from the available options.note
- NVMe/RoCE is available only in Portworx version 2.13.0 or newer.
- If you are using multiple NICs for iSCIS host, then add the following environment variable to your StorageCluster spec. Replace
<nic-interface-names>with comma-separated names of NICs such as
- name: flasharray-iscsi-allowed-ifaces
Apply the spec:
kubectl apply -f <spec-file>
Once deployed, Portworx detects that the FlashArray secret is present when it starts up and uses the described FlashArray(s) as the storage provider. It then picks a backend for each drive to use, creates volumes, and attaches the volumes using iSCSI or Fibre Channel.note
If you have multiple NICs on your virtual machine, then FlashArray does not distinguish the NICs that include iSCSI and the others without iSCSI.