Saturday, January 4, 2014

WARNING calibrate_APIC_clock: the APIC timer calibration may be wrong

WARNING calibrate_APIC_clock: the APIC timer calibration may be wrong

I got this error message on Virtualbox Linux guest boot. Given below the workaround to fix the issue.

While booing edit the grub and modify as follows

Previos Grub line

kernel /vmlinuz-2.6.18-238.el5 ro root=LABEL=/ noapic acpi=off rhgb quiet


Modification has to be done to boot the OS

kernel /vmlinuz-2.6.18-238.el5 ro root=LABEL=/ divider=10 rhgb quiet

Now the VM is working fine.

Wednesday, January 1, 2014

Veritas Proxy and Phantom Configuration

Veritas Proxy and Phantom Configuration


In this document we are going to see how to configure Veritas proxy and phantom
Let’s suppose if we are using more than one service group on cluster and it’s all using same NIC then we can use proxy and phantom on that.
# hagrp -list
ClusterService          node1
ClusterService          node2
apachesg                node1
apachesg                node2
nfsservice              node1
nfsservice              node2

We have two service groups (apachesg, nfsservice) using the same NIC.

Let’s create NIC service group

# hagrp –add nic_sg
# hagrp –modify nic_sg SystemList node1 0 node2 1
# hagrp –modify nic_sg AutoStartList node1 node2
# hagrp –modify nic_sg Enabled 1
# hagrp –modify nic_sg Parallel 1

Create nic resource
# hares –add nic_res NIC nic_sg
# hares –modify nic_res Enabled 1
# hares –modify nic_res Device eth0

Creating phantom resource
# hares –add phantom_res Phantom nic_sg
# hares –modify phantom_res Enabled 1

# hares –state phantom_res
# hares –state nic_sg

Let’s use this nic service group on other application service groups

Delete the nic resources on the app Service group
# hares –delete nic_apache
# hares –delete nic_nfs

Add the phantom nic resource
# hares –add prx_apache Proxy apachesg
# hares –modify prx_apache Enabled 1
# hares –modify prx_apache TargetResName nic_sg

# hares –add nic_nfs Proxy nfssg
# hares –modify nic_nfs Enabled 1
# hares –modify nic_nfs TargetResName nic_sg


Link the dependencies
# hares –link ip_apache prx_apache
# hares –link ip_nfs nic_nfs

---------Veritas proxy and phantom has been configured---------





Apache service configuration on Veritas Cluster

VERITAS +  APACHE SERVICE GROUP CONFIGURATION


We are going to configure Veritas cluster server for apache service.
Server hostname      :    node1.example.com
Server hostname      :    node2.example.com
OS                   :    RHEL 5.6 64 bit

Make sure the time sync is configured on both the nodes.

Make sure hostnames are resolving on both the nodes. Edit /etc/hosts file and update the hostnames.

# more /etc/hosts
127.0.0.1               localhost.localdomain localhost
::1             localhost6.localdomain6 localhost6
192.168.80.21   node1.example.com       node1
192.168.80.22   node2.example.com       node2

Make ssh keyless authentication on both the nodes.

# ssh-keygen –t rsa

node1 # ssh-copy-id -i .ssh/id_rsa.pub node2

Do the same steps on node2

Cluster configuration file “/etc/VRTSvcs/conf/config/main.cf”
Cluster log file location “/var/VRTSvcs/log/engine_A.log”

By default configuration file will be in read only mode. We have to make that as RW.

# haclus -display | grep -i readonly
ReadOnly               1

# haconf –makerw à to make the config file to Read Write mode.

# haclus -display | grep -i readonly
ReadOnly               0

To make the config file as “RO”

# haconf -dump –makero

Creating apache service group

# hagrp –add apachesg
# hagrp –modify apachesg SystemList node1 0 node 1 à (0 and 1 are priority)
# hagrp –modify AutoStartList node1 node2 à (node1 and node2 are node names)

If we are going to use load balancer then
# hagrp –modify apachesg Parallel 1


