ABC Of AIX

Welcome to the World of AIX learning!!!

Posts Tagged ‘ODM

Devices

with 2 comments

Devices:

1. Command used for listing of /dev directory:

# ls –l /dev

2. Predefined means supported. (PdDv)

Command used:

# lsdev –PH

3. Customized means configured / defined (entry in ODM class CuDV) / available (CuDV)

Command used is:

# lsdev –CH

4. How is the location code understood:

AB-CD-EF-GH

Means

AB: Drawer

CD: Slot

EF: Connector

GH: Port

AB-CD together is adapter

Happy Learning!

SNAP

leave a comment »

SNAP: It gathers system configuration information and compresses the information to a pax file.

This file can be downloaded later to a tape or a cd or can be sent to a remote system. This SNAP information is later used by IBM to resolve real time problems.

Only root user is allowed to run this command.

8 MB approx. Temp space is needed for SNAP information.

/tmp/ibmsupt is a default directory for SNAP output.

To write SNAP output to a different directory, use –d flag.

Each execution appends information to previously created file.

Use –r flag to remove the previous information.

Various SNAP commands are:

# snap –g

This command gathers ODM, error report, trace file, user environment, paging space, amount of physical memory, security user information and device information.

# snap –a

This command gathers all system information.

# snap –c

Creates a compressed pax image.

# snap –D

It gathers dump and /unix information.

# snap –e

This command gathers HACMP specific information from all nodes.

# snap –r

Removes the previous information.

Examples:

# snap –ac –d <full path of the destination directory>

This command will gather all the system information, compress the pax image and finally saves the pax image in the specified directory.

# snap –r –d < full path of the destination directory >

This command will clear / remove all the collected snap data.

Hope you enjoyed this post.

Happy Learning!

Additional Information On AIX System Administration – V

with 4 comments

PP Size:

Normal PP Size:

  • 1 MB
  • 2 MB
  • 4 MB
  • 8 MB
  • 16 MB
  • 32 MB
  • 64 MB
  • 128 MB
  • 256 MB
  • 512 MB
  • 1 GB

Big PP Size:

  • 1 MB
  • 2 MB
  • 4 MB
  • 8 MB
  • 16 MB
  • 32 MB
  • 64 MB
  • 128 MB
  • 256 MB
  • 512 MB
  • 1 GB

Scalable PP Size:

  • 1 GB
  • 2 GB
  • 4 GB
  • 8 GB
  • 16 GB
  • 32 GB
  • 64 GB
  • 128 GB

Demons in AIX: examples: sshd, inetd etc.

SAN:

SAN stands for storage area network.

Definition: It is a high speed special network that interconnects different data storages available over different data servers in a wide network having very large number of users.

SAN supports:

  1. Disk mirroring
  2. Restore and archiving
  3. Data migration from one storage to another
  4. Sharing of data across different servers

HMC (Hardware Management Console):

Definition: it is either a server or a standalone machine that provides a GUI tool to manage all power systems.

It manages system through hypervisor and OS.

From AIX V7, it is web based.

The various tasks performed with HMC are:

  1. Powering on/off of the partitions.
  2. Resetting partitions.
  3. Configure and activate resources to the system.
  4. HMC is used to manage LPARs (Logical Partitions).
  5. Setup VIO server and VIO client. (VIO stands for Virtual Input Output)
  6. Provides virtual console to partitions.
  7. Manage system profiles.
  8. Power ON and power DOWN Operating Systems.

HMC Remote Access:

HMC V6: uses websm client

HMC V7: uses web-browser with SSL

VPD (Vital Product Data):

Definition: It is a collection of configuration data and information data associated with a particular set of hardware or software.

Command used to find out all the vital information is:

# lscfg –v

abc of aix

lscfg -vp command

abc of aix
lscfg -v command

VPD refers to subset of database in ODM.

VPD is available in both LINUX as well as AIX.

AIX 5L means AIX OS which supports LINUX API.

Happy Learning !

How To Remove VG With No Disk?

leave a comment »

How to remove VG with no disk?

Or

How to remove VGDA or VG information?

VGDA information is mostly available in /etc/filesystem and ODM.

Command to remove VGDA information:

Run the command,

# exportvg

