Using FAST IPL only works on some RS6000 systems, like SP's or J/G/R30/40's.
To configure FAST IPL:
# mpcfg -cf 11 1
Check current configuration:
# mpcfg -df
If you can only use a terminal to configure the Fast IPL:
Put the key into service mode, press [ENTER] on the keyboard. Then type:
sbb. Using the menu you can configure Fast IPL. Then reboot and switch the key back to Normal.
To find the status of the batteries of an SSA adapter, enter as root:
# ssa_fw_status -a ssaX
X is the number of your adapter, for example:
# ssa_fw_status -a ssa0
Fast write cache size: 32
Expected battery life: 22000
Powered on hours: 20706
Battery state: Active
After installing a new battery, enter the following command:
# ssa_format - l ssaX - b
This will reset the lifetime counter.
A little script to rotate a log while not upsetting the process which is logging to the file. This script will copy and compress the log file, and then zero the log file out. Then the script will search for older log files and remove them after +3 days since last modification.
DATE=`date +%d%h-%I%p`
BASE_DIR='/var'
if [ -f $BASE_DIR/logname.log ]; then
cp $BASE_DIR/logname.log $BASE_DIR/logname.log.$DATE
> $BASE_DIR/logname.log
compress $BASE_DIR/logname.log.$DATE
fi
find $BASE_DIR -name 'logname.log.*' -a -mtime +3 -exec rm {} \;
To retrieve a list of all recent commands:
# history -100
This shows you the last 100 entries.
You can use a DVD-RAM to create a system backup. To do so, enter:
# smitty mkdvd
This works in AIX 5.2 and above.
To use a DVD-RAM for writing and reading like a file system, use the following commands. This will work only at AIX 5.2 and above:
- Put a DVD-RAM into the drive
# udfcreate -d /dev/cd0
- Mount the DVD-RAM:
# mount -V udfs /dev/cd0 /mnt
If you get an error, ensure /etc/vfs contains this line (and retry the mount command after validating):udfs 34 /sbin/helpers/udfmnthelp
Then use this as a regular filesystem.
If the lines in your text file are too long, you may want to word wrap them. In AIX this command is called fold:
# fold -sw 72 longfile > shortfile
This command will keep the longest line up to 72 characters and will not break a word in half. Without
-w 72 lines will be wrapped to 80 characters.
To quickly show you the processor speed, cpu type, amount of memory and other system information, type:
# lsconf
You can also use
prtconf.
Sometimes, when you create an mksysb, you receive an error like this one:
/dev/ipldevice not found
Device /dev/ipldevice is a hard link to the disk your system booted from. Mksysb tries to determine the size of the boot logical volume with the
bosboot -qad /dev/ipldevice command. Via
lslv -m hd5 you can see from which disk was booted (or via
bootlist -m normal -o).
To resolve this problem: re-create the hard link yourself:
# ln /dev/bootdevice /dev/ipldevice
For example:
ln /dev/rhdisk0 /dev/ipldevice
Note: Use "rhdisk" and not "hdisk".
Another way to solve this problem: reboot your system and the /dev/ipldevice will be created automatically for you (Your users may prefer the first solution...).
If, for some reason, the pdisk and hdisk numbering of SSA disks is not sequential anymore, then there's a way to bring order in to chaos. Usually, the pdisk and hdisk numbering order are screwed up when you replace multiple disks together. Especially on HACMP clusters, a correct numbering of pdisks and hdisks on all nodes of the cluster, comes in handy.
Unmount all file systems on the specific disks, then varyoff the volume group:
# /usr/lib/methods/cfgssar -l ssar
If this doesn't help (it sometimes will), then renumber the disks manually:
Write down the pdisk names, hdisk names, location of the disks in the SSA drawer and the connection ID's of the disks. You can use
lsdev -Cc pdisk to show you all the pdisks and the drawer and location codes. Use
lsdev -Clpdiskx -Fconnwhere to show the connection ID of a pdisk. Then, figure out, how you want all disks numbered.
Remove the pdisks and hdisks with the
rmdev -dl command.
Create the pdisks again:
# mkdev -p ssar -t scsd -c pdisk -s ssar -w [connection-ID] -l pdisk1
Create the hdisks again:
# mkdev -p ssar -t hdisk -c disk -s ssar -w [connection-ID] -l hdisk3
Test with:
# ssaxlate -l pdisk1
if it shows
hdisk3 (Usually the hdisk number is 2 higher than the pdisk number if you use 2 SCSI disks in the rootvg).
If you've done all disks this way, check with
lsdev -Cc pdisk. If you're happy, then varyon the volume group again and mount all filesystems.
Number of results found: 469.
Displaying results: 291 - 300.