Enterprise: Install
The Enterprise installer is an interactive shell script that sets up a complete single-node flexFS deployment — admin server, metadata server, optional caching proxy, and your first volume — in a single run. After installation you will have a working system ready for mount clients to connect.
Before You Begin
Section titled “Before You Begin”Ensure you have:
- A Linux host meeting the prerequisites
- Root access
- A flexFS license key (UUID format, obtained from Paradigm4)
- An object storage bucket and credentials (or an instance role)
Run the Installer
Section titled “Run the Installer”Download and run the installer as root:
curl -fsSL https://get.flexfs.io/install/enterprise.sh | sudo bashThe script runs interactively, prompting for configuration at each step. The sections below describe each prompt in order.
Installation Walkthrough
Section titled “Installation Walkthrough”Pre-flight Checks
Section titled “Pre-flight Checks”The installer begins by verifying that:
- You are running as root (uid 0)
curlandsystemctlare available on the host
If any check fails the script exits immediately with an error message.
License Key Validation
Section titled “License Key Validation”License key: ________Enter your Enterprise license key. The installer validates that it is a properly formatted UUID, then contacts the flexFS licensing service to verify it. If validation fails you will see one of:
invalid license key: not a UUID— the key is not in UUID formatinvalid license key: unauthorized— the key was rejected by the licensing serviceunable to validate license key— the licensing service could not be reached
Existing Installation Detection
Section titled “Existing Installation Detection”If the installer finds an existing flexFS installation at ~root/.flexfs, it prompts:
An existing flexFS installation was found at /root/.flexfs.Overwrite existing installation? [no]: ________Answering yes will stop all running flexFS services and remove the existing installation before proceeding.
Cloud Auto-Detection
Section titled “Cloud Auto-Detection”The installer attempts to detect the cloud provider and region by querying instance metadata endpoints:
| Provider | Detection method |
|---|---|
| AWS | IMDSv2 token + /latest/meta-data/placement/region |
| GCP | Metadata-Flavor: Google header + zone-to-region extraction |
| Azure | IMDS /metadata/instance/compute/location |
| OCI | IMDS /opc/v2/instance/regionInfo/regionIdentifier |
If detection succeeds, the provider and region are pre-filled as defaults. If detection fails (for example, on a bare-metal server or a VM without metadata access), you enter them manually.
Cloud Configuration
Section titled “Cloud Configuration”Cloud provider (e.g., aws, gcp, azure, oci) [detected]: ________Region (e.g. us-east-1) [detected]: ________Object storage API (s3, gcs, azure, oci) [derived]: ________The storage API is derived automatically from the provider (aws maps to s3, gcp to gcs, etc.) but can be overridden. This is useful when using an S3-compatible storage service with a non-AWS provider.
If you select the s3 API, an additional prompt appears:
Custom S3 endpoint []: ________Leave this blank for standard AWS S3. Provide a custom endpoint URL for S3-compatible services such as MinIO or Wasabi.
Next, provide the bucket and key prefix:
Bucket name: ________Key prefix [flexfs]: ________The key prefix is a path within the bucket that flexFS uses to namespace its data. The default flexfs is suitable for most deployments.
Credentials
Section titled “Credentials”Have you attached an instance role/principal? [yes]: ________If your host uses an IAM role, managed identity, or instance principal for bucket access, accept the default yes. Otherwise, answer no and provide static credentials:
Username: ________Password: ________Host and Ports
Section titled “Host and Ports”Host IP address [auto-detected]: ________Admin server port [443]: ________Metadata server port [8443]: ________The host IP address is auto-detected from the local network interface. The admin and metadata ports must be different. These are the addresses that mount clients will use to connect to the server.
Proxy Configuration
Section titled “Proxy Configuration”Enable caching proxy? [no]: ________Proxy groups provide a CDN-like caching layer between mount clients and object storage. If you answer yes, the installer prompts for:
Proxy bind port [9443]: ________Proxy cache folder [/cache]: ________Proxy cache disk quota [95%]: ________The cache folder should be on a fast local disk (NVMe or SSD). The disk quota controls how much space the proxy’s on-disk cache can use, specified as a percentage or absolute size (e.g. 95%, 500GB, 1TiB).
Volume Configuration
Section titled “Volume Configuration”(Block size, compression, and encryption cannot be changed after creation)
Volume name [vol-01]: ________Block size (e.g. 1M, 2M, 4M) [4M]: ________Compression algorithm (lz4, snappy, zstd, none) [lz4]: ________Enable end-to-end encryption? [no]: ________| Setting | Choices | Notes |
|---|---|---|
| Volume name | Any string | Human-readable identifier for the volume |
| Block size | 256KiB — 8MiB (power of 2) | Larger blocks suit large sequential files; smaller blocks suit many small files. Cannot be changed after creation. |
| Compression | lz4, snappy, zstd, none | LZ4 is the fastest; zstd provides the highest ratio. Cannot be changed after creation. |
| Encryption | yes / no | Enables AES-256 end-to-end encryption. Cannot be changed after creation. |
Summary and Confirmation
Section titled “Summary and Confirmation”Before making any changes, the installer displays a full summary:
================================================================================Installation Summary================================================================================Provider awsRegion us-east-1API s3Bucket my-flexfs-bucketPrefix flexfsCreds instance role/principal
Host 10.0.1.50Admin :443Meta :8443
Volume vol-01Block size 4MiBCompression lz4E2EE disabled
Required TCP ports (ensure these are reachable by mount clients):
443 - admin.flexfs (admin API and mount client installer) 8443 - meta.flexfs (metadata service)
Proceed with installation? [yes]: ________Answer yes to begin the installation.
What Gets Installed
Section titled “What Gets Installed”After confirmation, the installer executes the following steps automatically:
-
Downloads binaries to
/usr/sbin/:admin.flexfs— admin servermeta.flexfs— metadata serverconfigure.flexfs— resource configuration CLImanage.flexfs— host management CLIproxy.flexfs— caching proxy (if enabled)
Binaries are downloaded from
https://get.flexfs.io/for the detected platform (linux/amd64orlinux/arm64). SELinux contexts are restored ifrestoreconis available. -
Initializes and starts the admin server
- Creates credential file at
~root/.flexfs/admin/ - Creates a systemd unit (
flexfs-admin.service) - Starts the service and waits up to 30 seconds for the health endpoint to respond
- Creates credential file at
-
Saves the license grant for offline validation
-
Initializes
configure.flexfswith the admin server address and account token -
Creates the infrastructure using
configure.flexfs:- A provider (e.g.
aws,gcp) - A region (e.g.
us-east-1) - A block store linking the provider, region, bucket, and credentials
- A meta store pointing to the metadata server address (an authentication token is auto-generated)
- A proxy group (if proxy was enabled), linking the provider, region, and proxy address
- A provider (e.g.
-
Initializes and starts the metadata server
- Creates credentials with the admin server address and meta store token
- Creates a systemd unit (
flexfs-meta.service) - Starts the service
-
Initializes and starts the proxy server (if enabled)
- Creates credentials with object storage credentials
- Creates a systemd unit (
flexfs-proxy.service) with the configured bind address, cache folder, and disk quota - Starts the service
-
Deploys mount client binaries to the admin server’s deploy folder using
manage.flexfs deploy -
Creates the volume with the specified block size, compression, and encryption settings
-
Creates a volume token for client authentication
-
Links the volume to the proxy group (if proxy was enabled)
-
Verifies that all services are running and responds on their health endpoints
After Installation
Section titled “After Installation”When the installer completes successfully, it displays:
================================================================================flexFS Enterprise Edition Is Running!================================================================================
Admin server: https://10.0.1.50:443Meta server: https://10.0.1.50:8443
Management:
configure.flexfs configure volume, proxies, and tokens manage.flexfs manage, monitor, and update this server
To mount flexFS on a client machine, run:
curl -fksSL https://10.0.1.50:443/deploy/install-mount.sh | sudo bash -s /mnt/flexfs $TOKEN
================================================================================The mount command shown uses the volume token created during installation. You can copy this command and run it on any client host to mount the filesystem.
Systemd Services
Section titled “Systemd Services”The installer creates the following systemd units:
| Service | Unit name |
|---|---|
| Admin server | flexfs-admin.service |
| Metadata server | flexfs-meta.service |
| Proxy server | flexfs-proxy.service (if enabled) |
Check status with:
systemctl status flexfs-admin flexfs-meta flexfs-proxyYou can also use the manage.flexfs utility to monitor and control services:
manage.flexfs statusSee manage.flexfs for the full set of commands (start, stop, restart, upgrade, watch, and more).
Next Steps
Section titled “Next Steps”- Enterprise: Configuration — learn how to manage resources with
configure.flexfs - Enterprise: First Mount — install the mount client on a remote host