Wise people learn when they can; fools learn when they must - Arthur Wellesley
Showing posts with label VERITAS. Show all posts
Showing posts with label VERITAS. Show all posts

Sunday, 19 March 2017

VCS ON RHEL6–CONFIGURE & OPERATION-P8 (CLUSTER OPERATIONS)


VCS ON RHEL6–CONFIGURE & OPERATION-P8


CLUSTER OPERATIONS:

How to display info about cluster…?
How to check the state of cluster…?
How to list the existing cluster(s)…?
How to display the attribute value…?
How to check the status of cluster…?
How to add a cluster…?
How to delete a cluster…?
How to modify a cluster attribute…?
How to start a cluster…?
How to stop a cluster…?
How to know the status summary of cluster(s)…?
How to know the vcs version…?

VCS ON RHEL6–CONFIGURE & OPERATION-P6 (SERVICE GROUP)


VCS ON RHEL6–CONFIGURE & OPERATION-P6


SERVICE GROUP:

·         How to list the available SG's…?
·         What is the name of SG / how many SG’s ?
·         How to check the contained resources of a SG…?
·         How to switch a SG…?
·         How to online/offline a SG…?
·         How to freeze/unfreeze a SG…?
·         How to enable/disable a SG…?
·         How to flush a SG…?
·         How to display the attributes/parameters of a SG…?
·         How to show the state of a SG…?
·         How to list dependency of a SG…?
·         How to enable/disable all resources in one go of a SG…?
·         How to check the attribute value of a SG…?
·         How to clear a faulted non-persistent resource of a SG…?

VCS ON RHEL6–CONFIGURE & OPERATION-P5 (APACHE VIA CLI)


VCS ON RHEL6–CONFIGURE & OPERATION-P5


ONLINE CONFIGURATION THROUGH CLI:

First open the config,

[root@pr01 /]# haconf -makerw

SERVICE GROUP CONFIGURATION:

[root@pr01 ~]# hagrp -add Web-App
VCS NOTICE V-16-1-10136 Group added; populating SystemList and setting the Parallel attribute recommended before adding resources

VCS ON RHEL6–CONFIGURE & OPERATION-P4


VCS ON RHEL6–CONFIGURE & OPERATION-P4


ONLINE/OFFLINE SERVICE GROUP:
SWITCHING SERVICE GROUP:
RESOURCE ONLINE:
RESOURCE OFFLINE:
STOP VCS:
START VCS:
VCS CONFIGURATION:
ONLINE CONFIG:
OFFLINE CONFIG:
CONFIG EDITING/NEW CREATION:
What if we forget to save and shutdown the VCS
AUTOMATIC CONFIG BACKUP:

VCS ON RHEL6–CONFIGURE & OPERATION-P3


VCS ON RHEL6–CONFIGURE & OPERATION-P3

BASIC VCS OPERATION:

How to check the cluster status?
How to check the vcs logs?
How to check the resource and attributes?
How to check the service group and contained resources?
How to check resources & attributes?
how do I know that how many service groups are in cluster?
how do I know that how many resources a SG have?
How to know the details about a particular resource…?
CRITICAL & NON CRITICAL RESOURCES:
How to know the state (online/offline) of resources…?
How to know the virtual ip address configured with SG…?
How to know the SG is frozen or not…?
How to know that Autostart is set for an SG is or not…?

VCS ON RHEL6–CONFIGURE & OPERATION-P2 (NFS VIA GUI)


VCS ON RHEL6–CONFIGURE & OPERATION-P2

SETTING UP NFS AS A VCS RESOURCE VIA GUI,

Check the disks,

[root@pr01 ~]# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
sda          auto:none       -            -            online invalid
sdb          auto:none       -            -            online invalid
sdc          auto:sliced     -            -            online
sdd          auto:none       -            -            online invalid
sde          auto            -            -            error
sdf          auto:none       -            -            online invalid

VCS ON RHEL6–CONFIGURE & OPERATION-P1


VCS ON RHEL6–CONFIGURE & OPERATION-P1

We will test “HTTP/APACHE” on VCS.

[root@pr01 ~]# rpm -qa|grep http
httpd-2.2.15-26.el6.x86_64
httpd-tools-2.2.15-26.el6.x86_64

SFHA 6.0 INSTALLATION - RHEL 6

SFHA 6.0 INSTALLATION-RHEL6
Two systems,
PR01
DR01

First need to create entry of both servers in /etc/hosts
Then create a password less ssh between both servers.
We need two extra interfaces also for the same.
PR-01

Thursday, 9 February 2017

VERITAS CLUSTER-1 (BASICS)


VERITAS CLUSTER-1

VCS COMPONENTS:

RESOURCES:

As per VCS, A resource is an entity that may be brought online, offline, or monitored on a particular system.

Resource Types:

Wednesday, 8 February 2017

CLUSTER BASICS


                      CLUSTER BASICS

HA……HA………HA……… JJJ ………… It’s not Ha..Ha..Ha LLL

In the world of sys admin the word “HA” is as common as our daily natural activities.                                   

What is this HA…?

HIGH AVAILABILITY………..

Monday, 21 November 2016

Veritas Volume Manager-15 (vxedit & vxmend)

================================VXEDIT================================

RENAME===============
DISK….
# vxedit -g mdg rename d2 newd2

SUBDISKS….
# vxedit -g mdg rename d2-01 newd2-01

PLEX…..
# vxedit -g mdg rename plex-01 newplex-01

