Skip to content

flexblock update

flexblock update <DEVICE> [flags]

update changes a setting recorded on the volume: the device size, the compression algorithm, or S3 server-side encryption. It writes the change to the volume superblock in object storage first, then locally.

The device must be cleanly stopped and not serving. --allow-unclean covers only an unclean stop, never a live daemon. The exception is a size change: with --device-size and a running daemon, update grows the live device through the daemon’s control socket, on Linux 6.16 or newer.

Growing is one-way and bounded by the grant’s licensed size; afterward grow the filesystem too (xfs_growfs or resize2fs). --device-size needs a current grant; other changes do not.

With no change, update repairs a volume superblock that object storage reports missing or stale, except one that records a larger size, which needs --device-size at that size.

FlagDefaultDescription
--allow-unclean—Proceed on a device that was not cleanly stopped.
--compression <none|lz4|zstd|snappy>—New algorithm for later writes; existing objects keep their own.
--device-size <SIZE|+DELTA|max>—Grow to a size, by a delta, or to max (the licensed size). Needs a current grant, and Linux 6.16 while the daemon serves.
--dry-run—Print the old and new values and exit.
--s3-no-sse—S3 only: stop requesting server-side encryption for later writes.
--s3-sse—S3 only: request server-side encryption for later writes.

--s3-sse and --s3-no-sse cannot be combined.

Grow a serving volume, then grow its filesystem:

Terminal window
sudo flexblock update /dev/nvme1n1p1 --device-size +1T
sudo xfs_growfs /mnt/analytics

Grow to the full licensed size:

Terminal window
sudo flexblock update /dev/nvme1n1p1 --device-size max

With the daemon stopped, change compression for later writes:

Terminal window
sudo flexblock update /dev/nvme1n1p1 --compression lz4