To list out the cluster
# hagrp -list
ClusterService          node1
ClusterService          node2
apachesg                node1
apachesg                node2

To display the brief information
# hagrp –display

Creating resources

Creating NIC Resources

# hares –add nic_apache NIC apachesg
# hares –modify nic_apache Enabled 1
Enabled 1 à Veritas will not manage if it is not enabled
# hares –modify nic_apache Critical 0
# hares –modify nic_apache Device eth0

Creating IP resources

# hares –add ip_apache IP apachesg
# hares –modify ip_apache Enabled 1
# hares –modify ip_apache Device eth0
# hares –modify ip_apache Address 192.168.80.11
# hares –modify ip_apache NetMask 255.255.255.0
# hares –modify ip_apache Critical 0

Creating Disk Group resources
# hares –add apachedg DiskGroup apachesg
# hares –modify apachedg Enabled 1
# hares –modify apachedg DiskGroup appdg
# hares –modify apachedg Critical 0

Creating volume resources

# hares –add apachevol Volume apachesg
# hares –modify apachevol Enabled 1
# hares –modify apachevol DiskGroup appdg
# hares –modify apachevol Volume mirvol1
# hares –modify apachevol Critical 0

Creating mount point resources

# hares –add apachemount Mount apachesg
# hares –modify apachemount Enabled 1
# hares –modify apachemount BlockDevice /dev/vx/dsk/appdg/mirvol1
# hares –modify apachemount MountPoint /var/www/html
# hares –modify apachemount FsckOpt %-y
# hares –modify apachemount FSType vxfs
# hares –modify apachemount Critical 0

Creating apache resource

# hares –add apacheservice Apache apachesg
# hares –modify apacheservice Enabled 1
# hares –modify apacheserivce httpdDir /usr/sbin
# hares –modify apacheservice ConfigFile /etc/httpd/conf/httpd.conf
# hares –modify apacheservice Port 80
# hares –modify apacheservice Critical 1

Creating Dependencies

# hares –link ip_apache nic_apache
# hares –link apachevol apachedg
# hares –link apachemount apachevol

To list the dependencies

# hares –dep

Check hastauts –sum output

# hastatus -sum

-- SYSTEM STATE
-- System               State                Frozen

A  node1                RUNNING              0
A  node2                RUNNING              0

-- GROUP STATE
-- Group           System               Probed     AutoDisabled    State

B  ClusterService  node1                Y          N               OFFLINE
B  ClusterService  node2                Y          N               ONLINE
B  apachesg        node1                Y          N               OFFLINE
B  apachesg        node2                Y          N               ONLINE

Now the apache service group is online.

Switch the service group from node2 to node 1

# hagrp –switch apachesg –to node1

# hastatus -sum                                                                                     Thu Jan  2 03:23:32 2014


-- SYSTEM STATE
-- System               State                Frozen

A  node1                RUNNING              0
A  node2                RUNNING              0

-- GROUP STATE
-- Group           System               Probed     AutoDisabled    State

B  ClusterService  node1                Y          N               OFFLINE
B  ClusterService  node2                Y          N               ONLINE
B  apachesg        node1                Y          N               ONLINE
B  apachesg        node2                Y          N               OFFLINE


Now the apache service group is online on node1.

node1 ~]# ip a | grep -i 192.168.80.11 --color
    inet 192.168.80.11/24 scope global secondary eth0:0

--------------Veritas apache service group configuration completed successfully--------------






Install VCS on RHEL 5

Install VCS on RHEL 5


Host name  :    node1.example.com
Host name  :    node2.example.com
OS         :    RHEL 5.6 64 bit

Make sure both the servers time is sync up.
Make sure host names are resolving. Edit /etc/hosts files on both the servers.

# more /etc/hosts
127.0.0.1               localhost.localdomain localhost
::1             localhost6.localdomain6 localhost6
192.168.80.21   node1.example.com       node1
192.168.80.22   node2.example.com       node2

Installation package has been copied on node1 /opt folder. Enable execute permission on that folder.

