Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/monder/mount-ebs
A helper utility to mount EBS volumes
https://github.com/monder/mount-ebs
aws ebs
Last synced: 13 days ago
JSON representation
A helper utility to mount EBS volumes
- Host: GitHub
- URL: https://github.com/monder/mount-ebs
- Owner: monder
- Created: 2016-08-17T19:30:25.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-28T13:27:49.000Z (about 8 years ago)
- Last Synced: 2024-11-09T22:23:24.129Z (about 2 months ago)
- Topics: aws, ebs
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## mount-ebs
![GitHub tag](https://img.shields.io/github/tag/monder/mount-ebs.svg?style=flat-square)
[![Build Status](https://img.shields.io/travis/monder/mount-ebs.svg?style=flat-square)](https://travis-ci.org/monder/mount-ebs)A helper utility initially created for `rkt` to mount `EBS` volumes.
### usage
Mount volume by name:
```bash
$ MOUNTPOINT=`mount-ebs vol-89f4dc0e`
$ echo $MOUNTPOINT
```Unmount volume:
```bash
$ 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.