Comp.Unix.Aix FAQ -PART 3 of 5

zhaozj2021-02-16  113

Subject: 1.606: How To Configure Dialup Slip

IBM's WWW Page <

Http://www.ibm.com/> can let you to a helpful document

<

http://www.Austin.ibm.com/pub/www/services/aix_service/faxes/slip.doc.zap>

From:

Marvin@tornado.oche.de (Christian Bode)

IF you don't have problems with slattach you should Have PTF

Bos.obj 3.2.0.0.u411505 Installed. I Assume That You Did The Right

Ifconfig command to setup your slip-device (for example SL0).

CREATE A Group Called SLIP.

2. Create a User Slip with smit like this:

[Entry Fields]

* User name [slip]

Administrative user? True

User ID []

Login User? True

PRIMARY Group [SLIP]

Group set [SLIP]

Administrative Groups [SYSTEM]

Su Groups [SLIP]

Home Directory [/ Home / SLIP]

Initial Program [/ bin / sh]

User information [slip-dialup]

Another User Can Su To User? False

User Can rlogin? True

Trusted path? NOSAK

Valid ttys [/ dev / tty1]

Audit classes []

PRIMARY Authentication Method [SYSTEM]

Secondary Authentication Method [NONE]

Max File Size [2097151]

Max CPU TIME [-1] max data segment [262144]

Max Stack Size [65536]

Max Core File Size [2048]

Max Physical Memory [65536]

File Creation Umask [022]

Expiration Date (mmddhhmmy) [0]

3. CREATE A TTY with GETTY ON IT:

Add A TTY

[Entry Fields]

Tty Type TTY

TTY Interface RS232

Description Asynchronous Terminal

Parent Adapter SA0

* Port Number [S1]

Baud Rate [38400]

Parity [none]

Bits Per Character [8]

Number of Stop Bits [1]

Terminal Type [DUMB]

State to Be configured at boot time [available]

DMA ON

Read Trigger 0, 1, 2, 3

Transmit Buffer Count [16]

Name of Initial Program To Run [/ etc / getty]

NOTE: The Following Attributes Are Only Applicable IF / etc / Getty IS

Specified as the initial program to run.

ENABLE PROGRAM? RESPAWN

Run Level 2

Enable login share

Time Before Advancing To Next Port Setting [0]

