December 3, 2012

Redhat 5.5 and Redhat Cluster Suite task!

Posted in Linux at 3:19 pm by alessiodini

The last week i was envolved in a nice task!
I had to install , and configure :

– four DELL servers ( 2x DELL Poweredge R720 and 2x DELL Poweredge R320 ) with Redhat Enterprise 5.5
– two DELL FC Storage ( MD3600f 8GB )

After long time i worked with Linux , it was funny 😉

I installed and used Redhat Cluster Suite too. I encountered many issues but i was funny when i was plying with clustered vgs ( never saw them before )

Following some command i did for clustered vgs

[root@system1 ~]# for i in mpath2p1 mpath9p1 mpath8p1 mpath7p1 mpath6p1;
> do
> pvcreate /dev/mapper/$i
> done
Physical volume “/dev/mapper/mpath2p1” successfully created
Physical volume “/dev/mapper/mpath9p1” successfully created
Physical volume “/dev/mapper/mpath8p1” successfully created
Physical volume “/dev/mapper/mpath7p1” successfully created
Physical volume “/dev/mapper/mpath6p1” successfully created

[root@system1 ~]# vgcreate -c y tibcovg /dev/mapper/mpath2p1 /dev/mapper/mpath9p1 /dev/mapper/mpath8p1 /dev/mapper/mpath7p1 /dev/mapper/mpath6p1
Clustered volume group “tibcovg” successfully created

[root@system2]# vgscan
Reading all physical volumes. This may take a while…
Found volume group “tibcovg” using metadata type lvm2
Found volume group “VolGroup00” using metadata type lvm2

[root@system1 ~]# lvcreate -L 1.2T -n tibcovol tibcovg
Rounding up size to full physical extent 1.20 TB
Logical volume “tibcovol” created

( on second node i ran lvscan )

[root@system1 ~]# vgs
VG #PV #LV #SN Attr VSize VFree
VolGroup00 1 2 0 wz–n- 1.09T 0
tibcovg 5 2 0 wz–nc 1.46T 21.16G

[root@system2 ]# vgs
VG #PV #LV #SN Attr VSize VFree
VolGroup00 1 2 0 wz–n- 1.09T 0
tibcovg 5 2 0 wz–nc 1.46T 21.16G

[root@system1 ~]# mkdir /tibco
[root@system2 mapper]# mkdir /tibco

[root@system1 ~]# mkfs.gfs2 -p lock_dlm -t soa-cluster:tibco -j2 /dev/tibcovg/tibcovol
This will destroy any data on /dev/tibcovg/tibcovol.
It appears to contain a gfs2 filesystem.

Are you sure you want to proceed? [y/n] y
Device: /dev/tibcovg/tibcovol
Blocksize: 4096
Device Size 1228.80 GB (322122752 blocks)
Filesystem Size: 1228.80 GB (322122752 blocks)
Journals: 2
Resource Groups: 4916
Locking Protocol: “lock_dlm”
Lock Table: “soa-cluster:/tibco”
UUID: 5D884F81-39A4-FF56-326B-AC4735620175

On both nodes i did:
[root@system1 ~]# mount /dev/tibcovg/tibcovol /tibco

After i encountered hard problems with device fencing… due to it , during a reboot of a first node , the second node had problems on /tibco fs.

I called some friend for help anyway i learned a lot of things about Redhat Cluster , this was the first time i configured it !

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: