Evaluating Without Hardware
For evaluation you do not need a spare NVMe drive or a cloud bucket. A regular file stands in for the NVMe device, and a local emulator stands in for the bucket:
| Provider | Local stand-in |
|---|---|
| S3 | An S3-compatible server |
| GCS | fake-gcs-server |
| Blob | Azurite |
The kernel requirements still apply: Linux 6.1 or newer with ublk_drv and io_uring, and root. See Requirements.
The grant
Section titled “The grant”The grant for such a setup names the provider and the emulator’s endpoint, just as a production grant names a cloud bucket. Ask Paradigm4 (info@paradigm4.com) for an evaluation grant that names your emulator:
- S3-compatible server: provider
s3, with the server’s endpoint and, if the server needs it, path-style addressing. - fake-gcs-server: provider
gcs, with the emulator’shttp://endpoint. - Azurite: provider
blob, with Azurite’s endpoint and its development account,devstoreaccount1.
Install it as described in Install.
Credentials for emulators
Section titled “Credentials for emulators”Pass the emulator’s credentials through the provider’s usual environment variables, and run the commands with sudo -E so they survive sudo:
- Azurite: put Azurite’s well-known development key in
AZURE_STORAGE_KEY. - fake-gcs-server: an
http://endpoint with noGOOGLE_APPLICATION_CREDENTIALSset is treated as an emulator and used without credentials. - S3-compatible server: export
AWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEYfor the server.
Run a trial volume
Section titled “Run a trial volume”-
Create a file-backed cache
The file must hold at least one chunk plus metadata. This example uses 4 GiB.
Terminal window truncate -s 4G /var/tmp/cache.img -
Create the volume and attach the file
The volume can be much larger than the cache file.
Terminal window sudo -E flexblock init --device-size 100G --attach /var/tmp/cache.img -
Start serving
Terminal window sudo -E flexblock start /var/tmp/cache.imgstartprobes the file forO_DIRECTsupport and falls back to buffered I/O on its own.--cache-io-mode bufferedis needed only to force that choice. -
Use the device
From here the device behaves like any other. Format, mount and stop it as in Your First Volume.
Next steps
Section titled “Next steps”- Your First Volume
- How flexBlock Works
- Destroying a Volume: clean up the trial volume with
wipe.