X-Git-Url: http://git.rot13.org/?p=ganeti-extstorage-zfs;a=blobdiff_plain;f=README;h=612f13cda5f5c759893cceb1a9044574f5b62fdd;hp=f55a77512d3cf7aa39c94981f2e25b94f867b6e7;hb=701a61f6dad57aef8d1acd1d7c89f5ebf1ad0138;hpb=98dcdb2ce7756c1af8ae92e69f001778cef6f536 diff --git a/README b/README index f55a775..612f13c 100644 --- a/README +++ b/README @@ -27,7 +27,56 @@ Now ssh into ganeti master node and do following: 3. try instance creation with something similar to 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 + --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 +4. install helper scripts for daily block snapshots + + ln -sf /usr/share/ganeti/extstorage/zfs/bin/daily-block-snapshot /etc/cron.daily/ + +5. install lvm wrapper scripts to report zfs volumes as lv + + find /usr/share/ganeti/extstorage/zfs/sbin/ -type f | xargs -i ln -v -s -f {} /sbin/ + +This scripts enable gnt-node commands to work: + +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 + + +HELPER SCRIPTS + +Helper scripts in bin directory list volumes, show size or snapshots. + + +arh-hw:/usr/share/ganeti/extstorage/zfs# ./bin/list +NAME USED AVAIL REFER MOUNTPOINT +tmp500g/block 612M 87.2G 30K /tmp500g/block +tmp500g/block/af1a90e8-0566-4cbf-bc8c-99fc82b67ce3.ext.disk0 612M 87.2G 610M - + + +arh-hw:/usr/share/ganeti/extstorage/zfs# ./bin/size +NAME PROPERTY VALUE SOURCE +tmp500g/block/af1a90e8-0566-4cbf-bc8c-99fc82b67ce3.ext.disk0 volsize 11G local + + +arh-hw:/usr/share/ganeti/extstorage/zfs# ./bin/snapshots +NAME USED AVAIL REFER MOUNTPOINT +tmp500g/block@etckeeper 0 - 30K - +tmp500g/block/af1a90e8-0566-4cbf-bc8c-99fc82b67ce3.ext.disk0@2014-06-24 2.64M - 610M - + +KNOWN BUGS + +- in current ganeti, gnt-backup export doesn't work because extstorage + snapshoot hook is not available +- gnt-instance move works from somewhere to zfs, but not from zfs to somewhere