Stty Attributes for Run Time [HUPCL, CREAD, BRKINT>

Stty Attributes for login [Hupcl, Cread, Echoe,>

Run Shell Activity Manager NOOPTIONAL LOGGER NAME []

4. Change The Hardware Characteristics So That It Uses No Xon / Xoff Handshake

Section 1.613 Also Talks About TTY Flow Control.

5. A (New) .profile Template for SLIP Accounts Is Provided in Section

8.07. The Author, David Migliavacca, Writes, "I Would Also Like To

Assert That, To my experience, it is not required what the Slip User

Be Made "administrative" or member of "system" as Other parts of the

FAQ (AND THE Original Script) Say. At Least On My Machine 8-). I NOW

Create Slip Users as Members of Group Slip, IT Being The Only Group;

ALLOWT TTYS Are Set To The Available Modem Lines Only; Their Home

Directory is Owned by root and the .profile is on-flwa

SLIP.

Here's Another Scenario:

From:

Oosten@angelo.ee.ualberta.ca (Brian Oostenbrink)

Operating system: IBM AIX 3.2.1 and 3.2.3

Configuring TWO RS6000S Via a Serial Line Interface Protocol (SLIP)

Connection over TWO US Robotics Sportster 14,400 MODEMS.

The Aix Implementation of Slip is Slightly Different from Most Others.

THE IFCONFIG COMMAND IS USED TO BRING UP A Serial Interface, and the

Slattach Command Is Used to Connect The Interface To The Serial Port

Used for the connection. Dialer Device Commands Can Also Be Issued WHEN

Invoking the slattach command, using uucp chat syntax.

The Following Describes a connection Between Two Machines:

Local.j.k.l

EtherNet IP Address 129.128.127.21

SLIP Interface IP Address 129.1.2.1

REMOTE.A.B.C

Ethernet IP Address 129.11.22.44

SLIP Interface Address 129.11.22.1

Interface Configuration

Each Machine Must Have a Separate IP Address Dedicated to the SLIP

Interface. on remote.j.k.l, start the slip interface with: ifconfig SL0 129.11.22.1 129.128.127.1 Up

AND on local.a.b.c:

IFConfig SL0 129.128.127.1 129.11.22.1 Up

IT IS IMPORTANT IN LATER VERSIONS OF AIX 3.2.3 To Use the Same Slip

Interface # as the ptty port #, ie. if use tty12, use ifconfig SL12

INSTEAD OF SL0.

At this point the interfaces are ready to be connect.

2. TTY Configuration

The Tty Ports on Both Machines WERE Configured in An Identical Manner

Using smit.

[Entry Fields]

Tty Type TTY

TTY Interface RS232

Description Asynchronous Terminal

Parent Adapter SA0

Port Number []

Baud Rate [38400]

Parity [None]

Bits Per Character [8]

Number of Stop Bits [1]

Terminal Type [DUMB]

State to Be Configured At Boot Time [Available]

DMA ON

Read Trigger 0, 1, 2, 3

Transmit Buffer Count [16] #

Name of Initial Program To Run [etc / getty]

Note: The Following Attributes Are Only Applicable IF / etc / Getty IS Specified

As the initial program to run.

ENABLE PROGRAM? RESPAWNRUN LEVEL 2

ENABLE login disable

Time Before Advancing To Next Port Setting [0] #

Stty Attributes for Run Time [HUPCL, CREAD, BRKINT, ICR>

Stty Attributes for login [HUPCL, CREAD, Echoe, CS8,>>

Run Shell Activity Manager NO

Optional logger name []

On Older Versions of Aix, We Encountered Some Problems Disabling Getty, And

Resorted to Changing the / etc / inittab file directly. for example, change

TTY0: 2: Respawn: / etc / getty / dev / tty0

TO

TTY0: 2: OFF: / etc / getty / dev / tty0

This Will Disable Getty from Running. After Creating The Slip Tty Device,

You Will Need To Change Its Hardware Configuration To Disable XON / XOFF

Flow Control. Software Flow Control Should Not Be Used for SLIP. TYPE

'smit chtty', and the select sub themself 2: hardware settings.

Most of the parameters in the Tty Configuration Are The Defaults.

3. Modem Configuration

The Modems Were Configured As Follows:

RTS / CTS Flow Control enabled.

XON / XOFF Software Flow Control Disabled. Usually this is Automatic IF

RTS / CTS is enabled.

Data Rate, Terminal to Modem = Fixed.

This is the baud rate from the tty port to the modem. We buy a

Fixed Modem-Port Transfer Rate, Set to the Fastest Speed ​​Supported

Both the Tty Port and The Modem. NEWER Modems Can Use a higher

Transfer Rate Between The Modem and Serial Port Than the Modem To

Modem Rate, Which is Necessary To Use Data Compression Effective.

In Our Setup, We use 14.4 kbaud modems with a port speed of 38.4kbaud. If you Modem Supports this Feature, Use IT, OtherWise Set

The Port Speed ​​Equal To The MODEM Connection Rate. on The USR

Sportster AT & B1 Fixes The Serial Port Rate To this of the last

At command. The speed parameter of the slattach command can be becom

Used to Ensure That This Rate is this set in the Tty Configuration.

Error Correction Enabled - Not Mandatory, But A Good Idea

Data Compression - Not Required, But IT Helps, Especially For Text

TRANSFERS.

Auto Answer - if The Slip Connection Is To BE Initiated from Either

Machine, Both Modems Should Be Set To Auto Answer, Otherwise, Just

The answering model.

It is a good idea to configure the modem and then save the settings

To NVRAM, SO That the Correct Settings Can Always Be Restored by the

Slattach Command.

4. UUCP Configuration FILES

/ usr / lib / uucp / defices

/ usr / lib / uucp / dialars

The Devices File Must Contain An entry with the Tty and Serial Port

SPEED Used for the interface. in Our Example,

Direct TTY0 38400 SLIPDIALERERERERER

The keyword 'slipdialer' is merely an index INTO The Dialers File.

For Our Purposes, The Slipdialer Entry In The Dialers File IS Simply:

SLIPDIALER

This entry can also contain uucp chat commists, or the chat commands

Can be incdued in the slattach command.

5. Slattach Invocation

Slattach Connects The Device on The Tty Port To The Slip Interface

Created by ifconfig, and sends any commists to the Tty Device IF

Needed. for outd.j.k.l Would Never Initiate A Call,

Only Answer Incoming Calls. Therefore We Execute:

Slattach TTY0 38400 '"" ATZ OK ""

Which Connects the Tty At 38400 Baud. We Could Also Simply Run

Slattach TTY0IE. WITHOUT Any Modem Commands, But The Mode Mode Port Speed ​​May Not

BE CORRECTLY SET THIS WAY. In Addui, The Atz Command Ensures The

Modem is set to the nvram settings.

On local.a.b.c Type:

Slattach TTY0 38400 '"" "" "" "" "" 4

This Establishes the link at 38400 baud, And Executes the Dial String

As Shown. The Dial String is a uucp chat string and is configured

In an expect send expert send ... format. The string:

'"" "ATZ OK / PATDT4925871 BIS" "'

Is Interpreted AS:

EXPECT "" "(Null String) from modem

Send atz to modem

Expect Ok from Modem

Send / PATDT4925871 to MODEM

Expect Bis from MODEM

Bis is The end of the connection. You Could Use any portion of

The string returned by the modem upon a connection as the expect

String. It May Be Wiser To Simply Expect Connect Since All

Connections Should Return this string.

The Null Strings Are Necessary Because The First Parameter of The First Parameter

UUCP IS An Expected String from The Modem, Which Can Only Be a NULL

String Until The Modem Has Been Given a Command.

The Last Parameter (4) of the slattach command is the debug level.

A Debug Level of 4 Displays The Uucp Chat Strings, Which IS USEful

For Checking the Modem Status.

6. routing

Ifconfig is sufficient if all you want to do is talk betWeen THE

Two Hosts. if you are running slip so this can talk to more

Than Just That One Other Host You Have to Advertise Your Address.

1) ARP -S 802.5 IAGO 10: 00: 5A: B1: 49: D8 PUB

Where 802.5 is a token-raping network the hardware address can

Be Obtained with `Netstat -v` and IAGO WAS THE SLIP Client (My

PC At Home :) Pub is The Important Part It Means "Published" You May Want to Run this at boot time.

Routing through the slip link is similiar to routing of any gateway.

Invoking the ifconfig command automatic sets up a route between

The Two Slip Machines. An entry in / etc / hosts or the named Database

Should Be Made, with the Same Machine Name Used for The Slip Address

As The Ethernet Address On Each Machine. For Example, IN / ETC / HOSTS

On Remote.a.b.c (and any other machine on remote.a.b.c ethernet):

129.11.22.44 Remote.a.b.c # Ethernet Address

129.11.22.1 Remote.a.b.c # Slip Address

It is preformed to place the Ethernet Address in the Hosts File

Before the slip address so remote.a.b.c Will resolve to the

Ethernet address. by is import, it is important to have ketch

Addresses in The Reverse File with The Same Name. We Experienced

Difficulties with nfs mounting over the slip link, oowing to some

Machine Interpreting NFS Requests from One of the Two Slip Machines

ascoming from the slip address, while the slip machine believed it

WAS sending The Request from The Ethernet Address. This Problem WAS

Eliminated by Having Both Addresses Reverse Resolve To The Same Name.

7. Performance

At a modem speed of 14.4 kbaud and a port speed of 38.4 kbaud, WE

Realized a Transfer Rate Through FTP of About 3.5 KB / S for Text

Files, And 1.3 Kb / s for compressed files.

Subject: 1.607: Where is DCE Discussed?

DCE is The Distributed Computing Environment, Which is Roughly A

Flexible Client-Server Architecture for Heterogenous Platforms.

For more information, Take a Look in

Comp.soft-sys.dce.

Subject: 1.608: How do i make / var / spool / mail mountable?

From:

Petersen@pi1.physik.uni-stuttgart.de (Joerg Petersen) IN Our Cluster We Share A / USR / Local Disk. WE Have A DIRECTORY

/ usr / local / spool / mail and / var / spool / mail is soft-linked to it.

From:

Fred@hal6000.thp.uni-duisburg.de (fred hucht)

Several Problems Has Been Reported On Sharing The Mail Directory VIA

NFS. The problems may ly. H or more sendmail daem and / or

Mail Readers Access A User's Mail File Simultanously, Because of NFS '

FILE LOCKING MECHANISM.

WE Use Another Method Here: Every User Has One Line in His / Her

$ Home / .forward file what reads

xxx@mainserver.domain.name

Where xxx is the user node and mainserver.domain.name is the full

Hostname of One of the Machines. The all incoming mail to all mathing

Is Forwarded to Main Server, While Mainserver Ignores this line.

Subject: 1.609: Getty Spawning Too Rapidly

From:

Aslam@abaseen.lums.edu.pk (sohail aslam)

The Problem Can Occur Due a Number of Modem Settings. The Most

FreQuent is that the echo is not disabled on modems That area

ACCEPT INCOMING CALLS. in Hayes Language, ATE0 Disables Echo.

IF echo is enabled, The login prompt Sent by the DTE (Computer)

Is echoed back to it. it. it. ITEN ISSUES PASSWORD: "Prompt Which

The MODEM CONVENIENTLY EchoS Back Again. And The Cycle Goes ON.

Another setting to check is the q registers which controls

Modem's response to the dte. The hayes command atq0 enables

RESULTS CODES. The q register in conjunction with THE X and

The v registers, Reports Back to the DTE The Status of the incoming

Or outgoing call, and the type of connection established. for

Outgoing Calls, One Would Want To Enable Result Codes But Not

For Incoming Calls. if Codes Are Enabled (Via Atq0), The Modem Will Send Strings (if ATV1 And ATX4 SET)

"Ringing", "Connected" etc. To the local dte. The Getty Will Think

Some One is trying to login. it will send password prompt. Trouble

Again. Telebit and other Intelligent Modems HAS Atq2 Setting

Which Says "Reports Codes Only When Calling Out." For others,

You will need to disable it (atq1) and enable when Calling Out.

The dsr setting can be becom. Ideally, modem shouth

Raise DSR Only When CD is Detected and Modem Raises CTS. Computer,

Such as the Vax, Wait 30 Seconds After The Modem Raises DSR. IF

CD is not on by That Time, The Computer Will DROP DTR CAUSING THE

Modem to reset. The dsr shouth be set to be raised only when

Carrier Has Been Detected. The Hayes Setting IS AT & S1.

The DCD Setting SHOULD BE Such That Reflects The True Nature of

The Carrier. The CD Can Be Forced On At All Times (AT & C0). this

IS not good. set it to at & c1.

MOST MODEMS CAN RELOAD SAVED SETTINGS from Non-Volatile Memory

On A DTR Transition. this is useful for resetting the modem

WHEN a Call Drops. Uses Effect.

For Dial IN, THUS, SET AT E0 Q1 & C1 & D3 & S1 & W. The & W Stores The

Settings in membory. They will be reloaded Due To & D3.

Subject: 1.610: Does AIX Support COMPRESSED SLIP (CSLIP)?

No. That Means No vj compression Either :) See PPP in Section 5.07

If You Want More Than Standard SLIP.

Subject: 1.611: How do I setup anonymous ftp on my aix system?

(Stolen from Peter Klee Posting)

Have a look at '/usr/lpp/tcpip/samples/anon.ftp'. IT IS A shell script

And Will Set Up A Anonymous FTP Site On Your Local RS / 6000. Note: Theftpd That Comes with Aix Does Not Support The Display Messages Every

Time a User Changes A Directory or Even.

Subject: 1.612: Talk, getting notification.

If you are not getting notification (this someone wants to talk to

You), Use (swcons `Tty` && Mesg Y) in One Window.

There Are Many Variations of 'Talk' and Finding Compatible Versions

For Multiple Operating Systems Can Be Tricky.

Subject: 1.613: Disabling Software Flow Control; USING RTS / CTS.

Different Versions of Aix 3.2.5 Respond Differently To Attempts To

Enable Flow Control (RTS / CTS Signals). This section is an attempt to

Compile a list of diffrest approaches.

The Most Straight Forward IS:

ChDEV -L TTYXX -A RTS = YES

[NOTE: IX40410 for Aix 3.2.5 SHOULD GIVE you this functionality.

PTF U426113 and numerous Other Superceding PTFS SHOULD Provide this.]

IF Carrier Signal Is High (ITS Connected) You Can Try

Stty Add RTS

THERE IS Also a Program That I First Saw on The 800-IBM-4FAX Number,

Also found in info this will recs. Note. Note

That this code ignores the return code from ioctl (Which on My Machine

IS <0 :)

Subject: 1.614: NIS Security

Ole.h.nielsen@fysik.dtu.dk (Ole Holm Nielsen)

Summary: AIX 3.2.4 and Above Includes Support for A More Secure Setup

Of the ypserv nis daemon. You can prevent Any Random Host On The

Entire Internet from Reading your NIS MAPS, AS Possible with the

DEFAULT AIX SETUP.

The details:

----------------

After Starting The Ypserv Daemon, I Noticed in The Syslog The Following Line:

Jan 17 12:01:18 Zeise syslog: / usr / etc / ypserv: no / var / yp / securenets file

This Indicates That Ypserv Is Looking for The Mentioned ConfigurationFile, But Did Not Find It, And Hence Will Deliver The NIS Maps To

Anyone on the net who guess the nis domainname. I installed the

/ VAR / YP / Securenets File and Restarted Ypserv, And It Works! Any

Illegal Attempt to Read Nis Maps Will Result In The Following Getting

Logged to Syslog (Example):

Jan 18 13:37:27 Zeise Syslog: Ypserv: Access Denied for 129.142.6.79

How to enable this NIS Security Option:

Install The / VAR / YP / Securenets File, for Example:

# / VAR / YP / Securenets File

#

# The Format of this File is one of more lines of

# Netmask NetAddr

# Both Netmask and Netaddr Must Be dotted quads.

#

# Note That for a Machine with Two Ethernet Interfaces (i.e. a Gateway

#MACHINE), The IP Addresses of Both Have To BE IN / VAR / YP / Securenets.

#

# for example:

# 255.255.255.0 128.185.124.00

# Loopback interface

255.255.255.255 127.0.0.1

UNCOMMENTING THE LINE Would LIMIT Access To Hosts on The

128.185.124. * Net, ONLY. The loopback interface must be incruded, AS

SHOWN ABOVE.

To log violations, have a /etc/syslog.conf File Containing The Proper

Events. we use this line:

* .err; kern.debug; auth.notice; user.none / var / adm / message

Cavet Emptor: this Works for US, And You Will Have to Verify It At

Your Own Installation. Don't Complain To US IF You Have Troubles.

I do not know what PTF level Our Aix 3.2.4 is at. Our Ypserv daemon

Looks like this:

Zeise> strings / usr / limited z n | | |

@ (#) 16

1.12 COM / CMD / USER.ETC / YP / YPSERV.C, CMDNFS, NFS325, 9334325A 5/4/93 19:44:41

If Your Aix Doesn't Have Securenets Support, Ask Your Support Center

For the PTF Which Includeds apar ix32328. That Seems To Have Includedthe SecureNeets Support.

Subject: 1.615: why can't non-anonymous users login using wu-ftp?

From:

SWCXT@boco.co.gov (Shane Castle)

You Must Create A File Named / etc / shells (this is the real / etc not a

Subdirectory of Your false root, That Contains All The shells That

Are Defined On Your System. get the list from

/etc/security/login.cfg. Also, IF Having Propr Group Authentication

Is Important to you, Apply The Following Patch:

--- ftpd.c.dist WED APR 13 15:17:18 1994

ftpd.c tue jan 17 13:29:58 1995

@@ -1153, 7 1153, 13 @@

SetGroups (NULL, NULL);

IF (setpriv_set | priv_inherited | priv_effective | priv_bequeath,

& priv, sizeof (priv_t)) <0 ||

- setuidx (id_real | id_effective, (uid_t) pw-> pw_uid) <0 ||

InitGroups (pw-> pw_name, (GID_T) PW-> PW_GID) <0 ||

Setgidx (id_real | id_effective, (gid_t) PW-> PW_GID) <0 ||

STEGID ((GID_T) PW-> PW_GID) <0) {

Reply (550, "Can't set GID (AIX3).");

GOTO BAD;

}

IF (setuidx (id_real | id_effective, (uid_t) pw-> pw_uid) <0 ||

SeteUID ((UID_T) PW-> PW_UID) <0) {

Reply (550, "can't set UID (AIX3).");

Goto Bad;

Subject: 1.616: NIS Users Can't login, Do I NEED '*' IN / ETC / Passwd?

From:

Ohnielse@fysik.dtu.dk (Ole Holm Nielsen)

Aparently at Least One Version of Aix InfoExplorer Suggests

Administrators Use " : *: 0: 0 :::" as the last entry in the / etc / passwd

File of Nis Clients for Security Reasons. If The Configuration SMIT

IS DONE Using Smit IT Will Actually Append " :: 0: 0 :::" Which Works andDoes Not Compromise Security. Using The '*' In The Passwd Field

Actaully Prevents NIS Uses from logging in.

" :: 0: 0 :::" SHOULD NOT ALOW you to login as user " " and welhout a

Password Even NIS Is Disabled, But It Never Hurts To Double

CHECK.

Subject: 1.617: HP Jetdirect Cards and Virtual Printers? MkvirPRT Problems?

(Stolen from Many)

Since The Release of Aix 3.2.5 Adding a Queue for Jetdirect Cards IS AS

Easy As Creating a Virtual Printer Using "Smit Mkvirprt" or MKVIRPRT.

If the command hangs make you are useless an HFT, AIXTERM OR VT100

Terminal. The Entire Procedure IS Available from the IBM Fax

"Information line" (800 IBM-4-Fax).

From: Mark Bergman <

Mark.bergman@syseca.co.uk>

Smit Complains That Some Required Software Is Not Present on The System.

IT Turns Out That Software, "Printers.hpjetdirect.attach (4.1.3.0)"

IS on the installation CD.

However, There is some bugs, whereby the software may activually

Be already installed, but the system cannot see it it it it .: maybe the bug

Is That The Software Is Actually Not Installed, But The System in One. ISTALLY NOT OF INE

Place Thinks It is! - I'm not sure). Therefore, use smit to look at

Installed Software ("Software Installation and Maintenance", "MAINTAIN

Installed Software "," List Installed Software "and Look At All Software,

THEN SEARCH THROUGH for "Jet". if it Finds it (I.E. IT Thinks That IT

Is Installed) - You Must Remove It (Under Smit's "Maintain Installed

Software "Level), and the reinstall from the cd!

Subject: 1.618: How Can I HACK LIBC.A TO ALTER HOW HOSTNAMES Are Resolved? From: <

mlarsen@ptdcs2.intel.com> "L. Mark Larsen"

[

Editors NOTE: The Implications of Corrupting Libc.A Should Not Be

Understated. While Recovering from a Corrupt Libc.a Should Be A

Matter of Booting from Floppy I WIOLDN '的

Supervisor or users to support :)

Before you attempt this, you might want to read 2.07 first for

Advice on recovergeing from a destroyed or corrupted libc.a.a.

Remember: Backups Are A Very Good Idea.

ENOUGH of the weak kneed quiver ...

]

Nate Itkin (a colleague) Is The Individual Who Did The Initial Work.

I Suspect He Would Rather Not Be Troubled with Any Questions You May

Have in this area and i can probably answer theme just as easily. The

Motivation for this Was To Use DNS for MX Records (WE Are Using IDA

SENDMAIL) But Nis for MOST HOSTNAME LOOKUPS.

Secondly, Warnings: IBM Has Not Given Any Sort of Stamp of Approval On What

We Have Done (THOUGH THEY APPEAR To Have Integrated Resolv Into Aix 4 Based

ON Some Release Notes I SAW). While We Have Been Using It SuccessFully for

About One Year And Have Seen No Problems, We can't and Won't promise the same

For you. This Procedure Plays Around with Libc.a Which, As you probably Know,

Is An Xcoff Shared Library Under Aix and Hence A Critical Part of The Running

System. You assume all the risk if you try to install this. all the usual

DiscLaimers About Liability, ETC. Apply - There Is No Warranty Associated with

Any of this.

Furthermore, Know That Any Ptf You Subsequently Install That Updates / Replace

Libc.a Implies That You Have to Execute Most of these Procedures Again.

THE DETAILS On How To Use Resolv Under Aix 3 (It's Only Tested Under 3.2.5 But Should Work for All Point Releases), Have Been Moved To

Section 8.09.

Subject: 1.619: What modem settings do I need?

Atq2 - Result Codes in Originate ONLY

AT & C1 - CD FOLLOWS State of Carrier

AT & D2 - HANGUP ON DTR DROP

Subject: 1.620: NIS SLAVE SERVER CONFIG WITH MASTER ON DIFFERENT SUBNET?

From:

msidler@metronet.com (Mike Sidler)

Assuming AIX 3.2.5, The Master Server Up and Running and The Hosts File

Has The master name defined. on slave do:

1) DomainName

2) Startsrv -s Ypserv

3) Startsrv -s Ypbind (YpWhich Should Return "Loopback")

4) (/ usr / sbin /) Ypset -d

(YPWHICHHOULD RETURN ""

5) (/ usr / sbin /) Ypinit -s

6) PUT " :: 0: 0 :::" in / etc / passwd after last local login.

