Skip to content

Commit

Permalink
fix: document the mount and unmount commands for the role
Browse files Browse the repository at this point in the history
also document snapshot_lvm_mount_options and note that XFS won't allow
an identical snapshot to be mounted while the origin is still mounted
unless the nouuid option is used.

Signed-off-by: Todd Gill <[email protected]>
  • Loading branch information
trgill committed Apr 9, 2024
1 parent 9c698d5 commit a3dfb21
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ This variable is required. It supports one of the following values:
space allocated to the snapshot. Allocations are rounded up to the
next multiple of the volume group extent size.

- `mount`: Mount a filesystem on a mount point

- `umount`: Unmount a filesytem

### snapshot_lvm_set

The snapshot role supports sets of volumes. Sets may contain any number of volumes.
Expand Down Expand Up @@ -215,6 +219,15 @@ use mountpoint parameter.
If set to true, mount the origin of the snapshot rather than the snapshot.
When used inside of a snapset definition, use mount_origin parameter.

### snapshot_lvm_mount_options

Options to pass to the mount command for the filesystem. The argument is
a comma separated list. See the man page for mount for details.
Note that XFS by default will not allow multiple filesystems with the
same UUID to be mounted at the same time. Using the "nouuid" will
bypass the duplicate UUID check and allow a snapshot to be mounted
at the same time as the snapshot source.

### snapshot_lvm_unmount_all

If set to true, unmount all mountpoint for the resulting blockdevice.
Expand Down

0 comments on commit a3dfb21

Please sign in to comment.