https://github.com/codeclimate/ebs-warmer
Warm an EBS volume by reading all its bytes
https://github.com/codeclimate/ebs-warmer
Last synced: about 1 year ago
JSON representation
Warm an EBS volume by reading all its bytes
- Host: GitHub
- URL: https://github.com/codeclimate/ebs-warmer
- Owner: codeclimate
- License: mit
- Created: 2016-11-14T16:03:50.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-14T16:18:27.000Z (over 9 years ago)
- Last Synced: 2025-01-11T18:18:41.196Z (about 1 year ago)
- Language: Haskell
- Size: 10.7 KB
- Stars: 0
- Watchers: 17
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Warm an EBS volume by reading all its bytes.
This is a small wrapper over the `dd` command found [here][docs].
[docs]: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-initialize.html
The wrapper manages backgrounding the `dd` process and repeatedly sending
`SIGUSER1` to read its progress. The progress is then output in a nicer format
that includes estimated time remaining.
## Installation
There is a pre-built binary for 64 bit Linux:
```
curl https://s3.amazonaws.com/com.codeclimate.tools/ebs-warmer-0.1.0.0-linux-x86_64 > ebs-warmer
chmod +x ebs-warmer
sudo mv ebs-warmer /usr/local/bin
```
## Usage
```
Usage: ebs-warmer [-i|--interval SECONDS] DEVICE
Warm an attached EBS volume by reading all its bytes
Available options:
-h,--help Show this help text
-i,--interval SECONDS Interval on which to print progress information
DEVICE Block device to read, e.g. /dev/sda1
```
## Example
```
% sudo build/bin/ebs-warmer /dev/sda2
bytes=275.5MB total=238.2GB rate=91.8MB/s remaining=44m14s
bytes=631.0MB total=238.2GB rate=105.1MB/s remaining=38m34s
bytes=1.6GB total=238.2GB rate=192.6MB/s remaining=20m57s
```