NOTE: InfoExplorer Has This Entries Incorrect in Some Versions.

7) Other CFG Files (Group, etc) May Need Configuring But this Will

Get Ypserv and YPBIND RUNNING ON The SLAVE LOOKING AT The Right Stuff.

Subject: 1.621: why does my 64 port thermostrator Loose Data and Drop the Queue?

[From:

as@mynet.no (arild sletvold)]

This Problem Has Been Associated with Upgrading Machines TO 3.2.5.

Try Changing The Values ​​for the "Transmit Buffer Count" Parameter in

The Printer / Plotter Setup in Smit. You NEED TO EXPERITIN THIS

Parameter, To See Which Value That Makes The Printer Print As Fast AS

Possible. if The value is to high, the printers will loose some of

The data, and the queue will be disabled. if the value is to ing,

The Printers Will Print Very Slowly.

Subject: 1.622: Netscape FastTrack Server Won't Install on Aix 3.2.5 OR 4.1.From: Cameron Ferstat <

CFerstat@Austin.ibm.com>

Before Installing FastTrack on An Aix 3.2.5 or 4.1 System, You Must

First Install The Aix Shared Library Hookable Symbols / 6000 Version

1.1.5.0, Reference RPQ No. P91153. (NOTE: this Software Should * Not *

Be installed on an Aix 4.2 System!)

IF you try to install fasttrack on an Aix 3.2.5 or 4.1 System, Without

First Installing The Hookable Symbols Prpq, You Will Get The Following

Error:

> ./ns-setup

0509-037 System Error - Error Data IS: ./ns-setup

0509-022 Cannot LOAD LIBRARY LIBSVLD.A [shr.o].

0509-026 System Error: a file or directory in the path name does not exist.

You can Download The Installp Image by Anonymous FTP from FROM

<

ftp://ftp.software.ibm.com/aix/Products/netscape/tools/slhs.rte.inst_image>.

There is also an associated ready .slhs file in trata directory.

Subject: 1.623: How can I Share Files / Printers with Windows 95?

The Freeware Solution IS Samba, Available from <

http://www-frec.bull.com/>.

Commercial Solutions Include Fusion95 from Performance Technology Technology

<

http://www.perftech.com/> And Syntax <

http://www.syntax.com/>.

Subject: 1.624: Printing from Aix To Winnt / 95 / 3.1

From: Charles J. Fisher <

Charles_fisher@bigfoot.com>

1. On Your Windows System, Share The Printer. Assuming That You Are

Running NT, Make A User "root" with some password.

2. Get the Samba Distribution from

http://www.samba.org

If you have a c compiler, get the source and compile.

If you don't have a c compiler, get a binary distribution for AIX.

3. Install Samba On Aix Under / USR / local / Samba. Specifically, Make Sure

That / usr / local / samba / bin / smbclient is installed with execute Rightsfor Everyone.

4. You Must Also Install A Samba Configuration File Under

/usr/local/samba/lib/smb.conf

IF you intend to use your aix as a file server for Windows Clients,

You Should Modify Smb.conf to Accomplish this (See the Samba

Documentation.

If You Will Be Printing Only, Just Use The Sample Smb.conf.

5. make the directory / usr / local / samba / lib / printers

6. In That Directory, Install The Following Shell Script AS

File "WinPrint":

#! / bin / sh

# This is a modification of the samba provided smbprint script

# Changed to work under aix the backend for a queue. it does

# NOT READ a config file.

#

# Variables Below Define The Server and Service. They Are

# THE Content of the .config File when Printing from

# / etc / printcap.

#

Server = "WinServer"

Service = "Winprinter"

User = "root"

Password = "root"

#

# Debugging log file, change to / dev / null if you like.

#

# logfile = / tmp / $ {user} -print.log

#

# Some debugging help, change the >> to> if you want to save space.

#

#echo "Server $ Server, Service $ Service" >> $ logfile

#cat $ 1 | / usr / local / samba / bin / smbclient "$ server // $ service"

$ Password /

# -N -p -c 'print -' >> $ logfile

(

# Note You May wish to add the line `echo translate 'if you want automatic

# Cr / lf translation athenprinting.

echo translate

Echo "Print -"

Cat $ *

) | / usr / local / samba / bin / smbclient "$ server // $ service" $ password /

-U "$ us" -n -p> / dev / null

7. The Above File Assumes That You are use // WinServer / Winprinter

As The Printer Share, And That The User IS "root" and the passwordis "root". if this is not the case, modify the shell variable

Declarations.

8. Mark The File with Execute Permissions with "chmod 755 winprint"

9. Test the script with the command: "./winprint / etc / passwd"

IF everything is Ok, Your Password File Should Be Spooled To Your

Windows printer.

If IT Doesn't Work, Remove The "> / dev / null" from the last line of

The Script and Run It. Examine The Output of SmbClient for Clues.

CLUE # 1: The Windows Printer Server Is on The Other Side of a Router.

AIX is sending broadecast packets to find the windows machine,

Which The Router Will Not Forward. You Must Find The Windows

Server's IP Address and Specify It with the "-i" Parameter

To SmbClient, I.E. "-i 1.2.3.4". DHCP MAKES THIS SITUATION

Even more complex.

Clue # 2: You Username or Password Is Wrong. SMBCLIENT WILL TELL YOU

About this if you free its output from> / dev / null.

Clue # 3: You might be violating shell quoting rules if you us

Special Characters in The Server or Share Name, Password,

Etc. don't use $, ", ', etc., or escape the prot.

A Password of "; RM-RF /" Could BE Catastrophic.

10. Once The Script Can Print Files, IT Must Be Defined As a Printer in

THE / ETC / QCONFIG FILE. Add the folowing lines to the end of your

/ etc / qconfig:

WinPrint:

Device = dwinprint

Up = TRUE

Discipline = SJN

DwinPrint:

Backend = / usr / local / samba / lib / printers / WinPrint

11. Test The Printer with The Following Command:

"LP-D WinPrint / etc / passwd"

Your Password File Should Be Printed Again.

12. You Might Examine The Queue with The Command "LPQ -P WinPrint" or "lpstat -t"

Subject: 1.625: How do I get nfs mounting with linux to work?

Linux by Default Requires Any NFS Mount To Use A So Called Reserved Port

Below 1024 And Aix 4.3 Does by Default Use Ports Above 1024. You CAN Use

The Nfso Command To Restrict Aix To The Reserved Port Range As Follows:

NFSO -O NFS_USE_RESERVED_PORTS = 1

Subject: 1.626: Telnet Takes a 45 Seconds to Produce a Prompt.

THIS in Nearly All Cases A DNS Configuration Problem, The Aix Machine

Can not resolve the ip address of the node initiating the telnet

Connection. You can check the dns reverse mapping by using the nslookup

Command on The IP Number In Question, this will probably Timeout AS

Well. make sure what the nameserver line in the /etc/resolv.conf file

Point to Valid Name Servers. Some Folks Have Reported That Putting The

Following in /etc/netsvc.conf can Help As Well (see Also Subject:

1.800):

Hosts = local, bind4

Getting a Correct DNS Server Configuration Is The Real Answer.

Subject: 1.627: Ethernet Frame Type - EN0 VS. ET0

From: Michael Wojcik <

Michael.wojcik@merant.com>

The "en" and "etc" prefixes for Aix Ethernet Network Interfaces

Indicate the Type of "framing" That Surrounds Higher-Level Protocol

Data on The Ethernet Medium ("Wire"). The Ethernet Frame Is The

Envelope That Surrounds IP Packets and Equivalent Messages in Other

Protocols.

There Are Two Kinds of Ethernet Framing In Common Use Today. The

"OFFICIAL" Standard Is IEEE 802.3 Framing, But TCP / IP Traffic ON

Ethernet IS Usually Carried in Dix (DIGITAl / Intel / Xerox) TYPE

II (USUALLY WRITTEN "DIX II" or Just "DIX") frames. OtHERTRANSPORT-INDEPENDENT Protocols, May Use 802.3. On Aix, SNA IS

Probably the MOST Common 802.3-framed protocol.

The Two Frame Types Can Coexist on The Wire.

Most TCP / IP Stacks Only Support DIX FRMING. AIX IS Unusual in

Supporting Both Dix and 802.3 framing for tcp / ip, but there's little

Point in Using 802.3 for TCP / IP. The EN0 Interface Uses Dix; The

ET0 Interface Uses 802.3 (AND So ON for EN1 / ET1, ETC., IF you have

Multiple NICS.

You CAN Configure TCP / IP for Both EN0 (DIX) And ET0 (802.3), in

Which case You're Creating a multiHomed host with only one Physical

NetWork Connection. Unless You Know You NEED TCP / IP OVER 802.3,

Don't Bother.

You don't need to configure TCP / IP on 802.3 to use other protocols

(EG. SNA) on 802.3.

Subject: 1.700: Free LVM Lecture Slides.

From:

Shieh@Austin.ibm.com

If you want free lvm documentation (lecTure notes) from the

Share Conference In San Franciso WHERE I Presented Last March

Just:

Mail -s "s_basics.ps" shieh@austin.ibm.com

Mail -s "s_limits.ps" shieh@Austin.ibm.com

Mail -s "s_lvm_extra.ps" shieh@austin.ibm.com

[Editor's Note: Jens-Uwe Mage Converted The Slides to PDF Format....

Are Available As <

http://www.han.de/~jum/aix/lvm.pdf>.]

Subject: 1.701: How do I shrink / usr?

From: mike@bria.uucp (michael stefanik) and richard Hasting

FOR AIX 3.1

-----------

1) Make a backup of / usr

Find / usr -print | Backup -ivf / dev / rmt0 (or apppriate device)

2) Shutdown to maintenance Mode

Shutdown -fm

3) Export lang = c

4) Remove The FileSystem and The Logical Volume

Ignore An Error About The "DSPMSG" Command Not Foundumount / USR

RMFS / USR

5) Make A New Logical Volume HD2 and Place It On Rootvg with Desired Size

Mklv -yhd2 -a'e 'rootvg nnn

WHERE NNN Is The Number of 4 Meg Partitions

6) CREATE A FileSystem ON / DEV / HD2

CRFS -VJFS -DHD2 -M '/ usr'-get '-p'rw'

7) Mount The New / USR FileSystem and Check IT

/ ETC / MOUNT / USR

DF -V

8) RESTORE from the Tape; System Won't reboot Otherwise

Restore -XVF / DEV / RMT0

9) Sync and reboot the system; you now have a sales / usr filesystem

FOR AIX 3.2

-----------

0) Experiences Posted to Comp.unix.Aix Lead Me To Suggest That

Many Administrators Find The Following Piece of Information

Useful after completion this procedure. I Thought some of you

Might like to read it before getting yourself Into this

PrediCament.

Call 1-800-IBM-4Fax and Request Document 2503 Dated 1/26/94.

Title is "How to Recover if All Files Are Owned by root after

RESTORATION from a mksysb tape.

1) Remove Any Unneeded Files from / usr.

2) Make Sure All FileSystems in The Root Volume Group Are Mounted. IF

Not, They Will NOT BE INCLUDED IN The Re-Installed System.

3) TYPE MKSZFILE. THIS WILL CREATE /.FS.SIZE THAT Contains a List of

The Active FileSystems in The Root Volume Group That Will Be

INCLUDEDIN The Installation Procedure.

4) edit .fs.size. Change the size of / usr to what you want.

Example: this .fs.size file shows / usr to be 40MB.

Rootvg 4 HD2 / USR 10 40 JFS

The 10 is The Number of Physical Partitions for the FileSystem and

The 40 IS 40 MB. Most Systems Have a Physical Partition Size of 4 MB.

Therefore, The Second Number (40) Will Always Be 4 Times The

Previous Number (10). Note, However, That a Model 320 with a 120 MBDRIVE WILL HAVE A Physical Partition Size Of Only 2 MB, And The

Total MB Is Twice The Number of Physical Partitions. THE FIRST

Number (4) in the .fs.size file represents the PP size.

IF you want to reduce the size of / usr from 40 mb to 32 MB, Edit the

/ usr Entry TO:

Rootvg 4 HD2 / USR 8 32 JFS

Important: make sure that you do not enter a value Which is less

Than the size of the filesystem required to contact theurrent

Data. Doing So Will Cause The Re-Installation Procedure To Fail.

5) ChDEV -L RMT0 -A Block = 512 -T

6) Unmount All FileSystems That Are Not in The Root Volume Group.

7) Varyoff All User-Defined Volume Groups, IF ANY

Varyoffvg vgname

8) Export the user-defined Volume Groups, IF ANY

Exportvg Vgname

9) with a Tape in Tape Drive, Type

MKSYSB / DEV / RMT0

This Will Do a Complete System Backup, Which Will Include

Information (in the .fs.size file) for the installation procedure

On How Large The FileSystems Are to Be Created.

10) FOLLOW THE INSTRUCTIONS in The Installation Kit Under "How to TO

Install and Perform Maintenance from Diskettes (Reportedly now "(REPORTEDLY NOW

Called "BOS Installation from a system backup") Using the

Diskettes and Tape That you created in the previous steps.

[preware 325: do not select the option "Reinstall Aix with

Current System Settings ". INSTEAD USE" install AIX with CURRENT

System Settings "for the logical volume size change" to take off.]

[W / AIX 325: SELECT "install from a mksysb image"]

11) WHEN The Installation IS Complete, You May Then IMPORT ANY

User-defined Volume Groups.

Importvg -y vgname pvname

WHERE "Vgname" is the name of the volume group, and "pvname" isthe name of any one of the physical volume in the volume group.

12) Varyon Your User-Defined Volume Groups

Varyonvg vgname

The Reduction of the FileSystems is now Complete.

Commercial Option

-----------------

There Are Also Commercial Tools Availible To Help you do this more

Conviently. I know of one vendor That Can Be Reached At

Info@compunix.com

Subject: 1.702: How do i make a filesystem larger Than 2GB?

AIX 3.2.5 and PreceEDing Versions Are Limited to 2 Gigabytes Per

FileSystem.

With Aix 4.1 IBM Allows FileSystems Up to 64GB (Reference:

Individual Files Are Still Limited to 2GB. AIX 4.2 Allows 128GB

FileSystems and 64 GB Files. (See Also Question 1.706.)

IF you are havning trouble creating a file greater tour 1mb IT Maybe

Because That Is The Default Limit for your account, see 'smit users'

OR / ETC / Security / LIMIT.

Subject: 1.703: CHLV WARNING. IS THE FIRST 4K OF A LV SAFE?

The first 4k of a raw lv area used to store control block.

Applications That Write to the Raw Disk Can Overwrite this section

Common Applications That Do this is is more oracle and sybase. Commands

That Call Getlvcb Will Generate A Warning But successd (Since The

Control Block EXISTS IN ODM. DON 'T Run Synclvodm Unless you really

Want To Erase the first 4k and replace it with the info from the odm.

Shieh@Austin.ibm.com (Johnny Shieh) HAS Kindly Provided The Following

Explanation:

The Logical Volume Control Block (LVCB) Is The First 512

Bytes of a logical volume. this area Holds Important

Information Such as The Creation Date of The Logical Volume,

Information About Mirrored Copies, and Possible Mount Points

IN a Journaled FileSystem. Certain LVM Commands Are Requiredto Update The LVCB, AS Part of Completeness Algorithms in

LVM. The old lvcb area is first read and analyzed to see

IT IS A Valid Lvcb. if The Information is Verified As Valid

LVCB Information, THE LVCB IS Updated. if The LVCB IS Updated.

Information IS Not Valid, THEN The LVCB Update Is Not

Performed and the user is given the Warning message:

Warning, Cannot Write LV Control Block Data

Most of the Time, this is a result of database programs

Accessing the Raw Logical Volumes (and thiness "

Journaled FileSystem) AS Storage Media. When this Occurs, THE

Information for the Database IS Literally Written over The LVCB.

Althought this May Seem Fatal, IT IS Not The Case. Once

LVCB HAS BEEN OVERWRITTEN, THE USER CAN STILL:

1) Extend A Logical Volume

2) CREATE MIRRORED COPIES OF A LOGICAL VOLUME

3) Remove The Logical Volume

4) CREATE A Journaled FileSystem with Which to Mount

The Logical Volume (Note That this Will Destroy Any

Data Sitting in The LVCB Area)

However, there is a limited by this deletion of the

LVCB. The Logical Volumes with deleted Lvcb's Face Possible,

INCOMPLETE IMPORTATION INTO OTHER AIX Systems. During an

"Importvg", The LVM Command Will Scan The Lvcb's of All Defined

Logical Volumes in a Volume Group for Information Concerning Toing The INFORMATION

Logical Volumes. surprisingly, if the lvcb is deleted, the

Imported Volume Group Will Still Define The Logical Volume To

The New Aix System Which IS Accessing this Volume Group, And

The User Can Still Access The Raw Logical Volume. However, Any

Journalized FileSystem Information IS Lost and The Logical Volume

And ITS Associated Mount Point Won't Be Imported Into The New Aixysystem. The User Must Create New Mount Points and The Availability

Of Previous Data Stored in The FileSystem Is Not Assured. Also, DURING

This Import of a Logical Volume with An ERSED LVCB, Some Non-JFS

Information Concerning The Logical Volume, Which is Displayed with

The "LSLV" Command, Cannot Be found. When this Occurs, The System USES

Default Logical Volume Information To Populate The Logical Volume's

ODM Information. Thus, Some Output from The "LSLV" Will Be Inconsistent

With the real logical volume. if Logical Volume Copies Still EXIST ON

The Original Disks, this Information Will Not Be Correctly Reflected in

The ODM Database. The User Should Use "Rmlvcopy" and "mklvcopy" TO

Rebuild Any Logical Volume Copies and synchronize the odm. Finally,

With an erased lvcb, the output from the "lslv" Command Might BE

Misleading or unreliable.

Subject: 1.704: What's The limit on Physical Partitions Per Volume Group?

From: shieh@austin.ibm.com (johnny shieh)

1016 Physical Partitions Per Disk in a Volume Group:

In The Design of LVM, Each Logical Partition

Maps to one Physical Partition. And, Each Physical

Partition Maps to a Number of Disk Sectors. The Design

of Lvm Limits the Number of Physical Partitions That LVM

Can Track Per Disk in a Volume Group To 1016. In Most Cases,

NOT All the Possible 1016 Tracking Partitions Are Used by a disk.

The Default Size of Each Physical Partition During A

"MKVG" Command IS 4 MB, Which Implies That Individual

Disks Up to 4 GB Can Be Included Into a Volume Group.

IF a Disk Larger Than 4 GB IS Added to a Volume

Group (based on usage of the default 4 mb size forphysical partition) The Disk Addition Will Fail with a

WARNING Message That The Physical Partition Size Needs

To be increased. * There Are Two instances where this

Limitation Will Be Enforcesd. The first case isew

User Tries To Use "MKVG" to create a Volume Group Where

The Number of Physical Partitions on One of the Disks in One ONE

The Volume Group Would Exceed 1016. in this case, the

User Must Pick from The Available Physical Partition Ranges of:

1, 2, (4), 8, 16, 32, 64, 128, 256

Megabytes and use the "-s" option to "mkvg". The second

Case Is Where The Disk Which Violates THE 1016 Limitation

Is attempting to join a pre-esting volume group with IS

The "extendvg" Command. The User Can Either Recreate T

Volume Group with a larger Physical Partition Size (Which

WILL ALLOW THE New Disk to work with the 1016 limited

Or the user can create a standardAlone Volume Group (Consisting

of a larger physical partization size) for the new disk.

In Aix 4.1 and 3.2.5, if The Install Code Detects

That The Rootvg Drive Is Larger Than 4 GB, IT Will Change

The "mkvg -s" Value Until The Entire Disk Capacity Can Be

Mapped to the available 1016 tracks. ** this install change

Also Implies That All Other Disks Added to Rootvg, Regardless

Of size, Will Also Be Defined At this New Physical Partitions size.brid.

For raid systems, the / dev / hdiskx name buy by LVM in Aix May

Really Consist of Many Non-4GB Disks. in this case, the 1016

Limitation Still EXISTS. LVM IS unaaware of the size of the

Individual Disks That May Really Make Up / DEV / HDiskx. LVM Bases

THE 1016 Limitation On The Aix Recognized Size of / dev / hdiskx,

And NOT The Real Independent Physical Disks That Make Up /Dev/HDiskx.The Questions asked of this Issue Are:

1) What are the symptoms of this problem?

2) How Safe Is My Data? What if I NEVER USE MIRRORING OR MIGRATEPV?

3) Can I Move this Volume Group Between RS / 6000 Systems and Versions

Of AIX?

Here is the answer

A) What is the SYMPTOMS OF this qu.

The 1016 Vgsa IS Used to TRACK The "Staleness of Mirro".

IF you are in violation of 1016, you may Possibly Get a false

Report of a Non-mirrored Logical Volume Being "Stale" (Which

Is an oxymoron) or you get a false in Indication That ONE

The your mirror copies has gone stale. Next, MigratePv May

Fail Because Migratepv Briefly Uses Mirroring to Move A Logical

Volume from One Disk to another. if The Target Logical

Partition is incorrectly considered "stale", Then Ten the migratepv

Cannot Remove The Source Logical Partition and The Migratepv

Command Will Fail In The Middle of Migration.

B) How Safe Is My Data? What if I NEVER USE MIRRORING OR MIGRATEPV?

THE DATA IS SAFE (in Your Mind) as the day before you find

Out About 1016 ViOLATIONS. The Only Case Where Data May BE

Lost is if one is mirroring a logical volume and all copies go

Bad at The Same Time and LVM ISN't Aware of It Because The

Copies That Go Bad Are Beyond The 1016 TRACKING RANGE. HOWEVER,

In this case, you would bee WERE WITHINI

1016 Range. If you never mirror or use migratepv, thr

Issue shouldn't Concern You. But, IT Might Be unwise to State

You'll Never Use Either of Those Options.

C) Can I Move this Volume Group Between RS / 6000 Systems and Versions

Of AIX?

YES you can. The Enforcement of this 1016 limit is onLyDuring mkvg and extendvg. The "safenes" of the data on the

Volume Group on Aix 3.2 is The Same As IT IS ON AIX 4.1.

* This bug was fixed in apar ix48926. Current AIX 3.2.5 and

4.1.1, Which Do Not Have this FIX ON Applied, Will Allow THE

Creation of Volume Groups with more Than 1016 Partitions. The

Implication of this bug allowing more Than 1016 Physical

Partitions is that the user may access all portions of the logical

Volume. However During Disk Mirroring, The Status of Partitions

Beyond The 1016 Limit Will NOT BE TRACKED CORRECTLY. IF MIRRORS

Beyond The 1016 Range Become "Stale", LVM WILL NOT BE AWARE OF

THEIR CONDITION AND DATA Consistency May Become An Issue For

Those Partitions. Additional, The "MigratePv" Command Creates

Mirrors and deletes the as a mathod for moving logical volumes

Around Withnin / Between Disks. if The 1016 Limit is Violated,

THEN THE "MIGRATEPV" Command May Not Behave Correctly.

The User Should Pick Up Apar ix51754, Which Clarifier THE ERROR

