Subject: 1.200: Some INFO About Tape Backups
From: Craig Anderson
The Following Supplements The Information on RMT Devices in INFORMATION
InfoExplorer. It is based on my owna Personal Experience with IBM TAPE
Drives Running On Aix 3.1. No Warranty is Expressed or Implied.
Configuring through smit:
Block size (0 = variable length) (all)
Sets The Tape Block size. When Reading, The Block Size Must Be
Set to the block size set when the Tape Was Written. When
Using Some Commands, Tapes Written with Any Block Size Can Be
Read if The Block Size Is Set To 0 (See
"Block Sizes" Below).
Use Device Buffers During Writes (all)
Set to Yes, The Device Will Buffer Data INTERLY ON WRITES.
This Greatly Improves Performance, But Under Certain Cases MAY
Be Undesirable Since The Data In Not Written to Tape Before
Returning a good indication.
Use extended File Marks (8mm only)
Extended File Marks Take Up Much More Space Than Short (OR
Non-extended) File Marks. But Extended File Marks Can Be
Overwritten, Allowing Data Not At The Beginning of Tape To BE
OverWritten (see "file marks" below).
Retension on Tape Change Or Reset (1/4 "ONLY)
IF set to "no" THE TAPE WILL NOT BE RETENTIONEDED
Automatically When the Tape is inserted. Note That this Will
Take Effect Only After The Device IS Used.
FILE MARKS:
Tape Files. Tape Files Are The THE
Result of A Backup / CPIO / TAR / DD TYPE COMMAND, WHERE THE Device IS
Opened, Written to, And Closed. Because Tapes Allow Large
Quantities of Data To Be Written on A Single Tape, Several Backups
(That IS, TAPE Files), May Be Combined On One Physical Tape.
Between Each Tape File Is A "Tape File Mark" or Simply "Filemark". Thase File Marks Are Used by The Device Driver To INDICATE
WHERE ONE TAPE FILE Ends and another begins.
B e
<------- o O ------->
T T
__ ________________________________________
Physical | / | | / | Physical
Beginning | / | TAPE | / | END
Of | / | file | / | of
TAPE | / | Mark | / | TAPE
| _____ / ________ | _______ | __________ / _________ |
Note That there is a distinction betWeen the beginning of tape
(Bot) Side of a file mark and the end of tape (eot) Side of a file
Mark. if the head is on the bot side of a file- mark, "TCTL FSF
1 "Command Will Move Only to the eot side of the same file mark.
With the 1/4 "Tape Drive, Writing Can Only Take Place
Sequentially, or after blank Tape Has Been Detected. You Cannot
Write over data on the Tape (Except At Bot). if you wish to add
Data TO a Tape Which Has Been Written and The Rewound You Should
Space Forward File Mark Until An Error Occurs. Only Then Can
You Start Writing Again.
With an an 8mm tape drive, Writing Can Only Take Place Before Blank
Tape, An Extended File Mark, OR at Bot. Thus if Several Backups
Have Been Made On One Tape and you wish to overwrite one of the
Backups, Position The Tape To The Place You wish To Start Writing
And Issue The Following Commands:
TCTL BSF 1
TCTL EOF 1
THE FIRST Command Skips Back to the Bot Side of the Same File
Mark. The Second Command Rewrites The File Mark (Writing IS
Allowed Before Extended File Marks. The Erase Head Will ERASE
Data Ahead of the Write Head, SO That After Writing The File Markthe Head Will Be Positioned Before Blank Tape. ONLY AFTER TAPE.
May You Start Writing over Data in The Middle of The Tape. (All
Data beyond where you are currently Writing Will Be Lost. Note
That you cannot Write over Sort File Marks. in Order for this To
Work, The Tape Must Have Been Written with Extended File Marks
Use smit to change this.
With the 9-track drive Writing can take place anywhere on The 9 - TAKE
Tape Alth Overwriting Single Blocks of Data IS Not Supported.
On The 8mm Drive Extended Filemarks Use 2.2 Megabytes of Tape and
Can take Up to 8.5 seconds to write. Short filemarks use 184k
AND Take Up to 1.5 seconds to write.
Block Sizes:
When Data IS Written to Tape It Is Written in Blocks. The Blocks
ON A Tape Are Separated by Inter-Record Gaps. It is important to
Understand the structure of the Written Tape in Order To
Understand The Problems Which Can Occur with Changing Block
Sizes.
In Fixed Block Size Mode All Blocks on The Tape Are The Same
Size. The Block Size Set in The Device
Configuration. All read () s and write () S to the Tape Drive Must Be
A Multiple of The Fixed Block size.
In Fixed Block Mode a Read () Will Return AS Many Blocks as Needed
To satisfy the read () request. if a file mark is encountered
While Reading The Tape Only The Data Up Until The File Mark Will
Be returned.
IT is not Possible for the Tape Drive To Read a Tape Whose Block
Size Is Not The Same as The Block Size In The Device
(unless the device configuration is in variable
Size blocks.)
In variable block size (0) Mode, The Blocks Written on the Tape
Are the size of the read () and write () Requests to the DeviceDriver. in this case, the actual block
Changed using the options to the backup commists (tar -c, cpio -c,
Backup -c).
In Variable Mode, Read () Requests Greater Than Size of the Block
On The Tape Will Return Only The Data from The Next Block on The Data
Tape. It is this feature tratows tapes written in Any Block
Size (Fixed or Variable) to read with the dd command (the output
From The Dd Command May Be Piped To Restore, Tar, or CPIo for
Example.) Note That Backup, Tar, And CPIO Cannot Read All Tapes
By Using A Large Block Size Because The Assute Twhere Is An Error
IF The get a short read ().
DD IBS = 128K OBS = 16K if = / dev / rmt0 | ...
The Tape Head Is Always Positioned at an Inter-Record Gap, File
Mark, or Blank Tape after Reading or Writing.
With the 8mm tape drive, using a fixed block size heich is not a
Multiple of 1K is inefficient. The 8mm Tape Drive Always Writes
INTERNALLY IN 1K Blocks. It Simulates The Effect of Variable
Block Sizes, But, for Example, Using A Fixed Block Size of 512
Bytes (or using variable block size and write () ing 512 bytes ATES
Time) Wastes One Half of The Tape Capacity and Gives Only One Half
The maximum transfer rate.
To Figure Out A Tape's Actual Block Size Try:
1). SET the Tape to Variable Block size.
2). "DD if =
3). "Ls -l / tmp / dummy"
4). The number of bytes in "/ tmp / dummy" is The Physical Block size.
Exchanging Data with Non-UNIX and Other Vendors Machines:
Many Tape Drives Support Both Variable and Fixed Block Sizes.
Variable Block Mode Writes Block Sizes The Size of The Write
Command Issued (TAR AND BACKUP Specify this with the -b Option) .IN Fixed Mode, Block Sizes Are Fixed and All Writes Must Be A
Multiple of the fixed block size.
Unix offs and write intel insto
Manageable Pieces (OFTEN 65535, 65534, OR 65532 BYTES) Before
Doing the Actual Reads and Writes. This Means Reads and WRITES OF
64k bytes Are Offen Broken Up Into A 65535 BYTE Record and A 1
Byte Record (In Fixed Mode The Write Will Fail). Block Sizes> =
64K (-C128 and greater) SHOULD BE Avoided for this Reason. AIX
Does Not Break Up Read and Write Requests, But Be Aware of The
Situation On Other Machines.
IF the Tape is Written in an unknown block size kiln unknown block
Device Configuration In Smit To Use Variable Size Blocks, Uses
"DD" Command with a Large Input Block size, and Pipe it to the
Restore Command. for example:
ChDEV -L RMT0 -A Block_size = 0
DD if = / dev / rmt0 ibs = 128k obs = 16k | TAR-TVF-
Subject: 1.201: How do I do remove backup?
There Seems to be several ways of doing this. The first approach is a
One-Liner to Allow Tar to Reference Another Machine's Device. The
Second Is More Complete But Uses A Similar Approach. The Latest
Addition to this section section claims to becoms to support mksysb on a
Remote Machine. Thanks to All the ContiButors.
TAR-B1-C -. | RSH Remotehost "DD IBS = 512 OBS = 1024 of = / dev / TapeDevice"
[Ed .: The usave.sh script has been moved to section 8.06. I've verified
This Script Works Fine. However, IT May Be Slow for Large FileSystems
Since It Creates A Temp file of filenames in / tmp.
There are Also Several Commercial Solutions. One IBM's Sysback / 6000
Product. See Question 1.209 for More Information.open Microsystems Sells a Product Called Distributape Which Supports
MKSYSB TO A Remote Tape Drive Under Aix 3.2, 4.1 and 4.2. Distributape
Supports Remote Tape Drives by Placing a Pseudo Tape Driver on The
Client System, And A Server daemon on the server. More information at
http://www.openmic.com/
Subject: 1.202: How do i backup a multi-disk volume group?
From:
Pack@acd.ucar.edu (Daniel Packman)
[Ed .: i Have Not Verified this Procedure. I Would Actually Recommend
Not to Have ONE Volume Group Span Multiple Disks Unless you really
NEED Such Big Logical Volumes.]
1. if you have a set of three or more disks in a Volume Group
(Typically 3 for 5xx Machines with Three Internal Drives);
With only two, the procedures Outlined here Have to be modified
To Ignore The Fact That You Don't have a quorum in the volume group)
2. IF One Drive Has Failed (Usually Only One Fails At A Time :-))
IT is Possible to Go Through a Service Boot (The Volume Group is Called
Rootvg and one of the 2 good disks on it is caled hdisk0):
IMPORTVG -Y ROOTVG HDISK0
Varyonvg -f -n -m1 rootvg
Thase Commands Will Work, But Give Error Messages. If you wish to mount
A User FileSystem, SAY / U ON Logical Volume / DEV / LV00, THEN
Mount -f / dev / lv00 / v
Will Work ONLY JFSLOG, The Journaled File System Log Device, IS Not
On The Damaged Disk. if IT IS, You Must (and Can in Any Case) Mount To
FILESYSTEM Read-Only:
Mount -f -r / dev / lv00 / v
This Crucial and Rather Obvious Point Baffled Several Level 3 Support
Personnel At Austin As Well As Myself for Almost A Week. Once the File
SYSTEM (S) of Interest Are Available, They Can Be Saved to Tape for
RESTORATION LATER. OF COURSE, One Can Expect Only About Two Thirds of Afilesystem To Be Recoverable IF IT Spans All 3 Physical Disks. One
Other Point To Remember Is That The Standard Boot Procedure from Floppy
Includes The Restore Command But Does Not Include The Backup Command.
*********************************************************** ***********************************
* If you do not home other ket6000 machines at your site it is imperative *
* That You Either build a bootable Tape Which include Either restore or *
* TAR OR CPIO (a Bootable Floppy Set Will Not Have Enough Space) OR at the *
* Very Least Copy Onto a Spare Floppy Backup, CPIO, or tar. The floppy *
* SHOULD BE CREATED WITH BAKUP -IVQ SO That ITS Contents Can Be Read INTO *
* The Memory Resident System After Booting. *
*********************************************************** ***********************************
All is not lost if tar, cpio or backup area available on an undamaged
Disk That Can Be Mounted. Since Tar and Cpio Are IN / BIN, THEY Y Both
Very Well Be unavailable.
IT is a very good idea for those who have tape devices to build a
Bootable Tape with Their Desired Extra Commands in It. FOLLOW THE
INSTRUCTIONS from IBM But Add your desired commands to the folowing
Three files:
/ usr / lpp / bosinst / TAPE2
/ usr / lpp / bosinst / diskette / boot2
/ USR / LPP / BOSIST / DISKETTE / INSLIST
If you have anything other than a minimum memory configuration, you
Should Be Able To Add Many Commands.
Subject: 1.203: How do i put multiple backups on a single 8mm tap?
From:
Kerm@mcnc.org (CARY E. BURNETTE)
There area, Both of which USE /DEV / RMT0.1
WHICH is non-rebinding.
Solution # 1
-----------
To Put Multiple Backups On A Single Tape, Use /Dev /rmt0.1, Which is ANO-REWIND Device, USING Either Rdump or Backup (Both by Name & Inode
Work). Using rdump or backup "byinode" Both generate the message That
The Tape Is Rewinding But Actually Do Not. this is an example
Works on my system:
# rsh remote1 -l root / etc / rdump host: /dev/t0.1 -LEVEL -U / U
# rRSH Remote2 -l root / etc / rdump host: /dev/t0.1 -Level -U / U
# TCTL -F /DEV /RMT0.1 REWIND # REWINDS The TAPE
WHERE I amwareing the command from host.
To restore a Table of Contents of the first I Would Use
# Restore -f /DEV /RMT0.1 -S1 -TV
WHERE The -s1 flag tells restore to go to the first record on the tape.
Type the exact command again to get the second record. The -s (number)
Means Go to Number Record from this Spot. It works pretty Well.
Solution # 2
-----------
Steve Knodle, Educational Resources Center, Clarkson University
I use:
------------------- Dump.sh --------------------
Contentsfile = `Date | DD conv = lcase | SED -E 's / 19 //' | awk '{print $ 6 $ 2 $ 3}'`
Set -X
Level = $ 1
Shift
BACKUP-C 56 - $ level -uf /dev/rmt0.1 /
BACKUP-C 56 - $ level -uf /dev/rmt0.1 / usr
BACKUP-C -B 56 - $ level -uf /dev/rmt0.1 / u
TCTL -F / DEV / RMT0 REWIND
Touch /usr/local/dumps/contents. $ intesfile
Echo "DUMPING /" >> / usr / local / dumps / contents. $ contentsfile
RESTORE -T -S 1 -F /DEV / RMT0.1 >> / USR / local / dumps / contents. $ contentsfile
Echo "DUMPING / USR" >> / usr / local / dumps / contents. $ contentsfile
RESTORE -T -Q -S 1 -F /DEV / RMT0.1 >> / USR / local / dumps / contents. $ contentsfile
Echo "DUMPING / U" >> / usr / local / dumps / contents. $ contentsfile
RESTORE -T -Q -S 1 -F /DEV / RMT0.1 >> / USR / local / dumps / contents. $ contentsfiletctl -f / dev / rmt0 reb
I process the table-of-contents first by a little program That Does
Common prefix encoding, and then compress.
THIS GIVES A TABLE OF Contents File I Can Keep On-line Until The Tape
Is reused.
Solution # 3
-----------
Mount | GREP JFS | CUT -C27- | CUT -D "" -f1 | /
Xargs -i Backup - $ {level} -u -f /dev/rmt1.1 {}> $ {date} .beckup 2> & 1
Subject: 1.204: How Can I make an exact duplicate of a Tape over the network?
The Challenge Here Is Not To Have To Create A Temporary File (Disk Space)
Limitation) and work across heterogeneous networks.
This Script Might Work:
Local = / dev / tape_dev
Remote = / dev / tape_dev
DD if = $ local ibs = 64k obs = 512 | RSH Remote_host DD IBS = 512 OBS = 64K of = $ remote
From: pack@acd.ucar.edu (Daniel Packman)
Daniel Provides The Following Perl Script To Convert from The Known
World's function code to aid for compatibility.
#! / bin / perl
# Wrapper to Convert Input RMT Requests To
# AIX 3.2 IOCTL NUMBERS. WE Pass On All Commands We don't understand
# I 0 m e ->>>> -
# I1 mtfsf -> i11 stfsf forward space file
# I2 mtbsf -> i12 strsf reverse space file
# I3 mtfsr -> i13 Stfsr Forward Space Record
# I4 mtbsr -> i14 strsr Reverse Space Record
# I5 mtrew -> i6 strew rebedind
# I6 mtoffl -> i5 Stoffl Rewind and unload tape
# I7 mtnop -> I0 (no-op? Should Ignore Following Count)
# I8 mtreten-> i8 Streten Retension Tape, Leave At Load Point
# I9 mterase-> i7 step rada, Leave At Load Point
# I10 mteom (position to end of media ... no ibm equivalent?) # I11 mtnbsf (Backward Space File to Bof ... no ibm equivalent?)
@iocs = (10, 11, 12, 13, 14, 6, 5, 0, 8, 7);
Open (RMT, "| | / usr / sbin / rmt") || DIE "can't open pipe to rmt / n";
SELECT (RMT);
$ | = 1;
While (
S / (^ i) (/ d $) / i $ IOCS [$ 2] /;
EXIT 0 if $ _ = ~ / ^ [qq] /;
Print RMT $ _;}
Exit 0;
Subject: 1.205: What is Tape Block Size of 0?
From:
Benson@odi.com (Benson I. Margulies)
Tape Devices Are Gene Generally Split Into Two Categories: fixed block and
Variable Block. 1/4 "Tape is The Fixed Block, and 8mm is variable.
ON A Fixed Block Size Device, The Kernel Always Sends Data To The Device
In Suitable Block Size Lumps, and Varying The size Passed to Write (2)
(E.G., Via the BS Option to DD) Gives The Kernel More Data To Stream.
On a Variable Block Size Device, The Kernel Writes To The Device
Whatver passed to it. on AN 8mm, IT HAD BETTER Be a Multiple of 1024
TO GET Efficient Tape Usage.
AIX Has The World's Only Variable Block Size 1/4 "Tape Drive. If You" TAPE DRIVE.
Use smit to set the block block size to a nonzero value, AIX Treats the Device
As Fixed Block Size, WHETHER IT IS or Not. by Default, 8mm Drives Are
Set to the Same Size As 1/4 ", 512 Bytes. This is Wasteful, But
Otherwise mksysb and installp would fail.
IF you set the block size to 0, The Device IS Treated As Variable Block
Size, and the size passed to write schemes the physical block size.
Then if You Use a Sensible Block Size to DD, All Should Be Wonderful.
Subject: 1.206: Resetting a Hung Tape Drive
From:
Craig_anderson@kcbbs.gen.nz (Craig Anderson)
A Process Accesses The Tape Drive. The Process Stops, EXITS, or WHATEVER,
Button Hoppens, The Process Cannot Bekilled by Any Signal and The Tape Drive Cannot Be Used by Any Other
Process Until the Machine Is Rebooted.
The Following Should Help:
RESET:
AIX, Like Most Unix Systems Has No Reset Function for Tape Drives. You
Can however send a bus device reset (a standard scsi message) to the
Tape Drive Using The Following Piece of Code. if The Tape Drive Does
NOT RESPOND to the BDR, THEN A SCSI Bus Reset Will Be Sent (and this
Will Reset Every Device On The SCSI Bus. SCSI Bus Resets Are Rather
Extreme So You Should Refrain from Using this Program Unnecessarily.
But There Are Times (LIKE AFTER You've Inserted A Jammed / Old / Bad Tape in
An 8mm Drive), When there's no other woman to reset the device other
To Shutdown and reboot (Obviously You CAN Power Down and Up An External)
Drive to reset it - and this would be the better choice).
This is actally docutented in info, But can be hard to find and
There's No Complete Program.
/ * TAPERST: RESETS The Tape Drive by sending a bdr to the drive. * /
#include
#include
#include
#include
INT main (int Argc, char ** argv)
{
/ * This can be run only by root * /
IF (argc! = 2) {
FPRINTF (stderr, "usage:% s / dev / rmt # / n", argv [0]);
Return 1;
}
IF (OpenX (Argv [1], O_RDONLY, 0, SC_FORCED_OPEN) <0) {
PERROR (Argv [0]);
Return 2;
}
Return 0;
}
Subject: 1.207: How do I restore specific Files from a mksysb tape?
From: Marc Pawliger
Marc@sti.com)
To Recover Specific Files from a Backup Made with mksysb, TRY
$ TCTL FSF 3
$ TAR XVF /DEV /RMT0.1 ./Your/file/name
From: matt willman
Willman.matt@cnf.com)
The Procedure Changed with Aix 4, Which Uses Backup Instead of Tar TO
Write the Tape. for Aix 4 The Procedure IS FOLLOWS:
$ TCTL FSF 3
$ restore -xvf /dev/rmt0.1 ./your/file/name
Subject: 1.208: How do i ie 5GBYTE TAPE ON A 2GBYTE DRIVE?
Posted by:
Bobmet@clam (Robert Metcalf)
To read a 5gByte Tape on a 2gbyte drive, the
Tape Needs to Have Been Created with a density setting of 20.
The Following Is from IBM'S Electronic Asksupport Repository:
R: the 7208 011 5 GB Tape Drive Has Various Density Settings Which Are
As Follows:
----- --------------------------
Densit | Description |
| Settin | | |
----- --------------------------
| 140 | Writes in 5.0GB Mode and |
| | WILL ENABLE DATA COM- |
| | PRESSION; Also, To DO |
| | COMPRESSION You Must USE |
| | "Data Compression = YES" |
----- --------------------------
| 21 | WRITES IN 5.0GB MODE AND |
| | WILL NOT Do DATA COM- |
| | PRESSION |
----- --------------------------
| 20 | WRITES IN 2.3GB Mode and |
| | WILL NOT Do DATA COM- |
| | PRESSION |
----- --------------------------
| 00 | Factory Power-On Default |
| | For 5.0GB Data COM- |
| | PRESSION MODE |
----- --------------------------
The density setting of the 7208 011 must be 20 for it to make a tape
That is readable by the 7208 001.
Subject: 1.209: What CAN SYSBACK Do for ME?
From:
Johnsont@austin.ibm.com (tony johnson)
Sysback provides the flexibility of reasoning Onto the Same System INTHE EXACT SAME Manner, or ONTO a Completely Different System with
Differnet Disk Configuration, Platform Type, Kernel, etc, while
Reporting Any Inconsistencies And Allowing You To Adjust To Fit. for
Instance, You Will Get Warnings IF A Particular Volume Group Cannot BE
Created Because The Original Disks To NOT EXIST, or That Mirroring
Cannot Be Accomplished Because There is no longh disk space
Because the disks area smaller. You can life SELECT The Disks for Each
Volume Group, Reduce or Add Space To FileSystems and LVS, Exclude
Entire Vgs or FileSystems, ETC. You Can Even Add and Delete Mirrors,
Stripe or un-stripe Logical Volumes, ETC.
In Addition, All of the Sysback Functions Can Be Performed Across There
NetWork, Including Network Boot and Network Install, And you can
Perform Striped Backups Across Multipel Tape Drives, Use Sequential
Tape Autoloaders, and Perform Unattended Multi-Volume Backups with
Cron.
ON AIX 3.2, MKSYSB Does Not Retain Paging Space Config, Disk LV
Placement, Mirroring, etc.
ON AIX 4.1, IT Does The release, but does not
Allow Any Flexibility, And Still Does Not Retain Non-Rootvg Volume
Groups (Alth You Can Now Use Additional Commands to Backupa ND)
Restore these. MKSYSB Also Does Not Allow You To Clone ONTO
DiffERENT Platforms (I.E. RSPC -> RS6K -> RS6KSMP).
Subject: 1.210: How can I get my hp 4mm dat to work?
For HP25470 / 80A DDS:
MRS DISABED: SET SWITCHES 3, 6, 7, 8 = 0 and 1, 2, 4, 5 = 1
MRS Enabled: Set Switches 3, 6, 7 = 0 and 1, 2, 4, 5, 8 = 1
Subject: 1.211: How do i copy dat tape?
If you have two drives try tcopy (1). Otherwise the traditional UNIX
Approach IS (DD IF = / DEV / RMT0 BS = 1024B | DD OF = / DEV / RMT1 BS = 1024B) PUT THAT IN A While Lo Multiple
Files. To use drivers from Two Different Machines Either Get The GNU
DD (bundled with gnu tar) or use something like.
$ DD IF = / dev / RMT0 BS = 1024B | RSH Hostname DD OF = / DEV / RMT0 BS = 1024B
Subject: 1.212: How do I speted Up Backups to DLT TAPES?
DLT Tapes Need High Data Rates To Stay in Streaming Mode. To Achieve
Higher Data Rates, Use a Variable Length Block Size by Setting The Fixed
Length Block Size To Zero. Also Use A Buffer Size of About 64kb for
Backup (128 Blocks for Tar).
Subject: 1.300: Some Info About The Memory Management System
From: Michael Coggins
McOG@chvm1.vnet.ibm.com).
1. Does AIX Use More Paging Space Than Other Unix Systems?
Under Many Scenarios, AIX Requires More Paging Space Than Other UNIX
Systems. The Aix VMM IMPLEMENTS A TECHNIQUE CALED "EARLY Allocation of
Paging space ". WHEN A Page IS Allocated in Ram, And It Is Not A
"Client" or A "Persistent" (Disk file) Storage Page, THEN IS
Considered a "Working" Storage Page. Working Storage Pages Are Commonly
An Application's Stack, Data, And Any Shared Memory Segments. So, WHEN
A Program's Stack Or Data Area Is Increased, And Ram Is Accessed, The
VMM Will Allocate Space in Ram and Space on the Paging Device. This
Means That Even Before Ram Is Exhausted, Paging Space IS Used. THIS
Does Not Happen ON Many Other Unix Systems, Although They Do Keep Track
Of Total VM Used.
EXAMPLE 1:
Workstation with 64MB Ram Is Running Only One Small Application That
Accesses a Few Small Files. Everything Fits Into Ram, Including All
Accessed Data. On Aix, Some Paging Space Will Already Be Used. on
Other UNIX Systems, Paging Space Will BE 100% Free. Clearly, this is an
Example That Shows Where We Use more paning space Than the Other Machines.
EXAMPLE 2:
Same Machine As Above, Except We Are in An Environment Where Many
Applications Are Running with INADEQUATE RAM. Also, The System IS
Running Applications That Are Started, Run, Left Idle, And Not in
Constant Use. A Session of Frame Running In A Window, for Example.
What happens is that time Eventually (Theoretical) All Applications Will Be
Paged Out at Least Once. on the aix system and the other systems the
Total Paging Requirements Will Be The Same (Assuming Similar Malloc
Algorithm). The Major Difference Is That The Aix System Allocated The Aix System Allocated The Aix System Allocated
Paging space Pages Before theey atually needed, and the other
Systems Did Not Allocate Them Until Theene Needed. However, MOST
Other Systems Have an Internal Variable That Gets Increment As Virtual
Memory Pages Are Used. Aix Does Not do this. This Can Cause The Aix
System to Run Out of Paging Space (Virtual Memory), Even Though Malloc ()
Continues to return memory. this "feature" Allows Sparse Memory
Segments to Work, But Requires That All Normal users of malloc ()
(Sbrk ()) Know How much Virtual Memory Will Be Available (Actually
Impossible), and to handle a paging space low condition. A Big Problem.
There Area Some Pretty Obvious Pros and Cons To Both Methods of doing
Virtual memory.
2. How much Paging Space Do I NEED?
Concerning the rule of thumb of haVing 2 Times Ram for Paging Space:
This Is Rather Simplistic, AS Are Most Rules of thumb. if The Machine
IS in a "Persistent Storage Environment", Meaning That They Have A Fewsmall Programs, And Lots of Data, They May Not NEED EVEN AS AS 1
Times Ram for Paging Space. for Example, A 1GB Database Server Running
ON A 6000 with 256MB of Ram, And Only Running About 50MB of "Working"
Storage Does Not NEED 512MB of Paging Space, or Even 256MB. They Only
Need The Amount of Paging Space That Will Allow All Their Working
Storage to Be Paged To Disk. this is because the 1GB Database IS
Mostly "Persistent Storage", And Will Require Little or No Paging Space.
Excessive Paging Space May Simply Mean Wasted Disk Space. However,
Avoid Insufficient Paging Space. Tip: don't have more than one pagging
Space Per disk. TIP: PUT LOTS OF RAM IN YOUR System - IT Will Use IT.
3. Why does VMSTAT SHOW FREE RAM PAGES?
AIX Uses Ram As a Possibly huge disk buffer. If you read a file in the
Morning, That File Is Read Into Ram, And Left there. if no osther
Programs Need That Ram, That File Will Be Left in Ram Until The Machine
Is halted. this means if you need the file again, Access Will B
QUICK. IF You NEED THAT RAM, The System Will Simply Use The Pages The
File were. The page................................
Means That You Can Get a huge spetedup in disk access if you have enough
Ram. For Example, A 200MB Database Will Just Ease Into Ram if you have
A 256MB System.
4. SINCE VMSTAT SHOWS NO Free RAM PAGES, AM I OUT OF RAM?
Probably not. Since Disk files will be "mapped" INTO RAM, IF VMSTAT
Shows Lots of Ram Pages Free, Then You Probably Have Too Much Ram (Not
Usual on a risc system / 6000)!
5. Shouldn't the "avm" and the "fre" fields from vmstat add up to something? No "avm" field tells you how much "Active Virtual Memory" AIX
Thinks you are using. this will closely match the Amount of Paging
Space you are using. this number HAS * ABSOLUTELY * NOTHING TO DO with
The Amount of Ram you are use, and does * not * incrude your mapped
Files (Disk files). The Amount of Ram Can Be Determined with
/ usr / sbin / bootinfo -r
6. Why does the "fre" field from Vmstat Sometimes show Lots of Free
RAM PAGES?
This Will Happen After An Application That Used A Lot of Ram Via
"Working" Storage (NOT NFS Storage, and not disk file or "personistent"
STORAGE) EXITS. WHEN RAM PAGES THAT WERE Used by Working Storage (a
Program's Stack and Data Area) Are no longer needed, There is no need to
Leave The Around. Aix Completely Frees these Ram Pages. The Time To
Access these Pages Versus a Ram Page Holding A "Sync'd" mapped file is
Almost Identical. Therefore, There is no need to periodical "flush" RAM.
7. Is The Vmstat "Fre" Field Useful?
The Vmstat "FRE" Field Repesents The Number of Free Page Frames. IF
THE NUMBER IS CONSISTLY Small (Less Than 500 Pages), this is normal.
If The Number IS Consistently Large (Greater Than 4000 Pages), THEN YOU
Have More Memory Than You NEED IN this Machine.
Subject: 1.301: How much shouth t TRUST THE PS MEMORY REPORTS?
From:
Chukran@Austin.vnet.ibm.com
Using "PS VG" Gives a Per Process Tally of Memory Usage for Each Running
Process. Several Fields Give Memory Usage In Different Units, But These
Numbers do not tell the ...
First Of All, The Man Page Not Give An Accurate DescriptionOf The Memory Related Fields. Here Is A Better Description:
RSS - this Tells How Much Ram Resident Memory Is Currently Being Used
For the text and data segments for a particular process in units of
Kilobytes. (this value will always be a multiple of 4 since memory is
Allocated in 4 kb pages).
% MEM - this is The Fraction of Rss Divided by The Total Size of Ram for
A Particular Process. Since Rss Is Subset of The Total Resident
Memory Usage for a Process, The% MEM Value Will Also Be Lower Than Actual.
TRS - TELLS How Much Ram Resident Memory Is Currently Being Used
For the text segment for a particular process in units of kilobytes.
This will always be less..
Size - this Tells How much Paging Space Is Allocated for this process
For the text and data segments in units of kilobytes. if The Executable
File is on a local filesystem, The page space usage for text is zero.
IF The Executable is on an Nfs FileSystem, The Page Space Usage Will BE
Nonzero. This Number May Be Greater Than Rss, or it may not, depending
On How Much of The Process Is Paged in. The Reason Rss Can Be Larger IS
That Rss Counts text Whereas size does not.
Tsiz - this Field Is Absolutely Bogus Because IT IS Not a Multiple of 4
And does not correlalate to any of the other finags.
Thase Fields Only Report On A Process Text And Data Segments. Segment
Size Which Cannot Be Interrogated At this Time Are:
Text Portion of Shared Libraries (segment 13)
Files That Are IN Use. Open Files Are Cached in Memory AS
Individual segments. The Traditional kernel Cache Buffer
Scheme is not used in Aix 3.
Shared Data Segments Created with shmat.
Kernel Segments Such As Kernel Segment 0, Kernel ExtensionSegments, And Virtual Memory Management Segments.
Speaking of kernel segments, The% Mem and Rss Report for Process Zero
Are Totally Bogus for Aix 3.1. The Reason Why Rss Is So Big Is That That
Kernel Segment Zero Is Counted Twice. For Aix 3.2, This Has Been
Changed, But The Whole Story Is Still NOT KNOWN. The RSS Value for
Process 0 Will Report a Very Small Numr of The Swapper Private Data
Segment. It does Not Report The size of the kenel segment 0, Where The Kernel Segment 0, WHERE T
Swapper cotne.
In Summary, PS Is Not a Very Good Tool To Measure System Memory Usage.
IT Can Give You Some Idea Where Of The Memory Goes, But It Leaves
Too Many Questions Unanswered About The Total Usage.
Subject: 1.302: Which Simms Do RS6000'S USE?
This Answer Is Under Construction ... I'm Trying to Collect Details
About Compatable Simms.
RS / 6000 220, 230 USE 2 Pair 70ns PS / 2 style SIMMS
RS / 6000 250, C10 USE 4 Pair 70ns PS / 2 STYLE SIMMS
Subject: 1.303: What is kproc?
KProc (Always PID 514 On Aix 3 and Pid 516 On Aix 4) Is The Kernel's
Idle process.
Subject: 1.304: How do i create a RAM DISK IN AIX?
From: Jeff Wang <
hjiwa@nor.chevron.com>
You can't create a Ram Disk in aix. The Closest Related FunctionAlicity
The Operating System Gives You Is The Ram Disk Buffer. Read 1.300
Sub-section 3.
[Editor's notice: as of 4.3.3 you can. See 1.914]
Subject: 1.305: How much ram (real memory) Does my machine has?
From: Michael Abel / ReNova
<
Michael_abel/resnova%resnovad@notesgw.compuserve.com>
As root: bootinfo -r
As Any User: lsattr - E -L Sys0 -a Realmem
LSDEV-C-C Memory
SHOWS All Memory Adapters. on MCA Systems One May Add Up The ValuesDisplayed for Each Memory Card in Order To Sum Up To The Amount of
Total Memory. on PCI Systems Only One Item (MEM0) IS
Displayed. Additional Information May Be displayed with
Lsattr-E-LMEM0
Thase Commands Were Tested on Various IBM Systems Running Aix RELASES
3.2.5 and 4.1.4
Subject: 1.306: why do pids run non-sequentially?
From: Julianne F. Haugh <
Jfh@Austin.ibm.com>
The answer (I Was there, consider me an authority ...) is that the
PIDS Needed to Be Somewhat Unpredictable. This is Because AIX WAS
Originally Designed with a Number of C2 and B1 Features, and ONE of Those
Is The Notion of Covert Channel Analysis. Sequential PIDS Are A Covert
Channel (Assuming The System Has One Pid Namespace ...) Since The Value
Of the "next" pid is shared by all capitally Running Processes. SO if i
Want to Sneak Some of My Classified Data Out to Your Co-Operating
Non-Classified Program, i can do it by Carefully Controlling the Value
of the "next" PID.
Subject: 1.400: How do i make an informative prospt in the shell?
In The Korn Shell (KSH), The PS1 Variable Is Expanded Each Time IS
Printed, so you can use:
$ export myhost = `Hostname`
$ Ps1 = '$ logname @ $ myhost $ pww / $'
To get, e.g.
BENGSIG @ ieibm1 / u / bengsig $
In the c-shell, us:
% set myhost = `Hostname`
% alias cd 'chdir /! *> / dev / null; set prospt = "$ logname @ $ myhost $ cwd%"
% CD
To get, e.g.
Bengsig @ DKUNIX9 / U / BENGSIG / AIXFAQ%
The Bourne Shell. Use the korn shell instead.
Subject: 1.401: How do i set up ksh for emacs mode command line editing?
The Ksh Has An undocunted Way of binding the arrowkeys to the emacsline editing commands. In Your .Kshrc, Add:
Alias __a = `echo" / 020 "` # UP arrow = ^ p = back a command
Alias __b = `echo" / 016 "` # Down Arrow = ^ n = Down a Command
Alias __c = `echo" / 006 "` # Right Arrow = ^ f = forward a character
Alias __d = `echo" / 002 "` # left arrow = ^ b = back a character
Alias __h = `echo" / 001 "` # Home = ^ a = start of line
TYPE "set -o emacs" or put this line in your .profile.
Also, You Must Have PTF U406855 for this to work in Aix 3.2. The Apar #
For the problem is ix25982, Which may have been superseded.
Subject: 1.402: Listing Files with ls causes a core dump
From: Julianne F. Haugh
Scenario: a Directory That Is Shared By N Users (n> = 200).
Run 'ls -l' in That Directory. It goes for a while, then
Seg Fault (CoredUmp)!
It Only Occurs When The UserNames Are Displayed (Almost Every File IS
OWNED by a Different Person). The -g and -n options Work Fine; Only -L
And -o (Which Shows Owner and Not Group) Cause IT.
I believe That this problem Was corrected by u407548. If you have this
Many Users That You Are Having Core Dump Problems (IT TOOK OVER 200),
You might alsowant to look. getting the ptf That fixes ix31403.
That Apar DEALS with LARGE NUMBERS OF Accounts and Performance Problems
Associated with looking them up.
Subject: 1.403: How do i put my own text int infoExplorer?
With Aix 3.1, You Cannot Do It. Aix 3.2 Has A Product Called
Infocrafter That Allows you to do what.
Subject: 1.404: InfoExplorer ASCII Key BindingsFrom:
Mycroft@hal.gnu.ai.mit.edu (Charles Hannum)
IF you just press' Return 'When IT Starts Up, with' Basic Screen
Operations' Highlighted, You'll Get Some Help.
If you look long enough, you'll find a page named 'use keys and key
Sequences in The InfoExplorer Ascii Interface '. It Describes The Key
Sequences and actions. Here Are A Few To Get You Started.
Keys action
Ctrl-w Moves Between The Navigation Screen and The Reading Screen.
If the navigation screen is displayed, you can Press Ctrl-w To Display
The Reading Screen. if The Reading Screen Is Displayed, You CAN PRESS
Ctrl-w to Display The Navigation Screen.
Ctrl-o makees the menu bar active or inactive. If you text Cursor IS
Located in the text area of the screen, you can pies ctrl-o to make the
Menu Bar Active. if The menu bar is already active, you can press
Ctrl-o To make it it inactive, Which Moves the text cursor to the text isa.
Tab Moves to the next menu bar Option in the menu bar. If a pall-down
Menu Is Not Displayed and You Press The Right Arrow Key, The Next Menu
Bar option is displayed in reverse video.
Subject: 1.405: How Can I Add New MAN Pages To the system?
From:
Horst@faui63.informatik.uni-erlangen.de (Horst Luehrsen)
Put The Man Pages In / usr / man, e.g. /usr/man/man1/tcsh.1 for the TCSH
Man Page. Under Aix 3.1.10, / USR / LIB / Makewhatis Can Be Used to Update
The Makewhatis-Database / USR / Man / Whatis SO APROPOspos and Whatis Know About
The Added ManPages. / USR / LIB / Makewhatis Should Be Available On All 3.2
Versions.
FOR AIX 4.X, You Can Store The Man Pages in The / USR / Share / Man Hierarchy.
/ usr / lib / makewhatis is still there.subject: 1.406: Why can't i ie is nroff?
Nroff and troff aren't in the base installation. It is shipped AS. IT IS SHIPPED AS
Part of Aix 3.2.5 But May Not Be Installed. Use smit to install A. USE SMIT TO INSTALL
Software package called txtfmt.tfs.obj from Your 3.2.5 Distribution
MEDIA.
IN AIX 4.x, You need bos.txt.tfs.
Subject: 1.407: why is my environment only loading onc?
The .profile file is only loaded overce (for your login shell) Subsequent
Shells Should Be Initialized by Setting Env = $ HOME / .KSHRC (for KSH).
Bash Users CAN Use $ Home / .bash_profile for the login shell environment
And $ home / .bashrc.
Subject: 1.408: Where is the 'Nawk' Command ON My AIX SYSTEM?
From: jeff wang
The / bin / Nawk That EXISTS ON MANY UNIX FLAVORS IS A SuperSet of The
'awk' command, revised by The Same Original Authors To include Added
FunctionAlity. All the extra options normally associated with 'nawk'
ON Other Unixes Have Been Incorporated Into The Aix Version of 'awk'
The Aix 'awk' InfoExplorer or Man Pages include Nawk-Specific Features
Such as the "-v" Command line option and atan2 (), rand (), SRAND (),
Match (), SUB (), GSUB (), System (), Close (), Getline functions.
IF Your Aix Version Issing / Bin / Nawk (AS Are Most AIX 3.x
Versions, The Simplest Way To Get This and Maintain Script
Portability Between Unix Platforms Is To Make A / Bin / Nawk Link To
/ bin / awk (as root, of course). if you do not have root privilege or
Do Not Want to Create A / Bin / Nawk Link, To Make The Script Work ON
Different Unixes, You May Have to Test `Uname` First and Set All
'Nawk' References On Aix Runs To / Bin / Awk. If Your Script Is To OnlyRun ON Aix Systems, You Can Just Change All References of 'Nawk' To
'awk' and everything shouth still work okay ... But Check The Aix awk
Script on test data prior to Making actual runs.
[Editor's Note: AIX 4.x Already Contains a Link from / usr / bin / nawk
To / usr / bin / awk.]
------------------------------
1.409: How do i copy infoExplorer (MANPAGES AND MORE) To my hard driving?
From: David Alexander <
UniLink@online.rednet.co.uk>
[Editor's note: while this is docutented in one of the aix manuals
And Covered IN / USR / LPP / BOS / BSDADM (AIX 3 Only), IT Comes Up Offen
ENOUGH I Thought I would include it here.
NOT ALL INFO DATABASESED, SO DO NOT COPY THEM ALESS THE
Customer Specifically Requests Them, or Has Asked for The Software They
Refer to. THESE INSTRUCTIONS Assume You Have Enough Space ON / USR.
Install and mount the infoExplorer CD-ROM as for use of info
From CD-ROM.
Log in as root
Umount / USR / LPP / INFO / LIB / $ LANG
MKDIR / MNT / $ LANG
Mount -V CDRFS -R / DEV / CD0 / MNT / $ LANG
CD /
CD / MNT / $ LANG
CP -R AIX / USR / LPP / INFO / LIB / $ LANG
CP -R AIX2 / USR / LPP / INFO / LIB / $ LANG
CP -R Compnav / USR / LPP / INFO / LIB / $ LANG
Cp -R Hardware / USR / LPP / INFO / LIB / $ LANG
CP -R NAV / USR / LPP / INFO / LIB / $ LANG
CP -R Prog / USR / LPP / INFO / LIB / $ LANG
CP -R UIPROG / USR / LPP / INFO / LIB / $ LANG
Other sections can be copied if required:
Section size
CP -R ADA / USR / LPP / INFO / LIB / $ LANG 7.2 MB
CP -R Assemb / USR / LPP / INFO / LIB / $ LANG 5.23 MB
CP -R CXX / USR / LPP / INFO / LIB / $ LANG 6.52 MB
CP -R DCE / USR / LPP / INFO / LIB / $ LANG 3.8 MB
CP -R ENCINA / USR / LPP / INFO / LIB / $ LANG 2.67 MB
CP -R FORTRAN / USR / LPP / INFO / LIB / $ LANG 6.85 MB
CP -R graph / usr / lpp / info / lib / $ lang 9.75 mbcp -r graph2 / usr / lpp / info / lib / $ lang 4.1 MB
Cp -R Pascal / USR / LPP / INFO / LIB / $ LANG 3.23 MB
UMOUNT / MNT / $ LANG
Eject the CD-ROM
Subject: 1.410: why can't i set my default shell to one we've just installed?
When addition new shells to the system, add the the "shells =" line
In /etc/security/login.cfg so the can be used during ftp and rlogin
By Users Who Use the the the their default shell.
Subject: 1.411: why do get the "Unable to connect socket: 3"
STARTING INFO-Explorer?
It's a bug in the way infod sets the initial permission on the init
/ TMP/.info-help socket. do a chmod 777 on /tmp/fo-help and the
Message Will Go Away. (Charlie McGuire,
McGuire@cs.umt.edu)
This Problem was fixed by apar ix43230, PTF U432315
(Paul Sitz,
Psitz@empros.com)
Subject: 1.412: why can't i write a setuid shell script?
From:
MWW@microfocus.com (michael wojcik)
AIX, as of About The First Release of 3.2.5 * Does Not Allow Suid Scripts.
(It ignores the suid and sgid bits on scripts.) They're a huge security
Hole.
If you really want to run a script suid, you can create a small C Program
That Does a setuid (0) and then system () 's Your Script. (Actually, THE
SetUID () Call isn't Necessary on All Unixes; IIRC, IT's Not On Aix 3.2.5,
BUT YYMV.) Make The Program Suid. Be Very Careful.
There area Other Similar Solutions. You might alsowant to look in
Sudo, Which Handles this Sort of Thing in A Somewhat More Controlled
Manner
* Julianne Frances Haugh (
Jfh@tab.com) Writes:
I raised an Objection to set-id shell scripts Before AIX 3.1 WAS
Golden. ... it was finally done in the 3009 PTF for Aix 3.1.
Subject: 1.500 Which RELESE OF X11 Do I Have? AIX 4.x INCLUDES X11 R5 and MOTIF 1.2.
On Aix 3, Run 'LSLPP -H X11RTE.ObJ'.
IF Your Output Has A Line Similar TO:
01.02.0000.0000 Complete commit 03/04/93 02:05:11 root
You Have X11 R4. if Your Output Has a line Similar TO:
U491068 01.02.0003.0000 Complete commit 07/28/93 12:50:42 root
You Have X11 R5. Some People Also Call Thase AixWindows 1.2.0 and
1.2.3. 'Lslpp-h x11rte.motif1.2.obj' Should Tell you if you are
Running Motif 1.2.
From: Jan Just Keijser <
KeijSerjj@logica.com>
AIX 4.1 and AIX 4.2 Come with x11r5 and motif 1.2.4
AIX 4.3.1 (AND Perhaps 4.3.0) Comes with x11r6.1 and motif 2.1
Some Executables Which Run Fine Using The X11R5 Libraries May Not Run
When use the x11r6.1 libraries; you can specify which x11 libraries to
Use by setting
LibPath = / usr / lpp / x11 / lib / r5: / usr / lib: ...
For x11r5 and
Libpath = / usr / lpp / x11 / lib / r6: / usr / lib: ...
For x11r6.1; by Default,
/usr/lib/libx11.a -> /usr/lpp/x11/lib/r6/libx11.a
And Also for the Other Libraries on Aix 4.3.1.
ON MOST OF THE AIX 4.1.X and 4.2.1 Boxes I have seen the default is
/usr/lib/libx11.a -> /usr/lpp/x11/lib/r4/libx11.a
IE The default libraries are the x11r4 libraries and _not_ the r5
..................
Subject: 1.501: how to prevent ctrl-alt-backspace from killing the x session
Start x with 'xinit -t' to disable ctrl-alt-backspace from stopping x
Subject: 1.502: WHO HAS a TERMCAP / TERMINFO SOURCE for the HFT Console?
The console used on the risc system / 6000, PS / 2 and RT CAN BE USED AS A
Terminal on another system with the termcap below. You can Find this
And Other Termcaps In /Lib/Libtermcap/termcap.src, Including Ibmspecific Ones. The Terminfo Sources Are Stored In /usr/lib/terminfo/*.ti.
This Termcap can also be used from an Aixterm Window.
HF | HFT | HFT-C | IBM8512 | IBM8513 | IBM_High_Function_Terminal: /
: CO # 80: Li # 25: AM: HT: /
: cm = / e [% I% D;% DH: Ti = / E [25; 1h: TE = / E [20h: /
: nd = / e [c: Up = / e [A: do = ^ j: ho = / e [h: /
: BS: sf = / e [S: EC = / E [% DX: /
: cl = / e [h / e [J: CD = / E [J: CE = / e [K: /
: Al = / e [% DL: DL = / e [% DM: Al = / E [L: DL = / E [M: /
: im = / e [4h: EI = / E [4L: mi: /
: DM = / E [4h: ED = / E [4L: /
: so = / e [7m: se = / e [m: ul = / e [4m: ue = / e [m: /
: md = / e [1m: mr = / e [7m: MB = / E [5m: me = / e [m: /
: as = ^ N: AE = ^ o: sc = / e [S: rc = / e [u: /
: Kl = / e [d: kb = ^ h: Kr = / e [c: ku = / e [a: kd = / e [b: kh = / e [h: /
: KN # 10: K1 = / E [001Q: K2 = / E [002Q: k3 = / e [003Q: k4 = / e [004Q: k5 = / e [005Q: /
: k6 = / e [006Q: k7 = / e [007Q: k8 = / e [008Q: k9 = / e [009Q: k0 = / e [010Q: /
: IS = / EB / E [M ^ O / E [? 7h: RS = / EB / E [M ^ O / E [7H / E [H / E "
------------------------------
1.503: How Can I Look At PostScript files? Why is "DPSEXEC" SO LOUSY?
From: marc pawliger
Showps comes with the 1.2.3 (x11r5) Version of the x11rte.ext.obj LPP.
Very nice ps file previewer from adobe. Replaces XpsView Which Came
WITH PRE-1.2.3 Installed AS / USR / LPP / DPS / SHOWPS / SHOWPS
From: vrbass @ atlvmic1 (Vance R. BASS)
You can look at postscript files using Either "xpreview" (in the
OPTIONALLY Installable Text Formatting Services) Or You Can Get
GhostScript and ghostview from a
Comp.Sources.x Server and Build IT
Yourself.
> From the "xpreview" man page:
THE XPREVIEW COMMAND IS An AixWindows 1.2- and Motif 1.1-BasedApplication That Displays Output from The Troff Command on An AixWindows
Display. The Troff Command Output File Must Be Prepared for Any ONE OF
The devx100, Devx100k or devpsc devices. The Xpreview Command ALSO
Displays PostScript language files what begin with% !.
"DPSEXEC" is not intended to be a fulro, but
Rather a Simple DPS Code Debugger. if You Insist on Using It, You CAN
Edit your ps code to remove the "showpage" (Which Will Reset DPSexec
And clear the window "to view single-page files. It does not handle
Multi-page files gracefully.
Subject: 1.504: UNIX: 0 vs `Hostname`: 0
1.) Is there any way to get the machine to check its local host TABLE
First WITHOUT RENAMING RESOLV.CONF?
[AIX 3.2 ONLY]
PTF U412845 Implements An Environment Variable To Set The Resolver
Time Out in Aix 3.2. this allows you to set res_timeout to the number
Of Seconds Before IT Times Out, A Failing A DNS Query The Machine Will
CONSULT / ETC / HOSTS.
2.) How do you tell X Applications Where You Are IF The Console Display
Is UNIX: 0?
From: David L. CROW <
Crow@waterloo.Austin.ibm.com>
I Would Suggest That if You Have R5, Use ":
Not Believe That R4 Clients Will Understand: 0, SO I Would Suggest
UNIX: 0 for them.
WITHOUT SPECIFYING UNIX or the Hostname, You Will Get the Fastest
Transport Mechanism. While Currently There All, Two Transport
Methods in the aixwindows x server (Unix Sockets and TCP sockets),
Many Vendors Are Looking At Using Shared Memory As a Transport Method.
If you use: 0 (OR: 0.0 or: 1, ETC.), THEN You Should Get The Best
Performance Regardless of the Available Transport Methods.From: Marc Pawliger
"UNIX: 0" or "hostname: 0" when the x11 shared memory transport
(SMT) Is Installed As Part of The 1.2.3 x11rte.obj (x11r5) Will Incur
a penalty vs. using ": 0" see /usr/lpp/x11/readme.smt
3.) Is there a significant performance penalty incotred by using
`Hostname`: 0 as display?
YES! Using UNIX: 0, You are for unix sockets. Thase Are Much Faster
Than Their TCP Socket Counterparts.
Subject: 1.505: VT100 Key Bindings for AIXTERM
From:
Haedener@iac.unibe.ch
Add this to your .xdefaults file and start your vax session with
'AIXTERM -V -NAME VT100 -E Telnet Myvaxhost'
-----
VT100.VT102: True
VT100.Fullcursor: False
vt100.translations:
You Should Also Add
Xenvironment = $ home / .xdefaults
Export Xenvironment
To Your .profile.
Subject: 1.506: Is The A Screen Saver That Does Not Use Excessive CPU?
From: don buchholz <
Buchholz@ese.ogi.edu>
Try Using Xlock with these options:
XLOCK -MODE LIFE-COUNT 1500 -NICE 20-ROOT
From:
Pranav@evolving.com (PRANAV VAKIL)
Use mlock -hide to hide the background. You can also modify the mlock
(/ usr / local / Tools / mlock) Code to allow the standard x screen saver to
Take Effect. The Timeout Value Is Originally Set To 0 Which Means THE
Screen Saver IS Off. Modify this to be 120 (2 minutes) and set the
Interval Time to BE 60 (1 minute). Using these Intervals, I have found
That Over a 24 Hour Period, IT Uses Only .3 CPU Minutes.
Subject: 1.507: WHERE Are The Colors, Available for An X Session, Listed.
/usr/lpp/x_st_mgr/bin/rgb.txt and on Aix 4.2, The File IS
/usr/lpp/x11/lib/x11/rgb.txt
Subject: 1.508: why does my app hang the x server but not an x station?
From: bjorn P. Brox <
Brox@corena.no>
/usr/lpp/x11/readme.smt x Client / Server Communication Uses A 64K
Buffer by default. The size of this buffer is controled by the
X_SHM_SIZE Environment Variable Increasing The size of the buffer Hasbeen Used to Prevent Some Applications from Hanging To X Server :)
Subject: 1.509: How do I switch the control and caps lock key bindings?
If you are running the x window system, you can put the following int
.xmodmaprc
REMOVE LOCK = CAPS_LOCK
REMOVE Control = Control_L
Keysym Control_L = Caps_lock
Keysym Caps_lock = Control_L
Add Lock = Caps_lock
Add Control = Control_L
Hidden Hint: Use (XModMap -e "Pointer = 3 2 1") to make the mouse
Lefty friends.
Subject: 1.510: Missing Fonts?
IF Your XServer Supports X11R5 TRY Running A Font Server (Edit)
/ usr / lib / x11 / fs / config and run fsconf && startsrc -s fs) consult Your
XServer Instructions on now to include a font server in your font
Path.
Subject: 1.511: What's The Termcap Entry for an IBM 3151 Look Like?
#
# Written by Aleksandar Milivojevic,
Alex@srce.hr
# 24.09.1994
#
I2 | IBM3151 | 3151 | IBM 3151 Terminal: /
: am: mi: cr = ^ m: sf = ^ J: CO # 80: Li # 24: CD = / EJ: CE = / EI: cm = / EY% / 040% / 040: /
: CL = / EH / EJ: DC = / EQ: DL = / EO: do = / EB: Le = / Ed: MB = / E4 $ A: MD = / E4 (A: /
: ME = / E4 @ / E> B: MR = / E4! A: ND = / EC: SE = / E4> B: SO = / E4! A: UE = / E4 = B: Up = / EA: /
: US = / E4 "A: KB = ^ h: kd = / EB: kH = / EH: KL = / ed: kr = / Ec: ku = / EA: /
: K1 = / EA / R: K2 = / EB / R: K3 = / EC / R: K4 = / ED / R: K5 = / EE / R: /
: K6 = / EF / R: K7 = / EG / R: K8 = / EH / R: K0 = / EI / R: K0 = / EJ / R: /
: ti = / e> B: te = / e> B: MS: HO = / eh: BL = ^ g: Al = / en: ta = ^ i:
Subject: 1.512: Errors Starting X11 Application Binaries from aixpdslib.
From: ftp://aixpdslib.seas.ucla.edu/pub/readme_x11r5_stuff> WE Have Been Aware of The Problem People Have with Dynamic Links WHEN Running The Prebuilt of X-stuffs from this library. The Typical Error Messages Will BE: Could Not Load Program [Program_name] Member Shr4.o NOT Found or File Not an Archive Member Shr4.o NOT Found or File Not an Archive Could Not Load Library Libxt.a [shr4.o] Error Was: No Such File or Directory It's Because That We Built the Program Using X11 Libraries of Mit Which Are Not Compatible with Those of IBM. if this is the case, Then Please Get The Compressed Tarred File of the Source Code INSTEAD, And Recompile Them on Your System Using your libraries. Subject: 1.513: .xshm *, .sm * (Shared Memory) Link Errors Building Xwindows Applications. Link Errors That Refer to .xshm * offen Times Are A Result Of Compiling Applications to take Advantage of the Shared Memory Extension of the x Server. You May Either Compile without Shared Memory or Load Thae SHARED MEMORY EXTENSIONS. (See / USR / LPP / X11 / Readme and Readme.smt) a Script for rebuilding your x server with the shared memory can be found IN / USR / LPP / X11 / Xamples / Server. Subject: 1.514: How do i set my display when i login to another machine? Though this is not a question, specific to Aix, IT APPEARS OFTEN ENOUGH To Warrant An Answer Here. There Are Lots of Approaches, Some of Which Are Described in The x Windows FAQ. MOST INVEVE A Little Login Shell Programing to parse the output of `who` or` WHO am I`. E-siebert@Uchicago.edu Will Help if you are Willing / Able To Install IT SUID. See The x Windows FAQ and NewsGroup for more information. Hostwhence is also availabile in the "lsof" smit-installable package onwww-frec.bull.com. The Installation Scripts Use acls to allow hostwhence to Read / dev / kmem without being set-uid-root. Subject: 1.515: why doesn't netscape work? From: "Gary R. Hook" < Hook@austin.ibm.com> The Problem Is That Netscape Has StaticLinked Libc Into Mozilla. When the Aix 3 Libc Code (SetLocale ()) Tries To Load An Aix 4 Locale, The Two Are INCompABLE and A Core Dump Ensues. Aix 4 Locales Have to Be loading by Aix 4 libc. Using lang = c causes a lot of local code to be bypassed, allowing The Application To Avoid Loading A Non-C Locale, and To Continue Execution. > From: colin < Apollo@randomc.com> Here Is A Shell Script That Works Around Netscape's Problems By Setting the lang and classpath environment variables. #! / bin / sh LANG = C Classpath = / path / to / java_30 Export Lang ClassPath IF [$ # -eq 0]; then / path / to / netscape http://your.home.page & Else / PATH / TO / NETSCAPE $ * & Fi Subject: 1.600: my named DIES FREQUENTLY, why? From: JPE@ee.egr.duke.edu (John P. Eisenger) Running on 3.2, Named Dies Frequently On Network's Primary Name Server. Try The Following: Stopsrc -s named # stop running named Stenv MallOctype 3.1 # Use 3.1 Memory Allocation Algorithm / etc / named ... # don't use smit to start name You might be a to use startsrc / smit after setting malloctype and get The Same Effect, But I'm Not Sure. [According to John, The Problem is malloc () in the named code. HE Also Suggests Using Berkeley's Bind, Which He Has Ported and Can Be ftp'ed from ftp://ftp.egr.duke.edu/archives/bind-4.8.3.tar.gz. -ed] TWO PTFS SHOULD FIX This Problem. Get U412332 and U414752.Christophe Wolfhugel < Christophe.wolfhugel@grasp.insa-lyon.fr> Reports That Bind 4.9 Works Fine On Aix 3.2 and welSout MallOctype = 3.1. Subject: 1.601: How do I TRACE ETHERNET PACKETS ON AN AIX SYSTEM? From: Afx@muc.ibm.de (Andreas Siegert) Do The Following: IPTRACE -I EN0 / TMP / IPT The iptrace backgrounds. Find ITS Process Id and Kill Ithen you are Ready. Then Run Ipreport -RNS / TMP / IPT> / TMP / IPR And Look at the output. The Current Version of Info Does Not Document THE R, N AND S OPTIONS But They Are Quite Useful for Layering The Output. Subject: 1.602 What is the authorized way of starting automount at boot time? From: Curt@ekhadafi.Austin.ibm.com (Curt Finch) I put this in my / etc / inittab: Automount: 2: Once: / usr / etc / automount --t -t -v> /tmp/au.se 2> & 1 I believed dub it authorized. Jim Salter < Jsalter@netscape.com> Writes: you can also use the command: 'mkitab "Automount: 2: Once: / usr / etc / ..."' to avoid editing the file by hand. Subject: 1.603: How do i set a TTY port for Both Dial-in and Dial-out? Set the mode of the tty to be each either 'shared' or 'delayed'. Subject: 1.604: How to move or copy Whole Directory Trees Across A Network The Following Command Will Move An Entire Directory Tree Across A Network While PreserVing Permissions, Uids and Gids. $ RSH Remotehost "CD Targetdir; Tar-CBF -." | TAR-XVBF - Explanation: THE TAR-CREATE IS RSH'D to the Remote System and is Written To STDOUT (THE PIPE). The local system is extracting the tar what being read from STDIN (The Pipe). From: ABELONI < Abeloni@hstern.com.br> Another Method Is: RCP -RP Host1: / Dir Host2: / DIR Subject: 1.605: How can I send mail to hosts what cannot be pinged? From: jupiter.sun.csd.unb.ca! Dedourek (John Dedourek) AIX 3.2 As Shipped is configured to mobile phone mail to mail addresses Which include a host name. Many Organizations Use a mail address whose "host name" part is not a host name (technically an mx name). To change The Configuration of The Aix Mailer, Login As Root. Then Edit The File /etc/sendmail.cf to remove the comment marker ("#") at the beginning of The Line Which Reads: # Ok mx Now Rebuild The Machine Readable Form of The Configuration with the CONFIGURATION WITH Sendmail -bz And Finally Restart Signal Sendmail To Load The New Configuration by One Of the folowing: Reboot oral Stopsrc -s Sendmail Startsrc -s Sendmail oral Kill -1 `Cat / etc / sendmail.pid`