# chmod +x VRTS_SF_HA_Solutions_5.1_SP1_RHEL/ -R

Pre check the pre-requisite on both the servers.


# ./installer -precheck

1)  Veritas Dynamic Multi-Pathing (DMP)
     2)  Veritas Cluster Server (VCS)
     3)  Veritas Storage Foundation (SF)
     4)  Veritas Storage Foundation and High Availability (SFHA)
     5)  Veritas Storage Foundation Cluster File System (SFCFS)
     6)  Veritas Storage Foundation Cluster File System/HA (SFCFSHA)
     7)  Veritas Storage Foundation for Oracle RAC (SFRAC)
     8)  Veritas Storage Foundation Cluster File System for Oracle RAC (SFCFS RAC)
     9)  Symantec VirtualStore (SVS)
    10)  Symantec Product Authentication Services (AT)
     b)  Back to previous menu

Select a product to perform pre-installation check for: [1-10,b,q] 3

Verifying systems: 100%

    Estimated time remaining: 0:00                                                        8 of 8

    Checking system communication ............................... Done
    Checking release compatibility .............................. Done
    Checking installed product .................................. Done
    Checking prerequisite patches and rpms ...................... Done
    Checking platform version ................................... Done
    Checking file space ......................................... Done
    Performing product license checks ........................... Done
    Performing product prechecks ................................ Done

Precheck report completed

System verification checks completed successfully

No issues found in prechecks

Would you like to install SF on node1 node2? [y,n,q] (n) n

installer log files, summary file, and response file are saved at:

        /opt/VRTS/install/logs/installer-201401011724IFa

Now we can start the VCS installation


# ./installer node1 node2

Task Menu:

    P) Perform a Pre-Installation Check     I) Install a Product
    C) Configure an Installed Product       G) Upgrade a Product
    O) Perform a Post-Installation Check    U) Uninstall a Product
    L) License a Product                    S) Start a Product
    D) View Product Descriptions            X) Stop a Product
    R) View Product Requirements            ?) Help

Enter a Task: [P,I,C,G,O,U,L,S,D,X,R,?] I ß Press “I” and enter

     1)  Veritas Dynamic Multi-Pathing (DMP)
     2)  Veritas Cluster Server (VCS)
     3)  Veritas Storage Foundation (SF)
     4)  Veritas Storage Foundation and High Availability (SFHA)
     5)  Veritas Storage Foundation Cluster File System (SFCFS)
     6)  Veritas Storage Foundation Cluster File System/HA (SFCFSHA)
     7)  Veritas Storage Foundation for Oracle RAC (SFRAC)
     8)  Veritas Storage Foundation Cluster File System for Oracle RAC (SFCFS RAC)
     9)  Symantec VirtualStore (SVS)
    10)  Symantec Product Authentication Services (AT)
     b)  Back to previous menu

Select a product to install: [1-10,b,q] 4 ß Press “4” and enter

Do you agree with the terms of the End User License Agreement as specified in the
storage_foundation_high_availability/EULA/en/EULA_SFHA_Ux_5.1SP1.pdf file present on media? [y,n,q,?] y ß Press “y” and enter

1)  Install minimal required Veritas Storage Foundation and High Availability rpms - 378 MB required
     2)  Install recommended Veritas Storage Foundation and High Availability rpms - 581 MB required
     3)  Install all Veritas Storage Foundation and High Availability rpms - 618 MB required
     4)  Display rpms to be installed for each option

Select the rpms to be installed on all systems? [1-4,q,?] (2) ß Use default option

Enter the 64 bit RHEL5 system names separated by spaces: [q,?] node1 node2 ß enter servers hostname

Estimated time remaining: 0:00                                                                                          8 of 8

    Checking system communication ........................................................................................... Done
    Checking release compatibility .......................................................................................... Done
    Checking installed product .............................................................................................. Done
    Checking prerequisite patches and rpms .................................................................................. Done
    Checking platform version ............................................................................................... Done
    Checking file space ..................................................................................................... Done
    Performing product license checks ....................................................................................... Done
    Performing product prechecks ............................................................................................ Done

