This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
project:opennebula [2011/12/21 22:07] SLUUG Administration created |
project:opennebula [2012/06/12 20:50] (current) SLUUG Administration |
||
---|---|---|---|
Line 196: | Line 196: | ||
* Map /etc/xen/images to btrfs raid 10 local array | * Map /etc/xen/images to btrfs raid 10 local array | ||
- | *Map /var/lib/one/ to NFS server 600G S/W raid 10 | + | * Map /var/lib/one/ to NFS server 600G S/W raid 10 |
- | *Map /home/* to NFS server 600G S/W raid 10 | + | * Map /home/* to NFS server 600G S/W raid 10 |
*On NFS Server be sure to perform these fixes since root user access will be needed | *On NFS Server be sure to perform these fixes since root user access will be needed | ||
-Set the permissions in the directory and the images exported to very permissive (directories: a+rx, files: a+rw) | -Set the permissions in the directory and the images exported to very permissive (directories: a+rx, files: a+rw) | ||
- | -Disable root squashing adding no_root_squash to nfs exporting options | + | -Disable root squashing adding no_root_squash to nfs exporting options\\ |
+ | |||
+ | /etc/exports/\\ | ||
+ | <file> | ||
+ | /srv/storage/@/home 192.168.118.0/27(crossmnt,rw,no_root_squash,sync,no_subtree_check) 192.168.115.0/27(crossmnt,rw,no_root_squash,sync,no_subtree_check) | ||
+ | /srv/storage/@/backups 192.168.115.0/27(crossmnt,rw,no_root_squash,sync,no_subtree_check) 192.168.118.0/27(crossmnt,rw,no_root_squash,sync,no_subtree_check) | ||
+ | /var/lib/one 192.168.118.0/27(crossmnt,rw,no_root_squash,sync,no_subtree_check) 192.168.115.0/27(crossmnt,rw,no_root_squash,sync,no_subtree_check) | ||
+ | </file> | ||
+ | |||
+ | /etc/fstab (client side) | ||
+ | <file> | ||
+ | 192.168.115.5:/var/lib/one /var/lib/one nfs rw,hard,intr | ||
+ | </file> | ||
+ | |||
+ | * Recursive bind mount images data store. I for some reason am not getting crossmnt option to work on NFS | ||
+ | |||
+ | <code> | ||
+ | # mount --rbind /srv/storage/\@/images/ /var/lib/one/datastores/ | ||
+ | </code> | ||
+ | |||
+ | /etc/fstab *** This Doesn't work either, still experimenting... Probably need to mount device directly since its a subvolume ***\\ | ||
+ | <file> | ||
+ | /srv/storage/\@/images/ /var/lib/one/datastores/ none defaults,rbind | ||
+ | </file> | ||
* Edit /etc/one/oned.conf (default config) | * Edit /etc/one/oned.conf (default config) | ||
Line 273: | Line 296: | ||
**vSwitch doesn't like kernel 3.1 - we'll likely need to use ebtables which will conflict with xenpri0** | **vSwitch doesn't like kernel 3.1 - we'll likely need to use ebtables which will conflict with xenpri0** | ||
+ | === Add a new host === | ||
+ | It is critical that your opennebula front end can resolve the name of your hypervisors. In this scenario we will use the /etc/hosts file to do this for us.\\ | ||
+ | |||
+ | <code># vim /etc/hosts | ||
+ | |||
+ | 127.0.0.1 xenhost | ||
+ | |||
+ | :wq | ||
+ | </code> | ||
+ | |||
+ | |||
+ | Switch over to the oneadmin user and add your hosts.\\ | ||
+ | To add a host you use the onehost create command. This command needs to know the information manager (im) driver, the virtual machine monitor (vmm) driver and the network driver that the host is using. In our case we will be adding a xen hypervisor, that is set up to use open vSwitch for its network driver. | ||
+ | |||
+ | <code># su - oneadmin | ||
+ | ~$ onehost create xenhost -i im_xen -v vmm_xen -n ovswitch | ||
+ | </code> | ||
+ | |||
+ | Once complete you should now see your host on the onehost list, you can also use onehost show <hostid> to show the details of your host:\\ | ||
+ | |||
+ | <code> | ||
+ | oneadmin@xenhost:~$ onehost list | ||
+ | ID NAME CLUSTER RVM TCPU FCPU ACPU TMEM FMEM AMEM STAT | ||
+ | 1 xenhost - 0 0 0 100 0K 0K 0K on | ||
+ | |||
+ | oneadmin@xenhost:~$ onehost show xenhost | ||
+ | HOST 1 INFORMATION | ||
+ | ID : 1 | ||
+ | NAME : xenhost | ||
+ | CLUSTER : - | ||
+ | STATE : MONITORED | ||
+ | IM_MAD : im_xen | ||
+ | VM_MAD : vmm_xen | ||
+ | VN_MAD : ovswitch | ||
+ | LAST MONITORING TIME : 1339032919 | ||
+ | |||
+ | HOST SHARES | ||
+ | MAX MEM : 16678912 | ||
+ | USED MEM (REAL) : 13844480 | ||
+ | USED MEM (ALLOCATED) : 0 | ||
+ | MAX CPU : 800 | ||
+ | USED CPU (REAL) : 107 | ||
+ | USED CPU (ALLOCATED) : 0 | ||
+ | MAX DISK : 0 | ||
+ | USED DISK (REAL) : 0 | ||
+ | USED DISK (ALLOCATED) : 0 | ||
+ | RUNNING VMS : 0 | ||
+ | |||
+ | MONITORING INFORMATION | ||
+ | ARCH="x86_64" | ||
+ | CPUSPEED="3100" | ||
+ | FREECPU="693" | ||
+ | FREEMEMORY="2834432" | ||
+ | HOSTNAME="xenhost" | ||
+ | HYPERVISOR="xen" | ||
+ | MODELNAME="AMD FX(tm)-8120 Eight-Core Processor " | ||
+ | NETRX="0" | ||
+ | NETTX="0" | ||
+ | TOTALCPU="800" | ||
+ | TOTALMEMORY="16678912" | ||
+ | USEDCPU="107" | ||
+ | USEDMEMORY="13844480" | ||
+ | |||
+ | </code> | ||
====Work In Progress - 21DEC11==== | ====Work In Progress - 21DEC11==== | ||
[[:home|Home]] | [[:projects|Projects]] | [[:hardwarerefresh_dec11|SLUUG Hardware Refresh]] | [[:home|Home]] | [[:projects|Projects]] | [[:hardwarerefresh_dec11|SLUUG Hardware Refresh]] | ||
- |