Professional Documents
Culture Documents
Run the lsvg command on the volume group and look at the value for MAX PVs. The value is 32 for
normal, 128 for big and 1,024 for scalable volume group.
6.How do I display all logical volumes that are part of a volume group (e,g, rootvg)?
You can display all logical volumes that are part of rootvg by typing the following command: #lsvg -l
rootvg/
Run the following command to display information about the logical volume #lv1: lslv lv1.
Type one of the following: ifconfig -a or host Fully_Qualified_Host_Name. For example, host
cyclop.austin.ibm.com.
Either of the following two commands will display the network interfaces: lsdev -Cc if or ifconfig -a.
To get information about one specific network interface, for eaxample tr0, run the command ifconfig
tr0.
To display routing table information for an Internet interface, type netstat -r -f inet. To display
interface information for an Internet interface, type netstat -i -f inet. To display statistics for each
protocol, type netstat -s -f inet.
JFS:
Inode size=128b
JFS2:-
Can create a large size filesystems.
# ls –li
# istat /etc/passwd
# lsvg vg name
23.Mirroring concept?
Check disk size belong to vg , take two same size disk to mirror
# bootinfo –s hdisk2
#lsvg –p rootvg
Add one more disk of same size of already have disk having rootvg.
# extendvg rootvg hdisk2
# lsvg –p rootvg
Now mirror vg with background sync LV. It sync LVs in background with new LVs
# mirrorvg –s rootvg
Create a boot image
# bosboot –ad /dev/hdisk2
#bosboot –ad /dev/hdisk1
Add a blv
record of newly added disk, first check and then add.
# bootlist –m normal -o
26.T – Factor?
T – factor means that it will change the pp size to increase the efficiency of vg
128MB
#varyoffvg datavg
#exportvg datavg0
Importvg with new name
diag command
# errpt –a
# errpt -aj errorcode
# errclear
36.What is the command to increase the size of error log when it is ful?
# lssrc –al
/usr/lib/errdemon
46. How to convert a normal VG to big & scalable VG and also Big to Scalable VG?
#sysdumpdev -L
But in commit the changes are not allowed to do. Once did installation.
Output from the installp -s command, which is used to get a list of applied software
fileset updates and updates that are available to be either committed or rejected.
# oslevel –s
#lslpp –h
#installp -C
60.How do remove the entries of the device in the odm?
#rmdev -dl
62.ODM Commands.
Migration
Preservation
#backup -f /dev/rmt0
# restvg –x –d –f /dev/rmt0
72.How do I know if I am running a uniprocessor kernel or a multiprocessor kernel, or a
32-bit kernel or a 64-bit kernel?
/unix is a symbolic link to the booted kernel. To find out what kernel mode is running, enter ls -l
/unix and see what file /unix it links to. The following are the three possible outputs from the ls -l
/unix command and their corresponding kernels:
Note:
AIX 5L Version 5.3 does not support a uniprocessor kernel.
During the installation process, one of the kernels, appropriate for the AIX version and the hardware
in operation, is enabled by default. Use the method from the previous question and assume that the
32-bit kernel is enabled. Also assume that you want to boot it up in the 64-bit kernel mode. This can
be done by running the following commands in sequence:
1
ln -sf /usr/lib/boot/unix_64 /unix
2
ln -sf /usr/lib/boot/unix_64 /usr/lib/boot/unix
3
bosboot -ad /dev/hdiskxx
4
shutdown -r
5
The /dev/hdiskxx directory is where the boot logical volume /dev/hd5 is located. To find out what xx
is in hdiskxx, run the following command:
1 lslv -m hd5
77.How many hard disks does my system have and which ones are in use?
To display the number of hard disks on your system, type:
1 lspv
To find details about hdisk1, for example, run the following command:
1 lspv hdisk1
1 lscfg
How do I find out the chip type, system name, node name, model number, and so forth?
Command Description
uname -p Displays the chip type of the system. For example, IBM PowerPC®.
uname -M Displays the system model name. For example, IBM, 9114-275.
uname -m Displays the machine ID number of the hardware running the system.
AIX
To determine the highest technology level reached for the current version of AIX on the system, type:
1 oslevel -r
2 lslpp -h bos.rte
The following command will mount file system /dev/fslv02 on the /test directory:
83.How do I mount all default file systems (all standard file systems in the
/etc/filesystems file marked by the mount=true attribute)?
1 mount {-a|all}
Type the following command to display information about all currently mounted file systems:
1 mount
1 rmfs /test
This removes the /test file system, its entry in the /etc/filesystems file, and the underlying logical
volume.
The defragfs command can be used to improve or report the status of contiguous space within a file
system. For example, to defragment the file system /home, use the following command:
1 defragfs /home
To generate a report on the /data1 file system that indicates its current status as well as its status
after being defragmented, enter:
1 defragfs -r /data1
1 lslpp -l
To list the installation state for the most recent level of installed file sets for all of the bos.rte file sets,
type:
1 lslpp -l "bos.rte.*"
87.How do I verify if file sets have required prerequisites and are completely installed?
1 lppchk -v
1 lsps -a
You can use the chps-d command to dynamically reduce the size of a paging space. For example, if
you want to decrease the size of hd6 with four logical partitions, you issue the following command:
1 chps -d 4 hd6
Your system is capable of SMT if it is an IBM POWER5 processor-based system or later running AIX
5L Version 5.3 or later.
If you run the smtctl command without any options, it tells you if it is enabled or not.
Note:
AIX V5.3 32-bit kernel only supports SMT 2. For SMT 4 exploitation, you would need to run AIX V5.3
in a versioned workload partition (WPAR) on top of AIX V7.1 (described in the Workload partitions
section). The 32-bit kernel was removed in AIX V6.1.
How do I enable or disable SMT?
You can enable or disable SMT by running the smtctl command. The following is the syntax:
The lparstat command provides a report of partition information and utilization statistics. This
command also provides a display of hypervisor information.
The command migratepv moves allocated physical partitions from one physical volume to one or
more other physical volumes.
The reducevg command removes physical volumes from a volume group. When all the physical
volumes are removed from the volume group, the volume group is deleted.
You can run the alt_disk_copy command to copy the current rootvg to an alternate disk. The
following example shows how to clone the rootvg to hdisk1.
1 alt_disk_copy -d hdisk1
The no command sets or displays current or next boot values for network tuning parameters.
Either of the following two commands will display the network interfaces:
1.lsdev -Cc if
2.ifconfig -a
To get information about one specific network interface, for example, tr0, run the command:
1.ifconfig tr0
To report current TTY activity for each 2 seconds for the next 40 seconds, enter the following
command:
1 sar -y -r 2 20
To report the processor use statistics in a WPAR from the global environment, enter the following
command:
1 sar -@ wparname
lspv -l hdisk0 (Free disk) ----> To check which dump is there in free disk
sysdumpdev -Pp /dev/sysdumpnull (-Pp ---> Primary dump, -Ps --> secondary dump)
lsvg -p rootvg ----. Confirm the free PP's count (Total and free will be same)
bootlist -om normal ---> Now here it will show only one disk
lspv ----> here now free disk will show None status
Now u can go for alt_clone or altclone with update or update through nim server
bos.alt_disk_install.boot_images
bos.alt_disk_install.rte 7.2.3.0 COMMITTED Alternate Disk Installation
105. There’s a vulnerability reported for a package installed on the server. What
action do we need to take?
We need to check for the APAR released by IBM for the software product. If yes, then
download it and by using the “emgr” command install it on the server.
107. For a mirrored volume group the administrator would like to ensure if one
disk fails the vg stays online What’s the command to check that?
chvg -Qn <vgname>
108. How to check the HMC version?
After login into the HMC on the top we can see the <HMC version>.
109. How can we restore a single file from the mksysb image file?
From the mksysb image file we can restore file by using the below command:
#restore -xvf <mksysb filename> ./<Path of the file to need to restore>/<file_name>
110. How can we check the maximum resources consumed processes?
In AIX we have below procedures to find out the maximum resources consumed
processes details:
#top: command which provides the live update of the processes and their utilization of
resources
From the “nmon analyzer” we can find out the detailed details of the processes.
#ps -ef
#svmon -Put 5
111. How a client server can be able to communicate with the NIM server?
With the help of “niminfo” file the client server can communicate with the Master NIM
server.
In the client server generate the NIMINFO file:
#niminit -a master=<nim_servername> -a name=`uname -n`
113. When an IBM engineer asks about to collect the logs what command do we
use?
To collect the system log “snap -gc” command.
115. What is the procedure to change the Network card speed on AIX?
We can change the network card speed by using the following steps:
#chdev -l en0 -a state=detach –> Detach the interface
#chdev -l ent0 -a media_speed=1000_Full_Duplex –> Make appropriate changes
#chdev -l en0 -a state=up –> Change the step to UP
[NOTE: Don’t do ifconfig enX up – this will put an IP address of 0.0.0.0] #mkdev -l inet0
–> to activate all routes
116. Command to find the real memory of a server?
Here is the command to find the real memory of a server:
#lsattr -EL sys0 -a realmem
118. How to find out the maximum supported logical track group (LTG) size of my
hard disk?
You can use the “lquerypv” command with the -M flag. The output gives the LTG size in
KB.
#/usr/sbin/lquerypv -M hdisk*
125. Could you please explain the complete scenario of NFS configuration?
NFS means network filesystem, we can asses the filestem from one server to another
server through NFS
We need to configure NFS using below
Lssrc –g nfs it will list nfs subsystems are in active or not, if it is not active we have to
activate with below command
Startsrc –g nfs
If you want to activate particular subsystem you can activate using below command
Startsrc –s nfs
Need to check NFS port no. 2049
127. When I am trying to add new disk to existing volumge group, it showing as
conflicts what may be the reason.?
That new disk PVID is conflicts with other disk
131. One of Data base server got rebooted unexpectedly, oracle team is asking
ROOT CAUSE for this?
You need to check the logs in /etc/syslog.conf, ususally all aix logs are stored in this file
, otherwise you can check in errpt | more
Still if you want more info you can raise a PMR with IBM team
132. When Iam trying to increase the filesytem, but iam unable incrase what may
be the reason?
There is no free pp’s in volume group and we need to extend the lp’s per lv
134. How do you perform TL upgradation in your environement and explain the
process?
TL upgaradation performing in 3 ways
Direct method
Multibos method
Alt disk method
For altdisk method we need to one extra disk which is equal or higher than rootvg disk
Some filesets also need to install
Bos. Alt_disk_install.rte
Bos. Alt_diks_install,images
136. How to recreate /etc/niminfo file or server side and client side?
in nim server we can recreate using below.
Niminfo –r
On client side we can create like below
Niminit –v –a master=server –a client=hostname –a nimsh
144. When iam trying to login server, it showing as fork error or system got hung
what may be the reason?
We need to login to console, check the paging space of the server using lsps –s
And we need to increase the paging to avoid houg or fork error
146. What is DL par operation, how do you know that server is supporing DLPAR
operations or not?
By using DLPAR we can add remove move the resource from one server to another
Using below command to we wil get to know the server having dlpar capability or not
Lspartition –dlpar
147. What are the port no. for ftp, ssh, telnet, smtp, nfs, pop3?
ftp-21,ssh-22,telnet-23,smtp-25,ns-2049,pop3-110,
155. How to move the resource group from one node to another node?
/usr/es/sbin/cluster/bin/clRGmove –G rgname –n node –m