System verification checks completed successfully


Rpm               Rpm Description

VRTSvlic          Veritas Licensing
VRTSperl          Veritas Perl 5.10.0 Redistribution
VRTSspt           Veritas Software Support Tools by Symantec
VRTSvxvm          Veritas Volume Manager Binaries
VRTSaslapm        Volume Manager - ASL/APM
VRTSob            Veritas Enterprise Administrator Service by Symantec
VRTSsfmh          Veritas Storage Foundation Managed Host by Symantec
VRTSvxfs          Veritas File System
VRTSatClient      Symantec Product Authentication Service Client
VRTSatServer      Symantec Product Authentication Service
VRTSllt           Veritas Low Latency Transport
VRTSgab           Veritas Group Membership and Atomic Broadcast
VRTSvxfen         Veritas I/O Fencing by Symantec
VRTSamf           Veritas Asynchronous Monitoring Framework by Symantec
VRTSvcs           Veritas Cluster Server
VRTSvcsag         Veritas Cluster Server Bundled Agents by Symantec
VRTSvcsdr         Veritas Cluster Server Disk Reservation Modules
VRTSvcsea         Veritas Cluster Server Enterprise Agents by Symantec
VRTSdbed          Veritas Storage Foundation Databases
VRTSodm           Veritas Oracle Disk Manager

Press [Enter] to continue: ß Enter here

Installing SFHA: 100%

    Estimated time remaining: 0:00                                                                                        23 of 23

    Performing SFHA preinstall tasks ........................................................................................ Done
    Installing VRTSvlic rpm ................................................................................................. Done
    Installing VRTSperl rpm ................................................................................................. Done
    Installing VRTSspt rpm .................................................................................................. Done
    Installing VRTSvxvm rpm ................................................................................................. Done
    Installing VRTSaslapm rpm ............................................................................................... Done
    Installing VRTSob rpm ................................................................................................... Done
    Installing VRTSvxfs rpm ................................................................................................. Done
    Installing VRTSatClient rpm ............................................................................................. Done
    Installing VRTSatServer rpm ............................................................................................. Done
    Installing VRTSllt rpm .................................................................................................. Done
    Installing VRTSgab rpm .................................................................................................. Done
    Installing VRTSvxfen rpm ................................................................................................ Done
    Installing VRTSamf rpm .................................................................................................. Done
    Installing VRTSvcs rpm .................................................................................................. Done
    Installing VRTSvcsag rpm ................................................................................................ Done
    Installing VRTSvcsdr rpm ................................................................................................ Done
    Installing VRTSvcsea rpm ................................................................................................ Done
    Installing VRTSdbed rpm ................................................................................................. Done
    Installing VRTSodm rpm .................................................................................................. Done
    Installing VRTSsfmh rpm ................................................................................................. Done
    Performing SFHA postinstall tasks ....................................................................................... Done
    Copying installer libraries and scripts ................................................................................. Done

Veritas Storage Foundation and High Availability Install completed successfully

1)  Enter a valid license key
     2)  Enable keyless licensing and complete system licensing later

How would you like to license the systems? [1-2,q] (2) ß choose the default and press enter

1)  SF Standard HA
     2)  SF Enterprise HA
     b)  Back to previous menu

Select product mode to license: [1-2,b,q,?] (1) ß choose the default and press enter

Would you like to enable the Veritas Volume Replicator? [y,n,q] (n) ß press “n” and enter

Registering SFHA license

Would you like to configure SFHA on node1 node2? [y,n,q] (n) y ß type “y” and enter

I/O Fencing

It needs to be determined at this time if you plan to configure I/O Fencing in enabled or disabled mode, as well as help in
determining the number of network interconnects (NICS) required on your systems. If you configure I/O Fencing in enabled mode,
only a single NIC is required, though at least two are recommended.

A split brain can occur if servers within the cluster become unable to communicate for any number of reasons. If I/O Fencing is
not enabled, you run the risk of data corruption should a split brain occur. Therefore, to avoid data corruption due to split
brain in CFS environments, I/O Fencing has to be enabled.

