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 suncluster-3_2u1-ga-solaris-x86.zip
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)
y
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 10.2.2.1
[ ] 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

|-1%--------------25%-----------------50%-----------------75%--------------100%|

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

/usr/cluster/lib/sc/scqsd

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)
quoromd1
vm3
vm2
[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

Finished.

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.
Error | HP-UX Tips & Tricks Site

Error

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /homepages/37/d228974590/htdocs/includes/common.inc:2567) in drupal_send_headers() (line 1207 of /homepages/37/d228974590/htdocs/includes/bootstrap.inc).
  • PDOException: SQLSTATE[42000]: Syntax error or access violation: 1142 INSERT command denied to user 'dbo229817041'@'217.160.155.192' for table 'watchdog': INSERT INTO {watchdog} (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9); Array ( [:db_insert_placeholder_0] => 0 [:db_insert_placeholder_1] => cron [:db_insert_placeholder_2] => Attempting to re-run cron while it is already running. [:db_insert_placeholder_3] => a:0:{} [:db_insert_placeholder_4] => 4 [:db_insert_placeholder_5] => [:db_insert_placeholder_6] => http://www.hpuxtips.es/?q=node/300 [:db_insert_placeholder_7] => [:db_insert_placeholder_8] => 54.198.71.184 [:db_insert_placeholder_9] => 1503242918 ) in dblog_watchdog() (line 157 of /homepages/37/d228974590/htdocs/modules/dblog/dblog.module).
The website encountered an unexpected error. Please try again later.