Increase swap space in HP-UX

  1. By using SAM
    SAM > Disk and File Systems > Swap > Actions
    You can add the Device Swap or File System Swap.
  2. By Command Line
    Create the logical volume for your secondary swap:
    # lvcreate -L 128 /dev/vg14

    NOTE: “-L 128” is the size of desired swap

    Verify the logical volume:
    # lvdisplay /dev/vg14/lvol15

    Use SAM to declare your new secondary swap or use the command line:
    # swapon /dev/vg14/lvol15

    Verify it has been added in “/etc/fstab” when using SAM, or add it manuallywhen using the command line.

    Example:
    /dev/vg14/lvol15 . swap defaults 0 0

ioscan – HP-UX Command

To view a list of peripherals on the server, issue the command…

  1. For HDD
    ioscan -nfC disk
  2. For tape drive
    ioscan -nfC tape
  3. For LAN – Ethernet Card
    ioscan -nfC LAN
  4. For FC – Fiber Channel
    ioscan -nfC FC

The next time you want to view it again, you can use the -k option for cache so that you don’t have to wait for it to scan the entire system again.

For example…
ioscan -knfC disk

How to increase the logical volume size?

Before increasin the size of the logical volume, always ensure that you do a make_tape_recovery and fbackup on the data stored on that particular logical volume that you wish to increase.

Always check your current and free lvol size before increasing so you can keep track and notice the differents.

We take a scenario where I would want to increase my /dev/vg00/lvol10 to 1GB

  1. umount /dev/vg00/lvol10
  2. lvextend -L 1024 /dev/vg00/lvol10
  3. extendfs -F vxfs /dev/vg00/lvol10
  4. mount /dev/vg00/lvol10 /myfolder
  5. bdf

bdf command to check your increased lvol size.

AIX Related Links

Here’s our favourite downloads, tools and resources.

General resources
developerWorks
Provides a number of AIX tools and utilities (select AIX from the page above to show the AIX specific ones), provided on developerWorks (IBM’s resource for developers).

alphaWorks
alphaWorks provides a showcase for emerging technologies – this page provides a huge selection of tools / utilities (not AIX / Linux specific).

System microcode
Provides download of system microcode for Power based servers, old and new.

Redbook download
Keep up to date with these valuable guides – use RSS to automate the subscription and download of Redbooks

IBM Electronic Service Agent – ESA
If you have enabled IBM Electronic Service Agent on your system and have an IBM ID associated with it, you can use the Premium Search tool to search IBM technical support documents, flashes, and fixes and filter the search results based only on your system inventory. Download the agent free and start using and exploring ESA

AIX 5L / Linux tools

AIX Expansion Pack and the AIX Web Download Pack
A collection of extra software that extends the base operating system capabilities.

Pre-Req Tool
Details the base support level for any hardware feature on System p servers with POWER5/POWER5+ processors.

FLRT – Fix Level Recommendation Tool
Provides the IBM recommended, minimum fix levels on System p servers with POWER5/POWER5+ processors.

Service and productivity tools for Linux on POWER
Hardware service diagnostic aids and productivity tools for IBM servers running Linux operating systems on POWER4 and POWER5 processors.

AIX Toolbox for Linux Applications
AIX Toolbox for Linux Applications contains a collection of open source and GNU software built for AIX 5L.

Sizing / capacity planning

Consolidation, Discovery and Analysis Tool (CDAT)
A GUI-based tool developed to drive server consolidation studies.

Solution sizing tools
Information you need to create a web-based sizing guide for your application.

nmon performance
The nmon tool is designed for AIX 5L and Linux performance specialists to use for monitoring and analyzing performance data.

ncp and nweb
Use to gather a wealth of information for capacity planning and server consolidation

Virtualization

System Planning Tool
The SPT tool assists the design, validation and deployment of partitioned System p servers. System plans can be created on your laptop, and deployed
via the HMC or IVM.

Advanced POWER Virtualization Assessments
Evaluate with your customers their Advanced POWER Virtualization (APV) readiness, understanding and use of APV

Reference tools

pSeries-Family-Nutshell.xls
(Americas) Summary of key System p features.

Unofficial System p, BladeCenter and Storage site planning
(Americas) Summary of power, size and operating environment info

RSinfo.pdf
RSINFO provides hardware specifications for cards, devices, cables and other devices.

Visio stencils
Repository of Visio stencils for IBM products.

An A-Z Index of the Linux BASH command line

An A-Z Index of the Linux BASH command line

alias    Create an alias
apropos  Search Help manual pages (man -k)
awk      Find and Replace text, database sort/validate/index
break    Exit from a loop
builtin  Run a shell builtin
bzip2    Compress or decompress named file(s)

cal      Display a calendar
case     Conditionally perform a command
cat      Display the contents of a file
cd       Change Directory
cfdisk   Partition table manipulator for Linux
chgrp    Change group ownership
chmod    Change access permissions
chown    Change file owner and group
chroot   Run a command with a different root directory
cksum    Print CRC checksum and byte counts
clear    Clear terminal screen
cmp      Compare two files
comm     Compare two sorted files line by line
command  Run a command - ignoring shell functions
continue Resume the next iteration of a loop
cp       Copy one or more files to another location
cron     Daemon to execute scheduled commands
crontab  Schedule a command to run at a later time
csplit   Split a file into context-determined pieces
cut      Divide a file into several parts

date     Display or change the date & time
dc       Desk Calculator
dd       Data Dump - Convert and copy a file
declare  Declare variables and give them attributes
df       Display free disk space
diff     Display the differences between two files
diff3    Show differences among three files
dir      Briefly list directory contents
dircolors Colour setup for `ls'
dirname  Convert a full pathname to just a path
dirs     Display list of remembered directories
du       Estimate file space usage

echo     Display message on screen
egrep    Search file(s) for lines that match an extended expression
eject    Eject removable media
enable   Enable and disable builtin shell commands
env      Environment variables
ethtool  Ethernet card settings
eval     Evaluate several commands/arguments
exec     Execute a command
exit     Exit the shell
expand   Convert tabs to spaces
export   Set an environment variable
expr     Evaluate expressions

false    Do nothing, unsuccessfully
fdformat Low-level format a floppy disk
fdisk    Partition table manipulator for Linux
fgrep    Search file(s) for lines that match a fixed string
file     Determine file type
find     Search for files that meet a desired criteria
fmt      Reformat paragraph text
fold     Wrap text to fit a specified width.
for      Expand words, and execute commands
format   Format disks or tapes
free     Display memory usage
fsck     File system consistency check and repair
ftp      File Transfer Protocol
function Define Function Macros

gawk     Find and Replace text within file(s)
getopts  Parse positional parameters
grep     Search file(s) for lines that match a given pattern
groups   Print group names a user is in
gzip     Compress or decompress named file(s)

hash     Remember the full pathname of a name argument
head     Output the first part of file(s)
history  Command History
hostname Print or set system name

id       Print user and group id's
if       Conditionally perform a command
import   Capture an X server screen and save the image to file
install  Copy files and set attributes

join     Join lines on a common field

kill     Stop a process from running

less     Display output one screen at a time
let      Perform arithmetic on shell variables
ln       Make links between files
local    Create variables
locate   Find files
logname  Print current login name
logout   Exit a login shell
look     Display lines beginning with a given string
lpc      Line printer control program
lpr      Off line print
lprint   Print a file
lprintd  Abort a print job
lprintq  List the print queue
lprm     Remove jobs from the print queue
ls       List information about file(s)
lsof     List open files

make     Recompile a group of programs
man      Help manual
mkdir    Create new folder(s)
mkfifo   Make FIFOs (named pipes)
mkisofs  Create an hybrid ISO9660/JOLIET/HFS filesystem
mknod    Make block or character special files
more     Display output one screen at a time
mount    Mount a file system
mtools   Manipulate MS-DOS files
mv       Move or rename files or directories

netstat  Networking information
nice     Set the priority of a command or job
nl       Number lines and write files
nohup    Run a command immune to hangups

passwd   Modify a user password
paste    Merge lines of files
pathchk  Check file name portability
ping     Test a network connection
popd     Restore the previous value of the current directory
pr       Prepare files for printing
printcap Printer capability database
printenv Print environment variables
printf   Format and print data
ps       Process status
pushd    Save and then change the current directory
pwd      Print Working Directory

quota    Display disk usage and limits
quotacheck Scan a file system for disk usage
quotactl Set disk quotas

ram      ram disk device
rcp      Copy files between two machines.
read     read a line from standard input
readonly Mark variables/functions as readonly
remsync  Synchronize remote files via email
return   Exit a shell function
rm       Remove files
rmdir    Remove folder(s)
rsync    Remote file copy (Synchronize file trees)

screen   Terminal window manager
scp      Secure copy (remote file copy)
sdiff    Merge two files interactively
sed      Stream Editor
select   Accept keyboard input
seq      Print numeric sequences
set      Manipulate shell variables and functions
sftp     Secure File Transfer Program
shift    Shift positional parameters
shopt    Shell Options
shutdown Shutdown or restart linux
sleep    Delay for a specified time
sort     Sort text files
source   Run commands from a file `.'
split    Split a file into fixed-size pieces
ssh      Secure Shell client (remote login program)
strace   Trace system calls and signals
su       Substitute user identity
sum      Print a checksum for a file
symlink  Make a new name for a file
sync     Synchronize data on disk with memory