If you do not enable I/O Fencing, you do so at your own risk

See the Administrator's Guide for more information on I/O Fencing

Do you want to configure I/O Fencing in enabled mode? [y,n,q,?] (y) n ß type “n” and press enter

To configure VCS, answer the set of questions on the next screen.

When [b] is presented after a question, 'b' may be entered to go back to the first question of the configuration set.

When [?] is presented after a question, '?' may be entered for help or additional information about the question.

Following each set of questions, the information you have entered will be presented for confirmation.  To repeat the set of
questions and correct any previous errors, enter 'n' at the confirmation prompt.

No configuration changes are made to the systems until all configuration questions are completed and confirmed.

Press [Enter] to continue:

A unique cluster name
        A unique cluster ID number between 0-65535
        Two or more NICs per system used for heartbeat links

        One or more heartbeat links are configured as private links
        You can configure one heartbeat link as a low-priority link

All systems are being configured to create one cluster.

Enter the unique cluster name: [q,?] mycluster ß type the cluster name and press enter
Enter a unique cluster ID number between 0-65535: [b,q,?] 1 ß type the cluster ID and press enter

1)  Configure heartbeat links using LLT over Ethernet
     2)  Configure heartbeat links using LLT over UDP
     3)  Automatically detect configuration for LLT over Ethernet
     b)  Back to previous menu

How would you like to configure heartbeat links? [1-3,b,q,?] (1) ß press “1” and enter

Discovering NICs on node1 ................................................................ Discovered eth0 eth1 eth2 eth3 sit0

Enter the NIC for the first private heartbeat link on node1: [b,q,?] (sit0) eth1
eth1 has an IP address configured on it. It could be a public NIC on node1.
Are you sure you want to use eth1 for the first private heartbeat link? [y,n,q,b,?] (n) y
Would you like to configure a second private heartbeat link? [y,n,q,b,?] (y) y
Enter the NIC for the second private heartbeat link on node1: [b,q,?] (sit0) eth2
eth2 has an IP address configured on it. It could be a public NIC on node1.
Are you sure you want to use eth2 for the second private heartbeat link? [y,n,q,b,?] (n) y
Would you like to configure a third private heartbeat link? [y,n,q,b,?] (n)
Do you want to configure an additional low-priority heartbeat link? [y,n,q,b,?] (n) y
Enter the NIC for the low-priority heartbeat link on node1: [b,q,?] (eth0)
Are you using the same NICs for private heartbeat links on all systems? [y,n,q,b,?] (y) y

Cluster information verification:

        Cluster Name:      mycluster
        Cluster ID Number: 1
        Private Heartbeat NICs for node1:
                link1=eth1
                link2=eth2
        Low-Priority Heartbeat NIC for node1:
                link-lowpri1=eth0
        Private Heartbeat NICs for node2:
                link1=eth1
                link2=eth2
        Low-Priority Heartbeat NIC for node2:
                link-lowpri1=eth0

Is this information correct? [y,n,q,b,?] (y) ß type “y” and press enter

Virtual IP can be specified in RemoteGroup resource, and can be used to connect to the cluster using Java GUI
The following data is required to configure the Virtual IP of the Cluster:

        A public NIC used by each system in the cluster
        A Virtual IP address and netmask

Do you want to configure the Virtual IP? [y,n,q,?] (n) y
Active NIC devices discovered on node1: eth0 eth1 eth2 eth3
Enter the NIC for Virtual IP of the Cluster to use on node1: [b,q,?] (eth0)
Is eth0 to be the public NIC used by all systems? [y,n,q,b,?] (y) y
Enter the Virtual IP address for the Cluster: [b,q,?] 192.168.80.100
Enter the NetMask for IP 192.168.80.100: [b,q,?] (255.255.255.0)

Cluster Virtual IP verification:

        NIC: eth0
        IP: 192.168.80.100
        NetMask: 255.255.255.0

