Raja Sekhar Reddy Polu


AIX quick reference
 This document will not teach you AIX administration.  This reference guide help you to re-collect the output and purpose of each command.

 Also it describes some common procedures for various tasks. Note: This guide may not be covered all possible causes to fail the command but most.

******************************************************************** AIX Commands output & causes to fail: lspv:Displays information about a physical volume within a volume group o/p: hdisk0 00ce46140986255c rootvg active

lspv -l pvname:List the LVs on the PV o/p: LV NAME LPs PPs DISTRIBUTION hd6 5 5 00..05..00..00..00 lspv -p pvname:List the PP usage for that PV. o/p: PP RANGE STATE REGION LV NAME 1-1 used outer edge bnbn 2-191 free outer edge 192-192 used outer middle loglv00 lsvg:List all Volume Groups. o/p: rootvg sapvg


TYPE jfs2 jfs2log


1 ********************************************************************************

Raja Sekhar Reddy Polu ********************************************************************************

lsvg -o:List all active VGs. o/p: rootvg oravg datavg lsvg -l vgname:List all LVs in the VG. o/p: LV NAME mlv1 loglv00 TYPE jfs2 jfs2log LPs 5 1 PPs 5 1 PVs LV STATE 1 closed/syncd 1 open/syncd MOUNT POINT /mntpt N/A

lsvg -p vgname:List all PVs in the VG. o/p: PV_NAME PV STATE TOTAL PPs FREE PPs hdisk1 active 950 769 hdisk2 active 950 945

FREE DISTRIBUTION 183..16..190..190..190 190..185..190..190..190

lspv Pvname:List the characteristics of PV . 0/p: PHYSICAL VOLUME: hdisk1 VOLUME GROUP: backupvg PV IDENTIFIER: 0000c4baabfeec04 VG IDENTIFIER 0000c4ba00004c000000012aedb88aca PV STATE: active STALE PARTITIONS: 0 ALLOCATABLE: yes PP SIZE: 32 megabyte(s) LOGICAL VOLUMES: 2 TOTAL PPs: 542 (17344 megabytes) VG DESCRIPTORS: 2 FREE PPs: 477 (15264 megabytes) HOT SPARE: no USED PPs: 65 (2080 megabytes) MAX REQUEST: 256 kilobytes FREE DISTRIBUTION: 109..43..108..108..109 USED DISTRIBUTION: 00..65..00..00..00 lsvg VGname:List the characteristics of VG . o/p: VOLUME GROUP: rootvg VG IDENTIFIER: 0000c4ba00004c000000012aecbc50fc
2 ********************************************************************************

Raja Sekhar Reddy Polu ********************************************************************************

VG STATE: active PP SIZE: 32 megabyte(s) VG PERMISSION: read/write TOTAL PPs: 542 (17344 megabytes) MAX LVs: 256 FREE PPs: 480 (15360 megabytes) LVs: 9 USED PPs: 62 (1984 megabytes) OPEN LVs: 8 QUORUM: 2 TOTAL PVs: 1 VG DESCRIPTORS: 2 STALE PVs: 0 STALE PPs: 0 ACTIVE PVs: 1 AUTO ON: yes MAX PPs per VG: 32512 MAX PPs per PV: 1016 MAX PVs: 32 LTG size (Dynamic): 256 kilobyte(s) AUTO SYNC: no HOT SPARE: no BB POLICY: relocatable

reorgvg Vgname:Reorganizes the physical partition allocation policy for a volume group. reorgvg VGname LVname:Reorganizes the physical partition allocation policy for a Logical volume. cause to fail: 1.If VG is in in-active state. 2.If no free PPs(at least one) available 3.If it is snapshot volume group 4.If it is primary volume group that has a snapshot volume group. 5. Note: The relocatable flag of each logical volume must be set to y with the chlv -r command for the reorganization to take effect; otherwise, the logical volume is ignored. mkvg -y vgname -s (ppsize in MB) pvname: Creates a volume group. cause to fail: 1. If the PV is part of another active VG. 2. If the new PV violates Max PPs/pv according to the specified PP size(in case the version is 5.2 or lower) Note: t-factor automatically assign in versions 6.1 or higher extendvg vgname pvname:Adds physical volumes to a volume group. cause to fail:
3 ********************************************************************************

