Coder Social home page Coder Social logo

optoro_zpool's Introduction

optoro_zpool Cookbook

This is a resource cookbook. Including it in your metadata.rb file will allow you to access to the zpool resouce.

This simply provides a the resource for interacting with zpools. You will need to have ZFS already installed. See optoro_zfs, zfs, or zfs_linux cookbooks.

Examples!

###RAID0

zpool 'raid0' do
  disks ['/dev/sdb','/dev/sdc']
end

###RAID1

zpool 'raid10' do
  disks ['mirror', '/dev/sdb', '/dev/sdc']
end

###RAID10 w/ ZIL

zpool 'raid10' do
  disks ['mirror', '/dev/sdb', '/dev/sdc', 'mirror', '/dev/sdd', '/dev/sde']
  log_disks ['/dev/sdf']
end

###RAIDZ w/ ZIL mirror & Cache

zpool 'raidz' do
  disks ['mirror', '/dev/sdb', '/dev/sdc', '/dev/sdd']
  log_disks ['mirror', '/dev/sde', '/dev/sdf']
  cache_disks ['/dev/sdg']
end

###Optional Attributes

Attribute Description Type Default
mountpoint Aboslute path to where the zpool should be mounted String zpool.name
autoexpand Whether or not to expand the zpool when a new disk is introduced Boolean false
force Forces the destruction or creation of a zpool Boolean false
ashift Sets the ashift for a pool Integer 0 (automatic detection)

optoro_zpool's People

Contributors

zadunn avatar smedefind avatar

Watchers

Jarod Reid avatar Brock Wilcox avatar Abel Martin avatar Jess Szmajda avatar Benjamin Smith avatar John Nestoriak avatar Bradley Herrup avatar Jeffrey Gillis avatar James Cloos avatar  avatar Yasha Portnoy avatar Daniel van den Berg avatar  avatar Alex Freidah avatar Chris Hoffman avatar Steve McGrane avatar  avatar

Forkers

zadunn

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.