Is this information correct? [y,n,q] (y) ß type “y” and press enter

Would you like to configure VCS to use Symantec Security Services? [y,n,q] (n)

The following information is required to add VCS users:

        A user name
        A password for the user
        User privileges (Administrator, Operator, or Guest)

Do you want to set the username and/or password for the Admin user
(default username = 'admin', password='password')? [y,n,q] (n) ß type “n” and press enter

VCS User verification:

        User: admin     Privilege: Administrators

        Passwords are not displayed

Is this information correct? [y,n,q] (y) ß type “y” and press enter

The following information is required to configure SMTP notification:

        The domain-based hostname of the SMTP server
        The email address of each SMTP recipient
        A minimum severity level of messages to send to each recipient

Do you want to configure SMTP notification? [y,n,q,?] (n) ß type “n” and press enter


The following information is required to configure SNMP notification:

        System names of SNMP consoles to receive VCS trap messages
        SNMP trap daemon port numbers for each console
        A minimum severity level of messages to send to each console

Do you want to configure SNMP notification? [y,n,q,?] (n) ß type “n” and press enter


All SFHA processes that are currently running must be stopped

Do you want to stop SFHA processes now? [y,n,q,?] (y) ß type “y” and press enter

Stopping SFHA: 100%

    Estimated time remaining: 0:00                                                                                          9 of 9

    Performing SFHA prestop tasks ........................................................................................... Done
    Stopping had ............................................................................................................ Done
    Stopping hashadow ....................................................................................................... Done
    Stopping CmdServer ...................................................................................................... Done
    Stopping amf ............................................................................................................ Done
    Stopping vxfen .......................................................................................................... Done
    Stopping gab ............................................................................................................ Done
    Stopping llt ............................................................................................................ Done
    Stopping vxatd .......................................................................................................... Done

Veritas Storage Foundation and High Availability Shutdown completed successfully

Starting SFHA: 100%

    Estimated time remaining: 0:00                                                                                        18 of 18

    Performing SFHA configuration ........................................................................................... Done
    Starting vxdmp .......................................................................................................... Done
    Starting vxio ........................................................................................................... Done
    Starting vxspec ......................................................................................................... Done
    Starting vxconfigd ...................................................................................................... Done
    Starting vxesd .......................................................................................................... Done
    Starting vxrelocd ....................................................................................................... Done
    Starting vxconfigbackupd ................................................................................................ Done
    Starting vxportal ....................................................................................................... Done
    Starting fdd ............................................................................................................ Done
    Starting llt ............................................................................................................ Done
    Starting gab ............................................................................................................ Done
    Starting had ............................................................................................................ Done
    Starting hashadow ....................................................................................................... Done
    Starting CmdServer ...................................................................................................... Done
    Starting vxdbd .......................................................................................................... Done
    Starting vxodm .......................................................................................................... Done
    Performing SFHA poststart tasks ......................................................................................... Done

Veritas Storage Foundation and High Availability Startup completed successfully

Would you like to send the information about this installation to Symantec to help improve installation in the future? [y,n,q,?]
(y) n ß type “n” and press enter

installer log files, summary file, and response file are saved at:

        /opt/VRTS/install/logs/installer-201401020035dhA


Run the following command to check the veritas cluster status

# /opt/VRTSvcs/bin/hastatus -sum

-- SYSTEM STATE
-- System               State                Frozen

A  node1                RUNNING              0
A  node2                RUNNING              0

-- GROUP STATE
-- Group           System               Probed     AutoDisabled    State

B  ClusterService  node1                Y          N               ONLINE
B  ClusterService  node2                Y          N               OFFLINE

# ps -ef | grep -i had
root     10417     1  0 00:45 ?        00:00:00 /opt/VRTSvcs/bin/had
root     10426     1  0 00:45 ?        00:00:00 /opt/VRTSvcs/bin/hashadow

# ip a | grep -i 192.168.80.100 --color
    inet 192.168.80.100/24 scope global secondary eth0:0

-----Veritas cluster suite installation completed successfully---