Showing posts with label HACMP. Show all posts
Showing posts with label HACMP. Show all posts

Thursday, March 29, 2012

What I am doing ?

Hi Guys,

Thanks for your response and visit to my website ; Please do write comments they encourage me and help me to write more and more .

I am starting a series of articles and i will discuss all the things I am learning and doing :) I know it will be great fun !

those topics will includes VIO , HACMP , HMC , SCRIPTING perl/shell, tricks of Unix and much more so be tuned and enjoy learning and working.

Please let me know if you want some changes or any specific topic here if don't know i will ask some one to write it as there are many techniiiiiieeee guys here.

Yes,

I always welcome questions and promise to write their answers OR find out if don't know.

Thanks,
Dipak Warade

Sunday, March 25, 2012

AIX: Commands
cfgmgr Configures devices by running the programs in /etc/methods directory.
chcons Redirects the system console to device or file, effective next startup
chdev -l <device> -a<params> Changes a device's characteristics.
chdisp Changes the display used by the low-function terminal (LFT subsystem.
chfont Changes the default font selected at boot time.
chfs -a size=+<blocks> /<FS> Changes attributes of a file system. This one will increase the Filesystem .
chgroup Users=x,y,z <grp name> Changes attributes for groups.
chlv -n <nlvname> <olvname> Rename logical volume from olvname to nlvname
chps -s<no. pps> <ps name> Changes attributes of a paging space.
chpv Changes the characteristics of a physical volume in a volume group.
chque -q<q name> -a'host = x' Changes the queue name.
chssys Changes a subsystem definition in the subsystem object class.
chtcb Changes or queries the trusted computing base attribute of a file.
chtz. Changes the system time zone information
chuser rlogin=true <username> Changes attributes for the specified user.
chvfs Changes entries in the /etc/vfs file.
chvg Sets the characteristics of a volume group.
crfs -v <fstype> (jfs)
-d <lvname>
-m <mount point>
-Ayes
Create a Filesystem on a pre-defined logical volume( which will automount at boot!)
crfs -v <fstype> (jfs)
-g <vgname>
-a size='<no of blocks>'
-m <mount point>
-Ayes
Create a Filesystem and its logical volume (uses default lvname)
crvfs Creates entries in the /etc/vfs file.
exportvg None Export a volume group
grpck -n ALL Verifies the correctness of a group definition.
hvirprt Changes the attribute values of a virtual printer.
importvg -y <vgname>
<hdisk x>
Import a Volume Group onto hdisk x
lpstat List print queues
lsallq Lists the names of all configured queues.
lsallqdev Lists all configured printer and plotter queue device names within a specified queue.
lsattr -El <devname> List detailed configuration for a device
lscfg List all configured devices
-v List in detail
-l scsi* List all scsi IO devices
lsdev -Cc tape List configured tape devices
-Cc disk List configured disks on devices
-C -s scsi -H List all defined scsi devices
lsdisp Lists the displays currently available on the system.
lsfont Lists the fonts available for use by the display.
lsfs -l List all filesystems in /etc/filesystems quering the LVM descriptor area and superblocks
lsfs Displays the characteristics of file systems.
lsgroup ALL Displays the attributes of groups.(checks NIS aswell!)
lsitab -a Lists the records in the /etc/inittab file.
lskbd Lists the keyboard maps currently available to the low-function terminal (LFT subsystem.
lslicense Displays the number of fixed licenses and the status of floating licensing.
lslpp -l List all installed software
lslv <lvname> List configuration details of a given Logical Volume
-l <lvname> List further configuration details of a given disk
lsprtsv -ch Shows print service information stored in the database.
lsps -a List pagaing space
lspv None List configured disks
<hdisk> List configuration details of a given disk
-l <hdisk> List Logical Volumes/Filesystems on a given disk
lsque Displays the queue stanza name.
lsquedev Displays the device stanza name.
lssrc -a List all subsystems
lsuser Displays attributes of user accounts.
lsvfs Lists entries in the /etc/vfs file.
lsvg None List configured Volume groups
<vgname> List configuration details of a given Volume group
-l <vgname> List Logical Volumes/Filesystems on a given Volume Group
mkcatdefs Preprocesses a message source file.
mkdev Adds a device to the system.
mkfont Adds the font code associated with a display to the system.
mkfontdir Creates a fonts.dir file from a directory of font files.
mkgroup Creates a new group.
mkitab Makes records in the /etc/inittab file.
mklv -y <lvname>
<vgname>
<no of pps>
Create a Logical Volume
mklv Creates a logical volume.
mklvcopy Adds copies to a logical volume.
mknamsv Configures TCP/IP-based name service on a host for a client.
mknotify Adds a notify method definition to the notify object class.
mkprtsv Configures TCP/IP-based print service on a host.
mkps Add an additional paging space to the system.
mkque Adds a printer queue to the system.
mkquedev Adds a printer queue device to the system.
mkserver Adds a subserver definition to the subserver object class.
mkssys Adds a subsystem definition to the subsystem object class.
mksysb. Backs up mounted file systems in the rootvg volume group for subsequent reinstallation
mkszfile. Records size of mounted file systems in the rootvg volume group for reinstallation
mktcpip Sets the required values for starting TCP/IP on a host.
mkuser Creates a new user account.
mkuser.sys Customizes a new user account.
Mkvg -y <vgname>
-s <ppsize>
<hdisk x>
Create a Volume Group on hdisk x
mkvg Creates a volume group.
mkvirprt Makes a virtual printer.
odmadd Adds objects to created object classes.
odmchange Changes the contents of a selected object in the specified object class.
odmcreate Produces the .c (source and .h (include files necessary for ODM application development and creates empty objectclasses.
odmdelete Deletes selected objects from a specified object class.
odmdrop Removes an object class.
odmget Retrieves objects from the specified object classes and places them into an odmadd input file.
odmshow Displays an object class definition on the screen.
pwdck Verifies the correctness of local authentication information.
redefinevg Redefines the set of physical volumes of the given volume group in the device configuration database.
reducevg Removes physical volumes from a volume group. When all physical volumes are removed from the volume group, the volume group is deleted.
reorgvg Reorganizes the physical partition allocation for a volume group.
restbase Restores customized information from the boot image.
rmdel Removes a delta from a Source Code Control System (SCCS file.
rmdev Removes a device from the system.
rmf Removes folders and the messages they contain.
rmfs Removes a file system.
rmgroup Removes a group.
rmitab Removes records in the /etc/inittab file.
rmlv Removes logical volumes from a volume group.
rmlvcopy Removes copies from a logical volume.
rmm Removes messages.
rmnamsv Unconfigures TCP/IP-based name service on a host.
rmnotify Removes a notify method definition from the notify object class.
rmprtsv Unconfigures a print service on a client or server machine.
rmps Removes a paging space from the system.
rmque Removes a printer queue from the system.
rmquedev Removes a printer or plotter queue device from the system.
rmserver Removes a subserver definition from the subserver object class.
rmssys Removes a subsystem definition from the subsystem object class.
rmuser Removes a user account.
rmvfs Removes entries in the /etc/vfs file.
rmvirprt Removes a virtual printer.
runcat Pipes the output data from the mkcatdefs command to the gencat command.
savebase Saves base customized device data in the ODM onto the boot device.
startsrc -s <subsystem> Start a subsystem
stopsrc -s <subsystem> Stop a subsystem
syncvg Synchronizes logical volume copies that are not current.
usrck Verifies the correctness of a user definition.
varyoffvg <vgname> Takes a Volume Group offline
varyoffvg Deactivates a volume group.
varyonvg <vgname> Puts a Volume Group online
varyonvg Activates a volume group.

Saturday, November 12, 2011

HACMP installation

The HACMP software writes the messages it generates to the system console and to several log files. Each log file contains a different subset of messages generated by the HACMP software.When viewed as a group, the log filesprovide a detailed view of all cluster activity.

Although the actual location of the log files on the system may seem scattered, the log diversity provides information for virtually any HACMP event.Moreover, you can customize the location of the log files, and specify the verbosity of the logging operations.

The following list describes the log files into which the HACMP software writes messages and the types of cluster messages they contain.The list also provides recommendations for using the different log files.

/usr/es/adm/cluster.log
Contains time-stamped, formatted messages generated
by HACMP scripts and daemons.

/tmp/hacmp.out
Contains time-stamped, formatted messages generated
by HACMP scripts on the current day. In verbose mode
(recommended), this log file contains a line-by-line record
of every command executed by the scripts, including the
values of all arguments to each command. An event
summary of each high-level event is included at the end of
each event’s details (similar to adding the -x option to a
shell script).

system error log
Contains time-stamped, formatted messages from all AIX
subsystems, including scripts and daemons.

/usr/es/sbin/cluster/history/cluster.mmddyyyy
Contains time-stamped, formatted messages generated
by HACMP scripts. The system creates a cluster history
file every day, identifying each file by its file name
extension, where mm indicates the month, dd indicates
the day, and yyyy the year.

/tmp/clstrmgr.debug
Contains time-stamped, formatted messages generated
by clstrmgrES activity. The messages are verbose. With
debugging turned on, this file grows quickly. You should
clean up the file and turn off the debug options as soon as
possible.

/tmp/cspoc.log
Contains time-stamped, formatted messages generated
by HACMP C-SPOC commands. The file resides on the
node that invokes the C-SPOC command.

/tmp/dms_loads.out
Stores log messages every time HACMP triggers the
deadman switch.

/tmp/emuhacmp.out
Contains time-stamped, formatted messages generated
by the HACMP Event Emulator. The messages are
collected from output files on each node of the cluster,
and cataloged together into the /tmp/emuhacmp.out log
file.

/var/hacmp/clverify/clverify.log
The file contains the verbose messages output by the
clverify utility. The messages indicate the node(s),
devices, command, and so on, in which any verification
error occurred.

/var/ha/log/grpsvcs, /var/ha/log/topsvcs, and /var/ha/log/grpglsm
Contains time-stamped messages in ASCII format. All
these files track the execution of the internal activities of
their respective daemons.

Some hacmp commands

Normally the commands starting with CL* are located in /usr/es/sbin/cluster/utilities/

clstat - show cluster state and substate; needs clinfo.
cldump - SNMP-based tool to show cluster state
cldisp - similar to cldump, perl script to show cluster state.
cltopinfo - list the local view of the cluster topology.
clshowsrv -a - list the local view of the cluster subsystems.
clfindres (-s) - locate the resource groups and display status.
clRGinfo -v - locate the resource groups and display status.
clcycle - rotate some of the log files.
cl_ping - a cluster ping program with more arguments.
clrsh - cluster rsh program that take cluster node names as argument.
clgetactivenodes - which nodes are active?
get_local_nodename - what is the name of the local node?
clconfig - check the HACMP ODM.
clRGmove - online/offline or move resource groups.
cldare - sync/fix the cluster.
cllsgrp - list the resource groups.
clsnapshotinfo - create a large snapshot of the hacmp configuration.
cllscf - list the network configuration of an hacmp cluster.
clshowres - show the resource group configuration.
cllsif - show network interface information.
cllsres - show short resource group information.
cllsnode - list a node centric overview of the hacmp configuration.
lssrc -ls clstrmgrES - list the cluster manager state.
lssrc -ls topsvcs - show heartbeat information.

Popular Posts

Is this site helping you ?