↑ Return to Aix Quick Start

AIX Quick Start – Notes

Hardware

How would I know if my machine is capable of running AIX 5L Version 5.3?
AIX 5L V5.3 runs on all currently supported Common Hardware Reference Platform (CHRP)-based POWER hardware.

How would I know if my machine is CHRP-based?
Run the prtconf command. If it’s a CHRP machine, the chrp string appears on the Model Architecture line.

How would I know if my Power Systems machine is 32-bit or 64-bit?
To display if the hardware is 32-bit or 64-bit, type bootinfo -y. A 64-bit hardware is required to run the 64-bit kernel.

How much real memory does my machine have?
To display real memory in kilobytes (KB), type bootinfo -r or lsattr -El sys0 -a realmem.

How many processors does my system have?
To display the number of processors on your system, type lscfg | grep proc.

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 lspv.

How do I list information about a specific physical volume?
To find details about hdisk1, for example, run the following comand: lspv hdisk1.

How do I get a detailed configuration of my system?
Type lscfg. You can obtain very similar information by running the prtconf command.

AIX

What version, release, and maintenance level of AIX is running on my system?
Type oslevel -r or lslpp -h bos.rte.

How can I determine which fileset updates are missing from a particular AIX level?
To determine which fileset updates are missing from 5300-04, for example, run the following command: oslevel -rl 5300-04.

What service pack (SP) and/or technology level (TL) is installed on my system?
To see which SP is currently installed, run the oslevel -s command. Sample output for an AIX 5L Version 5.3 system, with TL4, and SP2 installed would be:

oslevel -s
5300-04-02

Is a concluding service pack (CSP) installed on my system?
To see if a CSP is currently installed on the system, run the oslevel -s command. Sample output for an AIX 5L Version 5.3 system, with TL3, and CSP installed would be:

oslevel -s
5300-03-CSP

How do I create a file system?
The following command will create, within volume group testvg, a jfs file system of 10 MB with mounting point /fs1:

crfs -v jfs -g testvg -a size=10M -m /fs1

The following command will create, within volume group testvg, a jfs2 file system of 10 MB with mounting point /fs2 and having read only permissions:

crfs -v jfs2 -g testvg -a size=10M -p ro -m /fs2

How do I change the size of a file system?
To increase the /usr filesystem size by 1000000 512-byte blocks, type chfs -a size=+1000000 /usr. In AIX 5.3, the size of a JFS2 file system can be decreased as well.

How do I mount a CD?
Type the following: mount -V cdrfs -o ro /dev/cd0  /cdrom.

How do I mount a file system?
The following command will mount file system /dev/fslv02 on the /test directory:

mount /dev/fslv02 /test

How do I mount all default file systems (all standard file systems in the /etc/filesystems file marked by the mount=true attribute)?
The following command will mount all such file systems: mount {-a|all}.

How do I unmount a file system?
Type the following command to unmount /test file system: umount /test.

How do I display mounted file systems?
Type the following command to display information about all currently mounted file systems: mount.

How do I remove a file system?
Type the following command to remove the /test file system: rmfs /test.

Which fileset contains a particular binary?
To show bos.acct contains /usr/bin/vmstat, type lslpp -w /usr/bin/vmstat. To show bos.perf.tools contains /usr/bin/svmon, type which_fileset svmon.

How do I determine if a fix is installed on my system?
To determine if IY24043 is installed, type instfix -ik IY24043.

How do I install an individual fix by APAR?
To install APAR IY73748 from /dev/cd0, for example, enter the command instfix -k IY73748 -d /dev/cd0.

How do I determine the amount of paging space allocated and in use?
Type the following: lsps -a.

How do I increase a paging space?
You can use the chps -s command to dynamically increase the size of a paging space. For example, if you want to increase the size of hd6 with three logical partitions, you issue the following command: chps -s 3 hd6.

How do I reduce a paging space?
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: chps -d 4 hd6.

How would I know if my system is capable of using simultaneous multi-threading (SMT)?
Your system is capable of SMT if it’s a POWER5 or higher running AIX 5L Version 5.3.

How would I know if SMT is enabled for my system?
If you run the smtctl command without any options, it tells you if SMT is enabled. SMT is supported for both 32-bit and 64-bit kernel.

How do I enable or disable SMT?
You can enable or disable SMT by running the smtctl command.

Kernel

How would I know if I am running a 32-bit kernel or 64-bit kernel?
To display if the kernel is 32-bit enabled or 64-bit enabled, type bootinfo -K.

How do I know if I am running a uniprocessor kernel or a multiprocessor 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:

/unix -> /usr/lib/boot/unix_up   # 32 bit uniprocessor kernel
/unix -> /usr/lib/boot/unix_mp   # 32 bit multiprocessor kernel
/unix -> /usr/lib/boot/unix_64   # 64 bit multiprocessor kernel

AIX 5L Version 5.3 does not support a uniprocessor kernel.

How can I change from one kernel mode to another?
During the installation process, one of the kernels, appropriate for the AIX version and the hardware in operation, is enabled by default. In AIX 5.2, the 32-bit kernel is installed by default. In AIX 5.3, the 64-bit kernel is installed on 64-bit hardware and the 32-bit kernel is installed on 32-bit hardware by default. Let us use the method from the previous question and assume the 32-bit kernel is enabled. Let us also assume you want to boot it up in the 64-bit kernel mode. This can be done by executing the following commands in sequence:

ln -sf /usr/lib/boot/unix_64   /unix
ln -sf /usr/lib/boot/unix_64   /usr/lib/boot/unix

bosboot -ad /dev/hdiskxx
shutdown -r

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: lslv -m hd5.

This article was based in part upon the IBM developerWorks article “AIX commands you should not leave home without,” first published on the IBM developerWorks AIX and UNIX zone. All rights retained by IBM.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>