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
| Flag | Input type | Description | Default | Required |
|---|---|---|---|---|
--replicas | int64 | New replication factor (Valid Range: [1, 3]) (default 1) | 0 | Optional |
--nodes | stringSlice | Desired set of nodes for the volume data | [] | Optional |
--size | uint64 | New size for the volume (GiB) (default 1) | 0 | Optional |
--shared | string | set shared setting (Valid Values: [on off]) (default "off") | - | Optional |
--sharedv4 | string | set sharedv4 setting (Valid Values: [on off]) (default "off") | - | Optional |
--sticky | string | set sticky setting (Valid Values: [on off]) (default "off") | - | Optional |
--add-collaborators | string | Add list of collaborators to the existing list | - | Optional |
--add-groups | string | Add list of groups to the existing list | - | Optional |
--remove-collaborators | string | Remove the given users from the collaborators list | - | Optional |
--remove-groups | string | Remove the given groups from the group list | - | Optional |
--remove-all-collaborators | bool | Remove all the user from the collaborators list | false | Optional |
--remove-all-groups | bool | Remove all the groups from the group list | false | Optional |
--early-ack | string | Reply to async write requests after it is copied to shared memory (Valid Values: [on off]) (default "off") | - | Optional |
--async-io | string | Enable async IO to backing storage (Valid Values: [on off]) (default "off") | - | Optional |
--io-profile | string | IO Profile (Valid Values: [sequential cms db db_remote sync_shared]) (default "sequential") | - | Optional |
--nodiscard | string | Disable discard support for this volume (Valid Values: [on off]) (default "off") | - | Optional |