Categories

Thursday, 23 May 2013

Lustre Client Installation in Servers.

Lustre Client installation
------------------------








As luster is not available on different kernel versions, we have to rebuild the rpm for a specific kernel. the steps are given below.



1)FIrst download the lustre source RPM from the site link http://downloads.whamcloud.com/public/lustre/lustre-2.1.1/el6/client/SRPMS/

You can download according to different version of lustre. Here I need lustre-2.1.1

2)Then rebuild the RPM using the command

rpmbuild --define 'kversion 2.6.32-279.el6.x86_64' --define 'kdir /usr/src/kernels/2.6.32-279.el6.x86_64/' --rebuild lustre-client-2.1.1-2.6.32_220.el6.x86_64.src.rpm

it will build the new RPM for the desired kernel you want.

The new RPM will be in /root/rpmbuild/RPMS/x86_64

3)There will be 5 rpms in that location
lustre-2.1.1-2.6.32_279.el6.x86_64.x86_64.rpm
lustre-debuginfo-2.1.1-2.6.32_279.el6.x86_64.x86_64.rpm
lustre-modules-2.1.1-2.6.32_279.el6.x86_64.x86_64.rpm
lustre-source-2.1.1-2.6.32_279.el6.x86_64.x86_64.rpm
lustre-tests-2.1.1-2.6.32_279.el6.x86_64.x86_64.rpm

There might get some dependancy problem while installing the packages l


For that install with out any dependancies

rpm -ivh --nodeps package.rpm


4)After that load the module using the command

modprobe lustre

5) Then you will be able to mount the llustre file systems using the commands

mount -t lustre .....

Regards
Syamkumar.M

Wednesday, 22 May 2013

How to rename a KVM virtual machine image

Hello,

 Below is the steps to rename a kvm virtual machine.

1)Shutdown the Virtual machine first

virsh shutdown test1

or

virsh destroy test1

2) I just want to rename the virtual machine to test2

first dump the xml file of the old virtual machine which needs to be renamed

virsh dumpxml test1 > test2.xml

Then it will dump the xml file of test1 to test2.xml

The xml files are in the location /etc/libvirt/qemu


3)Then edit the file test2.xml using vi command line

vi /etc/libvirt/qemu/test2.xml

find the below two lines in the file

<domain type='kvm'>
  <name>test1</name>

replace the test1 with test2(new name)

Then save it and exit

4)Then undefine the older virtual machine using the command

virsh undefine test1

5)Define the new one using the command

virsh define /etc/libvirt/qemu/test2.xml


New renamed vm will start now.

regards
Syamkumar.M

Ad