Escolar Documentos
Profissional Documentos
Cultura Documentos
Q3. What are the characteristics of ODM Table and what are the operations applied on them, give
examples?
A3. 1. Object Class (odmcreate and odmdrop) like PdAt, CuDep.
2. Descriptors (queries are done on descriptors=value and command used is “odmshow”) like
uniquetype, attribute, values, name.
3. Objects (odmget, odmadd, odmdelete and odmchange).
Q4. What is the command to configure devices and where does it refer to configure them?
A4. “cfgmgr” command refers Config_Rules.
Q7. How will you change the block_size attribute of 8mm scsi tape object in ODM?
A.7 a. odmget –q “uniquetype=tape/scsi/8mm and attribute=block_size” PdAt > file
b. vi file
PdAt:
uniquetype = “tape/scsi/8mm”
attribute = “block_size”
deflt = “1024” ------- Change this value and save the file.
values = “0-245760,1” (means range of values and increment interval)
………
………
c. odmdelete –o PdAt –q “uniquetype=tape/scsi/8mm and attribute=block_size” (delete an
object)
d. odmadd file
Another way is
#odmchange –o PdAt –q “uniquetype=tape/scsi/8mm and attribute=block_size” file
Q8. What is the command to cleanup installation and how will you find improper installation?
A8. run #lslpp –L if it lists “Committing” or “Applying” or “Rejecting” or “De-installing” for long
time, run “#installp –C “ to cleanup.
Q12. What are the values of “status” in CuDv and their meaning?
A12. 0 -> Defined, 1 -> Available, 2 -> Stopped.
Q13. What are the values of “chgstatus” in CuDv and their meaning?
A13. 0->New, 1->Don’t Care, 2->Same, 3->Missing.
Q14. What are the commands to show attributes of PdAt and CuAt?
A14. lsdev –PH for PdAt and lsattr –El for CuAt.
Q15. Where will you find the major and minor numbers of device in ODM?
A15. in CuDvDr, value1 and value2.
Q21. What are the ways to boot AIX into maintenance mode?
A21. CDROM, mkinsttape, NIM.
Q23. When will you use “Access Volume Group and Start a Shell”?
Q23. When changing size of filesystem, when changing corrupted system file and when fixing corrupt
BLV through bosboot.
Q24. When will you chose “Access Volume Group and start a shell before mounting filesystem”?
A24. When repairing FileSystem through “fsck –y –V jfs2 /dev/hd4” , when fixing log volume by
“logform /dev/hs8” command, when doing bad block relocation.
Q27. Do all AIX servers have service mode, how will you check?
A27. by bootlist command.
Q42. What is the output of #uname –m and where is the output used?
A42. 0002DAAED700 here first 8 characters are machine ID and last 4 are machine model.
lsvg rootvg -> VG IDENTIFIER: 0002daae0000d7000000010d3ae8070d
# lspv
hdisk0 0002daaea620d8a6 (date/time configured) rootvg
hdisk1 0002daae1581f1d0 rootvg
hdisk2 0002daae98166b79 rootvg
#lslv hd4
LV IDENTIFIER: 0002daae0000d7000000010d3ae8070d.4 (VGID minor number)
Q49. What will you do if there is any inconsistency in VG other than rootvg?
A49. #varyoffvg homevg, #exportvg homevg, # cfgmgr , #importvg –y homevg hdisk9
Q51. What will you do when you find one copy in a disk of an LV has stale partitions.
A51. run #varyonvg VGName which calls #syncvg –v vgname and synchronize corrupt PV.
Q56. Can you varyonvg a VG if Quorum is disabled and VGDA is less than 51%?
A56. If VG is mirroed, Yes else no. We can use “-f” option that will varyonvg but PV will be in
removed state.
Disk Replacement
Q65. If an exported vg is being imported again after making changes in LVs, what option is used?
A65. #importvg –L –y myvg hdiskx (-L learning mode)
Q66. What is the name of file that includes names of files not to be taken backup.
A66. /etc/exclude.vgname
Q72. How will you determine the blocksize of tape created for mksysb?
A72. #chdev –l rmt0 blocksize=512
#tctl –f /dev/rmt0 rewind
#restore –s2 -xvfq /dev/rmt0/tapeblksz
#cat /tapeblksz
Q75. What is the name and location of similar file image.data for savevg command?
A75. /tmp/vgdata/vgname/vgname.data
Q77. How many copies are required to take online JFS2 backup?
A77. 3 copies.
Splitvg creates /fs/data filesystem for newvg, can take inode based backup and #joinvg
SnapshotVG
Q100. How to collect system information and crash dump for IBM analysis?
A100. #snap -a -o /dev/rmt0
Command used to create tape, its block size, backup /unix and /var/adm/ras/vmcore.0.Z
IBM will use kdb command to analyse.
Q109. How to run a command with specific nice value (e.g. 20+15 =35)?
A109. #nice –n -15 command&
Security
In /etc/security/user
Root:
tpath = on
tsh> ls –l
Command is not trusted
#chtcb on /usr/bin/ls (add into trusted path)
Q133. Configuration file for Syslog Daemon and change in host file.
A133. /etc/syslog.conf and loghost entry in host file
Q146. How will you find those logins which were not successful?
A146. /etc/security/failedlogin
Q147. Which command you use to cleanup old files?
A147. skulker removes files in /tmp, a.out, core files, ed.hup
#smit backfile
#smit restfile
Q159. As a user of security group, which command you will use to change password?
A159. #pwdadm