You are here

Part 5. Sun Cluster 3.2: Configure a Quorum server

Configure Quorum Server:

Hi, we are going to configure a Quorum server on the virtual Box host, so later we can replace our shared disk quorom device, for the quorum server on the host.
So to start off, the first this is to install the Quorum server software on the host, the Qurom server software comes with the solaris cluster software:
root@x4200m2 # unzip
root@x4200m2 # cd Solaris_x86/
root@x4200m2 # ls
Product installer release_info
root@x4200m2 # ./installer
Unable to access a usable display on the remote system. Continue in command-line mode?(Y/N)
Not a valid answer.Please enter Y/N
nstallation Type

Do you want to install the full set of Sun Java(TM) Availability Suite
Products and Services? (Yes/No) [Yes] {"<" goes back, "!" exits} No

Choose Software Components - Main Menu
Note: "* *" indicates that the selection is disabled

[ ] 1. Sun Cluster Geographic Edition 3.2 2/08
[ ] 2. Quorum Server
[ ] 3. Monitoring Console 1.0 Update 1
[ ] 4. High Availability Session Store 4.4.3
[ ] 5. Sun Cluster 3.2 2/08
[ ] 6. Java DB
[ ] 7. Sun Cluster Agents 3.2 2/08
[ ] 8. All Shared Components

Enter a comma separated list of products to install, or press R to refresh
the list [] {"<" goes back, "!" exits}: 2

Choose Software Components - Confirm Choices

Based on product dependencies for your selections, the installer will install:

[X] 2. Quorum Server

Screen for selecting Type of Configuration

1. Configure Now - Selectively override defaults or express through

2. Configure Later - Manually configure following installation

Select Type of Configuration [1] {"<" goes back, "!" exits} 2
Ready to Install
The following components will be installed.

Product: Java Availability Suite
Uninstall Location: /var/sadm/prod/SUNWentsyssc32u1
Space Required: 100.40 MB
Quorum Server

1. Install
2. Start Over
3. Exit Installation

What would you like to do [1] {"<" goes back, "!" exits}? 1

Java Availability Suite


Installation Complete

Software complete, lets carry on.

When you install the Sun Cluster software, a default configuration file, /etc/scqsd/scqsd.conf, is created that contains information about a single default quorum server. Each line in the /etc/scqsd/scqsd.conf file has the following format:

/usr/cluster/lib/sc/scqsd [-d quorumdirectory] [-i instancename] -p port


The full path to where you installed the Sun Cluster software. This value must be /usr/cluster/lib/sc/scqsd.
-d quorumdirectory

The path to the directory where the quorum server can store quorum data.

The quorum server process creates one file per cluster in this directory to store cluster-specific quorum information. By default, the value of this option is /var/scqsd. This directory must be unique for each quorum server that you configure.
-i instancename

A unique name that you choose for the quorum server instance.
-p port

The port number on which the quorum server listens for requests from the cluster. The default port is 9000.

Instance names are optional. If you specify a name for the quorum server, that name must be unique among all quorum servers in your system. If you choose to omit the instance name option, you must refer to the quorum server by the port on which it listens

root@x4200m2 # tail -1 /etc/scqsd/scqsd.conf
/usr/cluster/lib/sc/scqsd -d /var/scqsd -p 9000
root@x4200m2 #

we are going to have just one instance so the default it's ok for us. we start the Quorom server daemon on the host:

root@x4200m2 # /usr/cluster/bin/clqs start 9000
root@x4200m2 # ps -ef | grep -i 9000
root 9020 5749 0 15:50:40 pts/3 0:00 grep -i 9000
root 9017 1 0 15:50:35 ? 0:00 /usr/cluster/lib/sc/scqsd -d /var/scqsd -p 9000
root 9018 9017 0 15:50:35 ? 0:00 /usr/cluster/lib/sc/scqsd -d /var/scqsd -p 9000
root@x4200m2 # /usr/cluster/bin/clqs show
=== Quorum Server on port 9000 ===
Quorum server on port "9000" is not configured in any cluster.

No we can go to our cluster nodes, and add the quorum server to the config, the hostname of the host server x4200m2 has to be resolvable by the cluster nodes..

[root@vm2:/var/tmp]# clquorum add -t quorum_server -p qshost=x4200m2 -p port=9000 quoromd1

[root@vm3:/]# clq status (10-03 09:02)

=== Cluster Quorum ===

--- Quorum Votes Summary ---

Needed Present Possible
------ ------- --------
3 3 4

--- Quorum Votes by Node ---

Node Name Present Possible Status
--------- ------- -------- ------
vm3 1 1 Online
vm2 1 1 Online

--- Quorum Votes by Device ---

Device Name Present Possible Status
----------- ------- -------- ------
d5 1 1 Online
quoromd1 1 1 Online ---------------------------> Ok working.

No we can remove our shared device, allways the sum of all the quorum devices votes should be one less than the sum of all the node votes.

[root@vm2:/var/tmp]# clq remove d5 (10-03 08:26)
[root@vm2:/var/tmp]# clq list (10-03 08:26)
[root@vm2:/var/tmp]# clq show -v (10-03 08:27)

=== Cluster Nodes ===

Node Name: vm3
Node ID: 1
Quorum Vote Count: 1
Reservation Key: 0x4E743D1700000001

Node Name: vm2
Node ID: 2
Quorum Vote Count: 1
Reservation Key: 0x4E743D1700000002

=== Quorum Devices ===

Quorum Device Name: quoromd1
Enabled: yes
Votes: 1
Global Name: quoromd1
Type: quorum_server
Hosts (enabled): vm3, vm2
Quorum Server Host: x4200m2
Port: 9000

If we check in the host, we can see the reservation keys on the quorum server:

root@x4200m2 # /usr/cluster/bin/clqs show -v
=== Quorum Server on port 9000 ===

--- Cluster vmclus (id 0x4E743D17) Reservation ---

Node ID: 2
Reservation key: 0x4e743d1700000002

--- Cluster vmclus (id 0x4E743D17) Registrations ---

Node ID: 1
Registration key: 0x4e743d1700000001

Node ID: 2
Registration key: 0x4e743d1700000002

Just some more commands from the quorum server:

Stopping All Configured Quorum Servers

The following example stops all the configured quorum servers.

# /usr/cluster/bin/clquorumserver stop +

Stopping a Specific Quorum Server

The following example stops the quorum server that listens on port number 2000.

# /usr/cluster/bin/clquorumserver stop 2000
Cleaning Up Outdated Cluster Information From the Quorum Server Configuration

This example removes information about the cluster named sc-cluster from the quorum server that uses port 9000.

# clquorumserver clear -c sc-cluster -I 0x4308D2CF 9000

The quorum server to be unconfigured must have been removed from the cluster.
Unconfiguring a valid quorum server could compromise the cluster quorum. Do you
want to continue? (yes or no) y


Unix Systems: 

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.

Fatal error: Class CToolsCssCache contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (DrupalCacheInterface::__construct) in /homepages/37/d228974590/htdocs/sites/all/modules/ctools/includes/ on line 52