Usage: nvmesh client attach [OPTIONS]
Attach volumes to clients. The default access level is SHARED_READ_WRITE.
If an access mode is provided then you can only specify one client. The
preempt flag must be used together with an access level.
Usage examples:
Attach 2 volumes named 'volume-1' and 'volume-2' to 2 clients named
'client-1' and 'client-2':
$ nvmesh client attach -c client-1 -c client-2 -v volume-1 -v volume-2
Attach a volume named 'volume-3' in an exclusive read/write mode to a
client named 'client-1':
$ nvmesh client attach -c client-1 -v volume-3 -a EXCLUSIVE_READ_WRITE
Attach a volume named 'volume-3' in a shared read only mode to a client
named 'client-1', preempting any existing access mode:
$ nvmesh client attach -c client-1 -v volume-3 -a SHARED_READ_ONLY -p
Options:
-c, --client TEXT The hostname or address of the client
[required]
-v, --volume TEXT The id of the volume to attach [required]
-a, --access [EXCLUSIVE_READ_WRITE|SHARED_READ_ONLY|SHARED_READ_WRITE]
Volume access level: EXCLUSIVE_READ_WRITE,
SHARED_READ_ONLY, SHARED_READ_WRITE
-p, --preempt Use preempt for applying access level
-h, --help Show this message and exit.
Post your comment on this topic.