Add a dedicated journal device to a node in Tanzu
A journal device is a dedicated storage component used to improve the performance and reliability of write operations. It logs write operations before they are finalized in the main storage volumes. This page outlines how to configure a Portworx StorageCluster to add a journal device to a new or existing node.
Prerequisites
Before proceeding, ensure that:
- The chosen journal device matches or surpasses the performance of the data pool devices.
- Your setup does not use PX-StoreV2 backend.
- The selected device or a partition on the selected device is not being used by any other service or applications.
Check your current journal device configuration
Before you begin, you may already have a journal device configured for your cluster. If you're unsure, you can check the current journal device configuration by running the pxctl status
command and finding the Journal Device
section:
pxctl status
...
Journal Device:
1 /dev/sdb1 STORAGE_MEDIUM_SSD 3.0 GiB
...
Add a journal device to a new node automatically
You can add a journal device to a new node automatically by editing your Portworx StorageCluster
. Using this method, Portworx creates a partition from the existing storage pool drives:
storage:
useAll: true
journalDevice: auto
You cannot use this method to add a journal device existing nodes.
Add journal device manually
You can use this method to add a journal device to a new or existing node manually. Done in this way, Portworx creates a journal device out of a drive, cloud drive, or partition you provide it.