cookbook 'filesystem_resize', '= 0.1.0'
filesystem_resize (3) Versions 0.1.0 Follow5
Resize the file system automatically when the underlying partition or disk increases its size.
cookbook 'filesystem_resize', '= 0.1.0', :supermarket
knife supermarket install filesystem_resize
knife supermarket download filesystem_resize
Description
This Chef cookbook resizes the file system automatically when the underlying partition or disk increases its size.
It is mainly oriented to work with cloud or virtual servers where it is common to change the disk size.
Requirements
Platform Requirements
This cookbook has been tested on the following platforms:
- Amazon (>= 2012.03)
- CentOS (>= 6.0)
- Debian (>= 7.0)
- Fedora
- RedHat
- Ubuntu (>= 12.04)
Please, let us know if you use it successfully on any other platform.
Application Requirements
- Ruby 1.9.3 or higher.
The other required applications usually come with the operating system:
-
lsblk
,findmnt
andlosetup
: included inside util-linux (≥ 2.19) package. -
pgrep
: included inside procps-ng package. -
e2fsck
,dumpe2fs
andresize2fs
for ext3 and ext4: included inside e2fsprogs package. -
xfs_info
andxfs_growfs
for XFS: included inside xfsprogs package.
Attributes
<table>
<tr>
<th>Attribute</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><code>node['filesystem_resize']['compiletime']</code></td>
<td>Resize the file systems at compile time.</td>
<td><code>false</code></td>
</tr>
</table>
Recipes
filesystem_resize::default
Resize mounted file systems.
Usage
Including in a Cookbook Recipe
You can simply include it in a recipe:
# in your recipe include_recipe 'filesystem_resize'
Don't forget to include the filesystem_resize
cookbook as a dependency in the metadata:
# metadata.rb depends 'filesystem_resize'
Including in the Run List
Another alternative is to include it in your Run List:
{ "name": "app001.onddo.com", [...] "run_list": [ [...] "recipe[filesystem_resize]" ] }
Testing
See TESTING.md.
Contributing
Please do not hesitate to open an issue with any questions or problems.
See CONTRIBUTING.md.
TODO
See TODO.md.
License and Author
Author: | Xabier de Zuazo (xabier@onddo.com) |
Copyright: | Copyright (c) 2014, Onddo Labs, SL. (www.onddo.com) |
License: | Apache License, Version 2.0 |
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.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
CHANGELOG for filesystem_resize
This file is used to list changes made in each version of the filesystem_resize cookbook.
v0.1.0 (2014-08-11)
- Initial release of
filesystem_resize
.