update.flexfs
update.flexfs is a manual update utility that installs the latest mount client binary and unmounts active mounts; add --mount to remount fstab entries after updating. It provides an alternative to the automatic update mechanism built into mount.flexfs. Requires root privileges.
sudo update.flexfs [flags]All flags are public.
| Flag | Type | Default | Description | Visibility |
|---|---|---|---|---|
--force | bool | false | Force update and perform a hard reset | Public |
--mount, -m | bool | false | Mount /etc/fstab entries after update | Public |
--reportErrors | bool | false | Report errors and panics to Paradigm4 | Public |
The flags above apply to the default update action. They are not accepted by the version subcommand.
Subcommands
Section titled “Subcommands”| Subcommand | Description | Visibility |
|---|---|---|
version | Print the build version | Public |
Invoked with no subcommand, update.flexfs runs the update described below.
update.flexfs versionUpdate Process
Section titled “Update Process”- Install: Downloads and installs the latest
mount.flexfsbinary to/sbin/mount.flexfs. - Unmount: Attempts to cleanly unmount all active flexFS mounts.
- Remount (with
--mount): Re-mounts all fstab entries.
If clean unmounting fails for any mount point:
- Without
--force: The utility prints an error and suggests closing processes or using--force. - With
--force: Performs a hard reset that kills all mount users and clients, resets mount points, clears caches and logs, and remounts fstab entries.
If there were no active mounts to begin with, the utility reports No active mounts found and runs the same hard reset sequence, whether or not --force was given. Nothing is mounted for it to disturb, but it still clears the cache and log directories left behind by previous mounts and recreates the fstab mount point directories — so capture any mount logs you still need before running it.
Hard Reset (—force)
Section titled “Hard Reset (—force)”The hard reset sequence, which also runs when there are no active mounts:
- Kill all processes using flexFS mount points (
fuser -k) - Kill all mount.flexfs processes (
pkill -KILL mount.flexfs) - Unmount and recreate all fstab mount point directories
- Clear caches from
/dev/shm/.flexfs*and the mount cache directory - Clear log files
- Remount fstab entries (if
--mountis set)
Step 1 requires fuser on the host. Without it the reset fails, in either of the cases that reach it.