Message When this condition is detected. additionally, the user

Can read the non-ptf documentation apar ix50874 Which is a company

TO ix48926 and ix51754.

** This Bug Was Fixed for Aix 3.2.5 Rootvg Install In Apars

IX46862 and ix46863. This Bug Does Not Exist in Aix 4.1.1.

Subject: 1.705: why am i having trouble address, one, to my vg?

From: shieh@austin.ibm.com (johnny shieh)

In Some Instances, The User Will Experience A Problem Adding

A New Disk to an EXITING VOLUME GROUP OR IN The CREATION OF

A New Volume Group. The Warning Message Provided by LVM WILL

BE:

Not Enough Descriptor Space Left in this Volume Group.

Either Try Adding a Smaller Pv or Use Another Volume Group.on Every Disk in a Volume Group, There Exists An Area Called The

Volume Group Descriptor Area (VGDA). This Space is what allows

The User to Take a Volume Group To Another Aix System and

"Importvg" That Volume Group INTO THAT AIX System. The VGDA

Contains the names of disks what make up the volume group, Their

Physical Sizes, Partition Mapping, Logical Volumes That EXIST I

The Volume Group, AND Other Pertinent Lvm Management Information.

When the user create a volume group, The "mkvg" Command

Defaults to allowing the new volume group to have a maximum

Of 32 Disks in a Volume Group. However, As Bigger Disks Have

Become More Prevalent, THIS 32 Disk Limit is Usually Not

Achieved Because The Space in The VGDA IS Used Up Faster, AS

IT Accounts for the capacity on the bigger disks. this

Maximum Vgda Space, for 32 Disks, IS A Fixed Size Which IS

Part of the lvm design. Large Disks Require More Management

Mapping Space in the VGDA, Which Causes The Number And Size

Of available disks to be added to the existing volume group

To shrink. When a disk is added to a volume group, not only ONLY

Does The New Disk Get a Copy of The Updated VGDA, But All

EXISTING DRIVES in The Volume Group Must Be Able To Accept

The New, Updated VGDA.

The Exception to this Description of the maximum VGDA IS

Rootvg. in Order to Provide Aix Uses More Free Space, WHEN

Rootvg IS Created, "MKVG" Does Not Use the maximum limited

32 Disks That Are ALOWED INTO A VOLUME GROUP. INSTEAD IN

AIX 3.2, The Number of Disks Picked In The Install Menu of DISKED INSTALL

AIX is buy as the reference number by "mkvg -d" during the

Creation of rootvg. for Aix 4.1, this "-d" Number IS 7 forone Disk and one more for Each Additional Disk

Picked. I. You Pick Two Disks, The Number IS 8. You Pick

Three Disks, The Number IS 9, And So ..... THIS LIMIT DOES

NOT mean the user cannot add more disks to rootvg in the

Post-install phase. The Amount of Free Space Left in a VGDA,

And thus the number of size of the disks added to a Volume

Group, Depends on the size and number of disks already, SIZE AND NUMBER OF DISKS

Defined for a Volume Group. However, this Smaller Size

During rootvg code implies That the user will becomle to

Add Fewer Disks to Rootvg Than Compared to a non-rootvg

Volume group.

If the customer requires more vgda space in the rootvg, Then

THEY SHOULD USE "MKSYSB" and "migratepv" Commands to

Reconstruct and reorganize their rootvg (The Only Way To

Change the "-d" limited is recreation of the rootvg).

Note: It is always strongly recommented That Uses do not place

User Data ONTO Rootvg Disks. This Separation Provides An Extra

DEGREE OF SYSTEM Integrity.

Subject: 1.706: What Are The Limits ON A FILE, FileSystem?

There Are Other Limits But The COME UP MOST OFTEN. Logical Volumes

Do Not_Have_ To Contain Journaled File Systems and Therefore Can Be

Larger Than 2GB Even IN 3.2.5.

FILE JFS-FileSystem

3.2.5 2GB 2GB

4.1.x 2GB 64GB

4.2 64GB 128GB

While It * might * be Possible to create larger file systems, the limits

SHOWN Here Repesent Values ​​That IBM HAS Supposedly Tested.

Subject: 1.707: HINTS for SEGATE 9 GB AND OTHER Disks Larger Than 4 GB?

[read 1.704]

Subject: 1.708: How do i fix volume group locked?

> From / usr / lpp / bos / readme (AIX 3.2.5) and 1.800.ibm.4fax # 2809

IF you get '0516-266 Publvodm: Volume Group Rootvg is Locked, Try Again'or Something Similar, You Can Use (Putlvodm -k `Getlvodm -v `)

Subject: 1.709: How do I Remove A Volume Group with no disks?

From: shieh@austin.ibm.com (johnny shieh)

This is a very common question about aix lvm and i thing

I Might Take Some Time To Explain What Is Going on. Within

A Volume Group Is The Volume Group Descriptor Area (VGDA) IS

IS Kinda a "Suitcase" of LVM Information. this is what allows

You to Pick Up Your Drives and Take THEM To Another Machine,

Importvg Them, and get filesystems automatically defined.

What happens is that when Importvg The Volume Group,

The RS / 6000 Goes Out And Reads The Vgda and Finds Out About

All The Logical Volumes and FileSystems That May EXIST on The

Volume Group. It Then Checks for Clshes (Name Conflicts, etc ..)

On Its Own Machine and Then, Here Is The Important Part, Populates

ITS OWN Database with Information About The New Volume Group and

ITS Associated Logical Volumes. in Cases of FileSystems, IT Will

Go Into the / etc / filesystems file and add the new filesisystem entries

That Came Along with The Imported Volume GROUP.

Okay, The Key Point Is That You'Ve Got This Independ Volume Group

That Has "docked" at the new rs / 6000. What Keeps the Two Tethered

To Each Other Is The Varyonvg Command. When this is started on the

Volume Group, A Software Link is created Where you can't Separate THE

Volume Group from the Aix Operating System Unless The Volume Group

Is no longer seen as active by the system. in Very Cases, A

Situation Can Occur Where The Vgda Thinks That Somene Has IT (The

Volume Group) ActiVated, But The Operating System Doesn't Think It Has Thevolume Group Opened Up. This Is Pretty Rare.

The Main Question I see IS "I've Taken Away The Disks, Buth How Do

I get rid of the volume group ". The Question Should Really Say,

"How do I get rid of the volume group information" Since That "

All you have on the system. You'Ve Got Possible Entries in

The / etc / filesystems and definitely entries in the odm. just

DO:

Exportvg

IT Does a Reverse Importvg, Except It Doesn't Go Off And Read

The vgda. it nukes anything relaty to the volume group in

The / etc / filesystems and odm. The only time this won't work is

If The System Detects That The Volume Group Is Varied on. Then,

IT Would Be Like Trying to Change Tires on a Moving Car, We Won't

Let you do it!

Some People Are Concerned That Doing An Exportvg Will Somehow Damage

The Volume Group and / or ITS VGDA. As I Said, All It Does IS Affect The

Information About The Volume Group on The RS / 6000 Box, Not On The Actual

Disk Platter Itself. thus, the volume group you exported is Safe To

Take to another system. The only time the vgda gets overwritten is for

You Create a New Volume on top of it.

The Second Most Offen Asked Question IS "How Do I Get Rid of A Disk

That is no longer really in the volume group? "

In this case, you don't want to do an exportvg. What you want to do

Is Tell The System You Want To Cut Out The Memory of The Old, Bad Disk

From the RS / 6000 and from the vgda of the volume group. You Simply

DO:

REDUCEVG -D -F

Or if the hdname can't be found:

REDUCEVG -D -F

BE CAREFUL with this Command. Unlike The Exportvg Command, Actions Donewith THIS Command Will Affect The VGDA Information on The Platter.

Hope this Clarifies Some Questions About Volume Groups.

Subject: 1.710: What Are The Theoritical Limits WITHIN THE LVM?

From: gerry fitzgerald <

G.fitzgerald@uk22p.bull.co.uk>

-------------------------------------

LVM LIMITS with IN AIX (My Perception)

-------------------------------------

