Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 924 Bytes

File metadata and controls

25 lines (17 loc) · 924 Bytes

mount-ebs

GitHub tag Build Status

A helper utility initially created for rkt to mount EBS volumes.

usage

Mount volume by name:

$ MOUNTPOINT=`mount-ebs vol-89f4dc0e`
$ echo $MOUNTPOINT

Unmount volume:

$ mount-ebs -u vol-89f4dc0e

behavior

Mount command will try to attach and mount volume. If the volume is already attached, tt will mount it. It tries to attach to the first available device /dev/sd[f-p] and will keep retrying until it succeeds or there will be no valid device names left on the host.

Unmount will try to unmount and detach volume. If the mountpoint is in use, the operation is a noop. It is useful for situations when multiple resources want to use the same volume.