Aix Q&a
Aix Q&a
B. Then it will go to NVRAM and check the boot list for last boot device (hdisk0 or hdisk1).
C. Then following file system will be mounted /, /var. /usr, /home. /tmp
D. Kernel start the init process, it will read the /etc/inittab file and execute the following process.
/etc/rc.boot,
srcmstr
/etc/rc.tcpip
/etc/rc.net
The above network related files /etc/rc.tcpip, /etc/rc.net, used to configure the ip address and routing.
NOTE:
Run level 2: It contains all of the terminal process and daemons that are run in the multi user
environment. This is default run level.
/etc/inittab file contains four fields, 1.Identifier, 2.Runlevel, 3.Action, 4.Command
Q.2 Explain the ODM concepts?
ODM generally used for Maintain the System information, whenever we install and reconfigure the
hardware device and software, that information’s added in ODM,
But we cannot see any ODM information in file format, but this ODM information available in many
files and different path,
/etc/objrepos
/usr/lib/objrepos
/usr/share/lib/objrepos
NOTE:
For ODM some variable entry available in /etc/environment file.U should not edit anything in this file.
If you want to check the variable entry using command
#env
The above command is used to display the variable details
ODM has two kinds of Databases
Pre-defined (PdDv)
Customized(CuDv)
1. Predefined
In this predefined Database has one Object class (PdDv) and Objects i.e.
PdDv (Object class)
Object: (Physical Information’s)
Floppy drive
Harddisk drive
Mouse like this all the devices.
2. Customized
In this customized Database has one Object class (CuDv) and Objects i.e.
hdisk0
hdisk1
fd0
sa0
rmt0
cd0
scsi0 like this all the devices
ODM States:
Suppose we are installing one HDD in server. That device is currently accessible this is available state.
Suppose that installed device is removed from server or hdd has failed. This case that device is moved
to defined state. i.e. that device configuration is available in server but currently device is not
accessible.
We can see this available and defined device status using odmget command
For object:
odmadd
odmchange
odmget
odmdelete
1. odmadd
The above command is used to manually we can add object information in ODM
2. odmchange
3. odmget
The above command is used to display the specified object hdisk0 information in ODM
We can see this available and defined device status using odmget command
4. odmdelete
The above command is used to delete the specified object hdisk0 in ODM.
odmcreate
odmdrop
odmshow
1. odmcreate
The above command is used to manually we can add object class (PdDv) in ODM
2. odmdrop
The above command is used to stop the specified Object class in ODM
3. odmshow
The above command is used to display the specified object class in ODM
NOTE:
You should not add, delete, change, for object and object class in ODM
(100 % we don’t have permissions for ODM)
Q. 3 What are the installations available in AIX, Explain? OR
OS INSTALLATION
In this installation we can change the installation disk (hdisk0, or hdisk1), Desktop options.
This is used for recover the existing OS problems. (Boot image, Boot list, File systems problems).
Migration:
In this migration Installation, Operating system Updated from lower level to higher level i.e. Aix 5.1 To
Aix 5.3 or Aix 5.2 To Aix 5.3 ,
NOTE:
In this installation System data will not be affected except the /tmp file system. i.e. /tmp file system
will be deleted and newly created.
Preservation:
This installation is overwriting the existing OS and user data directory /home only persevered, rest of
the directories /, /var, /tmp, /etc, /dev, /opt will be deleted and newly created.
NOTE: In this installation we can preserve additional directories also, suppose if you want preserve
/opt, this case u should put /opt file system entry in /etc/preserve.list file.
Make sure you have an empty disk, in this example its hdisk1
Add the disk to the vg via "extendvg rootvg hdisk1
Mirror the vg via: "mirrorvg rootvg"
Adapt the bootlist to add the current disk, the system will then fail to hdisk1 is hdisk0 fails during
startup
do bootlist -o -m normal
this will list currently 1 disk, in this exmaple hdisk0
Run a bosboot on both new disks, this will install all software needed for boot on the disk
bosboot -ad hdisk0
bosboot -ad hdisk1
do bootlist -m normal hdisk0 hdisk1
OR
First select the disk which you want to use for the mirror, ideal would be an disk which is attached to a
differant scsi adapter.
Then add the disk to the datavg like:
extendvg datavg hdiskx
than you can create the mirror by using the mirrorvg command ,
mirrorvg -m datavg hdiskx
hdiskx is your destination disk !
After that Quorum will be disabled for the volumegroup ,to activate this the volumgroup must be
varied off and varied on.
You can add the -S flag to the command which causes the synchronizing of the disks to happen in the
background.
A more back to the basics option is to
create the mirroring by yourself by creating copies of each separate logical volume, this can be done by
using the mklvcopy command.
To remove mirroring , use the unmirrorvg command or the rmlvcopy command.
Q.5 How will you identify the mirrored VG?
# lsvg –l rootvg
PP size will be doubled than LP.
# lsvg –l [VGNAME]
Q.8 How will you add new HDD to server and explain the HDD installation Procedures? OR
How will you add PV to one VG?
First you connect hard disk and run the cfgmgr command it will detect the hdd.
# cfgmgr (It will detect the all the devices)
# lsdev –Cc disk (it will show the pv name like hdisk1, hdisk2)
# extendvg rootvg hdisk2
The above command is creating datavg using pv hdisk4 and pp size is 32MB
+block size – We can mention the size using blocks (2048 blocks = 1MB)
+32m – We can mention the size using MB
+4g – We can mention the size using GB
Q. How will you check the file systems size? once you have checked the filesystem you found one of
the /opt/apps filesystem is 95% how u you do first?
In this change LV option we can change LV name and permissions for the LV using chlv command.
File system should be unmounted to change lv name.
#lslv testlv
#chfs –m /testfs /newfs (Need to remount file system for changes to take effect)
#chvg –B <VGNAME>
1. Select VG
2. Select “Yes “ in Change to scalable VG format?
Q.14 Suppose one PV fails in Mirror VG, and you have to configure new PV to that mirror VG and
mirroring has to be configured again? OR
How will you remove the failed PV in mirrored VG explain the procedures?
# lsvg -p rootvg
rootvg:
*Here your making sure that both disks are assigned to the volume group
# lsvg -l rootvg
rootvg:
*Here your checking to make sure there’s a 1:2 relationship, meaning that there are copies. Notice
dumplv. It’s not copied so we need to make sure dumplv data isn’t on the failing disk. To check, run;
$ lslv -l dumplv
dumplv:N/A
This is telling us that the logical volume dumplv is on hdisk0. If hdisk1 is the failing disk, then we are
okay. Otherwise, we would have to migrate the data over to the good drive and proceed.
Before you power down, it’s a good idea to check the system to make sure it will boot from the good
drive. Do that by performing;
# bootinfo -b
hdisk1
This tells you what drive it was last booted up. We want to change this to boot to the new drive, so;
# bootlist –m normal –o
NOW WE CAN POWER DOWN THE BOX AND REPLACE THE DRIVE
Once disk has been replaced, power up the server. Once at command prompt, run;
# cfgmgr
This will install the new device and allow the OS to see it.
Make sure that the OS says it’s available. If it is, we can assign it to a volume group.
This will assign it a PVID and assign it to the volumegroup rootvg to make it available for use. Now
we can mirror;
# mirrovg rootvg
This will take a little while as it’s taking all data now on hdisk0 and making a copy to hdisk1.
# lsvg -p rootvg
rootvg:
Once it’s mirroring, we can make sure it’s assigned to rootvg by doing the above. We can also check to
make sure there are copies;
# lsvg -l rootvg
rootvg:
# bosboot –a
# bootlist –m normal –o
#lsvg –l rootvg
Hd1 /home
Hd2 /usr
Hd3 /tmp
Hd4 /
Hd5 boot (BLV)
Hd6 paging
Hd8 jfs log
Hd9var /var
Hd10opt /opt
Hd6 paging
VGDA: The Volume Group Descriptor Area(VGDA) is an area on a disk that contains information
about Volume group that the physical volume belongs to.
It also includes the information about the properties and status of all Physical and logical volumes that
are part of the volume group.
There is at list one VGDA per Physical volume. Information form VGDAs of all the disks that are part
of the same Volume Group must be identical. The VGDA internal architecture and location on the disk
depends on the type of the Volume Group (Original, Big, or Scalable).
VGSA: The Volume Group Status Area(VGSA) is used to describe the state of all physical partitions
form all physical volumes within a Volume Group. The VGSA indicates if a partition contains accurate
or stale information.
VGSA is used for monitoring and maintained data copy synchronization. The VGSA is essentially a
bitmap and its architecture and location on the disk is depends on the Volume Group type.
LVCB: A Logical Volume Control Block(LVCB) contains important information about the logical
volumes. Such as number of the logical partitions or disk allocation policy.
For standard volume groups, the LVCB resides on the first block of user data within the LV..
For Big volume groups, there is additional LVCB information in VGDA on the disk.
PERFORMANCE MONITORING
Cpu bound
Memory bound
Network bound
I/O bound
1. CPU bound
Using Topas command we can check the server performance monitor, the following things we can
monitor.
2. Memory bound
#vmstat 2 3
After this command execution, it will show the memory page in and page out process. Within 2
seconds, 3 outputs is displayed
Suppose you are checking paging space usage using command lsps
#lsps –s
11% - this is normal
40% - Server running on slow performance
70% - users cannot logon the server,
Some error message will appear (fork exist failed)
3. Network bound
Using topas command we can monitor the network bound, in this network monitor we can find KB in
and KB out process.
4. I/O bound
In this I/O bound we can monitor the disk usage, suppose you are using two or three heavy used file
system in one PV that time that particular PV usage will be very high
page ins
Incremented for each page read in by the virtual memory manager. The count is
incremented for page ins from page space and file space. Along with the page out statistic, this
represents the total amount of real I/O initiated by the virtual memory manager.
page outs
Incremented for each page written out by the virtual memory manager. The count is
incremented for page outs to page space and for page outs to file space. Along with the page in statistic,
this represents the total amount of real I/O initiated by the virtual memory manager.
PAGING SPACE
Paging space is configured for additional system performance i.e. if real memory is occupies some
system process, that time further process is moved to paging space temporary. If real memory is getting
free, then process moved from paging space to real memory. This paging space is assigned from HDD
space.
If system has 512MB RAM, then paging space size will be 1GB.
Q. How will you list the current paging space configuration and paging usage?
Using mklv command we can create paging space using different name.
Generally paging name will be paging00, paging01, paging02,
Using chps command we can increase, decrease, auto on, and auto off the paging space.
The paging space is active stage, and then one entry will be available in /etc/swapspaces file.
The paging space is deactivated, then that paging space entry is removed from /etc/swapspaces
NOTE:
Before removing the paging space, paging space should be offline, then we can remove the paging
space, otherwise it will give some errors
Example:
Consider you have a directory " test ".
chmod it to " 777 ". This gives permissions for all the users to read, write and execute.
chmod +t test
Example: ls -al
drwxrwxrwt 2 a1 a1 4096 Jun 13 2008 .
-rw-rw-r-- 1 a1 a1 0 Jun 11 17:30 1.txt
-rw-rw-r-- 1 b2 b2 0 Jun 11 22:52 2.txt
Example:
If a1 is the owner of the script and b2 tries to run the same script, the script runs with the ownership of
a1.
If the root user wants to give permissions for some scripts to run by different users, he can set the SUID
bit for that particular script.
So if any user on the system starts that script, it will run under the root ownership.
Note:
root user much be very carefull with this.
If a file is SGID, it will run with the privileges of the files group owner, instead of the privileges of the
person running the program.
This permission set also can make a similar impact. Here the script runs under the groups ownership.
Example:
-rw-rw-r-- 1 b2 a1 0 Jun 11 17:30 1.txt
In the above example you can see that the owner of the file 1.txt is b2 and the group owner is a1.
So both b2 and a1 will have access to the file 1.txt.
Example:
mkdir test
chmod 2777 test
chmod +t test
ls -al test
drwxrwsrwt 2 a1 a1 4096 Jun 13 2008 test
From the above permission set you can understand that SGID and sticky bit is set for the folder "test".
Now any user can create files under the test directory.
Example:
drwxrwsrwt 2 a1 a1 4096 Jun 13 2008 .
-rw-rw-r-- 1 b2 a1 0 Jun 11 17:30 1.txt
-rw-rw-r-- 1 c3 a1 0 Jun 11 17:30 2.txt
-rw-rw-r-- 1 d4 a1 0 Jun 11 17:30 3.txt
So all the a1 user has access to all the files under the test directory. He can edit, rename or remove the
file.
b2 user has access to 1.txt only, c3 has access to 2.txt only...
If sticky bit was not set for the test directory, any user can delete any files from the test directory, since
the test directory has 777 permissions.
But now it not possible.
Example:
If d4 tries to remove 1.txt
rm -f 1.txt
rm: cannot remove `1.txt': Operation not permitted
Create user
List user
Change user
Remove user
Set password for users
1. Create user
Using mkuser command we can create a new user, suppose you want to create new user,
#mkuser lingam
Now you can login the terminal using lingam user name without password.
Then you have to set the password for lingam user using command passwd
#passwd lingam
Enter new password: ******
Confirm password again: ******
After this command execution password assigned to lingam user and lingam user password
configuration entry added in /etc/security/passwd.
Whenever login the server that last login information’s stored in /etc/security/lastlog file.
2. List user
Using lsuser command we can list the user properties, i.e. user home directory, shell, group, etc. except
password
#lsuser all (It will list all the user information’s except password)
#lsuser <username> (It will list only user information’s except password)
3. Change user
Using chuser command we can change user properties, i.e. user home directory, shell group, etc. except
password
Whenever you create a user that user home directory by default created in /home file system, and
default group is staff.
Suppose we want to change the user group to system, then your command will be.
#lsuser <username> (it will show user properties including group information)
#chuser pgrp=system <username> (now user is assigned to primary group system and secondary group
is assigned to staff)
#lsuser <username> (It will list modified user properties, group is system, staff)
4. Remove user
Using rmuser command we can remove the user, suppose you want to remove user
#rmuser <username>
Using passwd command we can set password for user and root
#passwd <username>
We are changing password for user from root path, it will not ask existing password for user, because
root is administrator login.
Suppose you are changing password from user login, it will ask existing password, because user should
know the existing password before changing the new password. Otherwise any user can change the
user password. This not recommended security.
$pwd
/home/<username>
$passwd <username>
Enter the old password: *****
Enter the new password: *****
Confirm password again: *****
NOTE: Suppose you are forgotten root password that time what you will do.
Answer: boot the server with BOS Cd and go to maintenance mode, access the rootvg, then you can
change the password for root.
Create group
List group
Change group
Remove group
1. Create group
Using mkgroup command we can create the group, suppose you want to create oracle group.
#mkgroup oracle
After this command execution new oracle group has created and this group is added in /etc/group file.
2. List group
Using lsgroup command we can list group information’s. Suppose we want to list oracle group
information
#lsgroup oracle (it will display the oracle group information’s, gname, gid, members)
3. Change group
4. Remove group
Using rmgroup command we can remove a group, suppose we want to remove oracle group.
#rmgroup oracle
After this command execution oracle group removed and group configuration information removed
from /etc/groups files.
Q.23 While creating the users, user attributes is taken from which file for user configuration?
Name:Password:UserID:PrincipleGroup:Gecos:HomeDirectory:Shell
ora10gr2:!:207:204::/home/ora10gr2:/usr/bin/bash
In this chapter we can do following things using backup and restore commands
backup
restore
rootvg backup
restore rootvg backup
non rootvg backup(other than rootvg)
restore non rootvg backup(other than rootvg)
rewind, eject and erase the tape
1. Backup
Using backup and tar command to we can take full backup and incremental backup.
Using tar command we can take normal backup, in this tar we cannot take day wise incremental backup
#tar –cvf destination source
Using backup command we can take incremental backup, this backup command is particularly for AIX.
Suppose you want to take Sunday backup then your command will be
2. Restore
Using tar and restore command we can restore the data in server
Using tar command we can restore data to server, this is normal restore
3. rootvg backup
Q. While you are taking rootvg backup you need to take only few things how will you take?
Using mksysb command we can take the rootvg (AIX OS) backup
#mksysb –i /dev/rmt0
This image.data file contains all the file system information’s in rootvg while restore the rootvg
backup, before start the restore it will read the information’s from the image.data file
After the command execution rootvg backup created in tap, suppose OS got corrupted, that time we can
restore the os from rootvg backup.
NOTE: While taking rootvg backup we can exclude unwanted file systems in backup process. Suppose
you not required following file systems in mksysb backup,
/var – log files
That time you should put entry in /etc/exclude.rootvg,
While creating the rootvg backup, first tape is spitted in to 4 blocks (block size is 512)
The BOS boot image contains a copy of the system’s kernel and device drivers
needed to boot from the mksysb tape. It is created by the bosboot command.
1. /tapeblksize
The /tapeblksize file contains the block size the tape drive was set to when the mksysb command was
run.
2. /image.data
The /image.data file store the information about rootvg, like vg, pp, pp size, lv, lv size, FS
3. /bosinst.data
The ./bosinst.data file allows you to specify the requirements at the target system
and how the user interacts with the target system. This file contains the
customized BOS install procedures and dictates how the BOS install program will
behave. You can customize this file before issuing the mksysb command or use a
procedure to customize this file after the image backup is done.
The dummy table of contents (TOC) is used so that the mksysb tape contains the
same number of images as a BOS install tape.
Boot server with bos (base operating system) Cd, then go to maintenance mode and access the rootvg,
then run the following command
#restore –T –d –v –q –f /dev/rmt0
Or
Boot server with bos CD, then go to maintenance mode and initiate the rootvg backup (one option
available in maintenance mode).
Like this we can restore the rootvg backup
#lsvg
Rootvg
Datavg
Oraclevg
#
Now you want to take datavg backup, then your command will be
NOTE: While taking restvg backup we can exclude unwanted file systems in backup process. Suppose
you not required following file systems in mksysb backup,
/var – log files
That time you should put entry in /etc/exclude.datavg,
After command execution datavg backup restored to server with same name while importing vg we can
change the vg name.
7. Rewind, Eject, Erase the tape
Using tctl command we can rewind, eject and erase the tape drive.
it will download in c:/download director by default or you can customize the download location. All
files will be with .bff extention.
You will put all the TL files to the AIX server using ftp or winscp. In a directory.
Suppose you have putted all the TL files in /TL directory Then log into your server go to the /TL
directory
You will execute #inutoc . (. Represent current directory)
It will create a .toc file, through it you can read what are the fileset included in this TL
Here you will put .(dot) as current directory in input device, first check the preview only , select
commit no, save base yes rest of option leave as it is .
Finally you press F3 to get back and change preview only option no, and Commit no
It will take 20 to 30 minute to update the TL, now you can check the file set installed successfully
using #lppchk –v ,
And you check the #oslevel -s, it will show the latest level of TL.
-bash-3.00$ oslevel -s
5300-11-01-0944
LPAR / DLPAR
In single server we can install multiple operating systems, like AIX 5.1, AIX 5.2, AIX 5.3, Susi Linux,
AIX 4.3, using LPAR concept
The above Os are installing in single server, before that we have to partition the hardware resources,
like processors and memory, Harddisk,
Using HMC (Hardware Management Console) we can partition and operate the LPAR servers
Suppose you have one P690 server with 16 CPU’s and 16GB Ram, in this server we can make 16
partitions,
Suppose one particular Os assigned for 500 users that time we have to assign additional hardware
resources to that partition, online we can assign the hardware resources using HMC. No need to reboot
the server, this concept called DLPAR (dynamic Logical Partition)
HMC - it is a desktop pc (Linux OS) connected with P690 server through Communication (com port)
cable or RJ45 Ethernet cat cable
Using HMC we can Create, Delete, and Change the Logical Partitions
This LPAR server has hypervisor Controller, all the information’s stored in this hypervisor, and it is
used to maintain the server
Accessing methods:
wsm (Web based system management , using this concept we can access the LPAR servers from
windows desktops)
ssh (Secured shell, using this concept we can access the LPAR servers through telnet)
Q. How many types of LPAR. Which type of LPAR you are using?
Q.28 How to change the kernel from 32 bit to 64 bit?
Or use:
# /usr/bin/getconf HARDWARE_BITMODE
The AIX 5L has pre-configured kernels. These are listed below for Power
Processors:
Switching between kernel modes means using different kernels. This is simply
done by pointing the location that is referenced by the system to these kernels.
Use symbolic links for this purpose. During boot AIX system runs the kernel
in the following locations:
/unix
/usr/lib/boot/unix
The base operating system 64-bit runtime fileset is bos.64bit. Installing bos.64bit also installs
the /etc/methods/cfg64 file. The /etc/methods/cfg64 file provides the option of enabling or disabling
the 64-bit environment via SMIT, which updates the /etc/inittab file with the load64bit line.
(Simply adding the load64bit line does not enable the 64-bit environment).
The command lslpp -l bos.64bit reveals if this fileset is installed. The bos.64bit fileset
is on the AIX media; however, installing the bos.64bit fileset does not ensure that you will be able
to run 64-bit software. If the bos.64bit fileset is installed on 32-bit hardware, you should be able
to compile 64-bit software, but you cannot run 64-bit programs on 32-bit hardware.
The syscalls64 extension must be loaded in order to run a 64-bit executable. This is done from
the load64bit entry in the inittab file. You must load the syscalls64 extension even when running
a 64-bit kernel on 64-bit hardware.
To determine if the 64-bit kernel extension is loaded, at the command line, enter genkex |grep 64.
Information similar to the following displays:
149bf58 a3ec /usr/lib/drivers/syscalls64.ext
IMPORTANT NOTE: If you are changing the kernel mode to 32-bit and you will run
9.2 on this server, the following line should be included in /etc/inittab:
load64bit:2:wait:/etc/methods/cfg64 >/dev/console 2>&1 # Enable 64-bit execs
This allows 64-bit applications to run on the 32-bit kernel. Note that this
line is also mandatory if you are using the 64-bit kernel.
In AIX 5.2, the 32-bit kernel is installed by default. The 64-bit kernel, along with JFS2
(enhanced journaled file system), can be enabled at installation time.
Q.31 How will you find the serial no. of the server?
# prtconf |pg
Q.33 What command you will use to check the low memory space?
topas
vmstat
In this I/O bound we can monitor the disk usage, suppose you are using two or three heavy used file
system in one PV that time that particular PV usage will be very high
# iostat -d hdisk0 hdisk1 5 Will monitor disk activity only for physical volumes hdisk0 1
Q.35 How will you check the cluster status ?
The smit.script file contains the actual AIX commands that SMIT runs in order to execute a task.
The $HOME/.netrc file contains information used by the automatic login feature of the rexec and ftp
commands. It is a hidden file in a user's home directory and must be owned either by the user executing
the command or by the root user. If the .netrc file contains a login password, the file's permissions must
be set to 600 (read and write by owner only).
Remove Device
Suppose you want to remove device from server. Suppose it is one HDD.
First you have removed the HDD from server. Then you checking device configuration details using
Or
#odmget CuDv
The above command is used to remove hdisk5 device from ODM (complete removal from OS)
After executing the above command this hdisk5 configuration is not available in ODM
Suppose you want to remove device from the server not from ODM
This case you should use the following command.
#rmdev –l hdisk5
The above command is used to remove hdisk5 device from server, this device configuration is available
in ODM (not from OS)
After executing the above command this hdisk5 configuration is available in ODM and device status is
defined
If you want install hdisk5 device again, you should run the following command
#cfgmgr
#cfgmgr scsi0 (Directly you can search device on Parent device scsi0)
After executing above commands the device hdisk5 become to Available state.
And device status is 1
Q.39 Please explain the inittab file - what is respwan and once field is used?
# lsitab xcmd
# rmitab xcmd
# startsrc –s inetd
Logical track group (LTG) size is the maximum allowed transfer size for an I/O
disk operation. You can use the lquerypv command to find the LTG size for a physical disk
# lquerypv -M hdisk0
256
halt(1M) brings down the machine to the PROM (on SPARC) immediately,
with very little regard to running the scripts in /etc/rc[0-6].d to
take things down cleanly. reboot(1M) is the same, except instead of
just stopping the OS, it reboots the machine.
The skulker command purges files in the /tmp directory, files older than a
specified age, a.out files, core files, and ed.hup files. It is run daily as part of
an accounting procedure run by the cron command during off peak periods
(assuming you have turned on accounting).
# netstat –rn
# alog –o –t boot
# alog –o –t console
crfs will create a JFS/JFS2 files system as well as the logical volume associated whereas mkfs will
create a File System over an already created Logical Volume=2E
crfs=09Adds a file system=2E The smallest file system is equal to one PP=2E
crfs -v jfs -g datavg -a size=3D32M -m /user : creates a JFS of 32 MB with /user as the mount point in
VG datavg=2E
crfs -v jfs2 -g rootvg -a size=3D128M -m /data -A yes -p rw -a agblksize=3D2048 : creates a JFS2 of
128 MB with /data as the mount point, automatically mounted at system restart (-A), with 4K as the
smallest file system block size that can be allocated to a file=2E
mkfs=09Makes a new file system on a specified existing device (LV)=2E
mkfs -s 64M /data /dev/lvdata : creates an empty 64 MB file system on LV lvdata=2E
mkfs -o name=3D/user /dev/lvuser : creates an empty file system on the /dev/lvuser device, with mount
point /user=2E The new file system occupies the entire device and has the default fragment size (4096
bytes) and the default nbpi ratio (4096)=2E
During system initialization, servers with operator panel displays will show LED
codes that provide information about the status of the boot process. Some codes
are checkpoints that indicate which point in the boot process the server has
reached. These codes depend on the type of server.
For example, on a server with a four character display, E1F1 indicates that the
system-defined console has been activated, while FF1 indicates this on a server
with a three character display. Codes in the form of Fxx, where xx is a
hexadecimal number, are generally related to firmware.
Other codes indicate that a fault has been detected. The most common LED
codes that indicate boot problems and how to get around them to getting your
2. Check the / and /tmp file systems. If they are almost full, create more space.
4. Recreate the boot image using bosboot -a -d /dev/hdiskn, where n is the disk
number of the disk containing the boot logical volume.
5. Check for CHECKSTOP errors in the error log. If such errors are found, it is
probably failing hardware.
1. Set the key mode switch to service (F5 for systems without keylock) and power up
the machine.
2. If display continues normally, change the key mode switch to Normal and continue
with step 3. If you do not get the prompt, go to step 4.
3. When you get the login prompt, log in and follow the procedure described in 4.4.1,
“The bootlist command” on page 103 to change your bootlist. Continue with step 7.
4. Follow the procedure in 4.4.2, “Accessing a system that will not boot” on page 105
to access your rootvg and continue with step 5.
6. Change the bootlist following the procedure given in 4.4.1, “The bootlist command”
on page 103.
112 IBM Eserver p5 and pSeries Administration and Support for AIX 5L V5.3
LED 551, 555, and 557 - Corrupted file system, corrupted JFS log, and so on
1. Follow the procedure described in 4.4.2, “Accessing a system that will not boot” on
page 105 to access the rootvg before mounting any file systems (choice 2 on the
Volume Group Information screen).
fsck -y /dev/hd1
fsck -y /dev/hd2
fsck -y /dev/hd3
fsck -y /dev/hd4
fsck -y /dev/hd9var
bosboot -a -d /dev/hdiskn
Where n is the disk number of the disk containing the boot logical volume.
LED 552, 554, and 556 - Super block corrupted and corrupted customized ODM
database
1. Repeat steps 1 through 2 for LEDs 551, 555, and 557.
2. If fsck indicates that block 8 is corrupted, the super block for the file system is
corrupted and needs to be repaired. Enter the command:
dd count=1 bs=4k skip=31 seek=1 if=/dev/hdn of=/dev/hdn
where n is the number of the file system.
4. If this solves the problem, stop here; otherwise, continue with step 5.
5. Your ODM database is corrupted. Restart your system and follow the procedure
given in 4.4.2, “Accessing a system that will not boot” on page 105 to access rootvg
with choice 2 on the Volume Group Information screen.
10. Determine the boot disk by using the lslv -m hd5 command.
11. Save the clean ODM to the boot logical volume by using the command:
savebase -d/dev/hdiskn
where n is the disk number of the disk containing boot logical volume.
12. Reboot, if the system does not come up, and reinstall BOS.
1. Access the rootvg with all file systems mounted by following the procedure
described in 4.4.2, “Accessing a system that will not boot” on page 105.
2. Check for free space in /, /var, and /tmp by using the df command.
3. Check the /etc/inittab file and correct the inittab problems if there is one empty
inittab file, missing inittab file, or wrong entry in inittab file.
/etc/environment file
/bin/sh
/bin/bsh
/etc/fsck
/etc/profile
/.profile
Create Filesystem
# crfs -v jfs2 -d tmplv -m /tmpmnt
Term Definition
Journaled File System (JFS) File system that uses a journaled log for faster, more reliable data recovery
Logical Partition (LP) The LV is made up of LPs. The LP corresponds to 1 or more (in the case of mirroring) PPs.
Logical Volume (LV) The VG is subdivided into logical volumes and each LV can have a file system on it.
Physical Partition (PP) All physical volumes are subdivided into pps. PPs are all the same size
Physical Volume (PV) Disk that is being managed by LVM.
Rootvg Default volume group created during installation. The vg holds the OS filesystems ( /,/usr,
/home, /proc /opt, /tmp, /var and swap space )
Volume Group (VG) Area of storage that consists of one or more PVs
Command Summary
Command
chfs -a size=<#512 byte blocks> <file system> :
Increases the size of a journaled file system to the total number of 512 byte blocks specified
df -k
Shows the disk usage of logical volumes on the server.
lsvpcfg
Lists each vpath and the hdisks that make up the vpath
mksysb -l -f <device>
makes a bootable backup of rootvg
rmlv <lv>
Removes a logical volume (it must be inactive)
Check to see if all of the logical volumes in a volume group are mirrored
· lsvg -l
http://aixinterview.blogspot.in/2012/01/basic-aix-questions.html