Tuesday, 15 May 2012

 AIX ACRONYMS
IBM         International Business Machines 

AIX        Advanced Interactive eXecutive (Advanced IBM uniX)

POWER   Performance Optimized With Enhanced RISC

RISC       Reduced Instruction Set Computing

CISC      Complex Instruction Set Computing

SCSI      Small computer Simple Interface

PCI       Peripheral Component Interconnect

ISA       Industry Standard Architecture

MCA     Micro Channel Architectural

CHRP    Common Hardware Reference Platform

SMP      Symmetric Multi Processor

PSSP     Parallel System Support Programs

LPAR    Logical PARtition 

HACMP  High Availability Cluster Multi Processing

RSCT   Really Scalable ( RS6000) Cluster Technology

P2SC   POWER2 Super Chips

RAS     Releability Availability Serviceability

SMP    Symmetric Multi Processing

NUMA   Non-Uniform Memory Access

MPP     Massively Parallel Processing

CMP    Chip Multi Processing

CAD   Computer Aided Design

CWS   Controll Work Station

ISB    Intermediate Switch Boards

SDR    System Data Depository

PVM   Parallel Virtual Machine

MPI   Message Passing Interface

HPF   High Performance FORTRAN 

HMC     Hardware Management Console

ASM     Advanced System Management

NIM      Network Installation Manager

LPP      Licenced program Product

BOS     Base Operating System

APAR    Authorized program Analysis Report

SMS     System Management Services

SRC     System Resource Controller 

JFS       Journaled File System

JFS2     Enhanced Journaled File System

CDRFS   CD-ROM File System

UDFS     Universal Disk Format Specification

CIFS      Common Internet File System

NFS      Network File System

NBPI     Number of Bytes Per Inode 

WSM    Web based System management

RMC     Resource Monitoring and Controll

DAT     Digital Audio tape

QIC     Quarter Inch Catridge

DLT     Digital Linear Tape

LTO     Linear tape Operation

TAR     Tape ARchive

CPIO   CoPy Input to Output 

DD      Device to Device

TCTL   Tape  ConTroL 

DCE    Distributed Computing Environment 

CDE    Common Desktop Environment

PPA    parallel Port Adapter

TCP/IP     Transmission Control Protocol / Internet protocol

DARPA    Department of Advanced Research Projects Agency

IAB      Internet Architecture Board

RFC     Request For Comments

LAN     Local Area Network

WAN    Wide Area Network

NIS     Network Infornation Services

DNS    Domain Name Service

DHCP   Dynamic Host Configuration Protocol

NCS     Network Computing System

ICMP    Internet Control Message Protocol

PING    Packet InterNet Gropher

ODM     Object Data Manager

SWVPD   SoftWare Vital Product Data

SRC    System Resource Controller

SMIT  System Management Interface Tool

PUN   Physical Unit Number

LUN   Logical Unit Number

LVM   Logical Volume Manager 

VGDA    Volume Group Descriptor Area

VGSA     Volume Group Status Area

LVCB    Logical Volume Control Block

LVDD  Logical Volume Device Driver

PDT    Performance Diagnostic Tool

SSH    Secured SHell

RSH    Restricted SHell 

EA       Extended Attributes

ACL     Access Controll List

TCB    Trusted Computing Base

SAK    Secure Authentication Key

SAN    Storage Area Network

NAS    Network Area Storage (by NFS)

 * Source Article from : Internet

AIX TL/ML Migration/Upgradation with MultiBOS method


AIX ML/TL Migration/Upgradation can be done in many ways. I am here sharing the method, which worked for me.


Current TL/ML Level
  • # oslevel –s             >>> Show current AIX Fix Level
  • # lppchk –v              >>> Show installed packages
  • # instfix -i | grep ML   >>> Show the currently installed ML
  • # lslpp -l | grep -i applied >>> Check for any applied level packages
  • # installp -c -f -g –X       >>> Commit all the applied level packages
Creating MultiBOS instance
  • # multibos -sXp         >>> Pretend MultiBOS creation(Mock Run)
  • # multibos -sX          >>> MultiBOS instance creation
Install the TL/ML updation from location
  • # mount nimmaster:/export/5300-12-00-1015 /shared >>> Mount the TL files source
  • # multibos -Xacp -l /shared  >>> Pretend TL/ML migration on Standby BOS(Mock Run)
  • # multibos -Xac -l /shared   >>> TL/ML migration on Standby BOS
