Giter Club home page Giter Club logo

ganeti-extstorage-zfs's Introduction

Ganeti extstorage provider for local zfs volumes

http://docs.ganeti.org/ganeti/master/html/man-ganeti-extstorage-interface.html

It also encludes LVM emulation which enable zfs to work as plain disk type.

This allows usage of drbd where one (or both) sides are on zfs, and supports
gnt-backup export and import.


INSTALLATION

On node which will host zfs storage pool

  cd /usr/share/ganeti/extstorage/
  git clone https://github.com/ffzg/ganeti-extstorage-zfs zfs
  cd zfs
  vi defaults.sh

Alternative to editing defaults.sh is to create etc/`hostname -s` file
with minimal configuration which just specify pool name (in this case
again hostname -s) and filesystem where new volumes will be created:

  echo EXTP_ZFS=`hostname -s`/ffzgvg > etc/`hostname -s`.sh  
 

Run install scripts:

# ls install/
1-enable-ext-template.sh  2-create-log-directory.sh  3-lvm-wrappers.sh


Cron helper can be install under /etc/cron.daily

# ls cron/
daily-block-snapshot  purge-log


Overview commands are available (try running them to see output):

# ls bin/
adopt  backup  ill  instance  list  node

backup and instance are wrappers for running gnt-* commands
with same name on master node

adopt will create new zvol using send/receive to break dependency on origin
(otherwise, removal of origin zvol will also remove new adopted disk


Create test instances:

# ls t/*.sh
t/drbd.sh  t/plain.sh  t/zfs.sh

Review that instaces have been created:

# ./bin/ill t-

Test ganeti commands after reading them:

# ls t/gnt-*
t/gnt-backup-export.sh  t/gnt-instance-modify.sh


DRBD disk replication

Ganeti's extstorage provider doesn't support drbd target.  But, lvm emulation
scripts are sufficiant enough to create -t drbd instance or convert plain
(created on zfs thanks to wrappers ;-) to drbd.


KNOWN BUGS for extstorage

- gnt-backup export doesn't work because snapshoot hooks are not available
- gnt-instance move works from somewhere to zfs, but not from zfs to somewhere

ganeti-extstorage-zfs's People

Contributors

dpavlin avatar lblasc avatar

Watchers

James Cloos avatar

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.