But seriously, after finding the general documentation to be a bit lacking regarding clustering (especially with regards to the extra quorum vote)
Heres hoping that this lab will allow you to work out how clusters work and implement it within your company.
A diagram for your viewing pleasure:

Part1
VMware Lab Setup
Node Setup
iSCSI setup
Quorum Setup
Helpful Commands:
system-config-network
edit /etc/hosts
service network restart
yum groupinstall "Clustering"
yum groupinstall "Cluster Storage"
yum groupinstall "Windows File Server"
chkconfig --del smb
yum install iscsi-initiator-utils
service iscsi start
iscsiadm -m discovery -t sendtargets -p 192.168.1.3
service iscsi restart
fdisk -l
mkqdisk -c /dev/sdb -l quorum
luci_admin init
Samba Cluster with GFS 2, Centos 5, iSCSI and Openfiler - Part 1 from Richard Vimeo on Vimeo.
Part2
GFS2 Setup
Configuring using Luci
Quorum setup cont
Helpful Commands:
mkfs.gfs2 -p lock_dlm -t cluster1:sanvol1 -j 4 /dev/sdc
mkdir /san
mkdir /san/sanvol1
service ricci restart
service qdiskd restart
chkconfig luci on
chkconfig qdiskd on
(do node2)
use luci to create cluster
Quorum parameters:
interval=1
votes=1
tko=10
min score=1
heuristics=ping -c2 -t1 192.168.1.3
mount /dev/sdc /san/sanvol1
gfs2_tool  list
gfs2_tool df 
umount /san/sanvol1
cman_tool status
Samba Cluster with GFS 2, Centos 5, iSCSI and Openfiler - Part 2 from Richard Vimeo on Vimeo.
Part 3
Configuring Fencing, Failover Domain, Resources
and Services.
Helpful Commands:
Configure Resources:
IP
GFS
Samba
Configure failover Domains
Configure Shared Fencing Device (then nodes)
Add Services
workgroup = cookie
        server string = Samba Server Version %v
        bind interfaces only = yes
        interfaces = 10.0.1.100
        netbios name = cluster1
        local master = no
 domain master = no
 preferred master = no
 password server = None
 guest ok = yes
 guest account = root
 security = SHARE
 dns proxy = no
[sanvol]
        comment = High Availability Samba Service
        browsable = yes
        writable = yes
        public = yes
        path = /san/sanvol1
        guest ok=yes
        create mask=0777
smbpasswd -a root
scp /etc/samba/smb.conf.cluster1 node2:/etc/samba/
restart smb
redo services - ip-GFS-samba
soft reboot
Samba Cluster with GFS 2, Centos 5, iSCSI and Openfiler - Part 3 from Richard Vimeo on Vimeo.
Part 4
Testing!
Samba Cluster with GFS 2, Centos 5, iSCSI and Openfiler - Part 4 from Richard Vimeo on Vimeo.
Enjoy!
Just wanted to say thank you for a great effort. Your hard work has definitely not been in vain as it serves as a great intro for me and I think a strong foundation into clustering and storage. Thanks again and I'll definitely be going over your other tutorials!
ReplyDeleteChris
Toronto, Canada
thanks! you save my life!
ReplyDeleteyou save my life!
ReplyDeletethanks!
Amazing !!
ReplyDeleteI've enjoyed watching all four the parts, very clear explanation.
Abdulrhman Al-khmees
Saudi Arabia.
Thanks for the great effort you had put in. Straight forward explanation...
ReplyDeleteThanks for your great effort...it is pretty straight forward
ReplyDelete