Confirming the Update Success
  • # multibos –S           >>> Login to Standby BOS environment
  • # oslevel –s            >>> Check whether migration succeeded
  • # lppchk –v             >>> Check the lpp health after migration
  • # instfix -i | grep ML  >>> Show the currently installed ML
  • # oslevel –rl 5300-12   >>> Incase of problem to know the missing pkg
  • # multibos -Xc -b /tmp/listofpkgs -l /shared  >>> Install missing, if req
Checking the BootLV Change
  • # bootlist -m normal –o
Reboot the Server and check the Applications is running properly
  • # shutdown –Fr
Fallback (Point the BLV to the original LV -- hd5)
  • # bootlist -m normal –o hdisk0 blv=hd5 hdisk0 blv=bos_hd5
Log files
  • /etc/multibos/logs/op.alog >>> For MultiBOS install and create operation
  • /etc/multibos/logs/scriptlog.<timestamp>.txt >>> For the MultiBOS Shell operation log
Remove MultiBOS, if you are satisfied with the new TL/ML
  • # multibos –RXp
  • # multibos –RX

    * Source Article from : Internet

Accessing LPAR console from HMC CLI

All Unix administrators loves the CLI. So LPAR console using HMC CLI, rather than going thruough the normal HMC JAVA UI(As it is painfully slow).


List all the Managed Systems(Frames) available in the HMC


# lssyscfg -r sys -F name state

   - Will show you the Managed Systems list with its current status.


List all the LPARS available in a particular Managed System(Frame)

# lssyscfg -r lpar -m <Managed System name> -F name state

   - Will show you the LPARS available in a particular Managed System with its current status.


Connect to a particular LPAR's console 
# mkvterm -m <Managed System name> -p <LPAR name>

   - You will be connected to the Console of the LPAR.


Force close already open console 
        
       Sometimes it may show that the Console is already open. May be someone opened and not properly came out of the console. In that case you use the below command.

# rmvterm -m <Managed System name> -p <LPAR name>


Easiest of all with CLI         

        Easiest of all the above is the vtmenu, which simplifies the activity of infinding Managed System name and then finding LPAR name to take console into a menu based Approach.

# vtmenu
   - Rest of them is self explanatory.
Will try to capture some screenshots for better understanding.   
 
 * Source Article from : Internet

Backup rootvg to a file with mksysb in AIX -- HowTo

One of the ways to backup the rootvg of AIX is with mksysb. I am here taking backup of AIX OS (6100-00-01-0748) using mksysb to a NFS mount point.


mksysb -iev <mksysb-filename>
  • -i  >>> Creates new /image.data file, by invoking mkszfile command
  • -e >>> Exclude the pattern listed in /etc/exclude.rootvg file(Ex. NFS Mount point)
  • -v >>> Verbose mode
  • <mksysb-filename> >>> What ever, better to follow some naming convention

Please see the CLI O/P

# oslevel -s
6100-00-01-0748
# cat /etc/exclude.rootvg
^./sharednfs
# mksysb -iev /sharednfs/mksysb_backup/AIX_6100-00-01-0748.mksysb
Creating information file (/image.data) for rootvg.
kill: 356360: 0403-003 The specified process does not exist.
Creating list of files to back up.
Backing up 44676 files
Backing up to /sharednfs/mksysb_backup/AIX_6100-00-01-0748.mksysb.
Cluster 51200 bytes (100 blocks).
Volume 1 on /sharednfs/mksysb_backup/AIX_6100-00-01-0748.mksysb
a         6100 ./bosinst.data
a           11 ./tmp/vgdata/rootvg/image.info
a        10381 ./image.data
a       142108 ./tmp/vgdata/rootvg/backup.data
a        64329 ./opt/freeware/bin/gunzip
a        63793 ./opt/freeware/bin/bunzip2
a        63793 ./opt/freeware/bin/bzcat
a        63793 ./opt/freeware/bin/bzip2
[TRUNCATED FOR VISIBILITY]
a            0 ./wpars
a           31 ./.vi_history
a            0 ./cdrom
a            0 ./cdrom/cd0
a            0 ./proc
The total size is 1720533318 bytes.
Backup finished on Mon Dec 19 12:31:37 GMT+05:30 2011; there are 2653200 blocks on 1 volumes.

0512-038 mksysb: Backup Completed Successfully.

 * Source Article from : Internet

AIX changing ethernet Media Speed - On the Fly

lsattr -El <device> -a media_speed
This reads the configuration parameters for this device from the ODM.

