Velocity • Durability

Version 12.0.0

10. Common Administrative Workflow

A typical first-time setup, from an empty system to a usable tenant volume:

# 1. Log in as a platform administrator
panctl auth login <server> --username platform/admin

# 2. Survey the realm
panctl nodes list
panctl realm get

# 3. Create a storage set and add nodes to it
panctl storagesets create --name "Primary"
panctl storagesets add-storage --storageset-id <id> --dataserials <ds1>,<ds2>,<ds3>
# add-storage is asynchronous: wait until the nodes are absorbed (see 8.3 for a polling example), then until the realm reports
# panfs_mounted (panctl realm get); tenant and volume create return 503 until both are true

# 4. Create a tenant and give it capacity
panctl tenants create --name fintech --display-name FinTech --email admin@fintech.example.com
panctl tenants assign-storagesets --tenant fintech --storageset-id <id> --quota 10TB

# 5. Give the tenant network access
panctl subnets create --tenant fintech --name fintech-net --cidr 10.71.0.0/16 --gateway 10.71.255.254
# The tenant becomes active once a node address has been issued on the subnet (usually seconds). Volume create returns 409 until then.
panctl tenants get <tenant_id> -o 'jsonpath={.tenant.status}' --wait-for=active

# 6. Create a volume inside the tenant, acting as a platform administrator
panctl volumes create --as-tenant-admin fintech --name /data --storageset-id <id> --hard-quota 5TB

# 7. Optional: create a tenant administrator and use it instead.
#    Tenant users are not fully supported in this release (see 8.7).
panctl users create --tenant fintech --username jsmith --email jsmith@fintech.example.com
panctl users set-roles --user <user_id> --tenant fintech --roles admin
panctl auth login <server> --username fintech/jsmith --profile fintech
panctl --profile fintech volumes create --name /data2 --storageset-id <id> --hard-quota 5TB