If you are running Portworx in an on-premises environment or want to manually resize a pool using drives that are not managed by Portworx, follow these steps:
Identify a storage pool that's running low on capacity.
Add drives to your node that are similar in size, type, and performance to the drives already in the pool you need to expand.
Add the drive by running the
pxctl service drive addcommand with the following options:
--driveflag followed by the name of the drive you want to add.
pxctl sv drive add --drive /dev/sde --operation start
Adding drives may make storage offline for the duration of the operation.
Are you sure you want to proceed ? (Y/N): y
Drive add done: Storage rebalance is in progress
After adding the drive, Portworx starts restriping the pool to include the new drive.note
For cloud-based pools, use this method for creating a new pool instead of expanding an existing pool. To add a drive to an existing cloud-based pool, use the
pxctl service pool expand --operation add-disk --uid <pool-ID> --size <new-storage-pool-size-in-GiB>command.
Monitor the drive add operation status by entering the
pxctl service drive addcommand, specifying the following:
--driveflag and the name of the drive you added
pxctl service drive add --drive /dev/sde --operation status
When the status shows as
Drive /dev/sde already in use by PX., storage will be brought online automatically when this operation completes.
Expand a pool size to consume the added drive capacity
Follow the instructions in this section to expand the capacity of your storage pool and make use of the available capacity from added drives or existing drives that are not managed by Portworx:
Run the following command to identify a storage pool that's in need of expansion:
pxctl service pool show
Resize your drive and drive partition, if required.
On the node containing your target drive, enter the
pxctl service pool updatecommand, specifying the
--resizeoption and the ID of the pool you want to resize:
pxctl service pool update --resize <pool-id>
Pool properties updated