To change the media speed, run
  chdev -P -l ent0 -a media_speed='100_Half_Duplex'
   The value for media_speed can be any of the values listed by the lsattr -R command above. The change does not take effect until you reboot the machine.
   If you select a value other than Auto_Negotiation the switch port the machine is connected to must have the same configuration. If the switch and the machine do not match you may get no network connectivity or poor performance.

       You must specify one of the following flags with the lsattr command:
       -D
            Displays default values.
       -E
            Displays effective values (valid only for customized devices specified with the -l flag).
       -F Format
            Specifies the user-defined format.
       -R
            Displays the range of legal values.
## Returns Driver statistics
root@monster:~# netstat -v | egrep "(ETHERNET|Media)"
ETHERNET STATISTICS (ent0) :
Media Speed Selected: 100 Mbps Full Duplex
Media Speed Running: 100 Mbps Full Duplex

root@monster:~# entstat -d ent0 | egrep "(ETHERNET|Media)"
ETHERNET STATISTICS (ent0) :
Media Speed Selected: 100 Mbps Full Duplex
Media Speed Running: 100 Mbps Full Duplex

root@monster:~# lsattr -R -l ent0 -a media_speed
Auto_Negotiation
100_Full_Duplex

root@monster:~# lsattr -EH -l ent0 -a media_speed
attribute   value            description user_settable
media_speed 100_Full_Duplex Media speed True

root@monster:~# lsattr -El ent0 | grep media_speed
media_speed    100_Full_Duplex Media speed                                    True

 * Source Article from : Internet

How to Configure Etherchannel in IBM AIX

EtherChannel and IEEE 802.3ad Link Aggregation are network port aggregation technologies that allow several Ethernet adapters to be aggregated together to form a single pseudo Ethernet device. For example, ent0 and ent1 can be aggregated into an EtherChannel adapter called ent2; interface ent2 would then be configured with an IP address. The system considers these aggregated adapters as one adapter. The switch side should be configured accordingly.

Considerations
    > Switch side configuration should be done prior to the the AIX side etherchannel configuration
    > All the adapters should have same speed and duplex settings
    > The interfaces, which are going to be part of etherchannel should be in down and detached state.(smitty chinet)


# ifconfig en0 down detach
# ifconfig en1 down detach


Creating new Etherchannel adapter with smitty


# smitty etherchannel
 
       EtherChannel / IEEE 802.3ad Link Aggregation



Move cursor to desired item and press Enter.

  List All EtherChannels / Link Aggregations
  Add An EtherChannel / Link Aggregation   <<<<< SELECT
  Change / Show Characteristics of an EtherChannel / Link Aggregation
  Remove An EtherChannel / Link Aggregation
  Force A Failover In An EtherChannel / Link Aggregation



 
 
F1=Help                                F2=Refresh                             F3=Cancel                              F4=List
F5=Reset                               F6=Command                             F7=Edit                                F8=Image
F9=Shell                               F10=Exit                               Enter=Do




                        Add An EtherChannel / Link Aggregation

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

                                                        [Entry Fields]
  EtherChannel / Link Aggregation Adapters            ent0,ent1                                                                                           +
  Enable Alternate Address                            no                                                                                                  +
  Alternate Address                                  []                                                                                                   +
  Enable Gigabit Ethernet Jumbo Frames                no                                                                                                  +
  Mode                                                standard                                                                                            +
  Hash Mode                                           default                                                                                             +
  Backup Adapter                                                                                                                                          +
       Automatically Recover to Main Channel          yes                                                                                                 +
       Perform Lossless Failover After Ping Failure   yes                                                                                                 +
  Internet Address to Ping                           []
  Number of Retries                                  []                                                                                                   +#
  Retry Timeout (sec)                                []                                                                                                   +#


F1=Help                                F2=Refresh                             F3=Cancel                              F4=List
F5=Reset                               F6=Command                             F7=Edit                                F8=Image
F9=Shell                               F10=Exit                               Enter=Do



Find the Etherchannel Adapter

# lsdev -Cc adapter -t ibm_ech
ent2 Available  EtherChannel / IEEE 802.3ad Link Aggregation



Setting IP Address for the newly created Etherchannel adapter
         
# smitty chinet
  lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
  x                       Available Network Interfaces                       x
  x                                                                          x
  x Move cursor to desired item and press Enter.                             x
  x                                                                          x
  x   en0   1L-08   Standard Ethernet Network Interface                      x
  x   en1   1j-08   Standard Ethernet Network Interface                      x
  x   en2           Standard Ethernet Network Interface
<<<<< SELECT      x
  x   et0   1L-08   IEEE 802.3 Ethernet Network Interface                    x
  x   et1   1j-08   IEEE 802.3 Ethernet Network Interface                    x
  x   et2           IEEE 802.3 Ethernet Network Interface                    x
  x                                                                          x
  x F1=Help                 F2=Refresh              F3=Cancel                x
  x Esc+8=Image             Esc+0=Exit              Enter=Do                 x
  x /=Find                  n=Find Next                                      x
  mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj



 
                  Change / Show a Standard Ethernet Interface

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

                                                        [Entry Fields]
  Network Interface Name                              en2
  INTERNET ADDRESS (dotted decimal)                  [192.168.1.100]
  Network MASK (hexadecimal or dotted decimal)       [255.255.255.0]
  Current STATE                                       up                     +
  Use Address Resolution Protocol (ARP)?              yes                    +
  BROADCAST ADDRESS (dotted decimal)                 []
  Interface Specific Network Options
     ('NULL' will unset the option)
    rfc1323                                          []
    tcp_mssdflt                                      []
    tcp_nodelay                                      []
    tcp_recvspace                                    []
    tcp_sendspace                                    []
  Apply change to DATABASE only                       no                     +

F1=Help             F2=Refresh          F3=Cancel           F4=List
Esc+5=Reset         Esc+6=Command       Esc+7=Edit          Esc+8=Image
Esc+9=Shell         Esc+0=Exit          Enter=Do



Show the Etherchannel Adapter properties

# ifconfig -a
en2: flags=5e080863,c0<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD(ACTIVE),PSEG,LARGESEND,CHAIN>
        inet 192.168.1.100 netmask 0xffffff00 broadcast 192.168.1.255
         tcp_sendspace 131072 tcp_recvspace 65536 rfc1323 0
lo0: flags=e08084b<UP,BROADCAST,LOOPBACK,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT>
        inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
        inet6 ::1/0
         tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1


         
# lsattr -El ent2
adapter_names   ent0,ent1      EtherChannel Adapters                       True
alt_addr        0x000000000000 Alternate EtherChannel Address              True
auto_recovery   yes            Enable automatic recovery after failover    True
backup_adapter  NONE           Adapter used when whole channel fails       True
hash_mode       default        Determines how outgoing adapter is chosen   True
mode            standard       EtherChannel mode of operation              True
netaddr         0              Address to ping                             True
noloss_failover yes            Enable lossless failover after ping failure True
num_retries     3              Times to retry ping before failing          True
retry_time      1              Wait time (in seconds) between pings        True
use_alt_addr    no             Enable Alternate EtherChannel Address       True
use_jumbo_frame no             Enable Gigabit Ethernet Jumbo Frames        True



* Source Article from : Internet

AIX errpt error output explained - Dissecting errpt output

 errpt - The errpt command generates an error report from entries in an error log
 
# errpt
982C78BF   0224093211 T S mir0           DISPLAY ADAPTER CONFIGURATION ERROR
0BA49C99   0224093111 T H scsi0          SCSI BUS ERROR
0BA49C99   0224093011 T H scsi0          SCSI BUS ERROR
49A83216   0224092911 T H hdisk0         DISK OPERATION ERROR
0BA49C99   0224092911 T H scsi0          SCSI BUS ERROR
0BA49C99   0224092811 T H scsi0          SCSI BUS ERROR
0BA49C99   0224092711 T H scsi0          SCSI BUS ERROR
7F88E76D   0223104611 P S console        SOFTWARE PROGRAM ERROR
9DBCFDEE   0224093211 T O errdemon       ERROR LOGGING TURNED ON
192AC071   0223104611 T O errdemon       ERROR LOGGING TURNED OFF
A6DF45AA   0223071111 I O RMCdaemon      The daemon is started.
1BA7DF4E   0223071111 P S SRC            SOFTWARE PROGRAM ERROR
BA431EB7   0223071111 P S SRC            SOFTWARE PROGRAM ERROR


Column-1 : ErrorID
    Error Identifier can be used to get the full report from either errorlog using -j flag or from the error-template repository in combination with -t flag.


Column-2 : TIMESTAMP
    The timestamp can be interpreted like the following.
    0224092911 : (02 = Month, 24 = Day, 09 = Hour, 29 = Minutes, 11 = Year)

Column-3 : TYPE OF ERROR
    P - Permanent
    T - Temporary

Column-4 : ERRCLASS

    H - Hardware
    S - Software
    O - Operator Notice(Intiated with errlogger command)
    U - Undetermined

Column-5 : RESOURCE NAME
    The name of the resource that detected the error. It may not be the component having the problem.

Column-6: DESCRIPTION
    A short description of the error message extracted from the Template repository



