Wise people learn when they can; fools learn when they must - Arthur Wellesley

Friday 31 March 2017

RHEL6-16-LOGICAL VOLUME MANAGER (LVM)-3


RHEL6-16-LOGICAL VOLUME MANAGER (LVM)-3

LVM OPERATIONS:

How to extend/increase volume group space?
“vgextend”
How to extend/increase logical volume space?
“lvextend”
How to reduce/decrease logical volume space?
“lvreduce”
How to reduce/decrease volume group space?
“vgreduce”


Wednesday 29 March 2017

RHEL6-15-LOGICAL VOLUME MANAGER (LVM)-2


RHEL6-15-LOGICAL VOLUME MANAGER (LVM)-2

DIFFERENT LV’S:
HOW TO USE THE LV:


DIFFERENT LV’S:
1) Linear Volume
2) Striped Volume
3) Mirrored Volume

[root@rhel6-client1 ~]# pvcreate /dev/sdc1 /dev/sdc2 /dev/sdc3
  Physical volume "/dev/sdc1" successfully created
  Physical volume "/dev/sdc2" successfully created
  Physical volume "/dev/sdc3" successfully created
[root@rhel6-client1 ~]# vgcreate myvg01 /dev/sdc1 /dev/sdc2 /dev/sdc3
  Volume group "myvg01" successfully created

RHEL6-14-LOGICAL VOLUME MANAGER (LVM)-1


RHEL6-14-LOGICAL VOLUME MANAGER (LVM)-1

CREATION:



RHEL6 - 13 - NETSTAT


       RHEL6-13-NETSTAT

The netstat "network statistics" command in Linux is a very useful tool when dealing with networking issues. This command displays information related to network connections, routing tables, interface statistics etc.

Ifconfig and netstat are not working in rhel6.
Which package is responsible for ifconfig and netstat.
How to list all connections via netstat?
How to list all connections (listening and non-listening ports) via netstat?
How to list only TCP & UDP connections via netstat?
How to list only listening ports via netstat?
How to list only listening TCP & UDP ports via netstat?
How to list statistics of all ports via netstat?
How to list statistics of tcp & udp ports via netstat?
How to list PID of programs using ports via netstat?
How to list PID of programs using ports (TCP & UDP) via netstat?
How to monitor continuous info via netstat?
How to list routing table via netstat?
How to list information related to all network interfaces via netstat?
How to list multicast group membership information via netstat?

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-P7 (RESOURCES)


VCS ON RHEL6–CONFIGURE & OPERATION-P7

RESOURCES:

·         How to list the available resources in vcs?
·         How to online/offline a resource in vcs?
·         How to display the attributes/parameters of a resource in vcs?
·         How to change the attribute value of a resource in vcs?
·         How to show the state of a resource in vcs?
·         How to list dependency of a resource in vcs?
·         How to online/offline resources in vcs?
·         How to Clearing a resource (automatically initiates the online) in vcs?
·         How to probe a resource in vcs?
·         How to Offline a resource and propagate the command to its children in vcs?

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

Saturday 18 March 2017

ISCSI ON RHEL6


ISCSI ON RHEL6

We need our openfiler to be realized by RHEL6.

[root@pr01 ~]# yum install -y iscsi*
Loaded plugins: product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Package iscsi-initiator-utils-6.2.0.873-2.el6.x86_64 already installed and latest version
Nothing to do

Thursday 2 March 2017

SOLARIS BASICS-P7


SOLARIS BASICS-P7

BASIC NETWORKING -2,

Well, move ahead from last post.

We already did a plumb/unplumb to an interface.

Now how to do UP/DOWN to an interface.

root@sol-test-1:>/#ifconfig e1000g1 up

SOLARIS BASICS-P6


SOLARIS BASICS-P6


BASIC NETWORKING -1,

IP/SUBNET/GATEWAY:

root@sol-test-1:>/#ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 192.168.234.133 netmask ffffff00 broadcast 192.168.234.255
        ether 0:c:29:c2:8f:90

SOLARIS BASICS-P5


SOLARIS BASICS-P5

FILE SYSTEM TYPES

Solaris uses VFS (Virtual File System) Architecture. This provides standard interface for different FS types. It is called VIRTUAL because the user can issue same command to work regardless of the file system.

SUPPORTED FS TYPES BY VFS:

1.  DISK BASED FS
2.  DISTRIBUTED FS
3.  PSEUDO FS

SOLARIS BASICS-P4


SOLARIS BASICS-P4


FILE SYSTEM

In UNIX everything is file, if you find something which is not file then it must be a process.

So what is file system…?

Let’s consider a disk is divided into 4 partitions. And now we have to put data on them. Is it possible…?

SOLARIS BASICS-P3


SOLARIS BASICS-P3

DEVICE NAMING CONVENTION

According to Solaris devices has 3 names.

But Why…?

Isn’t it good to call the devices by their actual names…?

SOLARIS BASICS-P2


SOLARIS BASICS-P2

COMPONENTS OF UFS

UFS: UNIX file system is default File System for Solaris 10.

Partitions -> Cylinders -> Blocks

Partitions are divided in to Cylinders; further Cylinders are divided in to Blocks.

SOLARIS BASICS-P1


SOLARIS BASICS-P1


We will start the basics with Disk Architecture.

RHEL6-(12) CONFIGURE YUM REPO


RHEL6-(12) CONFIGURE YUM REPO

CONFIGURE YUM REPOSITORY:SERVER SIDE:RHEL-6:

Yellowdog updater, Modified (Yum) is a software package manager that installs, updates and removes packages on RPM-based Linux distributions. Yum makes it easier to maintain groups of machines without having to manually update each one using rpm and bothering about dependencies.

YUM VIA FTP: