Monthly Archives: April 2010

HP-UX : How To Create Swap – Command Line

To create swap, we need a contiguous space on a disk / LUN. Create vg01: pvcreate /dev/rdsk/c12t0d0pvcreate /dev/rdsk/c12t2d0vgcreate -s 8 -p 128 /dev/vg01 /dev/dsk/c12t0d0 /dev/dsk/c12t2d0vgchange -a y /dev/vg01 lvcreate -C y -L 16384 -n lvswap /dev/vg01 /usr/sbin/swapon -f -p 3  … Continue reading

Posted in Uncategorized | Leave a comment

How do I extend the terminal width or set term variables with ksh? / Not Getting the full command info from ps in Unix terminal ?

To identify processes to kill we need to view the FULL output from the ps command (we use the comm field). But by default we are not able to view full command.  So here is the solution.. Solaris : /usr/ucb/ps … Continue reading

Posted in Uncategorized | Leave a comment

How do I extend the terminal width or set term variables with ksh? / Not Getting the full command info from ps in Unix terminal ?

To identify processes to kill we need to view the FULL output from the ps command (we use the comm field). But by default we are not able to view full command.  So here is the solution.. Solaris : /usr/ucb/ps … Continue reading

Posted in Uncategorized | Leave a comment

How do I extend the terminal width or set term variables with ksh? / Not Getting the full command info from ps in Unix terminal ?

To identify processes to kill we need to view the FULL output from the ps command (we use the comm field). But by default we are not able to view full command.  So here is the solution.. Solaris : /usr/ucb/ps … Continue reading

Posted in Uncategorized | Leave a comment

Linux / Unix: How do I extend the terminal width or set term variables with ksh? / Not Getting the full command info from ps in Unix terminal ?

To identify processes to kill we need to view the FULL output from the ps command (we use the comm field). But by default we are not able to view full command.  So here is the solution.. Solaris : /usr/ucb/ps … Continue reading

Posted in Uncategorized | Leave a comment

HP-UX : ICAP Quick How To

Use icapstatus to display Instant Capacity (iCAP) status and information: # icapstatusSoftware version:          B.08.00System ID:                 test06Serial number:             UFR99899X2Product number:           A6752AUnique ID:                 Z3e1999999999ffb4System contact e-mail:  me @ mydomain.caFrom e-mail:               Set to the default (‘adm’)Asset reporting:           onTemporary capacity warning period:  15 daysException status:          No … Continue reading

Posted in Uncategorized | Leave a comment

LogicalExtentsNumber is bigger than the maximum value allowed in hp-ux

If you get this error when trying to lvextend a lvol: lvextend: “LogicalExtentsNumber” is bigger than the maximum value allowed. It is becuse you have tried to use more than 65,535 logical extents — the limit for a logical volume. Your … Continue reading

Posted in Uncategorized | Leave a comment

5 Useful Solaris Unix Administration Cheat Sheets

When I started in UNIX, I really fancy cheat sheets, as they give quick reference to the most useful commands. They are helpful to both new and experienced administrators. Even the most experienced UNIX system administrators forget their commands, sometimes … Continue reading

Posted in Uncategorized | Leave a comment

HP-UX: Preparing for System Reboot / Shutdown

System administrators will often reboot their boxes because of certain need like patch installation and kernel parameter change. Below is a guide to properly shutdown and reboot the system. THE PRE-WORK 1. Get important system information: Common Information needed# hostname# … Continue reading

Posted in Uncategorized | Leave a comment

HP-UX: How to extend root – live!

No outage required , if you have online jfs. If you do not have online jfs , do all the following in LVM maintenance mode.Note: this will only work if SWAP is NOT the next lvol after / a. Login … Continue reading

Posted in Uncategorized | Leave a comment