A detailed format for a single identifier - Sample Output


# errpt  -a -j 49A83216
---------------------------------------------------------------------------
LABEL:          DISK_ERR4
IDENTIFIER:     49A83216

Date/Time:       Thu Feb 24 09:29:15 CST 2011
Sequence Number: 25
Machine Id:      000788574C00
Node Id:         localhost
Class:           H
Type:            TEMP
Resource Name:   hdisk0         
Resource Class:  disk
Resource Type:   scsd
Location:        P1/Z1-A0
VPD:            
        Manufacturer................IBM    
        Machine Type and Model......ST318305LW     
        FRU Number..................09P4429    
        ROS Level and ID............43353042
        Serial Number...............000A2D99
        EC Level....................H11936   
        Part Number.................09P4428    
        Device Specific.(Z0)........000003129F00013E
        Device Specific.(Z1)........0501C50B
        Device Specific.(Z2)........1000
        Device Specific.(Z3)........02121
        Device Specific.(Z4)........0001
        Device Specific.(Z5)........22
        Device Specific.(Z6)........162870 C 

Description
DISK OPERATION ERROR

Probable Causes
MEDIA
DASD DEVICE

User Causes
MEDIA DEFECTIVE

        Recommended Actions
        FOR REMOVABLE MEDIA, CHANGE MEDIA AND RETRY
        PERFORM PROBLEM DETERMINATION PROCEDURES

Failure Causes
MEDIA
DISK DRIVE

        Recommended Actions
        FOR REMOVABLE MEDIA, CHANGE MEDIA AND RETRY
        PERFORM PROBLEM DETERMINATION PROCEDURES

Detail Data
PATH ID
           0
SENSE DATA
0A00 0000 2800 00DB 67B0 0000 1800 0000 0200 0400 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 001A 0000 

 * Source Article from : Internet

Sunday, 13 May 2012

CD-ROM Mounting Using Daemon



Check it out cdrom daemon Running
#lssrc -s cdromd
cdromd          inoperative


Then start the cdrom daemon
#startsrc -s cdromd
 cdromd         active


Now checkitout in filesystem list
#df 
cd0  available-------->mounted


Unmount it using
#cdumount cd0


For mounting
#cdmount cd0


For check
#cdcheck -e cd0
A media is present in cd0


For eject
#cdumount cd0
#cdeject cd0


This daemon wont start automatically after server reboot.If u want to start automatically just add it to inittab file.

* Source Article from : Internet

Thursday, 10 May 2012

How to create a WPAR step-by-step

How to create a WPAR step-by-step


