Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
TetraWiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
VIRTUALIZATION AND CLUSTER IN CAPITAL BANK
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=Implementation= NOTE:-In kvm unlike of xen you wont found inbuilt bridge,so you need to bridge one nic as bridge. Follow the steps to make Ethernet bridged. Suppose if you want to make eth0 as bridge # go to vi /etc/sysconfig/network-scripts/ifcfg-eth0 Add the highlighted line <nowiki># Intel Corporation 82576 Gigabit Network Connection</nowiki> DEVICE=eth0 BOOTPROTO=dhcp HWADDR=00:25:90:20:8d:3e ONBOOT=yes '''BRIDGE=bridge0''' TYPE=Ethernet # Create one file ifcfg-bridge0 in /etc/sysconfig/network-scripts/ DEVICE=bridge0 TYPE=Bridge BOOTPROTO=static ONBOOT=yes DELAY=0 # service network restart # Your bridge is ready Now create the virtual machine either by virt-install or with gui virt-manager. Follow the below print screens. [[Image:Capital1.png]] [[Image:Capital2.png]] [[Image:Capital3.png]] [[Image:Capital4.png]] [[Image:Capital5.png]] [[Image:Capital6.png]] [[Image:Capital7.png]] [[Image:Capital8.png]] =='''Problem which can occur.'''== Now the virtual machine are ready.but if i m attaching the shared storage between those virtual machines,one problem will occur. If you write any data with first virtual machine in storage,data will not get displayed on second virtual machine in the same storage. This above problem occurs because each vm built on kvm,is having default configuration As chache=on,so we need to disable the cache of each vm. ==Final configuration== Final configuration file of each vm should look like the following <nowiki><domain type='kvm'></nowiki> <nowiki><name>CBS-DB2</name></nowiki> <nowiki><uuid>c4dbb197-ac51-7803-bd09-0f713145a2d2</uuid></nowiki> <nowiki><memory>7168000</memory></nowiki> <nowiki><currentMemory>7168000</currentMemory></nowiki> <nowiki><vcpu>8</vcpu></nowiki> <nowiki><os></nowiki> <nowiki><type arch='x86_64' machine='rhel5.4.0'>hvm</type></nowiki> <nowiki><boot dev='hd'/></nowiki> <nowiki></os></nowiki> <nowiki><features></nowiki> <nowiki><acpi/></nowiki> <nowiki><apic/></nowiki> <nowiki><pae/></nowiki> <nowiki></features></nowiki> <nowiki><clock offset='utc'/></nowiki> <nowiki><on_poweroff>destroy</on_poweroff></nowiki> <nowiki><on_reboot>restart</on_reboot></nowiki> <nowiki><on_crash>restart</on_crash></nowiki> <nowiki><devices></nowiki> <nowiki><emulator>/usr/libexec/qemu-kvm</emulator></nowiki> <nowiki><disk type='file' device='disk'></nowiki> <nowiki><driver name='qemu' cache='none'/></nowiki> <nowiki><source file='/var/lib/libvirt/images/CBS-DB2.img'/></nowiki> <nowiki><target dev='vda' bus='virtio'/></nowiki> <nowiki><shareable/></nowiki> <nowiki></disk></nowiki> <nowiki><disk type='block' device='cdrom'></nowiki> <nowiki><target dev='hdc' bus='ide'/></nowiki> <nowiki><readonly/></nowiki> <nowiki></disk></nowiki> <nowiki><disk type='block' device='disk'></nowiki> <nowiki><driver name='qemu' cache='none'/></nowiki> <nowiki><source dev='/dev/sdb'/></nowiki> <nowiki><target dev='vdb' bus='virtio'/></nowiki> <nowiki><shareable/></nowiki> <nowiki></disk></nowiki> <nowiki><interface type='bridge'></nowiki> <nowiki><mac address='54:52:00:6e:2d:29'/></nowiki> <nowiki><source bridge='bridge0'/></nowiki> <nowiki><model type='virtio'/></nowiki> <nowiki></interface></nowiki> <nowiki><serial type='pty'></nowiki> <nowiki><source path='/dev/pts/2'/></nowiki> <nowiki><target port='0'/></nowiki> <nowiki></serial></nowiki> <nowiki><console type='pty' tty='/dev/pts/2'></nowiki> <nowiki><source path='/dev/pts/2'/></nowiki> <nowiki><target port='0'/></nowiki> <nowiki></console></nowiki> <nowiki><input type='mouse' bus='ps2'/></nowiki> <nowiki><graphics type='vnc' port='-1' autoport='yes' keymap='en-us'/></nowiki> <nowiki></devices></nowiki> <nowiki></domain></nowiki> '''CLUSTER''' '''IPMI CONFIGURATION''' Service ipmi restart dmesg(check ipmi no errors should come) ipmitool lan print 1(Displayrint ipmi chanel 1 configuration) ipmitool lan set 1 ipsrc static ipmitool lan set 1 ipaddr 192.168.0.46 ipmitool lan set 1 netmask 255.255.255.0 ipmitool lan set 1 arp respond on ipmitool lan set 1 arp generate on ipmitool lan set 1 arp interval 5 ipmitool lan set 1 user ipmitool lan set 1 access on ipmitool userlist Now we will create cluster on CBS-APP-PROD.capital.clab There will be two cluster one for application virtual machine and other for run fence_xvmd agent. luci_admin init username: admin password: capital123 service ricci start service luci restart login in browser by url [https://CBS-APP-PROD.capital.clab:8084/ https://CBS-APP-PROD.capital.clab:8084] ==Application Cluster == First I created application cluster In order to provide fencing for virtual guests running in a cluster, the physical host systems must also be in a cluster of their own. For instance, HostA and HostB may be physical systems running KVM or Xen, and GuestA, GuestB, GuestC, and GuestD are virtual guests running on both hosts. ClusterA would have HostA and HostB as cluster nodes, whereas,ClusterB would be comprised of Guests A-D as nodes. These two clusters cannot share,any members.Red Hat Enterprise Linux Cluster provides the fence_xvmd daemon, which runs on the virtualization hosts to track the location and status of virtual cluster nodes, and listens for fencing requests from those nodes. These virtual nodes send the fencing requests using the fence_xvm agent, which sends a multicast request to the host cluster along with the libvirt domain name of the guest to be fenced. When the virtualization host receives this request,and authenticates it, it uses the libvirt interfaces to destroy and restart the errant guest. '''Authentication''' In order for the host nodes to be able to authenticate fencing requests from the guest cluster, each node must possess the same key to use for packet hashing and SHA authentication. This key can be created on any one of the host or guest systems like so: '''<nowiki># dd if=/dev/urandom of=/etc/cluster/fence_xvm.key bs=4096 count=1</nowiki>''' This key should then be copied to /etc/cluster/fence_xvm.key on every virtual host and Guest. [[Image:Capital9.png]] [[Image:Capital10.png]][[Image:Capital11.png]] [[Image:Capital12.png]] [[Image:Capital13.png]] [[Image:Capital14.png]] With this application cluster configuration over. Now the base cluster [[Image:Capital15.png]] [[Image:Capital17.png]] [[Image:Capital18.png]] [[Image:Capital19.png]] [[Image:Capital20.png]] [[Image:Capital21.png]] Now cluster on CBS-DB-PROD.capital.clab luci_admin init username: admin password: capital123 service ricci start service luci restart login in browser by url [https://CBS-DB-PROD.capital.clab:8084/ https://CBS-DB-PROD.capital.clab:8084] Name of cluster db_clust In this cluster,We have used storage (DAS box),with file system ext3. Exported storage in vm as virtio disk,and created the partitions as file system ext3 [[Image:Capital22.png]] [[Image:Capital23.png]] [[Image:Capital24.png]] [[Image:Capital25.png]] [[Image:Capital26.png]] [[Image:Capital27.png]] [[Image:Capital28.png]] [[Image:Capital29.png]]
Summary:
Please note that all contributions to TetraWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
TetraWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)