This command will remove vg information from /etc/filesystem and ODM.

And this will only happen when VG is not varied on.

Command to check whether the VG is varied on or not:

# lsvg –o | lsvg –il

Command to vary off a VG:

# varyoff vg <vgname>

Happy learning !

Additional Information On AIX System Administration – IV

leave a comment »

# lsfs command gives the following output:

Hd1 – home

Hd2 – USR

HD3 – TMP

HD4 – Root

HD5 – BLV

HD6 – Paging Space (2 types: primary, secondary)

HD7 – Not Found

HD8 – JFS

HD9 – VAR

HD10 – MNT

HD11 – admin (available in AIX V 6.1)

LED code 0c0 means successful completion of dump.

To view extended permissions, command used is:

# ls –e <filename>

Command used to set tty port for bidirectional mode:

# share <port attributes>

Commands used to setup quota for file system for end users are:

# vi /etc/<file system>

# edquota /<file system> <username>

# quotaon <file system>

# quotaon /<file system>

To initiate system dump, command used is:

# sysdumpstart –P (for primary)

# sysdumpstart –S (for secondary)

SNAP is generally used to gather system information.

Some of the SNAP commands are:

# snap –a

# snap –g

# snap –D

Image.data contains information about VG’s and LV’s.

Bosinst.data contains information about installation flow control.

To view mksysb tape and to restore particular file from mksysb tape, commands used are:

# tctl –f /dev/<tape drive name>

# restore –tvf /dev/<tape drive name>

# restore –xvf /dev/<tape drive name>

For eg:

# tctl –f /dev/rmt0

# restore – tvf /dev/rmt0

# restore – xvf /dev/rmt0

Tctl command is basically used to rewind the tape drive.

To list NIM objects, command used:

# lsnim

NIM stands for network installation management.

To see NIM log, command used is:

# nim –o showlog –a full_log = yes –a log_type = logtype NIMclient

Logtype can be boot, script etc.

NIMClient is the hostname / ip address of the client machine.

Sources of this command : IBM AIX Forum

# smit system command is used to change the server time.

# smit date command is used to change system date.

Time synchronization is either done by running time demon or ntp demon.

P5 family:

  1. Entry :

i.      P5 510

ii.      P5 520

iii.      P5 550

  1. Mind Range :

i.      P5 570

  1. High End :

i.      P5 575

ii.      P5 590

iii.      P5 595

Physical Volume (PV) id can be found in Cuat ODM class.

Device in defined state means there is an entry in ODM class CuDV.

Procedure to change bootlist from hdisk0 to hdisk1:

Go to SMS mode by pressing F1 and change the bootlist by running the following command:

# bootlist –m normal hdisk0 hdisk1

If a machine keeps rebooting and repeating POST, it means either there is invalid bootlist or corrupted BLV or hardware failure of boot device.

More we will discuss about AIX System Administration in the coming posts.

Till then,

Happy Learning !

ODM Concept

leave a comment »

ODM is a database that holds the complete configurational and informational data about the Operating System.

ODM gives the following information:

- Print System Information

- Hardware & Software Information

- LVM Configuration

- User Administration

- Network installation Management (NIM)

- Network Configuration (TCP, IP Configuration)

- SMIT Commands

- VG, PV, LV Information

- Device Information

- SRC (System Resource Call)

- errorlog

ODM Repositories can be classified into 3 types:

1. /etc/objrepos

2. /usr/lib/objrepos

3. /usr/share/lib/objrepos

Details about each of the Repository:

1. /etc/objrepos : contains information which is unique to the OS. root fileset is available in /etc/objrepos. root fileset cannot be shared among machines in a network. In a client/server model, each client machine will have its own unique root fileset which cannot be shared with other machines.

2. /usr/lib/objrepos : contains information which can be shared among machines having the same hardware architecture.

3. /usr/share/lib/objrepos : contains information which can be shared among machines having different architecture. for eg : various UNIX OS.

A fileset has 3 parts:

1. root belongs to /etc/objrepos

2. usr part belongs to /usr/lib/objrepos

3. share part which belongs to /usr/share/lib/objrepos

SRC part belongs to /etc/objrepos.

Written by RA

February 8, 2012 at 7:13 pm