X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=README;h=2fd0a70a69e5498cf1bccfa93517010a8e5e867b;hb=95f3f6c4b80249dc923dcb0c25c5bd4882076f9d;hp=82b71c7827d9e12c7403dc931bcfac24c2473e7e;hpb=42ebef3d616015dfb42476f7753bf1e27ebb3071;p=ganeti-extstorage-zfs diff --git a/README b/README index 82b71c7..2fd0a70 100644 --- a/README +++ b/README @@ -1,65 +1,63 @@ -Ganet extstorage provider for local zfs volumes +Ganeti extstorage provider for local zfs volumes 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/ +adopt backup ill instance list node -3. try instance creation with something similar to +backup and instance are wrappers for running gnt-* commands +with same name on master node - 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 +Create test instances: -4. install helper scripts for daily block snapshots +# ls t/*.sh +t/drbd.sh t/plain.sh t/zfs.sh - ln -sf /usr/share/ganeti/extstorage/zfs/bin/daily-block-snapshot /etc/cron.daily/ +Review that instaces have been created: -5. install lvm wrapper scripts to report zfs volumes as lv +# ./bin/ill t- - find /usr/share/ganeti/extstorage/zfs/sbin/ -type f | xargs -i ln -v -s -f {} /sbin/ +Test ganeti commands after reading them: -This scripts enable gnt-node commands to work: +# ls t/gnt-* +t/gnt-backup-export.sh t/gnt-instance-modify.sh -root@vmh02:/home/dpavlin# gnt-node list arh-hw -Node DTotal DFree MTotal MNode MFree Pinst Sinst -arh-hw.gnt.ffzg.hr 87.8G 87.2G 7.8G 252M 5.6G 1 0 -root@vmh02:/home/dpavlin# gnt-node list-storage arh-hw -Node Type Name Size Used Free Allocatable -arh-hw.gnt.ffzg.hr lvm-vg arh-hw 190.0G 62.7G 127.3G Y -arh-hw.gnt.ffzg.hr lvm-vg ffzgvg 87.8G 610M 87.2G Y +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. -HELPER SCRIPTS -Helper scripts in bin directory to list volumes, show size or snapshots. +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 -- in current ganeti, gnt-backup export doesn't work because extstorage - snapshoot hook is not available +KNOWN BUGS for using -t plain on top of zfs + +- cron/daily-block-snapshot snapshots are not correctly renamed +- bin/adopt will create new zvol using send/receive to break dependency on origin + (otherwise, deleting of origin file system will also delete new adopted instance)