X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=README;h=03e41c8eb95989a0cd603eb97c19b0146676cec5;hb=c5f479ecacafa0041fdc85e65de4d4d23d048b69;hp=1e64cc7af953b01752bdbd949ca2d96a67c194fb;hpb=381cb2089c282a2e0bf6b47d2a94d060ecabc0c6;p=ganeti-extstorage-zfs diff --git a/README b/README index 1e64cc7..03e41c8 100644 --- a/README +++ b/README @@ -4,37 +4,56 @@ http://docs.ganeti.org/ganeti/master/html/man-ganeti-extstorage-interface.html INSTALLATION -On node which has zfs storage pool +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 -You need to specify zfs filesystem under which block devices will be created. +Run install scripts: -Now ssh into ganeti master node and do following: +# ls install/ +1-enable-ext-template.sh 2-create-log-directory.sh 3-lvm-wrappers.sh -1. enable new disk template +Cron helper can be install under /etc/cron.daily - gnt-cluster modify --enabled-disk-templates plain,drbd,ext \ - --ipolicy-disk-templates plain,drbd,ext +# ls cron/ +daily-block-snapshot purge-log -2. create log directory +Overview commands are available (try running them to see output): - mkdir /var/log/ganeti/extstorage +# ls bin/ +ill list node size snap -3. try instance creation with something similar to +Create test instances: - gnt-instance add -t ext --disk=0:size=10G,provider=zfs \ - --net 0:mode=bridged,link=br1001 \ - --net 1:mode=bridged,link=br0060 \ - --net 2:mode=bridged,link=br0080 \ - --no-name-check --no-ip-check \ - -o debootstrap+default \ - -B maxmem=1G -n arh-hw zfs +# ls t/*.sh +t/drbd.sh t/plain.sh t/zfs.sh -KNOWN BUGS +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. + + +KNOWN BUGS for extstorage + +- 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 + + +KNOWN BUGS for using -t plain on top of zfs + +- cron/daily-block-snapshot snapshots are not correctly renamed -- in current ganeti, gnt-backup export doesn't work because extstorage - snapshoot hook is not available