The System May Have 1 To 255 Volumes Groups (VG's).

Each VG May Contain 1 to 32 Physical Volumes (PV's).

Each Pv May Contain Upto 1016 Physical Partitions (PP's).

Each PP May Have a size (Square of 2) from 1 to 256MB (1024MB for AIX 4.3).

Therefore, if You Can Get Hold of A 260,096 MB Disk (One Pv with 1016

X 256MB PPS), you can install 32 of these in a Single VG Giving you

8,323,072MB per vg. You May Have Up to 255 VG's in One Aix System So

You Could (in theory) Create The Maximum Addressable Aix Storage Area

Of 2,122,383,360 MB (2,072,640 GB or 2,024 Tb or approx. 2 Pb). THIS

Is Based on The Current Limitations Of Aix V4.1.

The Limits for File and FileSystem Sizes Are:

[Editor's Note: The Original Values ​​in this Mail Appeared To

Be Slightly Wrong, I Have Corrected That To The Values ​​As Per

My interpretation of the aix manual.]

AIX V3.2 Max FileSystem Size: 2,147,483,647 bytes (2 GB)

Max Single File Size: 2,147,483,647 bytes (2 GB)

AIX V4.1 Max FileSystem Size: 1,099,511,627,776 bytes (1 TB)

Max Single File Size: 2,147,483,647 bytes (2 GB)

AIX V4.2 Max FileSystem Size: 1,099,511,627,776 bytes (1 TB)

Max Single File Size: 68, 589, 453, 312 (~ 64 GB)

AIX V4.3 Max FileSystem Size: 1,099,511,627,776 bytes (1 TB)

Max Single File Size: 68,589,453,312 (~ 64 gb) The 1TB Maximum File System Size Is Given by The Rule That Each

Fragment Must Be Addressable by AN 28 Bit Number, with the largest

Fragment size being 4096 bytes (4096 * 2 ^ 28).

Subject: 1.800: How do i control how Hostnames Are Resolved?

From: <

Kraem@ibm.de> Frank Kraemer

Information from Aix 4.1.2 InfoExplorer:

The Default Order Can Be Overwritten By Creating The Configuration File,

/etc/netsvc.conf and specifying the desired ORDER. Both the default and

/etc/netsvc.conf can be overwritten with the Environment Variable,

NsORder. If Either the /etc/netsvc.conf file or Environment Variable,

NsORder Are Defined, Then At Least One Value Must Be Specified Along with

The Option.

EXAMPLES:

Echo hosts = local, nis, bind> /etc/netsvc.conf

NsORDER = local, bind; export nsorder

[Editor's NOTICE: AS OF AIX 4.3 you also have bind4 & bind8 (for ipv4 & ipv6)]

------------------------------

Subjet: 1.801: DTLOGIN IGNORES / ETC / PROFILE?

From: Trevor Bourget

Trevor@thomsoft.com)

Read the / usr / dt / bin / xsession script. You can add a file to the

/etc/dt/config/xsession.d and it will get Sourced as part of the

Startup. The Order IS: $ HOME / .DTPROFILE, /ETC/dt/config/xssion.d/*,

/usr/dt/config/xsession.d/* (Backwards, In My Opinion, But CDE IS A

Committee Result After ALL.

> From: ed ravin <

ERAVIN@panix.com>

If You Want Your Terminal Session to Automatically Read in

/ etc / profile and your .profile when the start up, you need to each

Invoke the with the "-ls" option (Which I Couldn't Figure Out How To

Do, Perhaps Someone else Can Elabo Up The Default X

Resources So That Thei Set:

* DTTERM * Loginshell: Trueyou Could Always Do this with the .xResources File in Your Own Account,

But That Wouldn't FIX Any Other Users in The System. To make this change

Globally:

CDE Configuration Files Are Kept IN / USR / DT / Config

Those Files Warn You Strenuously Not to Change Them, Since Aix Upgrades

Will Overwrite Them and Lose Your Changes. The Recommend That You Copy

The files to / etc / dt / config and change the the the the:

# CD / USR

# Find dt / config -print | CPIO -PDVUM / ETC

... (files get copied)

# CD / ETC / DT / Config / C

# echo "* DTTERM * Loginshell: true" >> sys.Resources

# cd ../en_us

# echo "* DTTERM * Loginshell: true" >> sys.Resources

From: Olaf Meeuwissen <

Olaf@imsl.shinshu-u.ac.jp>

THE PROBLEM IS IN / USR / DT / BIN / XSESSION. THIS Script Only Recognits

The Following Login Shells: SH, KSH AND CSH (AS of $ Revision: 1.12 $).

All Other Shells Are Considered Non-Standard.

THE FIX Is To Have Your Sys-Admin Add Any Other Login Shells in The

Right Places in The Script (TWICE IN THE "Start The Session" Part).

Look for "Case $ {shell ## * /} in" and add shells in the pattern.

Note That Script Will Be Overwritten Unconditionally by System

Updates :-( and, unlike mus other stuff in / usr / dt /, copying it to

/ etc / dt / does not work.

For Which Shells to Add, You May Want To:

$ grep shells /etc/security/login.cfg

Subject: 1.802: Where's the c compiler?

AS of AIX 4.1, The C Compiler Has Been "Unbundled." It's a Separate Product,

AND You Must Purchase a Separate license for it. IBM DOES OFFER FREE

Time Limited Trial Licenses if you want to "Try Before You Buy."

The GNU C Compiler Is Available from Various Sources. The Most Convenientis Probably . <

ftp://aixpdslib.seas.ucla.edu/>

Is Another Source.

Subject: 1.803: why doesn't netscape work?

See Question 1.515.

Subject: 1.900: SCSI-1 and SCSI-2 "Interoperability" Got you confused?

A. SCSI-1 Devices Are Supported on A SCSI-2 Adapter. This

Config Will Provide SCSI-1 Performance.

B. SCSI-2 Devices Aresu Supported on A SCSI-1 Adapter. This

Config Will Provide SCSI-1 Performance.

C. a Mix of SCSI-2 and SCSI-1 Devices Aresu Supported on A SCSI-1

ALL DEVICES WILL HAVE SCSI-1 Performance.

D. a Mix of SCSI-2 and SCSI-1 Devices Aresu Supported on A SCSI-2

Adapter. SCSI-2 Devices Will Have SCSI-2 Performance (10 MB / SEC)

AND SCSI-1 Devices Will Have SCSI-1 Performance (4-5 MB / sec).

Subject: 1.901: how to get your keyboard back instance unplugging it from the 6000

From: Mickey Coggins and Anne Serre and L. Mark Larsen

WHEN you unplug your keyboard from a Running System, and Plug It Back

IN, THE Key Mapping is Wrong. for Example, Keys Like Caps Lock and Ctrl

Don't work as designed.

Solution: Type At the Command Line

/ USR / LPP / DIAGNOSTICS / DA / DKBD

Your Screen Goes Black, You Hear a few beeps, and your keyboard is reset.

IT Works with any Environment, XWindows, HFT, NLS ...

For Models 220, 230 and M20, Use the Following Commands:

/ USR / LPP / DIAGNOSTICS / DA / DKBD

/ USR / LPP / DIAGNOSTICS / DA / DKBDSAL (for the 220)

After Running The Keyboard Diagnostics To Reset Keyboard Mappings, THE

Repeat rate is also reset to some slow space (11, accounting to the man

IF the user is in x, you need to open an hft window. do this

With "xopen / bin / csh". Once you have an HFT WINDOW, RUN "Chhwkbd -r30". [Editor's Note: by unpluging & plugging a keyboard / mouse on a live

System You May / Will Damage / Zap / Fry / Destroy The Motherboard]

Subject: 1.902: How do I set up PCSIM, The DOS Emulator?

[Editor's Note: this Product Does Not Exist in Aix 4.x.]

You Must Have A Bootable Dos Diskette To Install PCSIM. Either DOS 3.3,

4.X, OR 5.0 Will Work. IBM Do Not Officially Support DOS 5.0 for PCSIM

But I have no problems with it. Just don't try to be fancy with the umb

And Memory Manager Stuff.

With a bootable dos disk in The Drive, Do:

$ TOUCH / U / DOSDRIVE (this Is The Aix File for DOS Emulation)

$ PCSIM -ADiskette 3 -cdrive / u / dosDrive

You 10 now get an a prompt. Type:

A> fdisk

Create The Virtual C Drive of WhatVer Size You Choose. Make it Large

Enough for your needs since you cannot Enlarge it Later.

A> Format C: / S (To Format The Virtual C Drive)

Now exit from pcsim with escpcsim (ESC Key Followed by PCSIM).

Now Create a SimProf File. Following is A Starter:

Adiskette: 3

CDRIVE: / U / DOSDRIVE

LPT1: Name of Printer Queue

Refresh: 50

DMODE: V

Mouse: Com1

You Can Now Start Pcsim Anytime by Typing Pcsim. Make Sure No Floppies

Are in the drive. for further information, refer to publication

SC23-2452, Personal Computer Simulator / 6000 Guide and Reference.

Subject: 1.903: How do I Transfer Files Between Aix and DOS Disks?

In the aix package bos.dosutils Are Commands for Transferring FILES BETWEEN

Dos Diskettes and Aix. The Commands Aread, Doswrite, Dosdir, Dosdel,

And dosformat. Many Users Have Mentioned That The MTools Package from

Prep.Ai.mit.edu Is Better Than the Native Aix Programs.Subject: 1.904: Where is the crypt program?

The Crypt * Program * (as opposed to the crypt subroutine) HAS BEEN

Deleded to conform to u.s. law regarding export of missile,

Ammunitions, Nuclear and Cryptographic Technology.

Other Programs Such As PGP Are Available, But Their Use and / OR

Posseness May Be Subject to Local Laws and Regulation.

France is Such a place.

IF Anyone Has A Better Answer To this Question (Like Places Where Crypto

Devices Are Illegal / Severely Restricted, Feel Free To Contribute IT.

Subject: 1.905: How do i Play Audio CDS?

From:

Woan@Austin.ibm.com (Ronald S. Woan)

Get XMCD by anonymous ftp from ftp.x.org in / contrib / applications / xmcd /

ftp://ftp.x.org/contrib/applications/xmcd/>

Subject: 1.906: How can I get the mouse back instance unplugging it?

/ USR / LPP / DIAGNOSTICS / DA / DMOUSEA

[Editor's note: by unpluging & plugging a keyboard / mouse on a live

System You May / Will Damage / Zap / Fry / Destroy The Motherboard]

Subject: 1.907: Where can I get source code to the overrating

SYSTEM BINARY XXXXX?

AIX Source Code Is Not Generally Available. Two Other UNIX OS 'DO

Make Their Source Available, Linux & Freebsd. Check

<

ftp://ftp.uu.net/systems/unix/BSD-SOURCES /> AND

<

ftp://ftp.uu.net/systems/unix/linux/>

Subject: 1.908: What's the Difference Between The Power and

PowerPC Architectures?

Read The PowerPC FAQ AT

<

http://www.mot.com/sps/powerpc/library/ppc_faq/ppc_faq.html>

Subject: 1.909: Will The BE DATE ROLLOVER PROBLEMS in the year 2000?

From:

Mbrown@austin.ibm.com (Mark Brown)

IBM HAS A MAJOR CORPORATE-WIDE PUSH for * All * of ITS Software Products

To Be "Safe" in this regard by the end of 1996. <

http://www.software.ibm.com/year2000/paper.html> Is The General-Purpose

URL for IBM.

As far as aix is ​​concerned, we had to fix three things in aixv4.1.4

(Some logging commands handled date range wrong) AS PTFS, But Other

Than That, we are there.

... and we Handle the Leap Year Issue Correcly. Also.

Subject: 1.910: How can I build an "installp format" file?

Jim Abbey <

Jim@systelecom.com> HAS a Tool Called "LPPBUILD".

IT is now Available from "aiXpdslib.seas.ucla.edu"

In Either of

/pub/lppbuild/risc/3.2/src/lppbuild.1.0.tar.z

/pub/lppbuild/risc/4.1/src/lppbuild.1.0.tar.z

Both Are Identical and The Procedures Also Work On 4.2.

Ciaran Diegnan <

C. Diegnan@frec.bull.fr> HAS Built a Tool Called

"mklpp". You Can Retrieve a copy (Along with Many Other

Smit-installable freeware packages) from .

Subject: 1.911: Is there a generic scsi driver for AIX?

From: Rogan Dawes <

Rdaws@jhbelec.co.za>

Yes. Matthew Jacob

Mjacob@feral.com) HAS Written a Generic SCSI Driver

FOR AIX 4.1. It can be found

ftp://ftp.feral.com/pub/aix/gsc.tar.gz>.

Subject: 1.912: Viruses Or Virus Scanning on Aix?

From:

MWW@microfocus.com (michael wojcik)

FWIW, AIX Comes with a virus-scanning utility (/ usr / bin / virscan),

Though Iirc The Original Version Had An Empty Signature File (in

/usr/lib/security/scan/virsig.lst) and even the later populate

Signature File Only Contains Pc Viruses. Quoth The Man Page, "AT

THIS TIME [Virsig.lst] Contains No Known Aix Virus Signatures.

Apparently We all to infer what there * wue * No Known Aix Virussignatures.

I Note That My 4.2.1 AIX System Still Has The 1991 Signature File.

Even a dos-only Virus List Could Potentially Be Useful ON A Unix

File Server, Though. Provided, Of Course, That It Had A Recent

Signature List (and preference "detection and similar

Heuristics, Which Virscan Probably Does Not.

And to be fair there is apenty of unix vulnerabilities, and evenu

Viruses potentially among them. David Harley, Keeper of The

Alt.comp.virus FAQ, MENTIONED SOME "LAB" Unix Viruses WHEN THIS

Thread Appeared In October '87, and i recall a discussion of using

Crypto Hashes To Validate Major System Commands on Some Unix Group

NOT THAT Long Ago - Which is Essentially Virus-Scanning Technology,

Though Not Necessarily for the Same Purpose It GeneSerally Serves

ON PCS.

That Said, Viruses Are Not The Problem for UNIX Systems That

Are for PCS. Network Security, Guessable UserNames and Passwords,

And The Like Should GeneSerally Be a higher priority.

Subject: 1.913: How do I Determine The Clock Frequency of A RS / 6000 BY

Software?

From: Franz Pestenhofer <

Franz.pestenhofer@debis.com>

The answer seems to be "there is no way to find

Out the clock frequency with a basce of software.

[Editor's NOTICE: On Chrp Machines The IS Information on the open firmware]

Subject: 1.914: How do I create a ramdisk?

From: MarkBBS <

Mark@grubbs.Austin.ibm.com>

# mkramdisk size

/ dev / rramdiskxx

# MKFS -V JFS / DEV / RAMDISKXX

# mount -v jfs -o nointegrity / dev / ramdiskxx / whatver

[Editor's NOTICE: this function is new in 4.3.3]

[Editor's NOTICE: this function is unsupported]

Subject: 1.915: Can i Run Linux on an rs / 6000? Some Distributions Can Be Installed On Some RS / 6000'S.

The Available Cards.

For more information see:

http://www.rs6000.ibm.com/linux

http://oss.software.ibm.com/developerWorks/opensource/linux/projects/p

http://www.linuxppc.com

http://www.linuxppc.org

http://www.yellowdog Linux.com

http://www.suse.com/products/susesoft/ppc

http://www.debian.org

SUBJECT: 2.00: C / C

Contrary to Many People's Belief, The C Environment on The RS / 6000 IS

NOT VERY SPECIAL. The C Compiler Has Quite a Number of Options That Can

BE Used to Control How IT Works, Which "Dialect" of C it Compiles, HOW

IT Interprets Certain Language Construction, etc. InfoExplorer IncludDes A

Users guide and a reference manual.

The Compiler Can Be Invoked with Either Xlc for Strict Ansi Mode and CC

For RT Compatible Mode (I.E. IBM 6150 with AIX 2). The default option

For Each Mode Are Set in the /etc/xlc.cfg file, and you can activally add

Another Stanza and create a link to the / bin / xlc executable.

The file /usr/lpp/xlc/bin/readme.xlc Has Information About The C

Compiler, and the file / usr / lpp / bos / bsdport (AIX 3 Only) Contains USEful

Information, In Particular for Users from a bsd background.

The file /etc/xlc.cfg also shows the symbol _ibmr2 That Is Predefined,

And therefore can be used for # ifdef'ing RS / 6000 Specific Code.

Subject: 2.01: i Cannot Make Alloca Work

A Famous Routine, in Particular In GNU Context, IS The Allocation

Routine Alloca (). Alloca Allocates Memory in Such A Way That IT IS

Automatically Free'd When The Block is exited. Most Implementations

Does this by adjusting the stack pointer. Since Not All C Environmentscan Support IT, ITS Use is Discouraged, But It Is Included in The XLC

Compiler. in Order To Make The Compiler Aware That You Intend To Use

Alloca, You Must Put The Line

#pragma alloca

BEFORE Any Other Statements in The c Source Module (s) Where Alloca IS

Called. if you don't do this, XLC Will NOT Recognize Alloca as Anything

Special, And You Will Get Errors During Linking.

FOR AIX 3.2, IT May Be Easier To Use the -ma flag.

Subject: 2.02: How do i compile my bsd programs?

The File / USR / LPP / BOS / BSDPORT Contains Information on Now To Port

Programs Written for BSD to Aix 3. This file May Be Very Useful for

Others as well.

A Quick CC Command for MOST "Standard" BSD Programs IS:

$ cc -d_bsd -d_bsd_includes -o [loading] [SourceFile.c] -lbsd

If Your Software Has System Calls Predefined with no proteotype

Parameters, Also Use the -d_no_proto flag.

Subject: 2.03: Isn't The Linker Different from what i am used to?

Yes. It is not at all like what you are used to:

- The Order of Objects and Libraries IS NORMALLY _NOT_ IMPORTANT. THE

Linker Reads_All_ Objects Including Those from Libraries Into Memory

AND does the actual linking in one go. Even if you need to put a

Library of Your OWN TWICE ON THE LD Command Line on Other Systems, IT

Is Not Needed on The RS / 6000 - Doing So Will Even Make Your Linking Slower.

- One of the features of the linker is that it will replace an Object in

An Executable with a New Version of the Same Object:

$ cc -o prog prog1.o prog2.o prog3.o # make prog

$ cc -c prog2.c # Recompile prog2.c

$ cc -o prog.new prog2.o prog # make prog.new from prog

# by replacing prog2.o

- The Standard C Library /Lib/Libc.a Is Linked Shared, Which Means Thatthe Actual Code Is Not Linked Into Your Program, But Is loading-ONL

Once and Linked Dynamically During Loading of Your Program.

- The Ld Program Actually Calls The Binder In / USR / LIB / BIND, AND You CAN

Give LD Special Options to Get Details About The Invocation of The

Binder. Thase Are Found on The Ld Man Page Or in InfoExplorer.

- IF Your Program Normally Links Using A Number of Libraries (.a Files),

You can 'Prelink' Each of these Into An Object, Which Will Make Your

Final Linking Faster. E.G. DO:

$ cc -c prop1.c prog2.c prog3.c

$ AR CV LIBPROG.A PROG1.O PROG2.O PROG3.O

$ ld -r - libprog.o lobprog.a

$ cc -o someprog someprog.c lobprog.o

This Will Solve All Internal References Between ProG1.O, PROG2.O AND

PROG3.O and Save this in Libprog.o kil ilibprog.o to link Your

Program instead of libprog.a Will Increase Linking Speed, And Even IF

Someprog.c Only Uses, Say PROG1.O and PROG2.O, ONLY Those Two Modules

Will Be in your final program. this is also to the fact what

Binder CAN Handle Single Objects Inside ONE Object Module As NOTED ABOVE.

IF you are useless an -lprog option (for libprog.a) Above, and still want

To Be Able To Do So, You Should Name The Prelinked Object with a

Standard Library Name, E.G. LibProgp.a (p Identifying a Prelinked

Object), That Can Be Specified by -lprogp. You cannot Use the Archiver

(ar) on such an object.

You Should Also Have a Look at Section 3.01 of this Article, in

Particular if You Have Mixed Fortran / C Programs.

Dave DennerLine

D. DennerLine@bull.com) Claims That His Experiences

In Prelinking On Aix Does Not Save Much Time Since MOST People Have

Separate Libraries Which Do Not Have Many Dependencies Between Them, Thus Not Many Symbols to Resolve.

Subject: 2.04: How do i staticly link my program?

Cc -o prog -bnoso -bi: /lib/syscalls.exp Obj1.o obj2.o obj3.o

Will Do That for a Program Consisting of The Three Objects Obj1.o, ETC.

[Editor's Note: You Should Never Link Programs Static That Are

Supposed to Leave Your Local Environment, E.G. Intended for

Distribution. staticly linked programs may fail to work after

Installing a New Aix Version or Even After Installing a PTF.]

From: Marc Pawliger

Marc@sti.com)

As of Aix 3.2.5, You Can Install a Speedup for AixWindows Called

Shared memory transport. To static link an x ​​copLication instator

SMT PTF Has Been Installed, You Must Link with

-bi: /usr/lpp/x11/bin/smt.exp and the executable will not run on a

Machine WHERE SMT IS Not Installed. See /usR/LPP/X11/Readme.SMT

转载请注明原文地址:https://www.9cbs.com/read-10639.html

New Post(0)