Skip to main content

px pxe patch

Update/patch Portworx resources

Aliases: update

note

The following commands support a set of global flags that apply to all px pxe commands.
For details, see the Global Flags section.

px pxe patch volume

Update field(s) of a portworx volume

Aliases: volumes, vol

Examples:

  #### Update Volume Spec ####

# Update the size of the volume to 2GiB
kubectl px pxe patch volume xyz --size 2

# Set the shared flag of the volume xyz
kubectl px pxe patch volume xyz --shared=on

#### Update Volume Access Controls ####

# Update collaborators and groups of the volume access list
kubectl px pxe patch volume xyz --add-collaborators user1:r,user2:w,user3:a --add-groups group1:r,group2:w,group3:a

# Update collaborators and remove few groups from the volume access list
kubectl px pxe patch volume xyz --add-collaborators user4:r,user5:w, --remove-groups group1:r

# Update the access type of the existing collaborators and groups
kubectl px pxe patch volume xyz --add-collaborators user1:a --add-groups group1:a

Flags

FlagInput typeDescriptionDefaultRequired
--replicasint64New replication factor (Valid Range: [1, 3]) (default 1)0Optional
--nodesstringSliceDesired set of nodes for the volume data[]Optional
--sizeuint64New size for the volume (GiB) (default 1)0Optional
--sharedstringset shared setting (Valid Values: [on off]) (default "off")-Optional
--sharedv4stringset sharedv4 setting (Valid Values: [on off]) (default "off")-Optional
--stickystringset sticky setting (Valid Values: [on off]) (default "off")-Optional
--add-collaboratorsstringAdd list of collaborators to the existing list-Optional
--add-groupsstringAdd list of groups to the existing list-Optional
--remove-collaboratorsstringRemove the given users from the collaborators list-Optional
--remove-groupsstringRemove the given groups from the group list-Optional
--remove-all-collaboratorsboolRemove all the user from the collaborators listfalseOptional
--remove-all-groupsboolRemove all the groups from the group listfalseOptional
--early-ackstringReply to async write requests after it is copied to shared memory (Valid Values: [on off]) (default "off")-Optional
--async-iostringEnable async IO to backing storage (Valid Values: [on off]) (default "off")-Optional
--io-profilestringIO Profile (Valid Values: [sequential cms db db_remote sync_shared]) (default "sequential")-Optional
--nodiscardstringDisable discard support for this volume (Valid Values: [on off]) (default "off")-Optional