Preparing your cluster for Portworx
If you want to build your Portworx storage layer on non-SDS worker nodes in a classic cluster, you must first add raw, unformatted, and unmounted block storage to your worker nodes. For VPC clusters, you can either attach storage before you install Portworx or allow Portworx to dynamically create cloud drives by using the Block Storage for VPC driver during installation.
Raw block storage can't be provisioned by using Kubernetes persistent volume claims (PVCs) as the block storage device is automatically formatted by Red Hat OpenShift on IBM Cloud. Instead, you can use the IBM Cloud Block Volume Attacher plug-in in classic clusters or the VPC console, CLI, or API in VPC clusters to add block storage to your worker nodes.
Portworx supports block storage only. Worker nodes that mount file or object storage can't be used for the Portworx storage layer.
Keep in mind that the networking of non-SDS worker nodes in classic clusters is not optimized for Portworx and might not offer the performance benefits that your app requires.
Classic clusters
Classic
- Install the IBM Cloud Block Volume Attacher plug-in.
- Manually add block storage to your worker nodes. For highly available data storage, Portworx requires at least 3 worker nodes with raw and unformatted block storage.
- If you plan to use separate journal or KVDB devices, log in to the worker node by using
oc debug <node>and runlsblkto identify the device paths. Save these device paths because you will need them during the Portworx installation. - If you want to use journal devices, choose from the following options. Journal devices allow Portworx to write logs
directly to a local disk on your worker node.
- Attach an additional 3 GB disk to at least 3 worker nodes to use for the journal.
- Select one of the block storage devices that you added earlier to use for the journal.
- Let Portworx automatically create a journal partition during installation.
- If you want to use a specific device for the internal Portworx key-value database (KVDB), choose from the following options.
- Attach an additional 3 GB disk to at least 3 worker nodes to use for the KVDB.
- Select one of the block storage devices that you added earlier.
- Attach the block storage to your worker nodes.
- Continue with your Portworx setup by Setting up a key-value store for Portworx metadata.
VPC clusters
Virtual Private Cloud
- Follow the steps to create the Block Storage for VPC instances and attach them to each worker node that you want to add to the Portworx storage layer. For highly available data storage, Portworx requires at least 3 worker nodes with raw and unformatted block storage.
- If you plan to use separate journal or KVDB devices, log in to the worker node by using
oc debug <node>and runlsblkto identify the device paths. Save these device paths because you will need them during the Portworx installation. - If you want to use journal devices, choose from the following options. Journal devices allow Portworx to write logs
directly to a local disk on your worker node.
- Attach an additional 3 GB disk to at least 3 worker nodes in your cluster.
- Select a device on a worker node where you want Portworx to create the journal.
- If you want to use a specific device for the internal Portworx KVDB, choose from the following options.
- Attach an additional 3 GB disk to at least 3 worker nodes to use for the KVDB.
- Select one of the block storage devices that you added earlier to use for the KVDB.
- Continue with your Portworx setup by Setting up a key-value store for Portworx metadata.
Satellite clusters
Satellite
- Create a Satellite location.
- Create VMs in your cloud provider or set up on-premises hosts that have at least 16 vCPU, 64 GB memory, and enough storage to attach to your location, plus additional storage volumes for app data, the Portworx journal, and the KVDB. For highly available data storage, Portworx requires at least 3 worker nodes with raw and unformatted block storage.
- If you plan to use separate journal or KVDB devices, log in to the worker node with
oc debug <node>and runlsblkto identify the device paths. Save these device paths because you will need them during the Portworx installation. - If you want to use journal devices, choose from the following options. Journal devices allow Portworx to write logs
directly to a local disk on your worker node.
- Attach an additional 3 GB disk to at least 3 worker nodes in your cluster.
- Select a device on a worker node where you want Portworx to create the journal.
- If you want to use a specific device for the internal Portworx KVDB, choose from the following options.
- Attach an additional 3 GB disk to at least 3 worker nodes to use for the KVDB.
- Select one of the block storage devices that you added earlier to use for the KVDB.
- Continue with your Portworx setup by Setting up a key-value store for Portworx metadata.