ch lpar in the managed system may have a different operating systems. Each workload partition runs only AIX. Lpar owns everything it uses, wpar shares lpar resources (memory, cpu, adapters). Usage of lpar resources (the amount of their processing power – so to speak) by wpar can be defined, limited not to exceed certain amount – if needed. Why I got interested in workload partitions (wpar)? I had to install application on AIX6.1. There is also a ”frequent” but not continuous requirement of testing patches and new releases of this application – not a constant need. As the time flows the operating system will evolve as well – patches, fixes, ML’s …. The test environment must have identical OS as the production environment – are you beginning to see my point?
Let’s create one “private” workload partition which I will call wpar (today, for a change I have no imagination). Why “private”? Because it will have its own (private) /usr.
mkwpar -g wpar_vg -h wpar -l -n wpar -N interface=en0 address=159.14.245.85 nemtask=255.255.255.0 -P -r -s -o /root/wpar.config
-g wpar_vg -> will create all file systems owned by wpar using the capacity of the indicated volume group
-h wpar -> specifies the host name assigned to this wpar
-l -> create private and writable /opt and /usr
-n wpar -> workload partition name (wpar)
-N -> Network info follows
-P -> set the root password interactively
-r -> duplicate network name resolution services (/etc/resolv.conf and so forth)
-s -> start the wpar after creation
-o /root/wpar.config -> create wpar.config file that can be used to re-create the wpar
what we get as soon as we execute this command is:
.........
rsct.core.fsrm 2.5.4.0 ROOT APPLY SUCCESS
rsct.core.hostrm 2.5.4.0 ROOT APPLY SUCCESS
rsct.core.lprm 2.5.4.0 ROOT APPLY SUCCESS
rsct.core.microsensor 2.5.4.0 ROOT APPLY SUCCESS
syncroot: Error synchronizing installp software.
syncroot: Returns Status = FAILURE
Copying network name resolution configuration...
/etc/resolv.conf
/etc/hosts
/etc/netsvc.conf
Changing password for root@wpar
root@wpar's New password:
Re-enter root@wpar's new password:
mkwpar: 0960-192 They do not match, try again.
root@wpar's New password:
Re-enter root@wpar's new password:
Workload partition wpar created successfully.
Starting workload partition wpar.
Mounting all workload partition file systems.
Loading workload partition.
Exporting workload partition devices.
Starting workload partition subsystem cor_wpar.
0513-059 The cor_wpar Subsystem has been started. Subsystem PID is 323596.
Verifying workload partition startup.
entaimq1:MDC:/root>
entaimq1:MDC:/root>lsvg
rootvg
wpar_vg
entaimq1:MDC:/root>lsvg -l wpar_vg
wpar_vg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
fslv00 jfs2 3 3 1 open/syncd /wpars/wpar
fslv01 jfs2 1 1 1 open/syncd /wpars/wpar/home
fslv02 jfs2 16 16 1 open/syncd /wpars/wpar/opt
fslv03 jfs2 3 3 1 open/syncd /wpars/wpar/tmp
fslv04 jfs2 64 64 1 open/syncd /wpars/wpar/usr
fslv05 jfs2 4 4 1 open/syncd /wpars/wpar/var
As you can see this wpar has its own copy of the operating system created in the specified vg – wpar_vg. Now, let’s create some file systems in another (dedicated to it) volume group which (the file systems) we will assign to our wpar.
entaimq1:MDC:/root>lsvg
rootvg
wpar_vg
informatica_vg
Let’s make the logical volumes first:
entaimq1:MDC:/root>
mklv -t jfs2 -y inform1_lv informatica_vg 10
mklv -t jfs2 -y inform2_lv informatica_vg 10
mklv -t jfs2 -y inform3_lv informatica_vg 10
Now, let’s make file system on the top of each logical volume:/lang_en]
crfs -v jfs2 -d inform1_lv -m /wpars/wpar/inform1 -A yes -a log=INLINE
crfs -v jfs2 -d inform2_lv -m /wpars/wpar/inform2 -A yes -a log=INLINE
crfs -v jfs2 -d inform3_lv -m /wpars/wpar/inform3 -A yes -a log=INLINE
It’s too late but I forgot to include the mount type above so now, I have to execute the chfsagainst each file system.
entaimq1:MDC:/root>chfs -u wpar /wpars/wpar/inform1
and ..../inform2 and ..../inform3
Now, inside the lpar that owns the wpar execute the mount all and let’s go and see thewpar. To login from the lpar directly into its wpar, execute:
entaimq1:MDC:/root>clogin wpar -l root
Once inside, let’s do some poking aroung.
# df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
Global 0.09 0.07 29% 1880 11% /
Global 0.03 0.03 3% 7 1% /home
Global 0.50 0.29 43% 8787 12% /opt
Global - - - - - /proc
Global 0.09 0.09 2% 13 1% /tmp
Global 2.00 0.15 93% 39515 51% /usr
Global 0.12 0.06 52% 4405 24% /var
Global 1.25 1.24 1% 4 1% /inform1
Global 1.25 1.24 1% 4 1% /inform2
Global 1.25 1.24 1% 4 1% /inform3
#
Now, lets increase the size of one the last three file systems made.
# chfs -a size=2G /inform1
chfs: 0506-915 No record matching /inform1 was found in /etc/filesystems.
Guess, what? There are no stanzas for these file systems in the wpar own/etc/filesystems. Let’s do the increase operation on the “owner” side (inside the lpar). So, execute exit to logout from the wpar, and then let’s grow the file systems as required.
entaimq1:MDC:/root>chfs -a size=2G /wpars/wpar/inform1
Filesystem size changed to 4194304
entaimq1:MDC:/root>chfs -a size=3G /wpars/wpar/inform2
Filesystem size changed to 6291456
Inlinelog size changed to 12 MB.
entaimq1:MDC:/root>chfs -a size=4G /wpars/wpar/inform3
Filesystem size changed to 8388608
Inlinelog size changed to 16 MB.
Going back into the wpar and what do you see?
# df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
Global 0.09 0.07 29% 1880 11% /
Global 0.03 0.03 3% 7 1% /home
Global 0.50 0.29 43% 8787 12% /opt
Global - - - - - /proc
Global 0.09 0.09 2% 13 1% /tmp
Global 2.00 0.15 93% 39515 51% /usr
Global 0.12 0.06 52% 4405 24% /var
Global 2.00 1.99 1% 4 1% /inform1
Global 3.00 2.99 1% 4 1% /inform2
Global 4.00 3.98 1% 4 1% /inform3
Who owns these file systems?
# ls -ld /inform2
drwxr-xr-x 3 root system 256 Jun 08 13:20 /inform2
Let’s change it and assign it to a user and a group I have created earlier inside this wpar.
# chown infouser.info /inform1
# chown infouser.info /inform2
# chown infouser.info /inform3
Who owns these file systems now?[lan_pl]Kto obecnie posiada te pliki?
# ls -ld /inform1
drwxr-xr-x 3 infouser info 256 Jun 08 13:20 /inform1
# ls -ld /inform2
drwxr-xr-x 3 infouser info 256 Jun 08 13:20 /inform2
# ls -ld /inform3
drwxr-xr-x 3 infouser info 256 Jun 08 13:20 /inform3
#
In another putty session I tried to login to this wpar (using its IP address), and I failed. I could login only after I got back into the wpar via the clogin than I executed the passwd command and I set the root password in the wpar. I tried again to login via wpar IP address and this time it worked. Could it be that while executing mkwpar its-P options failed? Maybe, who knows – now, I do not have time to to worry about it.
I have to load a software that arrived on a CD media. How to use a CD to load a software into a wpar? I try to mount CD drive into a file system accessible to my wpar, but the operation fails.
entaimq1:MDC:/>mount -v cdrfs -o ro /dev/cd0 /wpars/wpar/cd0
mount: 0506-324 Cannot mount /dev/cd0 on /wpars/wpar/cd0: A file or directory in the path name does not exist.
You have mail in /usr/spool/mail/root
entaimq1:MDC:/>
It could be that I did not assign the adapter and CD to the partition (lpar) controlling my wpar… Let’s do it (HMC). Guess what? After I executed cfgmgr the CD showed up and I could mount it.
entaimq1:MDC:/>lsdev | grep -i cd
cd0 Available 02-08-00 SATA DVD-ROM Drive
entaimq1:MDC:/>
entaimq1:MDC:/>mount -v cdrfs -o ro /dev/cd0 /wpars/wpar/cd0
Study the previous line to understand how mounting from an lpar and into one of its wpars. Do I have access to CD from my wpar?
# df
Filesystem 512-blocks Free %Used Iused %Iused Mounted on
Global 196608 140480 29% 1882 11% /
Global 65536 63768 3% 7 1% /home
Global 1048576 605768 43% 8787 12% /opt
Global - - - - - /proc
Global 196608 193016 2% 13 1% /tmp
Global 4194304 318032 93% 39515 51% /usr
Global 262144 126944 52% 4405 24% /var
Global 4194304 4176624 1% 4 1% /inform1
Global 6291456 6265264 1% 4 1% /inform2
Global 8388608 8353904 1% 4 1% /inform3
Global 3759968 0 100% 939992 100% /cd0
#
Yes, indeed. I got it, I see it. Can I have a peak at it content too?
# cd /cd0
# ls
.Version README.expansion.html usr
GSKit.README installp
README.expansion ismp
#
Well, well, well. Now I can proceed with software installations – this CD contains the “Expansion Pack for AIX”. This is not the right CD!
Back to reality. I have made a dynamic change to my lpar configuration – I added the adapter controlling the CD. Few of you may yet not know (I belonged to this category too) but in case of an lpar anything called dynamic is nothing short of dynamic – in absence of any further steps the dynamic changes will disappear the next time the lpar will be rebooted. So the question is this ”how to make the dynamic change a permanent one?” What I did? On HMC, I go toConfiguration -> Save Current Configuration. This operation creates a new profile. Remember to make it the Default profile so if lpar reboots it will boot with this one and not the previous profile.
[lang-en]Let’s stop the wpar.
entaimq1:MDC:/>lswpar
Name State Type Hostname Directory RootVG WPAR
------------------------------------------------------
wpar A S wpar /wpars/wpar no
entaimq1:MDC:/>stopwpar -v wpar
Stopping workload partition wpar.
Stopping workload partition subsystem cor_wpar.
0513-044 The cor_wpar Subsystem was requested to stop.
stopwpar: 0960-261 Waiting up to 600 seconds for workload partition to halt.
Shutting down all workload partition processes.
WPAR='wpar' CID=1
ID=2097153 KEY=0x4107001c UID=0 GID=9 RT=-1
ID=4194314 KEY=0x0100b0c4 UID=0 GID=0 RT=-1
ID=4194316 KEY=0xffffffff UID=0 GID=0 RT=-1
ID=4194319 KEY=0x010283b4 UID=0 GID=0 RT=-1
ID=2097168 KEY=0xffffffff UID=0 GID=0 RT=-1
wio0 Defined
Unmounting all workload partition file systems.
Umounting /wpars/wpar/cd0.
Umounting /wpars/wpar/inform3.
Umounting /wpars/wpar/inform2.
Umounting /wpars/wpar/inform1.
Umounting /wpars/wpar/var.
Umounting /wpars/wpar/usr.
Umounting /wpars/wpar/tmp.
Umounting /wpars/wpar/proc.
Umounting /wpars/wpar/opt.
Umounting /wpars/wpar/home.
Umounting /wpars/wpar.
Return Status = SUCCESS.
entaimq1:MDC:/>
Have you noticed that I stopped the wpar from its lpar?
entaimq1:MDC:/>lswpar
Name State Type Hostname Directory RootVG WPAR
------------------------------------------------------
wpar D S wpar /wpars/wpar no
entaimq1:MDC:/>
And now, let start it up.
entaimq1:MDC:/>startwpar -v wpar
Starting workload partition wpar.
Mounting all workload partition file systems.
Mounting /wpars/wpar
Mounting /wpars/wpar/home
Mounting /wpars/wpar/inform1
Mounting /wpars/wpar/inform2
Mounting /wpars/wpar/inform3
Mounting /wpars/wpar/opt
Mounting /wpars/wpar/proc
Mounting /wpars/wpar/tmp
Mounting /wpars/wpar/usr
Mounting /wpars/wpar/var
Loading workload partition.
Exporting workload partition devices.
Starting workload partition subsystem cor_wpar.
0513-059 The cor_wpar Subsystem has been started. Subsystem PID is 585748.
Verifying workload partition startup.
Return Status = SUCCESS.
entaimq1:MDC:/>
Since I did not put the appropriate stanza in the /etc/filesystems no CD got mounted, has to go to the lpar to do this again:
entaimq1:MDC:/>mount -v cdrfs -o ro /dev/cd0 /wpars/wpar/cd0
What happens when I try to unmount cd0 being inside wpar?
# umount /cd0
umount: 0506-349 Cannot unmount Global: A system call received a parameter that is not valid.
#
This can be done from the ”owning” lpar.
entaimq1:MDC:/>umount /wpars/wpar/cd0
Since nobody know where is the install CD, I have to kill the time in some other way. With the help from ftp,I install the VNC software, and after login as me (duszyk) not root, I try to start it executing:
$ vncserver
You will require a password to access your desktops.
Password:
Verify:
$ vncserver
1356-364 xauth: creating new authority file /home/duszyk/.Xauthority
New 'X' desktop is wpar:1
Creating default startup script /home/duszyk/.vnc/xstartup
Starting applications specified in /home/duszyk/.vnc/xstartup
Log file is /home/duszyk/.vnc/wpar:1.log
$
It does not work… . VNC would not start until I made some changes to the/usr/bin/X11/vncserver. I followed the advice included in this link: ”http://www.ee.pw.edu.pl/~pileckip/aix/vnc_setup.htm” – I tried Doug Ranz’ method. Following the changes, I was able to start the vncserver and connect to this ”machine” from my laptop as this images shows:
VNC
How to get rid of a wpar? Easy, you can do it like that:
entaimq1:MDC:/root>rmwpar -Fsv wpar
Well, now I have been told that this wpar host name and its IP address has to change because of some requirement. The new hostname will be a very descriptive one indeed: infaprtu001, and its IP address will be 159.14.245.56. To execute the change I will add the appropriate entry to lpar /etc/hosts and execute:
chwpar -h infaprtu001 -N address=159.14.245.56 wpar
entaimq1:MDC:/root>lswpar
Name State Type Hostname Directory RootVG WPAR
---------------------------------------------------------
wpar A S infaprtu001 /wpars/wpar no
entaimq1:MDC:/root>
I use the new address to login (with putty) into the wpar and what do I see here?
$ ifconfig -a
en0: flags=1e080863,c0
inet 159.14.245.85 netmask 0xffffff00 broadcast 159.14.245.255
inet 159.14.245.56 netmask 0xffffff00 broadcast 159.14.245.255
tcp_sendspace 131072 tcp_recvspace 65536 rfc1323 0
lo0: flags=e08084b
inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
inet6 ::1/0
tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1
$ uname -a
AIX wpar 1 6 00CD68344C00
$ hostname
infaprtu001
$
Do you understand the difference between the host and wpar name? They do not need to be the same.

 * Source Article from : Internet