X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=README;h=f5c0288735bbf21ce529673b7e2b2f920f8debf0;hb=8e733b9e6efb3c34313bbaa7f5430eb7d011da31;hp=4e424381de81dee842f01c11fa358666ac7779d2;hpb=05263dd2a224eec1812a924654495ebdbc51f128;p=ganeti-extstorage-zfs diff --git a/README b/README index 4e42438..f5c0288 100644 --- a/README +++ b/README @@ -1,23 +1,60 @@ Ganet extstorage provider for local zfs volumes +http://docs.ganeti.org/ganeti/master/html/man-ganeti-extstorage-interface.html + 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 + +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/ +backup ill instance list node snap + + +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 + +Ganti's extstorage provider doesn't support drbd target. But, lvm emulation scripts are sufficiant enough +to create -t drdb instance or convert plain (created on zfs thanks to wrappers ;-) to drdb. - # enable new disk template - gnt-cluster modify --enabled-disk-templates plain,drbd,ext \ - --ipolicy-disk-templates plain,drbd,ext +KNOWN BUGS for extstorage - # create log directory +- gnt-backup export doesn't work because extstorage snapshoot hook are not available +- gnt-instance move works from somewhere to zfs, but not from zfs to somewhere - mkdir /var/log/ganeti/extstorage - # try instance creation with something similar to +KNOWN BUGS for using -t plain on top of zfs - gnt-instance add -t ext --disk=0:size=10G,provider=zfs \ - --disk=1:size=20G,provider=zfs \ - -n arh-hw --no-name-check --no-ip-check \ - -o debootstrap+default -B maxmem=512M zfs-ext-test +- cron/daily-block-snapshot snapshots are not correctly renamed