VOLUME…..
vxedit -g mdg rename stvol  newstvol

Veritas Volume Manager-14 ( Veritas Licencing Info)

/opt/VRTS/bin/vxlicrep

root@pr01:>/# vxlicrep

Symantec License Manager vxlicrep utility version 3.02.61.004
Copyright (C) 1996-2012 Symantec Corporation. All rights reserved.

Creating a report on all VERITAS products installed on this system

 -----------------***********************-----------------

   License Key                         = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
   Product Name                        = VERITAS Storage Foundation Standard HA
   Serial Number                       = 34876
   License Type                        = PERMANENT
   OEM ID                              = 2006
   Site License                        = YES
   Editions Product                    = YES

Veritas Volume Manager-13 (Mount Lock/Unlock)

root@pr01:>/# mount -F vxfs -o mntlock=vxvm /dev/vx
vx/       vxfen     vxfend    vxportal
root@pr01:>/# mount -F vxfs -o mntlock=vxvm /dev/vx/dsk/mdg/mrvol /mrvol-test/
UX:vxfs mount: ERROR: V-3-21264: /dev/vx/dsk/mdg/mrvol is already mounted, /mrvol-test is busy,
                 or the allowable number of mount points has been exceeded.
root@pr01:>/# umount /mrvol-test/
root@pr01:>/#
root@pr01:>/# mount -F vxfs -o mntlock=vxvm /dev/vx/dsk/mdg/mrvol /mrvol-test/
root@pr01:>/#
root@pr01:>/#
root@pr01:>/# mount -F vxfs -o mntlock=vxvm /dev/vx/dsk/mdg/mrvol /mrvol-test
root@pr01:>/#
root@pr01:>/#

Veritas Volume Manager-12 (Administrative Tasks)


Here we will get some basic Idea of..

  • VOLUME MANAGER RUNNING PROCESSES
  • VXVM PATH
  • VXVM INSTALL LOGS
  • VXVM PACKAGE INFO
  • N COLUMNS & ST WIDTH
  • DG VERSION
  • VXSTAT
  • VXTRACE
  • VXTASK
  • VXNOTIFY

Friday, 26 September 2014

Veritas Volume Manager -11 [root disk (ufs) encapsulation in to vxvm]



               VXVM-11 [Encapsulation-root disk]

What we will learn in Next Few Pages,

·         How to encapsulate root disk with VXVM

root@pr-01:>/# vxdiskadm

Volume Manager Support Operations
Menu: VolumeManager/Disk

 1      Add or initialize one or more disks
 2      Encapsulate one or more disks
 3      Remove a disk
 4      Remove a disk for replacement
==========removed=============
23     Dynamic Reconfiguration Operations
 list   List disk information

Veritas Volume Manager -10 [manual creation of concat & stripe mirror]


      VXVM-10 (Manual)

What we will learn in Next Few Pages,

·         Layered Volume via vxmake
·         Concat-mirror / stripe-mirror

We need
4 Subdisks
4 Plexes – 1 SD for each plex
2 volumes – 2 plexes for each volume


Did u visualize the diagram?



DG,

Veritas Volume Manager -9 [manual creation of concat/stripe volumes]


     VXVM-9 (Manual)

What we will learn in Next Few Pages,

·         Manually create Concat Volume using vxmake
·         Manually create STRIPE Volume using vxmake

Well, njoyed till creating Dg’s/ Volume’s and the different layouts.
Ever thought who made the Subdisks & Plexes for us?
NO?
Never Mind… I also never thought about it. But there is also a unusual way to create all these,
Let’s have a try…
Steps to Follow,
1.  Initialize disk
2.  Create Dg
3.  Assign disk under Dg
4.  Create subdisks
5.  Create Plexes
6.  Associate plexes with subdisks [actually it is not necessary /skip this]
7.  Create volume
8.  Start volume
9.  Create FS on volume
10. Mount the FS

Veritas Volume Manager -8 [ volume disk removal]


                                      
                    VXVM-8 (Volume –Disk Removal)

What we will learn in Next Few Pages,
·         Online remove disks from volume

Well, I have a volume of 3g and used only 200mb, and I know that it is not going to cross 400-500m ever.

So want to remove some disks and use somewhere else.


root@pr-01:>/# df -kh /test-vol/
Filesystem             size   used  avail capacity  Mounted on
/dev/vx/dsk/mydg/myvol-1
                       2.7G   119M   2.4G     5%    /test-vol

Thursday, 25 September 2014

Veritas Volume Manager -6



                                                                                
VXVM-6 (Volume’s)

What we will learn in Next Few Pages,
1.)     Recover a striped volume if any one of the disk fails
2.)     Recover mirrored volume if one of the disk fails
3.)     Recover raid5 volume if one of the disk fails


OK… Now consider a situation that u had made a striped volume and one of the disks got faulty,

root@pr-01:>/# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c1t0d0s2     auto:none       -            -            online invalid
c2t2d0s2     auto:sliced     -            -            online
c2t3d0s2     auto:sliced     -            -            online
c2t4d0s2     auto:sliced     -            -            online
c2t5d0s2     auto:sliced     -            -            online
c2t6d0s2     auto:sliced     -            -            online
c2t7d0s2     auto:none       -            -            online invalid
c2t8d0s2     auto:none       -            -            online invalid
c2t9d0s2     auto:none       -            -            online invalid

root@pr-01:>/# vxdg init mydg cds=off d1=c2t2d0

root@pr-01:>/# vxdg -g mydg adddisk d2=c2t3d0