tail     Output the last part of files
tar      Tape ARchiver
tee      Redirect output to multiple files
test     Evaluate a conditional expression
time     Measure Program running time
times    User and system times
touch    Change file timestamps
top      List processes running on the system
traceroute Trace Route to Host
trap     Run a command when a signal is set(bourne)
tr       Translate, squeeze, and/or delete characters
true     Do nothing, successfully
tsort    Topological sort
tty      Print filename of terminal on stdin
type     Describe a command

ulimit   Limit user resources
umask    Users file creation mask
umount   Unmount a device
unalias  Remove an alias
uname    Print system information
unexpand Convert spaces to tabs
uniq     Uniquify files
units    Convert units from one scale to another
unset    Remove variable or function names
unshar   Unpack shell archive scripts
until    Execute commands (until error)
useradd  Create new user account
usermod  Modify user account
users    List users currently logged in
uuencode Encode a binary file
uudecode Decode a file created by uuencode

v        Verbosely list directory contents (`ls -l -b')
vdir     Verbosely list directory contents (`ls -l -b')
vi       Text Editor

watch    Execute/display a program periodically
wc       Print byte, word, and line counts
whereis  Report all known instances of a command
which    Locate a program file in the user's path.
while    Execute commands
who      Print all usernames currently logged in
whoami   Print the current user id and name (`id -un')
Wget     Retrieve web pages or files via HTTP, HTTPS or FTP

xargs    Execute utility, passing constructed argument list(s)
yes      Print a string until interrupted

.period  Run commands from a file
###      Comment / Remark

Nigel’s Monitor – NMON and Analyzer

nmon performance — free tool to analyze AIX performance
This free tool gives you a huge amount of information all on one screen. Even though IBM doesn’t officially support the tool and you must use it at your own risk, you can get a wealth of performance statistics. Why use five or six tools when one free tool can give you everything you need? NMON can be downloaded and explored from here.
 
 
nmon analyser — free tool to produce AIX performance reports
This free tool is designed to take files produced by the NMON performance tool and turn them into spreadsheets containing high quality graphs ready to cut and paste into performance reports. The tool also produces analyses for ESS and FAStT subsystems. NMON Analyser can be downloaded and accessed from here.