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1.9
- 6.1.8
- 6.1.7
- 6.1.6
- 6.1.5
- 6.1.4
- 6.1.3
- 6.1.2
- 6.1.1
- 6.1.0
- 6.0.2
- 6.0.1
- 6.0.0
- 5.2.2
- 5.2.1
- 5.2.0
- 5.1.0
- 5.0.7
- 5.0.6
- 5.0.5
- 5.0.4
- 5.0.3
- 5.0.2
- 5.0.1
- 5.0.0
- 4.6.1
- 4.6.0
- 4.5.4
- 4.5.3
- 4.5.2
- 4.5.1
- 4.5.0
- 4.4.0
- 4.3.0
- 4.2.0
- 4.1.15
- 4.1.14
- 4.1.13
- 4.1.12
- 4.1.11
- 4.1.10
- 4.1.9
- 4.1.8
- 4.1.7
- 4.1.6
- 4.1.5
- 4.1.4
- 4.1.3
- 4.1.2
- 4.1.1
- 4.1.0
- 4.0.6
- 4.0.5
- 4.0.4
- 4.0.3
- 4.0.2
- 4.0.1
- 4.0.0
- 3.1.0
- 3.0.0
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.0
- 1.6.1
- 1.6.0
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.1
- 1.4.0
- 1.3.7
- 1.3.6
- 1.3.5
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- 1.2.2
- 1.1.2
- 1.1.0
- 1.0.8
- 1.0.4
- 1.0.2
- 1.0.0
- 0.8.12
- 0.8.10
- 0.8.8
- 0.8.6
- 0.8.4
- 0.8.2
- 0.7.0
Installs and manages Logical Volume Manager
cookbook 'lvm', '= 0.8.4', :supermarket
knife supermarket install lvm
knife supermarket download lvm
Description
Installs lvm2 package and ensures it stays upgraded.
Requirements
- Debian/Ubuntu
- RHEL/CentOS
Resources/Providers
There are three LWRPs in the LVM cookbook that can be used to perform operations
with the Logical Volume Manager.
lvm_physical_volume
Manages LVM physical volumes.
Actions
-
:create
- Creates a new physical volume. Default.
Attribute Parameters
-
name
The device to create the new physical volume on. Required, name parameter.
Example
lvm_physical_volume '/dev/sda'
lvm_logical_volume
Manages LVM logical volumes
Actions
-
:create
- Creates a new logical volume
Attribute Parameters
-
name
- The name of the logical volume. Required, name parameter. -
group
- The volume group in which to create the new volume. Required unless the volume is declared inside of anlvm_volume_group
block (<a href='#volume_group'>see below</a>). -
size
- The size of the volume. This can be any of the size specifications supported by LVM—SI bytes (e.g. 10G), physical extents, or percentages of all the extents in the volume group, all the free extents, or of the physical volumes assigned to the volume. -
filesystem
- The filesystem to format the volume as. The appropriate tools must be installed for the filesystem. -
mount_point
- Either a string containing the path to the mount point, or a Hash containing the following keys:-
location
- the directory to mount the volume on. Required. -
options
- the mount options for the volume. -
dump
- thedump
field for the fstab entry. -
pass
- thepass
field for the fstab entry.
-
-
physical_volumes
- An array of physical volumes that the volume will be restricted to. -
stripes
- the number of stripes for the volume. -
stripe_size
- the number of kilobytes per stripe segment. Must be a power of 2 less than or equal to the physical extent size for the volume group. -
mirrors
- the number of mirrors for the volume. -
contiguous
- whether or not volume should use the contiguous allocation policy. Default is non-contiguous. -
readahead
- the readahead sector count for the volume. Can be a value between 2 and 120, 'auto', or 'none'
Example
lvm_logical_volume 'home' do
group 'vg00'
size '25%VG'
filesystem 'ext4'
mount_point '/home'
stripes 3
mirrors 2
end
<a name='volume_group' />
lvm_volume_group
Manages LVM volume groups.
Actions
-
:create
- Creates a new volume group. Default.
Attribute Parameters
-
name
- The name of the volume group. Required, name parameter. -
physical_volumes
- A device or list of devices to use as physical volumes. If they haven't already been initialized as physical volumes, they will be initialized automatically. Required. -
physical_extent_size
- The physical extent size for the volume group. -
logical_volume
- A shortcut for creating a newlvm_logical_volume
definition. The logical volumes will be created in the order they are declared.
Example
lvm_volume_group 'vg00' do
physical_volumes [ /dev/sda, /dev/sdb, /dev/sdc ]
logical_volume 'logs' do
size '1G'
filesystem 'xfs'
mount_point :location => '/var/log', :options => 'noatime,nodiratime'
stripes 3
end
logical_volume 'home' do
size '25%VG'
filesystem 'ext4'
mount_point '/home'
stripes 3
mirrors 2
end
end
Usage
Make sure the lvm package is always up to date with this recipe. Put
it in a base role that gets applied to all nodes.
License and Author
Author:: Joshua Timberman joshua@opscode.com
Author:: Greg Symons gsymons@drillinginfo.com
Copyright:: 2011, Opscode, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Dependent cookbooks
This cookbook has no specified dependencies.