no PVs 4.If you attemp to split the rootvg. 7.If the VG is in in-active state. cause to fail: 1. splitvg -y vgname -c copies(1 or 2 or 3) primaryVG Purpose:Splits a single mirror copy of a fully mirrored volume group. 3. 5. cause to fail: 1.If you use -M flag.If the VG is in in-active state. cause to fail: 1. 2. cause to fail: 1. 6.3 or lower and varied on using varyonvg -M) 3. VG does not meet QUORUM requirement. including swap space. and the PVs do not support the specified LTG size.If the PV is part of another active vg.If the new PV violates Max PPs/pv 5. including swap space.If the PV to be split. If Logical Volumes are open.If the LTG size of VG is not support to the new PV to be extended. If the Volume group is SnapShot VG. 2. 2. 3. reducevg -d vgname pvname reducevg VGname PVID(incase PV is missed) Purpose: Removes physical volumes from a volume group. 4. 3.If the VG has already filled with max. if there are any physical volumes in PV_MISSING state.If it is snap shot VG. varyoffvg vgname Purpose:Deactivates a volume group. varyonvg vgname Purpose:Activates a volume group. 2.If the Primary VG has active Paging Space.Raja Sekhar Reddy Polu ******************************************************************************** 1. is not active. the mirror exists on a disk or set of disks that contains only this set of mirrors 4 ******************************************************************************** .If the specified PV has stale PPs. 4.If Logical Volumes are open. 2.(If VG is created on 5.

3.Raja Sekhar Reddy Polu ******************************************************************************** Note:The default is the second copy. 4. syncvg [-v][-l][-p] VGname purpose:Synchronizes logical volume copies that are not current. 2. 2. 3.If the VG is not in active exportvg vgname purpose:Exports the definition of a volume group from a set of physical volumes from ODm.3. If it is Scalable VG. and attempt to import into AIX 5. Note: do not attempt to import rootvg. If no enough free PPs are available in target PVs.PVs that contains this copy should be in ACTIVE state.If volume group in read-only mode 2. If the VG is in active state.2 or lower versions.If the command violate mirror strictness or affect the policy (such as -m flag 3. 2. cause to fail: 1. importvg -y vgname pvname purpose: Imports a new volume group definition from a set of physical volumes.If it BIG VG. synclvodm vgname purpose: Tries to resync VGDA. and attempt to import into AIX(R) 4.1 or lower versions. mirrorvg -c (copies 2 or 3) vgname pvname purpose:Mirrors all the logical volumes that exist on a given volume group. 5 ******************************************************************************** . --------------------------------------------------------------------joinvg VGname Purpose:Joins a snapshot volume group back into its orginal volume group. 3. LVCB and ODM cause to fail: 1.If the specified VG is snap shot VG. cause to fail: 1. cause to fail: 1. If active paging space there in VG. cause to fail: 1. If LVs are in open state.

If no free PPs are available.LV has reached to the Max No. migratepv SourcePV DestnPV purpose:Moves allocated physical partitions from one physical volume to one or more other physical volumes.ofLPs PVname purpose:Increases the size of a logical volume by adding unallocated physical partitions from within the volume group.if it is Mirrored LV. 8.If free PPS are not allocatable.VG has reached to the Max No.If it is snap shot VG. 7. 4. which has snap shot VG.If no free PPs are available. 6.ofLPs PVname purpose:Creates a logical volume. 6.If the source VG contains BLV. If VG not in active state. cause to fail: 1.If target PV is not part of same VG 3.Raja Sekhar Reddy Polu ******************************************************************************** mklv -y LVname VGname no. 3. cause to fail: 1.and you specify only one PV . 2.If VG not in active state. 3.of LPs 4. 5. 2.If the specified VG is snap shot VG. 5. cause to fail: 1.If no free PPs are available in target PV or PPs are not allocatable. 6. 5.If the specied VG is Snapshot VG.If it is Primary Vg. extendlv LVname no. logform /dev/LV purpose: To format the Log device used by this LV 6 ******************************************************************************** .If PV is not in available state.If free PPS are not allocatable. 2.If PV is not in available state.of LVs 4.

7 ******************************************************************************** . o/p: hd1:/home PV COPIES IN BAND DISTRIBUTION hdisk0 001:000:000 100% 000:000:001:000:000 lslv –m LVname o/p: fslv00:/bs LP PP1 PV1 0001 0111 hdisk1 0002 0112 hdisk1 0003 0113 hdisk1 read/write PP2 PV2 PP3 PV3 SplitLVcopy -y LVname SourceLV copies 1 or 2 Purpose:Splits copies from one logical volume and creates a new logical volume from them. 2. cause to fail: 1. o/p: LOGICAL VOLUME: hd1 VOLUME GROUP: rootvg LV IDENTIFIER: 0001834f00004c000000012a4f635e5a.8 PERMISSION: VG STATE: active/complete LV STATE: opened/syncd TYPE: jfs WRITE VERIFY: off MAX LPs: 512 PP SIZE: 32 megabyte(s) COPIES: 1 SCHED POLICY: parallel LPs: 1 PPs: 1 STALE PPs: 0 BB POLICY: relocatable INTER-POLICY: minimum RELOCATABLE: yes INTRA-POLICY: center UPPER BOUND: 32 MOUNT POINT: /home LABEL: /home MIRROR WRITE CONSISTENCY: on/ACTIVE EACH LP COPY ON A SEPARATE PV ?: yes Serialize IO ?: NO lslv -l LVname purpose: lists the disks in the logical volume.if the specified LV copy is part of Snapshot VG.Raja Sekhar Reddy Polu ******************************************************************************** lslv LVname purpose:Displays information about a logical volume.

precautions: 1.All PPs should be free. rmlv LVname Purpose:Removes logical volumes from a volume group. 3.If the File system residing on this Lv is mounted. rmlvcopy LVname copies(1 or 2) PVname Purpose:Removes copies from a logical volume. 3.Raja Sekhar Reddy Polu ******************************************************************************** Note:it is best practice to unmount file systems before attemp to splitting. cause to fail: 1. If the target PV is not part of same VG. If free PPs are not available on target PV.If the Lv resides on PrimaryVg or SnapShot VG. If the PV is required in order to maintain a volume group quorum 8 ******************************************************************************** .The hotspare disk size should be at least equal or greater than the smallest PV already in the VG. cause to fail: 1.even one PP is used then the command fails. 2. cause to fail: 1.The Pv to be replaced by spare disk should only have mirrored copies of Lvs. chpv -hn PVname purpose: removes the Physical Volume from hotspare pool chpv -vr PVname purpose: Removes a disk from the system cause to fail: 1. 2. 4. 2. mklvcopy LVname copies(2 or 3) PVname Purpose:Provides copies of data within the logical volume. 3. chpv -ay PVname purpose: changes PV allocatable state to YES chpv -an PVname purpose: changes PV allocatable state to NO chpv -hy PVname purpose: enables the Physical Volume as hotspare disk.

If the VG contains stale PPs.of LVs.each PV whith in the VG should have free PPs to accommodate extra VGDA info.LVs allowed.of LVs specified less than the current no.If any stale PPs are there in VG. 2. 4.If the factor value is beyond 64 and it is BIG VG 4.If the VG contains stale PPs. 5.If you try to change Scalable to BIG. 4.exch PV with in the Vg should have free PPs to accommodate extra VGDA info. chvg -t factor VGname purpose: changes the t-factor value of the VG.If the no. chvg -Qn VGname purpose: turn off Quorum checking on a VG chvg -Qy VGname purpose: turn on Quorum checking on a VG chvg -v No. 9 ******************************************************************************** .If it is not scalable VG 2. cause to fail: 1. chvg -G VGname purpose: changes the VG format to scalable. 2.of LVs with in the VG cause to fail: 1. chvg -ay VGname purpose: auto vary on the volume group at system start.If the no.of LVs specified beyond the Max. chvg -B VGname purpose: changes the VG format to BIG cause to fail: 1. cause to fail: 1.If it is scalable VG. 3.LVs VGname purpose: changes the maximum no. Note:VGDA resides on the edge of the disk and it requires contiguous space for expansion so this will rearrange the PPs according to that.If the factor value is beyond 16 and it is normal VG 3.If VG is in active state.s 3. so that the VG can accommodate bigger disks.Raja Sekhar Reddy Polu ******************************************************************************** 2. 3. 2.

2.Raja Sekhar Reddy Polu ******************************************************************************** Note:The last logical volume is reserved for metadata chvg -P No.PPs/VG VGname purpose: changes the no.If it is not scalable VG 2. chvg -sy VGname purpose: chvg -sn VGname purpose: chlv -n newLVname oldLVname purpose: rename the Logical Volume cause to fail: 1. Note:Changes made to the logical volume are not reflected in the file systems. o/p: Name Nodename Mount Pt VFS Size Options Auto Accounting /dev/hd4 -(#)filesystems jfs 65536 -yes no /dev/hd1 -/home jfs 65536 -yes no 10 ******************************************************************************** . lsfs Purpose:Displays the characteristics of file systems.LPs LVname purpose: chlv -sy LVname purpose: chlv -sn LVname purpose: chlv -ex Lvname purpose: chlv -em Lvname purpose: chlv -u(UpperBoundValue) LVname purpose: Note: Mirror Pool concept is available on version 6.of PPs allowed for a VG cause to fail: 1. chlv -L labelname LVname purpose: chlv -x max. Note:Mirror Pool works for only scalable VGs.If the Lv is in open state.1 and later.

compress: no.--------------. o/p: node mounted mounted over vfs date options -------.if FS entry not there in /etc/filesystems.If free PPS are not allocatable.of LVs 4. 11 ******************************************************************************** . 2.If PV is not in available state. crfs -v vfs -g VGname -a size=sizein MB -m /mnt -A yes cause to fail: 1.-----.-----------.log=/dev/hd8 mount -v vfs -o log=/dev/log /dev/LV /mnt purpose: mount the Logical Volume temporary .--------------/dev/hd4 / jfs Sep 07 16:29 rw.If it is JFS2. fs size: 65536. 3. ag: 8) mount Purpose:Makes a file system available for use.Raja Sekhar Reddy Polu ******************************************************************************** lsfs -q o/p: Name Nodename Mount Pt VFS Size Options Auto Accounting /dev/hd4 -(#)filesystems jfs 65536 -yes no (lv size: 65536. bf: false. 2. crfs -v vfs -d /dev/LV -a log=/dev/log -A yes -m /mnt Purpose: create a file system and adds a file system entry in to /etc/filesystems file.If the LV is in read-only mode 3.log=/dev/hd8 /dev/hd2 /usr jfs Sep 07 16:29 rw. 2. nbpi: 2048. mklv -y logname -t vfslog VGname LPs PVname purpose: create a Logical Volume mount /mnt cause to fail: 1.If no free PPs are available.if the file system name already exists in /etrc/filesystems file. frag size: 4096. 3. cause to fail: 1.--------------.VG has reached to the Max No.If logdevice not available. the minimum LV size should not be less than 16Mb.

lsps –a purpose: shows the paging space details o/p: Page Space Physical Volume Volume Group Size %Used Active Auto Type 12 ******************************************************************************** .66 45% 1705 11% / /dev/hd2 1184. If it is JFS2 filesystem exists in 5.Raja Sekhar Reddy Polu ******************************************************************************** 5. cause to fail: 1.If no free PPs are available. 5.43 57% 22672 8% /usr chfs -A [yes/no] /mnt chfs -a log=/dev/log /mnt purpose: change the log device for the file system chfs -m /newmntNAME /oldmntNAME purpose: change the file system name. If VG not in active state.If /tmp is full. chfs -a size=-sizeinMB /mnt purpose: lower the file system size dynamically.If free PPS are not allocatable. 3.If data is filled up . If the specied size is less than 16Mb and it is JFS2 7. 4. 3. If VG not in active state.2 or lower versions. If it is JFS filesystem 2. cause to fail: 1. chfs -a size=+sizeinMB /mnt purpose: increases the file system size dynamically. 5. 4. 2.If PV is not in available state.00 519.If you try to reduce the Fs for less than PP size. umount /mnt df -m purpose: shows the mounted file systems usage details o/p: Filesystem MB blocks Free %Used Iused %Iused Mounted on /dev/hd4 32. 6.00 17.

If free PPs are not allocatable. cause to fail: 1.. 2. mklv -y swapname -t paging VGname LPs PVname chps -ay swapname chps -an swapname chps -s (no.of 4MB blocks) swapname purpose: increase the size of paging space.If /tmp is full. cause to fail: 1.of 4MB blocks) swapname purpose: decrease the size of paging space.If the space space has data. swapon /dev/swapname swapoff /dev/swapname cause to fail: 1.of 4MB blocks) -a -n VGname PVname purpose: create paging space.Raja Sekhar Reddy Polu ******************************************************************************** hd6 hdisk0 rootvg 512MB 1 yes no lv lsps –s purpose: shows the paging space usage summary.If the space space has data. cause to fail: 1.If free PPs are not allocatable.If no free PPs available in VG 2. and no free space space available on other Paging spaces 2. o/p: Total Paging Space Percent Used 512MB 1% mkps -s (no.If no free PPs available in VG 2. 3. fuser -uk /mnt purpose: kill the user references using this file system.If /tmp is full. 13 ******************************************************************************** . chps -d (no. and no free space space available on other Paging spaces.

fsck -y/-n /mnt lsconf/prtconf –m purpose: shows physical memory size lsconf/prtconf –k purpose: shows kernel type lsconf/prtconf –s purpose: shows CPU lock speed lsconf/prtconf –c purpose: shows CPU type getconf –a purpose: shows system configuration variable values.Check and repair inode allocation map *** Phase 5 .Process remaining files *** Phase 4 .Initial inode scan *** Phase 2 . diagnostics and vital product definition info rmdev -l CuDv purpose: change the device state from available to defined. 14 ******************************************************************************** . lscfg –v purpose: Display Vital Product Data of the customized device.Raja Sekhar Reddy Polu ******************************************************************************** fuser -uckx /mnt purpose: kill the kernel references using this file system. *** Phase 1 .Process remaining directories *** Phase 3 . o/p: The current volume is: /dev/jeelv Primary superblock is valid.Check and repair block allocation map File system is clean. lscfg purpose: To display config. fsck /mnt purpose: check the file system integrity . rmdev -dl CuDv purpose: delete the device definitions from ODM customized database.

0% packet loss round-trip min/avg/max = 0/0/0 ms traceroute hostname/ip nslookup hostname/ip lsattr -El CuDv purpose: shows attributes of customized device . lsdev -Cc disk 15 ******************************************************************************** . PING Statistics---7 packets transmitted. o/p: PING 192. 7 packets received.Raja Sekhar Reddy Polu ******************************************************************************** mkdev -l CuDv purpose: To change device from defined state to available state cfgmgr –v cfgmgr -l vscsi0 purpose: To configure the components connected to the vscsi0 interface host hostname/ip purpose: Resolves ip to host name (from /etc/hosts file) and vice versa. lsdev –PH purpose: To lists all supported devices lsdev –CH purpose: list all customized devices. ping -c 1 hostname/ip purpose: test the connectivity between two machines with in the network.1. lsdev -p CuDv purpose: shows child devices of the specified customized device.1. lsdev -C -c classname lsdev -P -c classname lsdev -l CuDv -F parent purpose: shows parent device of the specified customized device.9): 56 data bytes 64 bytes from 192.168.9: (192.168.9: icmp_seq=0 ttl=255 time=0 ms ----192.

255 lo0: flags=e08084b<UP. o/p: en0: flags=4e080863.LOOPBACK.> inet 127.1.SIMPLEX.0 16 Bit LVD SCSI Disk Drive hdisk1 Available 10-80-00-4.0.80<UP.0 IPv4 Alias including Subnet Mask alias6 IPv6 Alias including Prefix Length arp on Address Resolution Protocol (ARP) mtu 1500 Maximum IP Packet Size for This Device netaddr 192.168.BROADCAST.RUNNING.255.0 Subnet Mask state up Current Interface Status lsattr -El sys0 -a realmem o/p: realmem 1048576 Amount of usable physical memory in Kbytes False lsattr -El mem0 o/p: goodsize 1024 Amount of usable physical memory in Mbytes False size 1024 Total amount of physical memory in Mbytes False ifconfig –a purpose: shows all interfaces configuration details.1 netmask 0xff000000 broadcast 127.GROUPRT.255 inet6 ::1/0 16 ******************************************************************************** True True True True True True True True .255.SIMPLEX.CHAIN> inet 192.7 netmask 0xffffff00 broadcast 192.0.NOTRAILERS.168.BROADCAST.255.MULTICAST.7 Internet Address netaddr6 IPv6 Internet Address netmask 255.64BIT.168.0 16 Bit LVD SCSI Disk Drive lsattr -El ent0 purpose: list attributes of ethernet adapter ent0 lsattr -El en0 purpose: list attributes of an interface en0 o/p: alias4 192.PSEG.1.Raja Sekhar Reddy Polu ******************************************************************************** o/p: hdisk0 Available 10-80-00-2.GR OUPRT.1.MULTICAS T.7.

Raja Sekhar Reddy Polu ******************************************************************************** tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1 ifconfig InterFace purpose: shows all interfaces configuration details. ifconfig InterFace up purpose: activates the interface for use. chdev -l inet0 -a hostname=hostname purpose: change the host name permanently. chdev -l InterFace -a netaddr=ip -a netmask=ip purpose: bind the IP address to an interface permanently. ifconfig InterFace down purpose: disable the interface for use ifconfig InterFace detach purpose: Removes interface card from the network interface list Ifconfig InterFace delete Purpose: deletes primary IP address of an interface. ifconfig InterFace inet ip netmask ip purpose: bind the IP address for an interface as primary IP and it is temporary.netmask purpose: delete the specified alias IP address. ifconfig InterFace inet ip netmask ip alias purpose: define alias IP address for an interface. Ifconfig InterFace inet delete Purpose: deletes the specified IP address of an interface. Ifconfig -a -d Purpose: shows all interfaces that are down. chdev -l InterFace -a alias4=ip.netmask purpose: define alias IP address permanently. 17 ******************************************************************************** . chdev -l InterFace -a delalias4=ip.

Raja Sekhar Reddy Polu ******************************************************************************** chdev -l ent0 -a media_speed=Auto_Negotiation –P purpose: change media_speed attribute value to Auto_Negotiation entstat -d ent0 o/p: IBM 10/100 Mbps Ethernet PCI Adapter Specific Statistics: -----------------------------------------------Chip Version: 26 RJ45 Port Link Status : up Media Speed Selected: Auto negotiation Media Speed Running: 100 Mbps Full Duplex lssrc -g ResourceGroup lssrc -s SubSystem lssrc -a o/p: Subsystem Group syslogd ras sendmail mail portmap portmap inetd tcpip startsrc -g ResourceGroup ex: startsrc -g nfs startsrc -g portmap startsrc -g tcpip startsrc -g nfs stopsrc -g ResourceGroup ex: stopsrc -g nfs stopsrc -g portmap stopsrc -g tcpip stopsrc -g nfs startsrc -s SubSystem ex: startsrc -s inetd startsrc -s portmap startsrc -s automountd stopsrc -s SubSystem startsrc -t SubServer 18 ******************************************************************************** PID 9288 9546 5572 7528 Status active active active active .

4.168.daytime *.7 netstat -I en0 exportfs –a purpose: exports all file systems in /etc/exports file.* LISTEN tcp 0 0 *.35 en0 1500 192.smtp *.97. Exportfs Purpose: shows exported file systems list.rw /jeefs exportfs -i /mnt purpose: exports file system temporary.* LISTEN tcp 0 0 *.ac. exportfs -u /mnt 19 ******************************************************************************** ex: (state) Ipkts Ierrs Opkts Oerrs Coll 8107 0 4143 0 0 8107 0 4143 0 0 .* LISTEN netstat -i purpose: shows interface statistics.Raja Sekhar Reddy Polu ******************************************************************************** startsrc -t telnet startsrc -t ftp stopsrc -t SubServer startsrc -g ResourceGroup -h hostname refresh –s inetd purpose: refresh inetd after changes to inetd.168.ftp *. o/p: /bs -sec=sys:none. o/p: Name Mtu Network Address en0 1500 link#2 0.* LISTEN tcp4 0 0 *.97.conf netstat –a purpose: To show the state of all sockets o/p: Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address tcp4 0 0 *.telnet *.1 192.1.

NFS mount types: Explicit mount: mount hostname:/mnt /Localmnt Pre-Defined mount: crfs -v nfs -d /remotemnt -a nodenmae=hostname -m /Localmnt Automount :( here /etc/mapfile is used as mapfile) steps: /etc/auto_master format: /LocalDir mapfile(Indirect Map) /mapfile(Direct Map) /etc/mapfile format: LocalDir -rw.soft. o/p: export list for aix7: /bs (everyone) /jeefs (everyone) showmount o/p: aix6 aix8 showmount -a o/p: aix6:/abc aix6:/mpt1 aix8:/abc exportfs –ua purpose: unexports all file systems in /etc/exports file.hard.intr hostname:/mnt(Indirect Map) /LocalDir -rw.Raja Sekhar Reddy Polu ******************************************************************************** purpose: unexport file system temporary.nointr hostname:/mnt(Direct Map) 20 ******************************************************************************** . showmount -e hostname purpose: shows exported file systems of specified machine.

sysdumpdev -p PrimaryDumpDevice purpose: change the primary dump device temporary. o/p: Device name: /dev/hd6 Major device number: 10 Minor device number: 2 Size: 26453504 bytes Uncompressed Size: 168896125 bytes Date/Time: Mon Sep 6 10:15:13 CDT 2010 Dump status: 0 dump completed successfully 0481-195 Failed to copy the dump from /dev/hd6 to /var/adm/ras. Note: primary dump device must be part of rootvg.Raja Sekhar Reddy Polu ******************************************************************************** sysdumpdev –l purpose: displays current dump destination o/p: primary /dev/hd6 secondary /dev/sysdumpnull copy directory /var/adm/ras forced copy flag FALSE always allow dump TRUE dump compression ON sysdumpdev –L purpose: displays information about the previous dump. o/p: 0453-041 Estimated dump size in bytes: 36490444 sysdumpdev -d CopyDir name purpose: change the copy directory sysdumpdev -P -p PrimaryDumpDevice purpose: change primary dump device permanently. 21 ******************************************************************************** . sysdumpdev -P -s SecondaryDumpDevice purpose: change the secondary dump device permanently. sysdumpdev –e purpose: estimates dump size of the current system in bytes.

/usr/lib/ras/dumpcheck -p purpose: To check whether the copy directory has enough free space to accommodate dump data or not.Raja Sekhar Reddy Polu ******************************************************************************** sysdumpdev -s SecondaryDumpDevice purpose: change the secondary dump device temporary. Ctrl-Alt-NumPad2 to write to the secondary dump device. sysdumpstart -s purpose: initiates dump to the secondary dump device. errpt purpose: displays summary errorlog repoprt. cause to fail: 1. sysdumpstart -p purpose: initiates dump to the primary dump device. errpt –a -d H/O/S/U -T PEND/PERM/PERF/INFO/TEMP/UNKN errpt -a -s MMDDHHmmYY -e MMDDHHmmYY errpt -j ErrorID errpt -i errlogPath 22 ******************************************************************************** . If the target directory is not having enough free space to store dump. o/p: IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION 1BA7DF4E 0907163110 P S SRC SOFTWARE PROGRAM ERROR BA431EB7 0907163110 P S SRC SOFTWARE PROGRAM ERROR errpt –a purpose: displays detailed errorlog report. sysdumpdev –K purpose: enable key sequence Note: Ctrl-Alt-NumPad1 to write to the primary dump device. 2. sysdumpdev –z purpose: To determine a new system dump occurred savecore -d DirName purpose: to save the dump from dump device to a file.

chpv -c PVname purpose: clear the boot image 23 ******************************************************************************** . o/p: Error Log Attributes -------------------------------------------Log File /var/adm/ras/errlog Log Size 5242880 bytes Memory Buffer Size 32768 bytes Duplicate Removal true Duplicate Interval 10000 milliseconds Duplicate Error Maximum 1000 /usr/lib/errdemon -i errlogPath /usr/lib/errstop Purpose: stops error logging. bosboot -a -d /dev/ipldevice purpose: creates complete boot image on a Physical VBolume. bootlist -m normal –o purpose: displays bootlist o/p: hdisk0 blv=hd5 hdisk1 cd0 ent0 bootlist -m normal -o DevicesList purpose: change bootlist.Raja Sekhar Reddy Polu ******************************************************************************** errlogger "string" /usr/lib/errdemon Purpose: starts the errdemon for error logging.If you try to create boot image for the PV. 2. /usr/lib/errdemon -l Purpose: display error log attributes. which doesn't have hd5.If the specified Pv is not part of rootvg. cause to fail: 1.

bootinfo -s PVname purpose: shows size of the disk. lslpp –h purpose: shows history of the filesets (installed date) emgr -l emgr -e APAR emgr -r -n APAR lppchk –v purpose: checks integrity of the filesets and displays broken filesets. o/p: run-level 2 Sep 07 16:30 2 0 S init [0123456789abchSsMmq] lsitab -a o/p: init:2:initdefault: cron:23456789:respawn:/usr/sbin/cron lsitab init lsslot -c slot purpose: displays available hot pluggable logical slots. lsslot -c pci purpose: displays available hot pluggable pci slots. who –r purpose: shows current run level of the system. 24 ******************************************************************************** .Raja Sekhar Reddy Polu ******************************************************************************** bootinfo –b purpose: identifies the last bootable disk. installp –C purpose: clears broken filesets. lslpp -w filename purpose:Lists fileset that owns this file. lslpp -l purpose:Displays the name. most recent level. savebase -d (/dev/pv) purpose: Saves customised ODM info onto the boot device. state. and description of all filesets.

Raja Sekhar Reddy Polu ******************************************************************************** installp -c all[fileset name] purpose: commint all apply mode filesets.list(have list of filesets to be commited) purpose: reject current applied filesets. Cause to fail: This process may get fails because of mksysb image file size violates the fsize svalue.tar dirname purpose: extract archive file. mksysb -i -e /mntpt/filename purpose: create rootvg backup to the file.data file lsmksysb -l -f backup filename lsmksysb -L -f backup filename lsmksysb -f backupfilename 25 ******************************************************************************** .tar dirname purpose: create archive file tar -x -v -f file. installp -a[c] -v -X -g -Y -d (dirname where filesets resides) all installp -r -f file. -------mksysb -i -e /dev/rmt0 purpose: create mksysb bootable backup file of rootvg to the tape drive.gz inutoc dirname purpose: creates Table Of Contents i. instfix -T -d /dev/cd0 instfix -i -k APAR instfix -k APAR -d /dev/cd0 oslevel oslevel -r oslevel –s purpose: to know the TL level and service pack gzip filename gunzip file. mkszfile purpose:Creates /image.e list the filesets in particular order . installp -u -f fileset name purpose: un-install filesets installp -L -d /dev/rmt0 instfix -i purpose: list installed fixes. tar -c -v -f file.

Raja Sekhar Reddy Polu ******************************************************************************** lsmksysb -r -d dirname -f backupfilename . restvg -l -f backupfilename restvg -f backupfilename pvname find / -print |backup -i -cvf /dev/rmt0 restore -x -v -q -f /dev/rmt0 alog -t boot -o alog -L alog -L -t boot Note: Default snap output directory: /tmp/ibmsupt ------------FTP commands: ------------ftp ip/hostname put get mput mget prompt hash bin ---mkuser username mkuser -a username mkgroup groupname mkgroup -a groupname rmuser username rmuser -p usernmae rmgroup groupname lsuser -f username lsuser -a attribute username lsgroup -a attribute groupname lsgroup groupname chuser attribute=value username 26 ******************************************************************************** ./filename savevg -f /mntpt/filename uservg purpose: take backup of user VG to the file.

SUID(4) : SUID upon executable files allow users to run an executable with the permissions of the executable's owner . File Descriptors: ----------------0 Standard input 1 standard output 2 standard error aclgetfile/dir acledit file/dir aclget -o outputfile file aclput -i inputfile export EDITOR=/usr/bin/vi ACL stanza: ----------ACL_type AIXC * attributes: base permissions owner(root): rwgroup(system): r-others: r-extended permissions disabled crontab -l crontab -e crontab -v file 27 ******************************************************************************** .Raja Sekhar Reddy Polu ******************************************************************************** chgroup attribute=value groupname chgrp [-R] groupname file/Dir chown [-R] owner:group file/dir newgrp groupname SVTX(1): Sticky bit enables a directory in such a way that only owner and root can remove the files with in the directory and no one else. SGID(2) : SGID upon executable files allow users to run an executable with the permissions of the executable's group.

hh Specifies the hour of the day (00 through 23).SS] The digits in the Date variable are defined as follows: CC Specifies the first two digits of the year (the century). mm Specifies the minute of the hour (00 through 59). YY Specifies the second two digits of the year. SS 28 ******************************************************************************** .Raja Sekhar Reddy Polu ******************************************************************************** crontab -r crontab -l>file crontab file crontab stanza: --------------minute hour day_of_month month weekday command These fields accept the following values: minute 0 through 59 hour 0 through 23 day_of_month 1 through 31 month 1 through 12 weekday 0 through 6 for Sunday through Saturday command a shell command atq at -l at -r JobID at -f file -t [[CC]YY]MMDDhhmm[. MM Specifies the month of the year (01 through 12). DD Specifies the day of the month (01 through 31).

/etc/tunables/nextboot This file is used to save the tunable parameter values upon next reboot. /etc/preserve. Stanza: PagingSpaceName: Dev = /dev/PagingName Auto = yes /etc/filesystems This configuration file is used to save file system details. /etc/exclude. Format: ^.Raja Sekhar Reddy Polu ******************************************************************************** Specifies the second of the minute (00 through 59)./MntName /etc/tunables This directory is used to Centralize tunable parameter values.list This configuration file is used to preserve the file content during preservation installation. /etc/swapspaces This configuration file is used to save auto active paging space details. 29 ******************************************************************************** . Confiruration files: ---------------------/etc/ftpusers This configuration file is used to restrict the specified user for FTP access to the machine.rootvg This file contains filesystem name entries and is used to void the mounted file systems during mksysb image backup. /etc/tunables/lastboot This file contains tunable parameter values upon last boot.

/etc/services /etc/hosts.Raja Sekhar Reddy Polu ******************************************************************************** Stanza: /MntPt: Dev Vfs Log Mount = = = = /dev/LV jfs/jfs2 /dev/LogName true /etc/exports This configuration file is read by exportfs command in order to export file systems/directories listed in this file.profile /etc/passwd stanza:Username:Password:uid:gid:gecos:home:shell ex:sekhar:!:204:0::/home/sekhar:/usr/bin/ksh /etc/security/passwd stanza: 30 ******************************************************************************** .rhosts /etc/resolv. /etc/hosts This configurastion file resolutes the hostname to IP address.equiv /etc/inetd.conf $HOME/.conf /etc/inittab Format of the tab: Identifier:runlevel:action:command -$HOME/.conf /etc/netsvc.

default stanza: user: pgrp = staff 31 ******************************************************************************** .97 /etc/profile /usr/lib/security/mkuser.1.168.1.Raja Sekhar Reddy Polu ******************************************************************************** prreddy: password = AOE3k6OiF87Ro lastupdate = 1283204752 flags = ADMCHG /etc/group stanza:groupName:Passwd:gid:users ex:security:!:7:root.97 unsuccessful_login_count = 0 time_last_login = 1282951965 tty_last_login = /dev/pts/6 host_last_login = 192.prreddy /etc/security/group stanza: security: admin = true /etc/environment /etc/security/environ /etc/utmp /var/adm/wtmp /var/adm/sulog /etc/nologin /etc/security/user /etc/security/login.cfg /etc/security/limits /etc/security/failedlogin /etc/security/lastlog stanza: nil: time_last_unsuccessful_login = 1282951538 tty_last_unsuccessful_login = /dev/pts/6 host_last_unsuccessful_login = 192.168.

.LVs 256 512 4096 Max.sys /etc/motd Rootvg Default filesystems Default PP sizes.Raja Sekhar Reddy Polu ******************************************************************************** groups = staff shell = /usr/bin/ksh home = /home/$USER admin: pgrp = system groups = system shell = /usr/bin/ksh home = /home/$USER /usr/lib/security/mkuser. --------------------------------------------hd1 /home PP size PV size hd2 /usr 2MB <300MB hd3 /tmp 4MB <4GB hd4 / 8MB <8GB hd5 BLV 16MB <16GB hd6 PagingSpace 32GB <32GB hd8 LogDevice hd9var /var hd10opt /opt Default VG Charecteristics: OR What is the Limitation of VG? ---------------------------VG TYPE Normal VG Big VG Scalable VG Max.PVs 32 128 1024 Max.PPs/VG 32512 130048 2097152 Max PP size 1 GB 1 GB 128 GB FileSystems differences: ------------------------ 32 ******************************************************************************** .

Filesystem size Max File size No.Query the device 2. etc.store info in ODM and turn the device to available state.Define object and it is in defined state.Load device driver on Kerner and make entry in /dev 5. etc. Advanced Diagnostics.) -> Hot Plug Task ->PCI Hot Plug Manager RAID Hot Plug Devices SCSI and SCSI RAID Hot Plug Manager -> Identify a Device Attached to a SCSI Hot Swap Enclosure Device ->select the disk steps: to add/replace a disk ->Task Selection (Diagnostics.) -> Hot Plug Task ->PCI Hot Plug Manager RAID Hot Plug Devices 33 ******************************************************************************** . 4. Service Aids. Advanced Diagnostics.) ->Certify Media steps : To identify a device(PV or ethernet) ->Task Selection (Diagnostics. Advanced Diagnostics.Get Locator Code 3.of i-nodes i-node size Fragment Data block size Compression SGID INLINE log File system size decrease JFS 1 TB 64 GB 16MB 128 bytes 512 bytes 4096 bytes Yes On No No JFS2 4 PB 4 PB Dynamic 512 bytes 512 bytes 4096 bytes No Off Yes Yes cfgmgr steps: -----------1. etc. Service Aids.Raja Sekhar Reddy Polu ******************************************************************************** Function Max. Diag --------steps:To Certify Media for PVs ->Task Selection (Diagnostics. Service Aids.

rc. Then AIX Kernel gets control. the firmware (System Read Only Storage) detects the 1st bootable device stored in the bootlist. boot commands 3. 1st 512 bytes of the hard disk loads to RAM. Bootstrap code locates the Boot Logical Volume (BLV = hd5) from the harddisk BLV contains AIX kernel. Init with rc. AIX Kernel creates a RAM File System (Rootvg not activated now). Then BLV in the RAM uncompresses and Kernel releases from it.boot Script. kernel starts init process from the BLV. init executes rc.boot script from the BLV in the RAM.e.boot script 4.Raja Sekhar Reddy Polu ******************************************************************************** SCSI and SCSI RAID Hot Plug Manager Replace/Remove a Device Attached to an SCSI Hot Swap Enclosure Device Default Port Numbers: ---------------------110 21 22 25 53 80 443 2049 23 pop3 FTP SSh SMTP DNS http https NFS telnet BLV contains: 1. rc. reduced ODM 2. Reduced ODM and Boot commands.boot 1 configures base devices. kernel EXPLAIN BOOT PROCESS • • • • • • • • • • After POST. then the bootstrap code (software ROS) i. 34 ******************************************************************************** .

unmount /var swapon /dev/hd6 i. "/usr mount /dev/hd2 in RAMFS. /var filesystems mounted on their ordinary mount points. 35 ******************************************************************************** . copy customized ODM from RAMFS to hard disk(at this stage both ODM from hd5 and hd4 are sync now) now. activate primary paging space. fsck -f /dev/hd2 i. check "/var" mount /var copycore command checks whether dump occured.e.boot 1.Raja Sekhar Reddy Polu ******************************************************************************** EXPLAIN BOOT PHASES PHASE I • • • • The init process started from RAMFS executes the boot script rc.e.e.boot script is passwd to the parameter 2 PHASE II • • • • • • • • ipl_varyon to activate rootvg fsck -f /dev/hd4 to check whether "/" unmounted uncleanely in the last shutdown /dev/hd4 is mounted on a temporary mount point /mnt in RAMFS. Because of console not available at this stage all boot messages will be copied to alog. then copy dump from primary dump device paging space (/dev/hd6) to /var/adm/ras/. restbase command copies partial image of ODM from BLV to RAMFS cfgmgr -f reads Config_rules ( which are phase=1) and activates all base devices. bootinfo -b to check last boot device  rc. mergedev is called and copy /dev from RAMFS to disk. fsck -f /dev/hd9var i. root file system from rootvg is mounted over the root file system from RAMFS and /usr .boot with argfument 3 /tmp file system is mounted. • • • • • • PHASE III • • /etc/init starts and reads /etc/inittab file and calls rc.

select software ii.multiboot iii. you listen beep sound then press F1 in order to Boot the server in to SMS mode 2. starts errdaemon for error logging.boot is has completed .boot sequence v.Insert the AIX volume 1 CD into managed CD device.Then menu icons appear as follows i. synchronization of the ODM in the BLV with the ODM from the / file system is done by savebase command. Display "system initialization completed" The execution of rc. software default iii.exit select multiboot in order to set boot list sequence.SMS menu shows you the following icons i.config ii. LED display turned OFF. syncd daemon started. After POST. ---------------BOS INSTALLATION STEPS -----------------1.utilities iv. if the file is not removed.exit 36 ******************************************************************************** . cfgcon configures console. 3. Cfgmgr command is called and all remaining devices are configured now. If any device are in missed state display it..Raja Sekhar Reddy Polu ******************************************************************************** • • • • • • • • • • Rootvg is synchronized by calling syncvg command. then login is not possible.OK prompt vi. rm /etc/nologin i. 4.instal from iv.process init will continue processing the next command from /etc/inittab. as result all stale partitions from rootvg are updated.e.

New and complete over write 2. 3.It will start loading the CD-ROM and ask you to configure the console by pressing F1 and enter.Preservation 3. 7. 9.start Maintenance mode for system recovery.change/show installation settings & install 3. ------------------------Installation Methods 1.Select 2 in-order to change the installation settings such as.Method of Installation ------------------New and complete over write OR Preservation OR Migration 2.It shows list of bootable devices.Raja Sekhar Reddy Polu ******************************************************************************** select boot sequence 5. 1. 8.then the following menu will appear 1.Migration ------------------------------------------------Difference between installation types.press 1 and enter to select the English during install.Disk where you want install ---------------------hdisk0 OR any other disk.start install now with default settings 2. 6. ----------------------------------37 ******************************************************************************** . install form the current settings stated above. Then installation starts. More options… Enable 64-bit kernel -----------------------Yes Create JFS2 file systems----------------------Yes Graphics software---------------------------Yes Note: Once you have made the required changes press 0 and enter says that. give the boot priority to CD-ROM and exit from SMS mennu.

/tmp Create filesystem /home Save configuration Restore BOS Install additional filesets Restore Configuration New&Complete over write Yes Yes Yes No Yes Yes No Preservation No Yes No No Yes Yes No Migration No No No Yes Yes Yes Yes TERMINOLOGY -----------LVM LP PP PV VG VGDA VGSA LVCB ODM SRC ARP RPC RAMFS System ROS Software ROS POST IPL BLV Runlevel : A runlevel is a software configuration of the system that allows only a selected group of processes to exist./var. patch fix fileset – A fileset is the smallest individual installable unit in the LPP. 38 ******************************************************************************** ./usr.Raja Sekhar Reddy Polu ******************************************************************************** Installation steps Create rootvg Create /.

->chlv -n newLogname oldLogname ->chfs -a log=/dev/newLogname /mntpt Note: changes been done for an LV.Acronym for Maintenance Level TL – Acronym for Technology Level.how to change the log device name assosiated to the file system. 3. doen't update /etc/filesystems. TL is set of fixes and new functions added and new hardware support. ->configure the device using cfgmgr 39 ******************************************************************************** . 2.can not change password of the user. Steps: # ln -sf /usr/lib/boot/unix_64 /unix #ln -sf /usr/lib/boot/unix_64 /usr/lib/boot/unix #bosboot -a -d /dev/iplDevice #shutdown -r 4.Raja Sekhar Reddy Polu ******************************************************************************** Package – A package is a collection of related filesets.how to change kernel type to 64 bit. ->Un-mount all file systems with in the VG. ->Make sure that the SUID bit is enabled to the /usr/bin/passwd file. if it is exists. ->swap off paging space.How to move VG from one machine to another machine. APAR PTF bff Procedures: 1. Bundle –Bundles are simply formatted lists of packages to be installed as a unit(group of LPPs) ML. ->varyoffVG ->exportVG ->remove device definations using rmdev -dl PVname ->Physically remove PVs from this machine and connect to other machine. LPP –An LPP is a group of packages that tend to fall with in one product type.

Raja Sekhar Reddy Polu ******************************************************************************** ->importVG ->run fsck on file systems ->mount file systems ->start using file systems.prreddy admin admin prg1 newfile Now the program runs as if the owner is executing hence the others can write data to the newfile. 12. 10. 1.how will you recover the root password. 2. or when you hear a double beep. SOLUTION:Enable SUID -rwsrwxrwx prreddy -rwx-----. press the F1 key repeatedly until the System Management Services menu appears. 40 ******************************************************************************** . Select the number of your preferred language and press Enter. 6. Select Install From. 4. Type 0 and press Enter. Select the AIX version icon. Insert the product media for the same version and level as the current installation into the appropriate drive. Select Multiboot. Because prg1 have exe permissions for others. Select Access a Root Volume Group. Type the number of the appropriate volume group from the list and press Enter. 8.How SUID & SGID works -> -rwxrwxrwx prreddy admin prg1 -rwx-----prreddy admin newfile Here. the prg1 is the script which is intended to write some content to the newfile . 3. Define your current system as the system console by pressing the F1 key and then press Enter. 5. Power on the machine. 6. When the screen of icons appears. 5. others can run this script but others dont have write permissions to newfile and hence it will give error . A message displays explaining that you will not be able to return to the Installation menus without rebooting if you change the root volume group at this point. Select the device that holds the product media and then select Install. 11. 9. 7. Choose Start Maintenance Mode for System Recovery by typing 3 and press Enter. 13.

use coreFTP or equivalent software to send it to dedicated TL file system in AIX machine.com/support/fixcentral 6. create a dedicated file system to store TL. type the passwd command at the command line prompt to reset the root password.ibm. 4. 41 ******************************************************************************** .Verify the TL upgradation using #oslevel –s 8. 8.toc file using inutoc.login as root #su – root. you can run this command in the directory where your filesets reside.download the Technology Level you want to upgrade from IBM web site www.Raja Sekhar Reddy Polu ******************************************************************************** 14. For example: 16. because they can not be rejected.Make sure that you backup your system using mksysb 3. and check installed fixes integrity using “lppchk –v” Note: If installed filesets are in-consistent .How will you increse file system size. Preview mode does nothing except validate whether something might be missing as a prerequisite of the update. 9. Note: TL updates always be committed. 7. 9. TL upgradation steps 1.downloaded TL is stored in local computer. 10. Changing password for "root" 18.Applying a TL will not be successes and tend to give problems. Note: It is always best practice to run in pre-view mode before the actual installation. root's New password: Enter the new password again 19. 7. bosboot –a –d /dev/ipldevice “ recreate the boot image. 3. # passwd 17.once installation completes then recycle the box. 5. shutdown –r “ re-bounce the machine.installp –c ALL “ commit all installed filesets. 15. : 2.smit update_all” use this fast path to install the updates. Select Access this Volume Group and start a shell by typing 1 and press Enter. because this process will avoid altering the other file systems size.create . At the # (number sign) prompt.oslevel –s” verify the current Technology Level and Service Pack.

bc “calculate needed free PPs to increase the file system size. What could be the problem? OR A system is echoing the ping but not able to login via telnet why ? ->tcp demons may not be working at remote host. 10. confirm whether the file systems successfully exported or not # share 3.user can able to ping to the remote host. 2. but not able to login.Raja Sekhar Reddy Polu ******************************************************************************** 1. #logform /dev/LVname 11.start the NFS daemons at server side and client side. exportfs -i /mnt (temporary) exportfs –a (permanent) Note: in order to export a file system permanently make sure that you made entry in /etc/exports file. df –m “check current file system size and LVname 2.How to configure a environment. If there are not enough free pp's then add a disk to a volume group using “extendvg VGname PVname” 5. 1.df –m “verify the new file system size. lslv lvname “check PP size and current no.of LPs and the VGname 3. startsrc -g portmap startsrc -g nfs make sure that daemons are started on the server and client. -> media_speed of ethernet adapter may not be synchronizing between client and remote host. 6.chfs -a size=+size in MB “increase the file system size.. confirm that free PPs are available using “lsvg VGname” 4.explicit mount mount hostname:/mnt /Localmnt 42 ******************************************************************************** . lssrc -g portmap lssrc -g nfs Note: portmap daemon must starts before starting nfs daemons. 9.export the file systems that need to be remotely available.mount the exported file systems on the remote machine(client) i.How to format inline log device.

2.sysdumpdev –l”check the primary dump device and copy directory.If NFS Mount failes to mount with following error message RPC: 1832-019 Program not registered : how will you troubleshoot it. 3./usr/lib/ras/dumpcheck -p” to see the estimated dump size and copy directory size.hard.sysdumpdev –e”see the estimated dump size OR 3. 4. 43 ******************************************************************************** . 5. auto mount add entry to the /etc/auto_master file and respective map file. 1.calculate whether dump device and copy directory has enough space to store dump data.sysdumpdev –L”see last dump status.Raja Sekhar Reddy Polu ******************************************************************************** ii.soft. Steps: #stopsrc –s nfs #stopsrc –s portmap #startsrc –s portmap #startsrc –s nfs 14.nointr hostname:/mnt(Direct Map) 12 How to determine the tape block size #tcopy /dev/rmt0 13. 6.How will you initiate system dump.sysdumpstart -p” initialize the system dump. pre-define mount crfs -v nfs -d /RemoteMount -a nodename=hostname -A yes -m /LocalMnt iii.if free space is not enough increase the corresponding file system size and corresponding LV size for dump device.intr hostname:/mnt(Indirect Map) /LocalDir -rw. steps: /etc/auto_master format: /LocalDir mapfile(Indirect Map) /mapfile(Direct Map) /etc/mapfile format: LocalDir -rw.

Solution: o o Maximum number of LPs for the logical volume has been exceeded . Mount the volume 1. Move the files from the old file system (/usr/shareold) 1. Create the file system 1.| (cd /usr/sharenew.Procedure to reduce the size of a file system(JFS) . mount /usr/sharenew 3. then check the dump status using “sysdumpdev -L” 15. Error Message: 0516-787 extendlv: Maximum allocation for logical volume <LV_Name> is 512. cd 4.system will re-bounce.Raja Sekhar Reddy Polu ******************************************************************************** 7. rmfs /usr/shareold 6. Unmount the file systems 1. Remove the old file system and it's logical volume 1. umount /usr/sharenew 2. while extending the file system size it showing the error like below how will you troubleshoot.Procedure to remove a file system 1. Unmount the filesystem using “umount /mnt 2. cd /usr/shareold 2. tar -cvf . change the file system name 44 ******************************************************************************** . crfs -v jfs -m /usr/sharenew -g rootvg -a size=8192 2.must increase the allocation Calculate the number of LPs needed = LV Size in MB / LP size in MB chlv -x <new_max_lps> <logical_volume> 17. tar xvf -) 3. rmfs /mountptname 16. umount /usr/shareold 5. this makes a logical volume in the root volume group of 4MB that uses jfs 2.shareold is 8mb and needs to be reduced to 4mb 1.

df /<MOUNTPOINT> --> verifies the mount and the size of the new filesystem 8. <size of lv in MB>/<size of PP in MB> 4. mount /<MOUNTPOINT> --> mounts the new fileystem 7.A system is able to ping within the network but not outside why ? Check default gate way address 20. chfs -m /usr/shareold /usr/sharenew 7.Check to see if all of the logical volumes in a volume group are mirrored lsvg -l VGname 19. bc 2. Delete the temporary mount point 1. Mount the new filesystem 1. quit 4. mklv -y "<LV_NAME>" <VG_NAME> <# of LPS> --> creates the logical volume 5. Check the ownership and permissions of the new mount point ls -ld <mountpoint> chown owner:group <mountpoint> chmod XXX <mountpoint> If mirroring is in effect. rmdir /usr/sharenew 18. then mirror this logical volume to another disk (original and 1 mirror): o mklvcopy -sy <LV_NAME> 2 o o o 2. 10. lslv in similar logical volumes to determine if mirroring is in effect 3. creates the mountpoint and puts it in /etc/filesystems 6. scale=2 3. mount /usr/shareold 8. lsvg to determine the size of the PP 2.Raja Sekhar Reddy Polu ******************************************************************************** 1.How will you log in or start the system in what mode if you don’t know the root password? 45 ******************************************************************************** . crfs -v jfs -d <LV_NAME> -m /<MOUNTPOINT> -A yes --> makes the filesystem. Calculate the number of PPs needed for the logical volume 1.Procedure to create Logical Volume and filesystem in a volume group using JFS: 1.

mkvg -y "<VG_NAME>" hdisk# --> creates the volume group on the named hard disk 4.What is ip address and subnet means ? IP address: IP address is the length of 4 octates logical address to identify a machine with in the network. lspv “ to make sure that the PV is not part of any VG 3. subnet: subnet divide a single network into multiple logical networks to allow multiple systems to share the same internet address class.Procedure to add a disk to a volume group (extend the volume group) OR How do u add a new disk in VG? 46 ******************************************************************************** .There is too much of processor utilization what could be possible reason? Due to interrupts due to more i/o operations and waiting for i/o request 23. What is a sticky bit what is the effect on file and directory ? Sticky bit enables a directory in such a way that only owner and root can remove the files with in the directory and no one else. lsdev -C -c disk -> lists available disks (and the hdisk#) on the server 2. Subnet mask: subnet mask let the operating system to identify host part and the network part of the IP address 22. 24. varyonvg <VG_NAME> --> activates the volume group 25.Procedure to create a volume group: OR Tell me Steps to configure the VG? 1. Sticky bit enables a file in such way that.Raja Sekhar Reddy Polu ******************************************************************************** Maintenance mode 21. once the file is loaded in to the RAM it will not be freed out even though the execution has completed.

• File system consistency more due to logging facility. inode.LP 27. extendvg <vg> <disk#> lsvg -p <vg> “Verify the disk has been successfully added to the vg 26. • LVM not supports to decrease the size of JFS file system. data block.VG. so that you can backup the snapshot without worrying about racing ongoing activity • High data availability due to mirroring technique.How do u find the fix is installed? instfix -i 29.Describe about LVM Adva/Dis.Procedure to mirror the rootvg: 1. allocation map 30. • Disadvantages: • Changes been made to the Logical Volume will not effect the file system.Raja Sekhar Reddy Polu ******************************************************************************** • • • • lspv “to make sure that the PV is not part of any VG lsvg VGname “check current number of PVs with in the VG. fragments.PP. lspv --> verify that the hdisk has been successfully added to the volume group 47 ******************************************************************************** . extendvg rootvg hdisk<number> --> add the hdisk to the volume group 3.Attributes of FS? Super block.What are the Attibutes of LVM? OR Components of LVM LV. • 28.PV.Adv? Advantages: The ability to make instantaneous snapshots of entire Volume Group. lspv --> determine the hdisk# 2.

/usr/lib/objrepos 3.Reasons for upgrading the TL 1. chvg -Q 'n' rootvg --> change the quorum so that the vg will stay active if one of the 5. bosboot -a --> update the boot image information bootlist -m normal -o hdisk0 hdisk1 --> create a new bootlist bootlist -m normal -o --> verify the bootlist is correct 31. 35. How will you fire mksysb. 2. ->/etc/filesystems is missing or there is no entry in /etc/filesystems. 6.. To remove an active paging space "paging00" 1. 8.when your TL is going out of the available support period. The ODM object clases are held in three repositories 1. mirrors fail mirrorvg -S -c 2 rootvg --> mirror all of the logical volumes in the volume group lsvg -l rootvg --> verify successful mirroring (pps will appear "stale" until synchronization is complete). 7. /etc/objrepos 2.Raja Sekhar Reddy Polu ******************************************************************************** 4. But the df command is working and display normal file systems. Where ODM Object Class files are stored? This can be defined in /etc/environment file. 48 ******************************************************************************** . How to mirror logical volume? Mklvcopy LogicalVolumeName syncvg VolumeGroupName Numberofcopies 32. Deactivate the paging space using “ swapoff /dev/PagingName “commnad 2. 36. 9.you want to test a new distribution level. /usr/share/lib/objrepos 34. remove the paging space using rmps command 33.you want to use the new features and functionality of TL 3.Running the lsfs command fails to display any output.

BOS boot image. press 1 and enter to select English as language during install. How to restore mksysb image from tape drive. 4. 1. After they have renamed it to TL. press F1 and enter to configure console 5.rootvg 3. where it need to be restored 9. TL is acronym for Technology Level. IBM were using this terminology to release updates. Describe the mksysb tape data layout OR What are the mksysb components.make sure that tape drive is attached to the machine 2.mksysb –i –e /dev/rmt0 Note: this process may get fails because of mksysb image file size violates the fsize svalue.select multibootbootsequence set boolist to tape drive and exit 4.then server starts booting from tape. 37.How will you determinbe how much free /tmp needed to run mksysb bosboot –q -=a –d hdisk0 38.toc rootvg data BOS Boot Image 49 ******************************************************************************** . select “install from the system backup” 8. mkinsttape image. 3.lsvg -l rootvg “ 2. mksysb has 4 important components: 1. 2. 40. Differentiate the terminologies ML and TL ML is acronym for Maintenance Level./etc/exclude.provide the options such as disk. 39. and they have included service packs from that time on wards.Raja Sekhar Reddy Polu ******************************************************************************** 1.select “starts maintenance mode for system recovery” 7. dummy. 6.boot the server in to the SMS mode.then it will starts restoring data from tape to disk. 3.

dummy. ./image./bosinst. It contains kernel device drivers.data This file has the information regarding sizes. will be backed up. how to run 64-bit application on 32-bin machine -----------------------------------------------enable 64-bit application using smitty smitty->System Environments->Enable 64-bit Application Environment->Enable Now -------------------------------------- 50 ******************************************************************************** . It also uses block size of 512KB. BOS is Base Operating System. It uses block size of 512 KB. This is used to tailor the mksysb to adjust to the target system. 41. Whatever filesystems are mounted at the time of mksysb image. maps and mount points of logical volumes(LVs). It can be used to exclude certain files and directories from mksysb backup. It’s used so that mksysb tape will have same number of images as on BOS install tape. ./tapeblksz This contains block size on tape which was set at the time of taking backup. rootvg Data This has all of the data of rootvg.Raja Sekhar Reddy Polu ******************************************************************************** This is the first image in mksysb backup.toc It contains dummy Table of Contents. It has 3 important files: .data This file contains customized BOS install procedure. This file can also be customized using mkszfile command. names. mkinsttape Image mkinsttape is the second image in mksysb backup. Its used to boot the system from mksysb image.

Ethernet adapter replacement procedure. 43. ->not enough free space in the /var file system. how will you troubleshoot.mksysb image restore from tape fails.Explain different phases in Altdisk 51 ******************************************************************************** . Mksysb image restore fails through NIM master but ping is success. ->user reached max.number of files limit. 49. whith in the subnet one machine is working and the other not. ->account got expired.System prevents user logins what could be the reason. ->ifconfig en0" determine everything is fine. ->rmdev -dl en0" remove interface definations from ODM ->rmdel -dl ent0" remove adapter definations from ODM ->remove and replace the new adapter ->cfgmgr ->lsdev -Cc adapter" check the adapter is available ->lsdev -Cc if" check the interface is available ->chdev -l ent0 -a netaddr=ip -a netmask=ip " configure the interface. ->user account got locked. ->check the tape block_size attribute and set it to 0. 48. ->rlogin set to false(in case of remote login).user can not create file what could be the reason. 44. 45.Raja Sekhar Reddy Polu ******************************************************************************** 42. ->ifconfig en0 down" in-activate the interface ->ifconfig en0 detach" remove the interface configuration.user can not login to the machine. ->unsuccessful_login_count crossed the login retries. ->password got expired. ->dont have enough permissions to the directory. ->/etc/passwd or /etc/security/passwd file missing. Check MAC address of these interfaces using arp -d hostname 47. ->system has /etc/nologin file. -> 46. ->oslevel of mksysb image is greater than the oslevel of NIM master..

lslpp -L bos.confirm that network is configured lsnim -c network 52 ******************************************************************************** .rte “check the fileset installed or not . bootable instances of the AIX OS within the same root volume group (rootvg).nim.spot bos. what is multibos Multibos concept create and maintain two separate. What do I do? # redefinevg -d hdisk0 rootvg # synclvodm -Pv rootvg 51.sysmgt. if not install it. PHASE I: create clone of the rootvg PHASE II: install any software updates PHASE III: set bootlist order and rebounce the machine if.master bos.rte 3. 53.make sure that the PV should have equall size or greater than rootvg disk. I ran an 'alt_disk_install –X rootvg '/ 'alt_rootvg_op –X rootvg' by mistake and when i run lspv.sysmgt. my rootvg entry is gone.sysmgt.nim. PHASE I: alt_disk_install -C -P1 PVname PHASE II: alt_disk_install -C -P2 -b update_all -I agXY -l /DIRname PVname PHASE III: alt_disk_install -C -r -P3 PVname 4. specified. 2. 52.configure nim network Smit nimconfigure NIM environmentadvanced configurationconfigure NIM master onlygive network name and the interface name 3.How will you Clone a rootvg and up grade the TL using alternate disk installation 1.clent smit install 2.lspv “confirm that rootvg changed to old_rootvg 5. will you configure NIM master 1.install the pre-requisites from volume 1 bos. execute alt_disk_install command in three phases.alt_disk_install.bootinfo –b “confirm that the system is booted from alt disk.lspv “check for PVs available.nim. installp -cYgvX -d /dev/cd0 bos..Raja Sekhar Reddy Polu ******************************************************************************** Altername disk installation will be done in three phases. 50.alt_disk_install.

3. 53 ******************************************************************************** .chec k installation progress of the client machine.define machine Smit nimperform nim administrative tasksmanage machinesdefine machine 7. # lsnim -l MachineName 54. • Make sure that you have created SPOT for the mksysb resource • Extract the bosinst_data file from mksysb image and edit the options for preprompted installation by putting “PROMPT=no” • Add bosinst_data to the resource list. 2.perform TL up gradation on client. 8.Raja Sekhar Reddy Polu ******************************************************************************** 4.define resources Smit nimperform nim administrative tasksmanage resourcesdefine resourceselect resource create resource by filling the options.How will you do TL up gradation on client machine using NIM 1.define a machine.rebounce the server through nim smit nimperform NIM administrative tasksmanage machinesperform operations on machines select machineselect reboot 55. 5.lpp_source. 5. • Make sure that NIM master have resolution in /etc/hosts for client machine • Define machine • Make sure that you have created mksysb resource. I make sure that the NIM master oslevel is equal or greater than the oslevel of the Server.how will you do “non-prompted” installation on NIM client using PUSH method. 7. Make sure that server is in up 6. bring it to the NIM master and keep in the dedicated file system. • Perform bos_inst operation on client machine using PUSH method.accept the licence. Smit nimperform NIM software installation and maintenance tasksinstall and update softwareupdate installed software to latest level(update all)select hostname.define lpp_source resource for TL. 4. • Make sure that client machine have /etc/niminfo file reflecting correct NIM master information. Then download the latest TL .perform bos_inst operation on client machine either PULL or PUSH method.

Raja Sekhar Reddy Polu ********************************************************************************

Now, the client machine automatically boots with interface as first boot device and starts installation with out user intervention. 56.Create a mksysb image of remote machine using NIM 1.login to the NIm master 2.define the machine as NIM client. Add resolution entry in to the /etc/hosts file. Smit nimperform NIM administrative tasksmanage machines define machinegive machine name and the interface details 3.confirm that the machine added as NIM client lsnim -c machines 4.make sure that you have file system(/export/images) to store mksysb image. 5.fire the mksysb on NIM client Smit nim perform NIM administrative tasksmanage resourcesdefine resourceselect mksysb give Resource Name,location of resource,set ‘create mksysb image files ‘ option to yes and provide the client name. Then it will starts firing mksysb on NIM client. 57.NIM classes&objects Machines Network Master Ent Standalone Tok Diskless Fddi Dataless Atm Alternate_master Generic Resources Lpp_source Spot Mksysb Bosinst_data Script Image_data Installp_bundle Groups Mac_group Res_group

58.What is SPOT SPOT is acronym for “shared product object tree”, This is one of the NIM resource object and is having /usr content i.e binary files and library files also the kernel . This content is useful when doing BOS installation on NIM client. 59. Describe something about “non-prompted” installation using NIM. when client machine is installing through NIM mksysb resource, it will ask the user to configure the console and the language as well as the disk where to install but if If no one is on the other side making these choices, then your NIM client will patiently sit and wait at the “Please Define the System Console” prompt for all eternity. Using a bosinst_data resource

54 ********************************************************************************

Raja Sekhar Reddy Polu ********************************************************************************

will have pre-answered options. The purpose of the bosinst.data file is generally to run “nonprompted” installations. 60. How will you de-allocate resources for the NIM client. smit nim- perform NIM Administration Tasks  manage machinesperform operations on machinesselect the clientselect “reset” Note: when it is required • If you want remove the machine from client list. • If you want to allocate another resource to the client machine, make sure that you have de-allocated the resources for this client. • 61.what are the pre-requisites needed to set up a machine as NIM master. 1. bos.sysmgt.nim.master 2. bos.sysmgt.nim.client 3. bos.sysmgt.nim.spot 62. what is /etc/niminfo file. NIM uses this configuration file in-order to keep master information. On the Master : • This file is built when you first initialize the NIM environment. • This is contains master information. On the Client : • If the NIM client is up and running, and you intend to perform operations on the client (like take backups, or install maintenance) you will want to make sure this file exists. • This file contains not only hostname information for the client, but tells the client who its master is. NOTE: This also should not be edited manually. If there is incorrect information in the file, it should be removed and recreated 63. Tell me the NIM installation methods and explain those. PULL • The NIM master will setup for the install, but not initiate it. • All resources will be allocated - and the master will wait for a bootp request from the NIM client.

55 ********************************************************************************

Raja Sekhar Reddy Polu ********************************************************************************

• In order to initiate this request, the NIM client must be booted to SMS (System Management Services). At the SMS menus you can enter the IP address information, set the bootlist, and initiate the boot. • This method is required for systems that are unable to boot into normal mode, or for those systems that have no operating system on them. PUSH • The client machine must have the bos.sysmgt.nim.client fileset installed • Client machine must have /etc/niminfo file reflecting correct NIM master information. • The NIM master will reset the bootlist to reflect the network adapter defined in NIM, allocate all appropriate resources, and initiate a system reboot. • This installation method is commonly used when installing systems in a remote location using a bosinst_data resource to allow for non-prompted installations. Provided are two examples of running a push install to a NIM client. force-PUSH • The master initiates the bootlist change and reboots the client. • In this case however, the client is not necessarily configured as a client of the NIM master. • In order to accomplish this, you need to meet 2 requirements. 1. The NIM master must have ‘rsh’ permission to the client. 2. You need to have and allocate a bosinst_data resource. It doesn’t have to be for a non-prompted install or pose any sort of configuration usage for the install, but one has to be allocated 64. NIM installation encountered bootp failure, how will you troubleshoot it. • make sure that bootps deamon is running on NIM master. • check the /etc/bootptab file to confirm that, this file is having correct client information to take up bootp request. • make sure that you initiated bosinst operation on client machine. “lsnim –l clientname” and see the Cstate attribute. • Make sure that you have given corrent gate way entry. • make sure that your network is working properly Enable the bootps deamon in debug mode and see the bootp request is reaching to the NIM master or not. Stopsrc –t bootps Bootpd –s –d –d –d -d 65. When a bos_inst operation is performed on a client, what effects will occur on the NIM master.

56 ********************************************************************************

The /etc/bootptab file is updated with client information to allow the boot image to be used.<system_architecture>. A ClientName. 3.Raja Sekhar Reddy Polu ******************************************************************************** 1. This boot image is what is sent over to the NIM client during a boot/installation operation.<adapter_type> The client info files are aptly named : <clientname>.<processor>. • The format of the file name is <spotname>. 2. 67. 69. The /etc/tftpaccess. Have you raised IBM S/w call or H/w call? We raise hardware call if any hard ware defect in the server. 66. • A hard mount will wait until the system comes back online. If pageins and pageouts are more what will you do? Create one more paging space Rearrange the paging space allocation policy to outer middle I will make sure that paging spaces are not in the same disk or in the busy disk. and network adapter of the client. What is the issue with hardware device Client name Server locator code(topat id) 57 ******************************************************************************** .info file is created in /tftpboot to provide client-specific installation and configuration information in the boot environment.ctl file is modified. A link is created in /tftpboot to a boot image matching the platform type. if necessary. 68. The main purpose of this directory is to hold the boot images that are created by NIM when a boot or installation is initiated. kernel type. • This directory also holds informational files about the clients that are having a boot or installation operation performed. What is the diff b/w hard mount and soft mount? • A soft mount will return an error if the source / target system goes offline.info The NIM master will create the <client_hostnamename> file and link it to the boot image. for this we need to provide basic information such as. to allow access to the /tftpboot directory. what is the use of /tftpboot directory. • This directory should always exist on the NIM master. and then begin transferring /copying again. The file names that are generated in both cases are very descriptive file names. 4.

What are the filesets required to become a server as nim master bos. I have installed the new server with AIX 6.sysmgt. What and all resources are required to do installation? lpp_source spot 71.nim.nim. We provide this information to the ITS department..if we face any software issue.Raja Sekhar Reddy Polu ******************************************************************************** Server address Machine serial number machine type Machine model Customer name Hunt ID(team contact number) Mail id(team mail id) Contact person Severity level Support type Preferable contact (mail or call) Then .1 through NIM master. Server Locator code Server address Company name Username and password oslevel machine serial number machine model name mail id severity level support type then CE will give numeric reference code 70.sysmgt. 72.Have you done installation on the any new server? Yes.client 58 ******************************************************************************** .master bos.CE will give 7-digit alpha-numeric reference code… -----.

74.Raja Sekhar Reddy Polu ******************************************************************************** bos.nim. What is diff b/w TL and ML ML is acronym for Maintenance Level. After they have renamed it to TL. IBM were using this terminology to release updates. if you install a fileset in committed mode the old version will be remove completely and the new version will come to the functional. Ans: by using TAR command Syntax: # tar –cvf /dev/rmt0 DirName 59 ******************************************************************************** . Note: if the fileset is installing very first time and by that time the system doesn’t have any versions of this fileset then. and they have included service packs from that time on wards. How you exclude unwanted file from rootvg backup? By adding entry in the configuration file /etc/exclude. what is inline log device.how will you know ML level? # oslevel –r 77. File system is used the same LV in-order to store LV meta-data tractions./mntpt 78.How will you know fileset is in applied state or in committed state # lslpp –l FileSetName 76.sysmgt.rootvg Format : ^. 79. • Where as. TL is acronym for Technology Level. • In case the new version is not compatible the we can roll back to the previous version by rejecting the new one.backup a directory to the tape drive.spot 73. the fileset will be installed in committed mode only even though you specify apply mode. 75. • Roll back is not possible to go to the old version.what is dif b/w applied mode and committed mode and which one you will prefers? • If filesets are installed in apply mode then the current version come to the functional state and old version willl not be removed but it keeps in /usr/lpp/packageNmae DirectoryName.

3 supports 32-bit also 64-bit application. • • • • • • • AIX 6. b: tells how many threads are waiting in the wait queue.1 is 64-bit application AIX5. 81.1 appears in black letters In AIX 5.1 includes nmon tool as part of the base operating system.difference between different AIX OS versions.3 does not support to decrease the JFS2 file system size. avm: tells the average number of 4-kb pages that are allocated to paging space.Raja Sekhar Reddy Polu ******************************************************************************** 80. r: tells how many threads are waiting in the run queue.1 supports disabling jfs2 file system logging Mount -o log=NULL /mnt In AIX 6. AIX 4. 60 ******************************************************************************** .3 appears in green letters AIX 6. Explain the vmstat output o/p: System configuration: lcpu=1 mem=512MB kthr memory fre page re pi 0 0 0 0 po fr 0 0 0 0 0 0 0 0 sr cy 0 0 0 0 faults in sy cs 6983 cpu us 18 20 17 sy 69 66 70 id wa 0 14 0 15 0 13 0 13 r b avm 1 0 37677 83918 0 2 0 37479 84138 0 2 0 37480 84136 0 1 0 37480 84136 0 Kthr: 0 992 48000 0 1010 48174 7115 0 1007 47992 0 1023 48786 7090 7212 20 67 It shows how many threads are placed on various queues over the sample period. Analasys: Memory: Virtual Memory Manager controls memory and paging space on the system. AIX 6.

How will you set the memory tunable parameters vmo -o parameter=value 61 ******************************************************************************** . wa: details the % of time the CPU was idle with pending local disk i/o. id: shows % of time that the CPU is idle or waiting. sr: shows the number of pages that were examined per second by the page-replacement algorithm during the interval. with out pending local disk i/o. Page: This column shows information about page faults and paging activity. This value pi: shows number of pages paged in from paging space po: shows number of pages paged out to paging space fr: shows number of pages that were freed out by the page-replacement algorithm during the interval. cpu: us: shows % of CPU time spent in user mode. 82.Raja Sekhar Reddy Polu ******************************************************************************** fre: shows average number of free real memory pages. sy: number of system calls made to the kernel per second during the sample interval. cy: faults: in: number of interrupts made to the system per second during the sample interval . sy: this column details the % of time the CPU was executing a process in system mode. cs: number of context switches per second observed during the interval.

. 62 ******************************************************************************** .How will you monitor the performance of the system. 84. number of context switches. pageouts.What is sar command o/p: AIX aix6 3 5 0001835F4C00 System configuration: lcpu=1 00:01:45 00:01:47 00:01:49 00:01:51 Average %usr 16 23 19 19 %sys %wio %idle 69 66 66 67 15 11 14 14 0 0 0 0 09/28/10 sar command is used to monitor CPU utilization by various processes. it shows CPU utilization for kernel processes. this command describes virtual memory characteristics.Raja Sekhar Reddy Polu ******************************************************************************** 83. by looking at these values I can conclude whether memory bound there or not. idle and CPU utilization for i/o waiting. and I will check memory bound using “ vmstat “ command.by looking at these values i can come to know the total CPU utilization and if it is > 80% for single processor the system is in CPU bound. So by looking at these values I can conclude the busy % of CPU . Performance of the system may degraded due to CPU bound Memory bound Disk i/o bound Network bound so I will check the CPU bound using “ sar “ command. user processes. run queue value and blocked queue value. Such as pageins. it shows CPU utilization in kernel mode and user mode and waiting for i/o .

Yes. And for network issues using “ netstat -i” I can come to know how much the network traffic is and is there any collisions occurred .Raja Sekhar Reddy Polu ******************************************************************************** For any disk i/o performance issues.Have you ever used crontab in your office. I check “iostat” command to see which disk is operating with more i/o requests. but you can lower the priority of processes that you own.What are the LVM policies LVM supports physical volume allocation policies to better organize logical volumes for increased I/O performance 63 ******************************************************************************** .How will you alter the priority of the running process By using ‘renice’ command Syntax: #renice –n <nicevalue> PID Note: if you don’t have root authority then you can not higher the priority of the process. 89. The objective for performance tuning is to make those expectations and their fulfillment match 86. Monitoring the performance of the system dictates that the system is fulfilling the human expectations or not. 85. 87. to take the statistical information about the machine for repetitive times using nmon tool. I have submitted nmon command as cron job to run for every 10 min for one day. 88.What is performance monitoring The performance of a computer system is based on human expectations and the ability of the computer system to fulfill these expectations.What is defunct process Defunct process is the process that has completed execution. So that I got the nmon file and I brought it to the windows machine to analyze it using nmon analyzer. but still has an entry in the process table.

or disks. By using # oslevel -r out put format: VR00-TL-SP-YYWW ex:6100-02-01-0847 VR base version of the operating system TLtechnology level SPservice pack 64 ******************************************************************************** . RAID1 .How will you k now what is the machine TL level and service pack and when it is released.The basic concept of this is just keep the data in the different drives to prevent the possibility of the data loss in the case of the drives block failure. Aix supports the RAID0. what type of software RAIDs are supported on AIX and explain what each one them do. 90. .Raja Sekhar Reddy Polu ******************************************************************************** Intra policy: The intra-physical volume allocation policy describes the location of the logical volume (LV) on the disk regions. Inter policy: This policy will determine whether an LV can be extended across multiple physical volumes (PV). RAID0+1 (10)=it gives both performance as well as availability but it is expensive 91. RAID1=it is the way of having two or three copies of data for high availability requirements.and RAID10 So RAID0 =stripping(it is the way of providing high performances in large sequentially access file systems. in the data writing phase each data are chopped into small pieces called strip and these chunks are written to the different drives in parallel and in the data reading phase each datas are read from the different drives and re-assemble to the actual data.it means .

deny file. smitty is the character based interactive mode. 3. how will you control SRC daemons of remote host. 94.lockd rpc. differentiate smit and smitty smit is the graphical interactive mode.mountd biod nfsd 96.statd rpc.deny and cron.statd rpc.Raja Sekhar Reddy Polu ******************************************************************************** YY year of release WW week of release 92. 93.allow. remote host should be running with srcmstr deamon with –r flag. how will you confirm whether the server is up and running for NFS operations. tell me the reasons why you need to boot the box in maintenance mode? 65 ******************************************************************************** . unable to mount the file system what could be the cause. Tell me the daemons to be running at client side and server side in-order to use NFS services.lockd rpc. Server side: Client side: rpc.user can not use crontab what could be the cause?  if cron. can you make root user as trusted user to provide password less authentication using rlogin? Yes. 98.mount point is removed.rhosts file is read. by adding entry to the /.rhosts file.equiv file is ignored and only the /. Note: if a remote command request is made by the root user the /etc/hosts. exists and it is not empty but username entry not there  username entry been listed in cron. # rpcinfo -p ServerHostName 97. # startsrc –g ResourceGroup -h RemoteHostname Note: to do this operation. file system entry removed from /etc/filesystems 4.log device is not available 2.  cron. 1. 95. 99.allow both does not exist.

100.System initiated dump started 201 . in case of boot failure.mountd daemons not started what could be the problem? Make sure that you have /etc/exports file.Dump completed successfully 0c2 .Raja Sekhar Reddy Polu ******************************************************************************** 1. 3. 5.to run fsck on rootvg file systems. the nfsd and the rpc.mountd daemons to start. Not enough space on dump device 0c5 .mountd daemons will not start. If the /etc/exports file does not exist. corrupted JFS log.to re-create boot image.for root password recovery 2. This will allow the nfsd and the rpc. although no filesystems will be exported.Damaged boot image 223-229 – Invalid bootlist 551.Dump started 0c4 . nfsd and rpc.super block recovery for rootvg file systems.555.557 – corrupted file system.to recover corrupted ODM 4.Dump failed to start 0c9 . 66 ******************************************************************************** . ----------------------------SMITTY FASTPATHS: ---------------------------------smitty smitty smitty smitty smitty smitty smitty smitty smitty smit smitty mknfsexp chnfsexp lsmksysb restmksysb mksysb update_all remove mktcpip nim nim_alt_mksysb nim_alt_clone -----------------COMMON LED CODES: ----------------0c0 .Dump unsuccesful.

ibm.ibm.com/pseries/en_US/infocenter/base/errorsearch. ############## # USEFUL LINKS ############## http://www.org/aix/ -----------------------------------------------ALL THE BEST------------------------------------------- 67 ******************************************************************************** .jspa?forumID=747 http://www.boulder.net/ledlist.ibm.com/developerworks/forums/forum.hm http://www.org/AIX/ http://www. 553 – corrupted /etc/inittab file.perzl.net http://publib.htm http://www.com/AIXtip/ http://www.554.com/cgi-bin/ds_form http://publib16.rootvg.boulder.aixtips.Raja Sekhar Reddy Polu ******************************************************************************** 552.rootvg.556 – super block corrupted and corrupted customized ODM database.ibm.rootunix.com/developerworks/aix/ http://www.

Raja Sekhar Reddy Polu ******************************************************************************** 68 ******************************************************************************** .

Sign up to vote on this title
UsefulNot useful