Add a caching drive to a storage pool
Prerequisites
Before you can add a caching drive to a storage pool, pool caching must have been configured when you installed Portworx on your cluster. Refer to the Install Portworx with caching enabled section for more details.
Add a caching drive to a storage pool
Perform the following steps to add a caching drive to a storage pool:
Enter maintenance mode:
pxctl service maintenance --enterThis is a disruptive operation, PX will restart in maintenance mode.
Are you sure you want to proceed ? (Y/N): y
Entering Maintenance mode...Enter the
pxctl service drive addcommand, specifying:
The
--driveoption with the<drive_path>of your caching driveThe
--cacheoption with the<pool_id>of the pool you want to add the caching drive topxctl service drive add --drive <drive_path> --cache <pool_id>The following example adds a caching drive at the
/dev/sdcpath to a pool with an ID of0:pxctl service drive add --drive /dev/sdc --cache 0
- Adding a drive is a long-running operation, and Portworx won't exit from the maintenance mode while the operation is still running. Therefore, you must verify that the drive has been added successfully by entering the
pxctl service drive addcommand with the following parameters:
The
--driveoption with the<drive_path>of your caching driveThe
--cacheoption with the<pool_id>of the pool you want to verifyThe
--operationoption with thestatusvaluepxctl service drive add --drive <drive_path> --cache <pool_id> --operation statusThe following example verifies that a caching drive
/dev/sdchas been added to pool0:pxctl service drive add --drive /dev/sdc --cache 0 --operation status
Exit maintenance mode:
pxctl service maintenance --exitExiting Maintenance mode...