| space, → | next slide |
| ← | previous slide |
| d | debug mode |
| ## <ret> | go to slide # |
| c | table of contents (vi) |
| f | toggle footer |
| r | reload slides |
| z | toggle help (this) |





gnt-<command>gnt-clustergnt-nodegnt-instancegnt-backupgnt-osgnt-clustergnt-nodegnt-instancegnt-backup
$ gnt-cluster init \
--master-netdev=br42 \
-g ganeti -s 10.1.11.200 \
--enabled-hypervisors=kvm \
-N link=br113 \
-B vcpus=2,memory=512M \
-H kvm:kernel_path=/boot/guest/vmlinuz-x86_64 \
ganeti-cluster.osuosl.org

$ gnt-node add -s 10.1.11.201 node2

$ gnt-node list
Node DTotal DFree MTotal MNode MFree Pinst Sinst
g1.osuosl.bak 673.9G 251.8G 23.6G 14.5G 14.0G 16 16
g2.osuosl.bak 673.9G 204.9G 23.6G 15.5G 14.2G 15 16
g3.osuosl.bak 673.9G 200.6G 23.6G 16.8G 13.3G 16 16
g4.osuosl.bak 673.9G 154.8G 23.6G 16.4G 15.4G 16 15

$ gnt-cluster verify
Wed Jun 2 17:31:07 2010 * Verifying global settings
Wed Jun 2 17:31:08 2010 * Gathering data (4 nodes)
Wed Jun 2 17:31:09 2010 * Verifying node status
Wed Jun 2 17:31:09 2010 * Verifying instance status
Wed Jun 2 17:31:09 2010 * Verifying orphan volumes
Wed Jun 2 17:31:09 2010 * Verifying oprhan instances
Wed Jun 2 17:31:09 2010 * Verifying N+1 Memory redundancy
Wed Jun 2 17:31:09 2010 * Other Notes
Wed Jun 2 17:31:09 2010 * Hooks Results
$ gnt-cluster info
Cluster name: ganeti-test.osuosl.bak
Cluster UUID: a22576ba-9158-4336-8590-a497306f84b9
Creation time: 2010-04-08 00:08:29
Modification time: 2010-05-07 22:33:34
Master node: gtest1.osuosl.bak
Architecture (this node): 64bit (x86_64)
Tags: (none)
Default hypervisor: kvm
Enabled hypervisors: kvm
Hypervisor parameters:
- kvm:
acpi: True
boot_order: disk
cdrom_image_path:
disk_cache: default
disk_type: paravirtual
initrd_path:
kernel_args: ro
kernel_path: /boot/guest/vmlinuz-x86_64-hardened
kvm_flag:
migration_port: 8102
nic_type: paravirtual
root_path: /dev/vda2
security_domain:
security_model: none
serial_console: True
usb_mouse:
use_localtime: False
vnc_bind_address: 0.0.0.0
vnc_password_file:
....

$ gnt-instance add -t drbd -n node3:node2 \
$ -s 10G -o image+gentoo-hardened-cf \
$ --net 0:link=br42 web.example.org
* creating instance disks...
adding instance web.example.org to cluster config
- INFO: Waiting for instance web.example.org to sync disks.
- INFO: - device disk/0: 3.90% done, 205 estimated seconds remaining
- INFO: - device disk/0: 29.40% done, 101 estimated seconds remaining
- INFO: - device disk/0: 54.90% done, 102 estimated seconds remaining
- INFO: - device disk/0: 80.40% done, 41 estimated seconds remaining
- INFO: - device disk/0: 98.40% done, 3 estimated seconds remaining
- INFO: - device disk/0: 100.00% done, 0 estimated seconds remaining
- INFO: Instance web.example.org's disks are in sync.
* running the instance OS create scripts...
* starting instance...
$ gnt-instance list
Instance OS Primary_node Status Memory
monkeyhttpd image+ubuntu-lucid g2.osuosl running 512M
mozdev-stats image+manual g3.osuosl running 512M
mulgara image+manual g4.osuosl running 512M
musicbrainzvm image+manual g2.osuosl running 512M
myrtle image+manual g1.osuosl running 512M
olpc image+manual g3.osuosl running 512M
openberry image+manual g1.osuosl running 512M
openclipfont image+manual g4.osuosl running 512M
openht image+manual g4.osuosl running 512M
openmrs image+manual g1.osuosl running 512M
openvoting image+manual g2.osuosl running 512M
osi image+manual g4.osuosl running 256M
parrotvm image+manual g1.osuosl running 512M
pcc image+manual g1.osuosl running 512M
pdxplumbers image+manual g2.osuosl running 512M
polk image+manual g4.osuosl running 512M
puffin image+manual g3.osuosl running 256M
$ gnt-instance console web
$ gnt-instance migrate web
$ gnt-instance failover web
$ gnt-instance reinstall -o image+ubuntu-lucid web
$ gnt-instance info web
$ gnt-instance list
ganeti-instance-imageganeti-instance-image

$ gnt-instance failover --ignore-consistency web

$ gnt-instance replace-disks --on-secondary \
--new-secondary=node1 web
hbalhailhspacehbal$ hbal -m ganeti.osuosl.bak
Loaded 4 nodes, 63 instances
Initial check done: 0 bad nodes, 0 bad instances.
Initial score: 0.53388595
Trying to minimize the CV...
1. bonsai g1:g2 => g2:g1 0.53220090 a=f
2. connectopensource g3:g1 => g1:g3 0.53114943 a=f
3. amahi g2:g3 => g3:g2 0.53088116 a=f
4. mertan g1:g2 => g2:g1 0.53031862 a=f
5. dspace g3:g1 => g1:g3 0.52958328 a=f
Cluster score improved from 0.53388595 to 0.52958328
Solution length=5
hspace$ hspace --memory 512 --disk 10240 -m ganeti.osuosl.bak
HTS_INI_INST_CNT=63
HTS_FIN_INST_CNT=101
HTS_ALLOC_INSTANCES=38
HTS_ALLOC_FAIL_REASON=FAILDISK
hail$ gnt-instance add -t drbd -I hail \
$ -s 10G -o image+gentoo-hardened-cf \
$ --net 0:link=br42 web.example.org \
- INFO: Selected nodes for instance web.example.org
via iallocator hail: gtest1.osuosl.bak, gtest2.osuosl.bak
* creating instance disks...
adding instance web.example.org to cluster config
- INFO: Waiting for instance web.example.org to sync disks.
- INFO: - device disk/0: 3.60% done, 1149 estimated seconds remaining
- INFO: - device disk/0: 29.70% done, 144 estimated seconds remaining
- INFO: - device disk/0: 55.50% done, 88 estimated seconds remaining
- INFO: - device disk/0: 81.10% done, 47 estimated seconds remaining
- INFO: Instance web.example.org's disks are in sync.
* running the instance OS create scripts...
* starting instance...





This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.