$ ls -lh /usr/local/bin/pxctl
/usr/local/bin/pxctl -> /opt/pwx/bin/pxctl
$ pxctl status
px-runc install
$ /opt/pwx/bin/px-runc install --help
Usage: /opt/pwx/bin/px-runc <run|install> [options]
options:
-c <id> [REQUIRED] Specifies the cluster ID that this PX instance is to join
-k <kvdb://host:port> [REQUIRED] Points to your key value database, such as an etcd cluster or a consul cluster
-b Use in-built etcd. Provide the kvdb endpoints required for bootstrap with -k option.
-s <device path> [REQUIRED unless -a is used] Specifies the various drives that PX should use for storing the data
-j <device path> Specifies the drive that PX should use for storing the journal data
-metadata <device path> Specifies the drive that PX should use for storing the system meta data
-oci <dir> Specify OCI directory (dfl: /opt/pwx/oci)
-sysd <file> Specify SystemD service file (dfl: /etc/systemd/system/portworx.service)
-e key=value Specify extra environment variables
-v <dir:dir[:shared,ro]> Specify extra mounts
-d <ethX> Specify the data network interface
-m <ethX> Specify the management network interface
-z Instructs PX to run in zero storage mode
-f Instructs PX to use an unmounted drive even if it has a filesystem on it
-a Instructs PX to use any available, unused and unmounted drives
-A Instructs PX to use any available, unused and unmounted drives or partitions
-x <swarm|kubernetes> Specify scheduler being used in the environment
-t <token> Portworx lighthouse token for cluster
-r <startport> Start of the portrange Portworx will use for communication (dfl: 9001)
kvdb-options:
-userpwd <user:passwd> Username and password for ETCD authentication
-ca <file> Specify location of CA file for ETCD authentication
-cert <file> Specify location of certificate for ETCD authentication
-key <file> Specify location of certificate key for ETCD authentication
-acltoken <token> ACL token value used for Consul authentication
px-api-ssl-options:
-apirootca <file> Specify self-signed root CA certificate file
-apicert <file> Specify node certificate file
-apikey <file> Specify node certificate key file
secrets-options:
-secret_type <type> Specify the secrets type (<type> is aws, dcos, docker, k8s, kvdb or vault)
-cluster_secret_key <id> Specify cluster-wide secret ID
auto-scaling-group-options:
-max_drive_set_count <#> Specify maximum number of drive sets PX can create
-max_storage_nodes_per_zone <#> Specify the maximum number of storage nodes per zone in PX cluster
EXPERIMENTAL:
-enable-shared-v4 Enables NFSv4 sharing (EXPERIMENTAL)
-enable-shared-and-shared-v4 Enables both regular and NFSv4 volume sharing (EXPERIMENTAL)
-rt_opts <val> Specify Runtime config options (<val> is high, low, default, or key=#[,key2=#...]) (EXPERIMENTAL)
examples:
/opt/pwx/bin/px-runc run -k etcd://my.company.com:4001 -c MY_CLUSTER_ID -s /dev/sdc -s /dev/sdb2
/opt/pwx/bin/px-runc install -k etcd://70.0.1.65:2379 -c MY_CLUSTER_ID -s /dev/sdc -d enp0s8 -m enp0s8 -e MYVAR2=foo
/opt/pwx/bin/px-runc install -k etcd://70.0.1.65:2379 -c MY_CID -f -a -x swarm -v /var/lib/share:/var/lib/share:shared