cookbook 'ephemeral_lvm', '~> 3.0.1'
ephemeral_lvm
(18) Versions
3.0.1
-
Follow4
Configures available ephemeral devices on a cloud server
cookbook 'ephemeral_lvm', '~> 3.0.1', :supermarket
knife supermarket install ephemeral_lvm
knife supermarket download ephemeral_lvm
ephemeral_lvm cookbook
This cookbook will identify the ephemeral devices available on the instance based on Ohai data. If no ephemeral devices
are found, it will gracefully exit with a log message. If ephemeral devices are found, they will be setup to
use LVM and a logical volume will be created, formatted, and mounted. If multiple ephemeral devices are found
(e.g. m1.large on EC2 has 2 ephemeral devices with 420 GB each), they will be striped to create the LVM.
Github Repository: https://github.com/rightscale-cookbooks/ephemeral_lvm
Requirements
- Chef 12 or higher
- A cloud that supports ephemeral devices. Currently supported clouds: EC2, Openstack, and Google.
- Cookbook requirements
- Platforms
- Ubuntu 12.04
- CentOS 6
Usage
Place the ephemeral_lvm::default
in the runlist and the ephemeral devices will be setup.
Attributes
-
node['ephemeral_lvm']['filesystem']
- the filesystem to be used on the ephemeral volume. Default:'ext4'
-
node['ephemeral_lvm']['mount_point']
- the mount point for the ephemeral volume. Default:'/mnt/ephemeral'
-
node['ephemeral_lvm']['mount_point_properties']
- the options used when mounting the ephemeral volume. Default:{options: ['defaults', 'noauto'], pass: 0}
-
node['ephemeral_lvm']['volume_group_name']
- the volume group name for the ephemeral LVM. Default:'vg-data'
-
node['ephemeral_lvm']['logical_volume_size']
- the size to be used for the ephemeral LVM. Default:'100%VG'
- This will use all available space in the volume group. -
node['ephemeral_lvm']['logical_volume_name']
- the name of the logical volume for ephemeral LVM. Default:'ephemeral0'
-
node['ephemeral_lvm']['stripe_size']
- the stripe size to be used for the ephemeral logical volume. Default:512
Recipes
default
This recipe sets up available ephemeral devices to be an LVM device, formats it, and mounts it.
Author
Author:: RightScale, Inc. (cookbooks@rightscale.com)
Dependent cookbooks
now >= 0.0.0 |
lvm >= 4.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
ephemeral_lvm Cookbook CHANGELOG
This file is used to list changes made in each version of the ephemeral_lvm cookbook.
v3.0.1
- Fixed detection for NVMe ephemeral devices in EC2
v3.0.0
v2.1.0
- lvm-3.1.0
- Pull Request #50: fixed detection for gce ephemeral device type "LOCAL-SSD" (@areznikov-kabam)
- Pull Request #48: Wipe Signatures (@kingpong)
- Pull Request #46: Added attribute for wipe_attributes to pass along to the lvm_volump_group (@freimer)
- Pull Request #33: Using include_recipe_now technic to allow compile time lvm2 package run (@felka)
v2.0.1
- addressed GCE "LOCAL-SSD" type for ephemeral drives
v2.0.0
- Add support for chef 12
- Remove support for chef 11
v1.0.17
- #54: updating lvm cookbook to 2.1.2
v1.0.16
- updated helper library to node['gce']['instance'] instead of node['gce']['attached_disks']
v1.0.15
- fixed gce ephemeral storage detection
v1.0.14
- Setting type of "ephemeral_lvm/mount_point_properties" to hash in metadata.rb
v1.0.13
- update lvm cookbook to 1.6.1
- Removes static options from LVM mounting
v1.0.12
- run vgs command during converge instead of compile time
v1.0.11
- Issue https://github.com/gregsymons/di-ruby-lvm-attrib/issues/22 has been fixed so workaround can be removed.
v1.0.10
- Due to issue https://github.com/gregsymons/di-ruby-lvm-attrib/issues/22, updated gem added to cookbook to allow use with RHEL/CentOS 7.1.
- Updated lvm cookbook dependency version to 1.3.6.
v1.0.9
- Run 'wipefs' on each ephemeral disk erasing any filesystem signatures, avoiding user interaction during lvm commands.
v1.0.8
- Add testing for support of Ubuntu 14.04, CentOS 7.0, and RedHat Enterprise Linux 7.0.
v1.0.7
- Set the fs_passno field to 0 in /etc/fstab to inform fsck that the filesystem used by the ephemeral volumes should not be checked after stop/start.
v1.0.6
- #19: Do not automatically mount the ephemeral LVM since ephemeral volumes are actually ephemeral and will not come back after stop/start.
v1.0.5
- Changed a misleading error message where no ephemeral disks were found.
- Update lvm cookbook dependency to
1.1.x
.
v1.0.4
- Pull Request #13: Fixed a bug where
fix_device_mapping
was returning the output ofChef::Log.warn
instead ofnil
if it could not find the ephemeral device (@autrejacoupa)
v1.0.3
- Pull Request #9: Debian is now added as a supported platform (@drywheat)
- Make sure cloud specific node area is available before accessing it
- Pull Request #11: Added support for all EC2 instance types (@drywheat)
v1.0.2
- Updated README
v1.0.1
- Pull Request #3: Fixed a bug where log resource was used inline in a library (@juliandunn)
v1.0.0
- Initial release
Collaborator Number Metric
3.0.1 passed this metric
Contributing File Metric
3.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
3.0.1 passed this metric
No Binaries Metric
3.0.1 passed this metric
Testing File Metric
3.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
3.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
3.0.1 passed this metric
3.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
3.0.1 passed this metric
No Binaries Metric
3.0.1 passed this metric
Testing File Metric
3.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
3.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
3.0.1 passed this metric
3.0.1 passed this metric
Testing File Metric
3.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
3.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
3.0.1 failed this metric
3.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number