home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1997 December / Internet_Info_CD-ROM_Walnut_Creek_December_1997.iso / faqs / comp / answers / aix-faq / part3 < prev   
Encoding:
Internet Message Format  |  1997-10-09  |  64.8 KB

  1. Path: senator-bedfellow.mit.edu!bloom-beacon.mit.edu!cam-news-feed5.bbnplanet.com!cam-news-hub1.bbnplanet.com!news.bbnplanet.com!prodigy.com!prodigy.com!not-for-mail
  2. From: Frank Wortner <frank@sp2ctrlt.prodigy.com>
  3. Newsgroups: comp.unix.aix,comp.answers,news.answers
  4. Subject: AIX Frequently Asked Questions (Part 3 of 5)
  5. Followup-To: comp.unix.aix
  6. Date: 08 Oct 1997 16:57:28 -0400
  7. Organization: Prodigy Services Corp
  8. Lines: 1599
  9. Approved: news-answers-request@MIT.EDU
  10. Distribution: world
  11. Expires: 1 Nov 97 01:23:45 GMT
  12. Message-ID: <uc4t6sht1j.fsf@sp2ctrlt.prodigy.com>
  13. Reply-To: frank@prodigy.com
  14. NNTP-Posting-Host: sp2ctrlt.prodigy.com
  15. Summary: This posting contains AIX Frequently Asked Questions
  16.          and their answers.  AIX is IBM's version of Unix.
  17. Keywords: AIX RS/6000 questions answers
  18. X-Newsreader: Gnus v5.4.37/XEmacs 19.15
  19. Xref: senator-bedfellow.mit.edu comp.unix.aix:118427 comp.answers:28440 news.answers:114120
  20.  
  21. Archive-name: aix-faq/part3
  22. Last-modified: Oct 8, 1997
  23. Version: 5.19
  24.  
  25. ------------------------------
  26.  
  27. Subject: 1.606: How to configure dialup SLIP
  28.  
  29. IBM's WWW page <http://www.ibm.com/> can lead you to a helpful document
  30. <http://www.austin.ibm.com/pub/www/services/aix_service/faxes/SLIP.DOC.zap>
  31.  
  32. From: marvin@tornado.oche.de (Christian Bode)
  33.  
  34. If you don't have problems with slattach you should have PTF 
  35. bos.obj 3.2.0.0.U411505 installed.  I assume that you did the right
  36. ifconfig commands to setup your slip-device (for example sl0).
  37.  
  38. 1. Create a group called slip.
  39.  
  40. 2. Create a user slip with smit like this:
  41.                                                      [Entry Fields]
  42. * User NAME                                          [slip]
  43.   ADMINISTRATIVE User?                                true
  44.   User ID                                            []
  45.   LOGIN user?                                         true
  46.   PRIMARY group                                      [slip]
  47.   Group SET                                          [slip]
  48.   ADMINISTRATIVE groups                              [system]
  49.   SU groups                                          [slip]
  50.   HOME directory                                     [/home/slip]
  51.   Initial PROGRAM                                    [/bin/sh]
  52.   User INFORMATION                                   [SLIP-Dialup]
  53.   Another user can SU to user?                        false
  54.   User can RLOGIN?                                    true
  55.   TRUSTED PATH?                                       nosak
  56.   Valid TTYs                                         [/dev/tty1]
  57.   AUDIT classes                                      []
  58.   PRIMARY authentication method                      [SYSTEM]
  59.   SECONDARY authentication method                    [NONE]
  60.   Max FILE size                                      [2097151]
  61.   Max CPU time                                       [-1]
  62.   Max DATA segment                                   [262144]
  63.   Max STACK size                                     [65536]
  64.   Max CORE file size                                 [2048]
  65.   Max physical MEMORY                                [65536]
  66.   File creation UMASK                                [022]
  67.   EXPIRATION date (MMDDhhmmyy)                       [0]
  68.  
  69. 3. Create a tty with getty on it:
  70.                                    Add a TTY
  71.                                                [Entry Fields]
  72.   TTY type                                     tty
  73.   TTY interface                                rs232
  74.   Description                                  Asynchronous Terminal
  75.   Parent adapter                               sa0
  76. * PORT number                                  [s1]
  77.   BAUD rate                                    [38400]
  78.   PARITY                                       [none]
  79.   BITS per character                           [8]
  80.   Number of STOP BITS                          [1]
  81.   TERMINAL type                                [dumb]
  82.   STATE to be configured at boot time          [available]
  83.   DMA                                          on
  84.   Read Trigger                                 0,1,2,3
  85.   Transmit buffer count                        [16]
  86.   Name of initial program to run               [/etc/getty]
  87.  
  88.   Note: The following attributes are only applicable if /etc/getty is
  89.         specified as the initial program to run.
  90.  
  91.   Enable program?                              respawn
  92.   Run level                                    2
  93.   Enable LOGIN                                 share
  94.   TIME before advancing to next port setting   [0]
  95.   STTY attributes for RUN TIME                 [hupcl,cread,brkint>
  96.   STTY attributes for LOGIN                    [hupcl,cread,echoe,>
  97.   RUN shell activity manager                   no
  98.   Optional LOGGER name                         []
  99.  
  100. 4. Change the hardware characteristics so that it uses NO XON/XOFF handshake
  101.    section 1.613 also talks about tty flow control.
  102.  
  103. 5. A (new) .profile template for slip accounts is provided in section
  104.    8.07.  The author, David Migliavacca, writes, "I would also like to
  105.    assert that, to my experience, it is NOT required that the SLIP user
  106.    be made "administrative" or member of "system" as other parts of the
  107.    FAQ (and the original script) say.  At least on my machine 8-).  I now
  108.    create SLIP users as members of group slip, it being the ONLY group;
  109.    allowed ttys are set to the available modem lines only; their home
  110.    directory is owned by root and the .profile is only readable by group
  111.    slip.
  112.  
  113. Here's another scenario:
  114. From: oosten@angelo.ee.ualberta.ca (Brian Oostenbrink)
  115.  
  116. Operating System: IBM AIX 3.2.1 and 3.2.3
  117.  
  118. Configuring two RS6000s via a Serial Line Interface Protocol (SLIP) 
  119. connection over two US Robotics Sportster 14,400 modems.
  120.  
  121. The AIX implementation of SLIP is slightly different from most others. 
  122. The ifconfig command is used to bring up a serial interface, and the
  123. slattach command is used to connect the interface to the serial port
  124. used for the connection.  Dialer device commands can also be issued when
  125. invoking the slattach command, using UUCP chat syntax.
  126.  
  127. The following describes a connection between two machines:
  128.  
  129.      local.j.k.l
  130.          ethernet IP address 129.128.127.21
  131.          slip interface IP address 129.1.2.1
  132.  
  133.      remote.a.b.c
  134.          ethernet IP address 129.11.22.44
  135.          slip interface address 129.11.22.1
  136.  
  137. 1. Interface configuration
  138.  
  139. Each machine must have a separate IP address dedicated to the SLIP
  140. interface. On remote.j.k.l, start the SLIP interface with:
  141.  
  142.          ifconfig sl0 129.11.22.1 129.128.127.1  up
  143.  
  144. and on local.a.b.c:
  145.  
  146.          ifconfig sl0 129.128.127.1 129.11.22.1  up
  147.  
  148. It is important in later versions of AIX 3.2.3+ to use the same SLIP
  149. interface # as the ptty port #, ie. if you use tty12, use ifconfig sl12
  150. instead of sl0.
  151.  
  152. At this point the interfaces are ready to be connected.
  153.  
  154. 2. tty configuration
  155.    The tty ports on both machines were configured in an identical manner
  156.    using smit.
  157.                                                  [Entry Fields]
  158.  TTY type                                           tty
  159.  TTY interface                                      rs232
  160.  Description                                        Asynchronous Terminal
  161.  Parent adapter                                     sa0
  162.  PORT number                                        []                       +
  163.  BAUD rate                                          [38400]                  +
  164.  PARITY                                             [none]                   +
  165.  BITS per character                                 [8]                      +
  166.  Number of STOP BITS                                [1]                      +
  167.  TERMINAL type                                      [dumb]
  168.  STATE to be configured at boot time                [available]              +
  169.  DMA                                                on                       +
  170.  Read Trigger                                       0,1,2,3
  171.  Transmit buffer count                              [16]                      #
  172.  Name of initial program to run                     [etc/getty]
  173.  
  174.  Note: The following attributes are only applicable if /etc/getty is specified
  175.  as the initial program to run.
  176.  
  177.  Enable program?                                    respawn
  178.  Run level                                          2
  179.  Enable LOGIN                                       disable                  +
  180.  TIME before advancing to next port setting         [0]                      +#
  181.  STTY attributes for RUN TIME                       [hupcl,cread,brkint,icr>
  182.  STTY attributes for LOGIN                          [hupcl,cread,echoe,cs8,>
  183.  RUN shell activity manager                         no                       +
  184.  Optional LOGGER name                               []
  185.  
  186. On older versions of AIX, we encountered some problems disabling getty, and
  187. resorted to changing the /etc/inittab file directly. For example, change
  188.  
  189.    tty0:2:respawn:/etc/getty /dev/tty0
  190. to
  191.    tty0:2:off:/etc/getty /dev/tty0
  192.  
  193. This will disable getty from running. After creating the SLIP tty device,
  194. you will need to change its hardware configuration to disable Xon/Xoff
  195. flow control. Software flow control should not be used for SLIP. Type
  196. 'smit chtty', and then select sub item 2: Hardware settings.
  197.  
  198. Most of the parameters in the tty configuration are the defaults.
  199.  
  200. 3. Modem Configuration
  201.  
  202.    The modems were configured as follows:
  203.  
  204.    RTS/CTS flow control enabled.
  205.    Xon/Xoff software flow control disabled. Usually this is automatic if
  206.       RTS/CTS is enabled.
  207.    Data rate, terminal to modem = fixed.
  208.       This is the baud rate from the tty port to the modem. We used a
  209.       fixed modem-port transfer rate, set to the fastest speed supported
  210.       by both the tty port and the modem. Newer modems can use a higher
  211.       transfer rate between the modem and serial port than the modem to
  212.       modem rate, which is necessary to use data compression effectively.  
  213.       In our setup, we used 14.4 kBaud modems with a port speed of 38.4
  214.       kBaud. If your modem supports this feature, use it, otherwise set
  215.       the port speed equal to the modem connection rate. On the USR
  216.       Sportster at&b1 fixes the serial port rate to that of the last
  217.       AT command. The speed parameter of the slattach command can be
  218.       used to ensure that this rate is that set in the tty configuration.
  219.    Error Correction enabled - not mandatory, but a good idea
  220.    Data Compression - not required, but it helps, especially for text
  221.       transfers.
  222.    Auto Answer - If the SLIP connection is to be initiated from either
  223.       machine, both modems should be set to auto answer, otherwise, just
  224.       the answering modem.
  225.  
  226.    It is a good idea to configure the modem and then save the settings
  227.    to NVRAM, so that the correct settings can always be restored by the
  228.    slattach command.
  229.  
  230. 4. UUCP configuration files
  231.  
  232.    /usr/lib/uucp/Devices
  233.    /usr/lib/uucp/Dialers
  234.  
  235.    The Devices file must contain an entry with the tty and serial port
  236.    speed used for the interface. In our example,
  237.       Direct tty0 38400 slipdialer
  238.  
  239.    The keyword 'slipdialer' is merely an index into the Dialers file.
  240.    For our purposes, the slipdialer entry in the Dialers file is simply:
  241.  
  242.       slipdialer
  243.  
  244.    This entry can also contain UUCP chat commands, or the chat commands
  245.    can be included in the slattach command.
  246.  
  247. 5. slattach invocation
  248.  
  249.    slattach connects the device on the tty port to the SLIP interface
  250.    created by ifconfig, and sends any commands to the tty device if
  251.    needed. For our example, remote.j.k.l would never initiate a call,
  252.    only answer incoming calls. Therefore we execute:
  253.  
  254.          slattach tty0 38400 '"" ATZ OK ""'
  255.  
  256.    which connects the tty at 38400 baud. We could also simply run
  257.  
  258.          slattach tty0
  259.  
  260.    ie. without any modem commands, but the modem to port speed may not
  261.    be correctly set this way. In addition, the ATZ command ensures the
  262.    modem is set to the NVRAM settings.
  263.  
  264.    On local.a.b.c type:
  265.  
  266.          slattach tty0 38400 '"" ATZ OK \pATDT4925871 BIS ""' 4
  267.  
  268.    This establishes the link at 38400 baud, and executes the dial string
  269.    as shown. The dial string is a UUCP chat string and are configured
  270.    in an expect send expect send ... format. The string:
  271.  
  272.          '"" ATZ OK \pATDT4925871 BIS ""'
  273.  
  274.    is interpreted as:
  275.    expect "" (null string) from modem
  276.    send   ATZ              to modem
  277.    expect OK               from modem
  278.    send   \pATDT4925871    to modem
  279.    expect BIS              from modem
  280.  
  281.    BIS is the end of the CONNECT STRING. You could use any portion of
  282.    the string returned by the modem upon a connection as the expect
  283.    string. It may be wiser to simply expect CONNECT since all
  284.    connections should return this string.
  285.    The null strings are necessary because the first parameter of the
  286.    UUCP is an expected string from the modem, which can only be a null
  287.    string until the modem has been given a command.
  288.  
  289.    The last parameter (4) of the slattach command is the debug level. 
  290.    A debug level of 4 displays the UUCP chat strings, which is useful
  291.    for checking the modem status.
  292.  
  293. 6. Routing
  294.    ifconfig is sufficient if all you want to do is talk between the
  295.    two hosts.  If you are running SLIP so that you can talk to more
  296.    than just that one other host you have to advertise your address.
  297.    
  298.    1) arp -s 802.5 iago 10:00:5a:b1:49:d8 pub
  299.         where 802.5 is a token-ring network the hardware address can
  300.         be obtained with `netstat -v` and iago was the SLIP client (My
  301.         PC at home :)  pub is the important part it means "published"
  302.         You may want to run this at boot time. 
  303.  
  304.    Routing through the SLIP link is similiar to routing of any gateway. 
  305.    Invoking the ifconfig command automatically sets up a route between
  306.    the two SLIP machines. An entry in /etc/hosts or the named database
  307.    should be made, with the same machine name used for the SLIP address
  308.    as the ethernet address on each machine. For example, in /etc/hosts
  309.    on remote.a.b.c (and any other machine on remote.a.b.c ethernet):
  310.  
  311.      129.11.22.44 remote.a.b.c # ethernet address
  312.      129.11.22.1  remote.a.b.c # slip address
  313.  
  314.    It is preferable to place the ethernet address in the hosts file
  315.    before the SLIP address so remote.a.b.c will resolve to the
  316.    ethernet address. When using named, it is important to have both
  317.    addresses in the reverse file with the same name. We experienced
  318.    difficulties with NFS mounting over the slip link, owing to some
  319.    machine interpreting NFS requests from one of the two SLIP machines
  320.    as coming from the SLIP address, while the SLIP machine believed it
  321.    was sending the request from the ethernet address. This problem was
  322.    eliminated by having both addresses reverse resolve to the same name.
  323.  
  324. 7. Performance
  325.    At a modem speed of 14.4 kBaud and a port speed of 38.4 kBaud, we
  326.    realized a transfer rate through ftp of about 3.5 kB/s for text
  327.    files, and 1.3 kB/s for compressed files.
  328.  
  329. ------------------------------
  330.  
  331. Subject: 1.607: Where is DCE discussed?
  332.  
  333. DCE is the Distributed Computing Environment, which is roughly a
  334. flexible client-server architecture for heterogenous platforms.
  335. For more information, take a look in comp.soft-sys.dce.
  336.  
  337.  
  338. ------------------------------
  339.  
  340. Subject: 1.608: How do I make /var/spool/mail mountable?
  341. From: petersen@pi1.physik.uni-stuttgart.de (Joerg Petersen)
  342.  
  343. In our cluster we share a /usr/local disk. We have a directory
  344. /usr/local/spool/mail and /var/spool/mail is soft-linked to it.
  345.  
  346. From: fred@hal6000.thp.Uni-Duisburg.DE (Fred Hucht)
  347.  
  348. Several problems has been reported on sharing the mail directory via
  349. NFS. The problems may occur when two or more sendmail daemons and/or
  350. mail readers access a user's mail file simultanously, because of NFS'
  351. file locking mechanism.
  352.  
  353. We use another method here: Every user has one line in his/her
  354. $HOME/.forward file that reads
  355.  
  356. xxx@mainserver.domain.name
  357.  
  358. where xxx is the user node and mainserver.domain.name is the full
  359. hostname of one of the machines. Then all incoming mail to all machines
  360. is forwarded to mainserver, while mainserver ignores this line.
  361.  
  362.  
  363. Subject: 1.609: getty spawning too rapidly 
  364. From: aslam@abaseen.lums.edu.pk (Sohail Aslam)
  365.  
  366. The problem can occur due a number of modem settings. The most
  367. frequent is that the echo is not disabled on modems that are to
  368. accept incoming calls. In hayes language, ATE0 disables echo.
  369. If echo is enabled, the login prompt sent by the DTE (computer)
  370. is echoed back to it. It then issues "password:" prompt which
  371. the modem conveniently echoes back again. And the cycle goes on.
  372.  
  373. Another setting to check is the Q registers which controls the
  374. modem's response to the DTE. The hayes command ATQ0 enables
  375. results codes. The Q register in conjunction with the X and
  376. the V registers, reports back to the DTE the status of the incoming
  377. or outgoing call, and the type of connection established. For
  378. outgoing calls, one would want to enable result codes but not
  379. for incoming calls. If codes are enabled (via ATQ0), when a
  380. call comes in, the modem will send strings (if ATV1 and ATX4 set)
  381. "RINGING", "CONNECTED" etc. to the local DTE. The getty will think
  382. some one is trying to login. It will send password prompt. Trouble
  383. again. Telebit and other intelligent modems has ATQ2 setting
  384. which says "reports codes only when calling out." For others,
  385. you will need to disable it (ATQ1) and enable when calling out.
  386.  
  387. The DSR setting can be a source of problem. Ideally, modem should
  388. raise DSR only when CD is detected and modem raises CTS. Computer,
  389. such as the VAX, wait 30 seconds after the modem raises DSR. If
  390. CD is not on by that time, the computer will drop DTR causing the
  391. modem to reset. The DSR should be set to be raised only when
  392. carrier has been detected. The hayes setting is AT&S1.
  393.  
  394. The DCD setting should be such that it reflects the true nature of
  395. the carrier. The CD can be forced on at all times (AT&C0). This
  396. is not good. Set it to AT&C1.
  397.  
  398. Most modems can reload saved settings from non-volatile memory
  399. on a DTR transition. This is useful for resetting the modem
  400. when a call drops. Use AT&D3 to get this effect. 
  401.  
  402. For dial in, thus, set AT E0 Q1 &C1 &D3 &S1 &W. The &W stores the
  403. settings in memory. They will be reloaded due to &D3.
  404.  
  405.  
  406. ------------------------------
  407.  
  408. Subject:1.610: Does AIX support Compressed SLIP (CSLIP)?
  409.  
  410. No.  That means no VJ compression either :)  See PPP in section 5.07 
  411. if you want more than standard SLIP.
  412.  
  413.  
  414. ------------------------------
  415. Subject: 1.611: How do I setup anonymous ftp on my AIX system?
  416.  
  417. (stolen from Peter Klee <klee@dhdibm1.bitnet> posting)
  418.  
  419. Have a look at '/usr/lpp/tcpip/samples/anon.ftp'. It is a shell script
  420. and will set up a anonymous ftp site on your local RS/6000.  Note: the
  421. ftpd that comes with AIX does not support the display messages every
  422. time a user changes a directory or even when they login.
  423.  
  424. ------------------------------
  425.  
  426. Subject: 1.612: Talk, getting notification.
  427.  
  428. If you are not getting notification (that someone wants to talk to
  429. you), use (swcons `tty` && mesg y) in one window.
  430.  
  431. There are many variations of 'talk' and finding compatible versions
  432. for multiple operating systems can be tricky.
  433.  
  434.  
  435. ------------------------------
  436.  
  437. Subject: 1.613: Disabling software flow control; using RTS/CTS.
  438.  
  439. Different versions of AIX 3.2.5 respond differently to attempts to
  440. enable flow control (RTS/CTS signals).  This section is an attempt to
  441. compile a list of different approaches.
  442.  
  443. The most straight forward is:
  444.    chdev -l ttyxx -a rts=yes
  445.    [ Note: ix40410 for AIX 3.2.5 should give you this functionality.  
  446.    PTF U426113 and numerous other superceding ptfs should provide this.]
  447.  
  448. If carrier signal is high (its connected) you can try
  449.    stty add rts </dev/ttyxx 
  450.  
  451. There is also a program that I first saw on the 800-IBM-4FAX number,
  452. also found in INFO that will remedy the situation in some cases.  Note
  453. that this code ignores the return code from ioctl (which on my machine
  454. is <0 :)
  455.  
  456. ------------------------------
  457.  
  458. Subject: 1.614: NIS security
  459. Ole.H.Nielsen@fysik.dtu.dk (Ole Holm Nielsen)
  460.  
  461. SUMMARY: AIX 3.2.4 and above includes support for a more secure setup
  462. of the ypserv NIS daemon.  You can prevent any random host on the
  463. entire Internet from reading your NIS maps, as is possible with the
  464. default AIX setup.
  465.  
  466. The details:
  467. ------------
  468. After starting the ypserv daemon, I noticed in the syslog the following line:
  469. Jan 17 12:01:18 zeise syslog: /usr/etc/ypserv: no /var/yp/securenets file 
  470. This indicates that ypserv is looking for the mentioned configuration
  471. file, but did not find it, and hence will deliver the NIS maps to
  472. anyone on the net who can guess the NIS domainname.  I installed the
  473. /var/yp/securenets file and restarted ypserv, and it works !  Any
  474. illegal attempt to read NIS maps will result in the following getting
  475. logged to syslog (example):
  476. Jan 18 13:37:27 zeise syslog: ypserv: access denied for 129.142.6.79 
  477.  
  478. How to enable this NIS security option:  
  479. Install the /var/yp/securenets file, for example:
  480.  
  481. # /var/yp/securenets file
  482. #
  483. # The format of this file is one of more lines of
  484. # netmask netaddr
  485. # Both netmask and netaddr must be dotted quads.
  486. #
  487. # Note that for a machine with two Ethernet interfaces (i.e. a gateway
  488. # machine), the IP addresses of both have to be in /var/yp/securenets.
  489. #
  490. # for example:
  491. #255.255.255.0 128.185.124.00
  492. # Loopback interface
  493. 255.255.255.255 127.0.0.1
  494.  
  495. Uncommenting the last line would limit access to hosts on the
  496. 128.185.124.*  net, only.  The loopback interface must be included, as
  497. shown above.
  498.  
  499. To log violations, have a /etc/syslog.conf file containing the proper
  500. events.  We use this line:
  501.  
  502. *.err;kern.debug;auth.notice;user.none          /var/adm/messages
  503.  
  504. Caveat emptor:  This works for us, and you will have to verify it at
  505. your own installation.  Don't complain to us if you have troubles.  
  506. I do not know what PTF level our AIX 3.2.4 is at.  Our ypserv daemon 
  507. looks like this:
  508.  
  509. zeise> strings /usr/lib/netsvc/yp/ypserv | head -2
  510. @(#)16
  511. 1.12  com/cmd/usr.etc/yp/ypserv.c, cmdnfs, nfs325, 9334325a 5/4/93 19:44:41
  512.  
  513. If your AIX doesn't have securenets support, ask your support centre
  514. for the PTF which includes APAR IX32328.  That seems to have included
  515. the securenets support.
  516.  
  517.  
  518. ------------------------------
  519.  
  520. Subject: 1.615: Why can't non-anonymous users login using WU-FTP?
  521. From: swcxt@boco.co.gov (Shane Castle)
  522.  
  523. You must create a file named /etc/shells (this is the real /etc not a
  524. subdirectory of your false root), that contains all the shells that
  525. are defined on your system.  Get the list from
  526. /etc/security/login.cfg.  Also, if having proper group authentication
  527. is important to you, apply the following patch:
  528.  
  529. --- ftpd.c.dist    Wed Apr 13 15:17:18 1994
  530. +++ ftpd.c    Tue Jan 17 13:29:58 1995
  531. @@ -1153,7 +1153,13 @@
  532.         setgroups(NULL, NULL);
  533.         if (setpriv(PRIV_SET|PRIV_INHERITED|PRIV_EFFECTIVE|PRIV_BEQUEATH,
  534.                     &priv, sizeof(priv_t)) < 0 ||
  535. -           setuidx(ID_REAL|ID_EFFECTIVE, (uid_t)pw->pw_uid) < 0 ||
  536. +           initgroups(pw->pw_name, (gid_t)pw->pw_gid) < 0 ||
  537. +           setgidx(ID_REAL|ID_EFFECTIVE, (gid_t)pw->pw_gid) < 0 ||
  538. +           setegid((gid_t)pw->pw_gid) < 0) {
  539. +               reply(550, "Can't set gid (AIX3).");
  540. +               goto bad;
  541. +       }
  542. +       if (setuidx(ID_REAL|ID_EFFECTIVE, (uid_t)pw->pw_uid) < 0 ||
  543.             seteuid((uid_t)pw->pw_uid) < 0) {
  544.                 reply(550, "Can't set uid (AIX3).");
  545.                 goto bad;
  546.  
  547. ------------------------------
  548.  
  549. Subject: 1.616: NIS users can't login, do I need '*' in /etc/passwd?
  550. From: ohnielse@fysik.dtu.dk (Ole Holm Nielsen)
  551.  
  552. Aparently at least one version of AIX InfoExplorer suggests
  553. administrators use "+:*:0:0:::" as the last entry in the /etc/passwd
  554. file of NIS clients for security reasons.  If the configuration SMIT
  555. is done using SMIT it will actually append "+::0:0:::" which works and
  556. does not compromise security.  Using the '*' in the passwd field
  557. actaully prevents NIS users from logging in.
  558.  
  559. "+::0:0:::" should not allow you to login as user "+" and without a
  560. password even when NIS is disabled, but it never hurts to double
  561. check.
  562.  
  563. ------------------------------
  564. Subject: 1.617: HP JetDirect cards and virtual printers?  mkvirprt problems?
  565.  
  566. (stolen from many)
  567.  
  568. Since the release of AIX 3.2.5 adding a queue for JetDirect cards is
  569. as easy as creating a virtual printer using "smit mkvirprt" or
  570. /etc/mkvirprt.  If the command hangs make sure you are using an
  571. HFT, aixterm or vt100 terminal.  The entire procedure is available
  572. from the IBM FAX "Information Line" (800 IBM-4-FAX).
  573.  
  574. ------------------------------
  575.  
  576. Subject: 1.618: How can I hack libc.a to alter how hostnames are resolved?
  577. From: <mlarsen@ptdcs2.intel.com> "L. Mark Larsen"
  578.  
  579.   Editors note:  The implications of corrupting libc.a should not be
  580.   understated.  While recovering from a corrupt libc.a should be a
  581.   matter of booting from floppy I wouldn't wish that on anyone with a 
  582.   supervisor or users to support :)
  583.  
  584.   Before you attempt this,  you might want to read 2.07 first for
  585.   advice on recovering from a destroyed or corrupted libc.a.
  586.   Remember:  backups are a VERY GOOD IDEA.
  587.  
  588.   enough of the weak kneed quivering...
  589. ]
  590.  
  591. Nate Itkin (a colleague) is the individual who did the initial work.
  592. I suspect he would rather not be troubled with any questions you may
  593. have in this area and I can probably answer them just as easily.  The
  594. motivation for this was to use DNS for MX records (we are using IDA
  595. sendmail) but NIS for most hostname lookups.
  596.  
  597. Secondly, warnings:  IBM has not given any sort of stamp of approval on what
  598. we have done (though they appear to have integrated resolv+ into AIX 4 based
  599. on some release notes I saw).  While we have been using it successfully for
  600. about one year and have seen no problems, we can't and won't promise the same
  601. for you.  This procedure plays around with libc.a which, as you probably know,
  602. is an XCOFF shared library under AIX and hence a critical part of the running
  603. system.  You assume all the risk if you try to install this.  All the usual
  604. disclaimers about liability, etc. apply - there is no warranty associated with
  605. any of this.
  606.  
  607. Furthermore, know that any PTF you subsequently install that updates/replaces
  608. libc.a implies that you have to execute most of these procedures again.
  609.  
  610. The details on how to use resolv+ under AIX 3 (it's only tested under
  611. 3.2.5 but should work for all point releases), have been moved to
  612. section 8.09.
  613.  
  614. ------------------------------
  615.  
  616. Subject: 1.619: What modem settings do I need?
  617.  
  618. ATQ2  - result codes in originate only
  619. AT&C1 - CD follows state of carrier 
  620. AT&D2 - hangup on DTR drop
  621.  
  622.  
  623. ------------------------------
  624. Subject: 1.620: NIS slave server config with master on different subnet?
  625. From: msidler@metronet.com (Mike Sidler)
  626.  
  627. Assuming AIX 3.2.5,the master server up and running and the hosts file
  628. has the master name defined. On slave do:
  629.  
  630.     1) domainname <domain_name that matches master>
  631.     2) startsrv -s ypserv
  632.     3) startsrv -s ypbind (ypwhich should return "loopback")
  633.     4) (/usr/sbin/)ypset -d <domainname> <master_server_name>
  634.        (ypwhich should return "<master_server_name>"
  635.     5) (/usr/sbin/)ypinit -s <master_server_name>
  636.     6) Put "+::0:0:::" in /etc/passwd after last local login. 
  637.        Note: InfoExplorer has this entry INCORRECT in some versions.
  638.     7) Other cfg files (group, etc) may need configuring but this will
  639.        get ypserv and ypbind running on the slave looking at the right stuff.
  640.  
  641.  
  642. ------------------------------
  643.  
  644. Subject: 1.621: Why does my 64 port concentrator loose data and drop the queue?
  645. [From: as@mynet.no (Arild Sletvold)]
  646.  
  647. This problem has been associated with upgrading machines to 3.2.5.
  648. Try changing the values for the "Transmit buffer count" parameter in
  649. the printer/plotter setup in smit. You need to experiment with this
  650. parameter, to see which value that makes the printer print as fast as
  651. possible.  If the value is too high, the printers will loose some of
  652. the data, and the queue will be disabled.  If the value is too low,
  653. the printers will print very slowly.
  654.  
  655. ------------------------------
  656.  
  657. Subject: 1.622: Netscape FastTrack server won't install on AIX 3.2.5 or 4.1.
  658. From: Cameron Ferstat <cferstat@austin.ibm.com>
  659.  
  660. Before installing FastTrack on an AIX 3.2.5 or 4.1 system, you must 
  661. first install the AIX Shared Library Hookable Symbols/6000 Version 
  662. 1.1.5.0, Reference RPQ No. P91153.  (Note:  This software should *not*
  663. be installed on an AIX 4.2 system!)
  664.  
  665. If you try to install FastTrack on an AIX 3.2.5 or 4.1 system, without 
  666. first installing the Hookable Symbols PRPQ, you will get the following 
  667. error:
  668.  
  669.    > ./ns-setup
  670.      0509-037 System error - error data is: ./ns-setup
  671.      0509-022 Cannot load library libsvld.a[shr.o].
  672.      0509-026 System error: A file or directory in the path name does not exist.
  673.  
  674. You can download the installp image by anonymous ftp from
  675. <ftp://ftp.software.ibm.com/aix/products/netscape/tools/slhs.rte.inst_image>.
  676.  
  677. There is also an associated README.slhs file in that directory.
  678.  
  679. ------------------------------
  680.  
  681. Subject: 1.623: How can I share files/printers with Windows 95?
  682.  
  683. The freeware solution is Samba,  available from <http://www-frec.bull.com/>.
  684.  
  685. Commercial solutions include Fusion95 from Performance Technology
  686. <http://www.perftech.com/> and Syntax <http://www.syntax.com/>.
  687.  
  688. ------------------------------
  689.  
  690. Subject: 1.700: Free LVM lecture slides.
  691. From: shieh@austin.ibm.com
  692.  
  693. If you want free LVM documentation (lecture notes) from the
  694. SHARE conference in San Franciso where I presented last March
  695. just:
  696.  
  697.  mail -s "S_basics.ps" shieh@austin.ibm.com < /dev/null
  698.  mail -s "S_limits.ps" shieh@austin.ibm.com < /dev/null
  699.  mail -s "S_lvm_extra.ps" shieh@austin.ibm.com < /dev/null
  700.  
  701. [Editor's note: Jens-Uwe Mager converted the slides to PDF format.  They
  702. are available as <ftp://anubis.han.de/pub/aix/lvm.pdf>.]
  703.  
  704. ------------------------------
  705.  
  706. Subject: 1.701: How do I shrink /usr?
  707. From: mike@bria.UUCP (Michael Stefanik) and Richard Hasting
  708.  
  709. FOR AIX 3.1
  710. -----------
  711.  
  712.  1) Make a backup of /usr
  713.  
  714.         find /usr -print | backup -ivf /dev/rmt0 (or appropriate device)
  715.  
  716.  2) shutdown to maintenance mode
  717.  
  718.         shutdown -Fm
  719.  
  720.  3) export LANG=C
  721.  
  722.  4) remove the filesystem and the logical volume
  723.     ignore an error about the "dspmsg" command not found
  724.  
  725.         umount /usr
  726.         rmfs /usr
  727.  
  728.  5) make a new logical volume hd2 and place it on rootvg with desired size
  729.  
  730.         mklv -yhd2 -a'e' rootvg NNN 
  731.  
  732.    where NNN is the number of 4 meg partitions
  733.  
  734.  6) create a filesystem on /dev/hd2
  735.  
  736.         crfs -vjfs -dhd2 -m'/usr' -Ayes -p'rw'
  737.  
  738.  7) mount the new /usr filesystem and check it
  739.  
  740.         /etc/mount /usr
  741.         df -v
  742.  
  743.  8) restore from the tape; system won't reboot otherwise
  744.  
  745.         restore -xvf/dev/rmt0
  746.  
  747.  9) Sync and reboot the system; you now have a smaller /usr filesystem
  748.  
  749. FOR AIX 3.2
  750. -----------
  751.  
  752.  0)  Experiences posted to comp.unix.aix lead me to suggest that
  753.      many administrators find the following piece of information 
  754.      useful after completing this procedure.  I thought some of you
  755.      might like to read it BEFORE getting yourself into this
  756.      predicament.  
  757.  
  758.      Call 1-800-IBM-4FAX and request document 2503 dated 1/26/94.  
  759.      Title is "How to recover if all files are owned by root after
  760.      restoration from a mksysb tape".
  761.  
  762.  1) Remove any unneeded files from /usr.
  763.  
  764.  2) Make sure all filesystems in the root volume group are mounted. If
  765.     not, they will not be included in the re-installed system.
  766.  
  767.  3) Type mkszfile. This will create /.fs.size that contains a list of
  768.     the active filesystems in the root volume group that will be
  769.     included in the installation procedure.
  770.  
  771.  4) Edit .fs.size. Change the size of /usr to what you want.
  772.  
  773.     Example: This .fs.size file shows /usr to be 40MB.
  774.  
  775.     rootvg 4 hd2 /usr 10 40 jfs
  776.  
  777.     The 10 is the number of physical partitions for the filesystem and
  778.     the 40 is 40 MB. Most systems have a physical partition size of 4 MB.
  779.     Therefore, the second number (40) will always be 4 times the
  780.     previous number (10). Note, however, that a model 320 with a 120 MB
  781.     drive will have a physical partition size of only 2 MB, and the
  782.     total MB is twice the number of physical partitions. The first
  783.     number (4) in the .fs.size file represents the PP size.
  784.  
  785.     If you want to reduce the size of /usr from 40 MB to 32 MB, edit the
  786.     /usr entry to:
  787.  
  788.         rootvg 4 hd2 /usr 8 32 jfs
  789.  
  790.     IMPORTANT: Make sure that you DO NOT enter a value which is less
  791.     than the size of the filesystem required to contain the current
  792.     data. Doing so will cause the re-installation procedure to fail.
  793.  
  794.  5) chdev -l rmt0 -a block=512 -T
  795.  
  796.  6) Unmount all filesystems that are NOT in the root volume group.
  797.  
  798.  7) Varyoff all user-defined volume groups, if any
  799.  
  800.         varyoffvg VGname
  801.  
  802.  8) Export the user-defined volume groups, if any
  803.  
  804.         exportvg VGname
  805.  
  806.  9) With a tape in the tape drive, type
  807.  
  808.         mksysb /dev/rmt0
  809.  
  810.      This will do a complete system backup, which will include
  811.      information (in the .fs.size file) for the installation procedure
  812.      on how large the filesystems are to be created.
  813.  
  814.  10) Follow the instructions in the Installation Kit under "How to
  815.      Install and perform maintenance from Diskettes" (reportedly now 
  816.      called "BOS Installation from a System Backup") using the
  817.      diskettes and tape that you created in the previous steps.
  818.  
  819.      [ pre AIX 325: DO NOT select the option "Reinstall AIX with
  820.      Current System Settings". Instead use "Install AIX with Current
  821.      System Settings" for the logical volume size changes to take affect. ]
  822.  
  823.      [ w/ AIX 325: Select "Install from a mksysb image" ]
  824.  
  825.  11) When the installation is complete, you may then import any
  826.      user-defined volume groups.
  827.  
  828.          importvg -y VGname PVname
  829.  
  830.      where "VGname" is the name of the volume group, and "PVname" is
  831.      the name of any one of the physical volumes in the volume group.
  832.  
  833.  12) Varyon your user-defined volume groups
  834.  
  835.          varyonvg VGname
  836.  
  837.  The reduction of the filesystems is now complete.
  838.  
  839. COMMERCIAL OPTION
  840. -----------------
  841. There are also commercial tools availible to help you do this more
  842. conviently.  I know of one vendor that can be reached at compunix@innet.be
  843.  
  844. ------------------------------
  845.  
  846. Subject: 1.702: How do I make a filesystem larger than 2Gb?
  847.  
  848. AIX 3.2.5 and preceeding versions are limited to 2 Gigabytes per
  849. filesystem.
  850.  
  851. With AIX 4.1 IBM allows filesystems up to 64Gb (reference:
  852. Individual files are still limited to 2Gb.  AIX 4.2 allows 128Gb
  853. filesystems and 64 Gb files.  (See also question 1.706.)
  854.  
  855. If you are having trouble creating a file greater than 1Mb it maybe
  856. because that is the default limit for your account, see 'smit users'
  857. or /etc/security/limit.
  858.  
  859. ------------------------------
  860.  
  861. Subject: 1.703: Chlv warning.  Is the first 4k of a LV safe?
  862.  
  863. The first 4k of a raw LV are used to store control block.
  864. Applications that write to the raw disk can overwrite this section
  865. (common applications that do this are Oracle and Sybase).  Commands
  866. that call getlvcb will generate a warning but succeed (since the
  867. control block exists in ODM.  Don't run synclvodm unless you really
  868. want to erase the first 4k and replace it with the info from the ODM.
  869.  
  870. shieh@austin.ibm.com (Johnny Shieh) has kindly provided the following
  871. explanation:
  872.  
  873. The logical volume control block (lvcb) is the first 512
  874. bytes of a logical volume.  This area holds important
  875. information such as the creation date of the logical volume,
  876. information about mirrored copies, and possible mount points
  877. in a journaled filesystem.  Certain LVM commands are required
  878. to update the lvcb, as part of completeness algorithms in
  879. LVM.  The old lvcb area is first read and analyzed to see if
  880. it is a valid lvcb.  If the information is verified as valid
  881. lvcb information, then the lvcb is updated.  If the
  882. information is not valid, then the lvcb update is not
  883. performed and the user is given the warning message:
  884.  
  885.     Warning, cannot write lv control block data
  886.  
  887. Most of the time, this is a result of database programs
  888. accessing the raw logical volumes (and thus bypassing the
  889. journaled filesystem) as storage media.  When this occurs, the
  890. information for the database is literally written over the lvcb.
  891. Although this may seem fatal, it is not the case.  Once the
  892. lvcb has been overwritten, the user can still:
  893.  
  894.     1) Extend a logical volume
  895.     2) Create mirrored copies of a logical volume
  896.     3) Remove the logical volume
  897.     4) Create a journaled filesystem with which to mount
  898.         the logical volume (note that this will destroy any
  899.         data sitting in the lvcb area)
  900.  
  901. However, there is a limitation caused by this deletion of the
  902. lvcb.  The logical volumes with deleted lvcb's face possible,
  903. incomplete importation into other AIX systems.  During an
  904. "importvg", the LVM command will scan the lvcb's of all defined
  905. logical volumes in a volume group for information concerning the
  906. logical volumes.  Surprisingly, if the lvcb is deleted, the
  907. imported volume group will still define the logical volume to
  908. the new AIX system which is accessing this volume group, and
  909. the user can still access the raw logical volume.  However, any
  910. journaled filesystem information is lost and the logical volume
  911. and its associated mount point won't be imported into the new AIX
  912. system.  The user must create new mount points and the availability
  913. of previous data stored in the filesystem is NOT assured.  Also, during
  914. this import of a logical volume with an erased LVCB, some non-jfs
  915. information concerning the logical volume, which is displayed with
  916. the "lslv" command, cannot be found.  When this occurs, the system uses
  917. default logical volume information to populate the logical volume's
  918. ODM information.  Thus, some output from the "lslv" will be inconsistent
  919. with the real logical volume.  If logical volume copies still exist on
  920. the original disks, this information will not be correctly reflected in
  921. the ODM database.  The user should use "rmlvcopy" and "mklvcopy" to
  922. rebuild any logical volume copies and synchronize the ODM.  Finally,
  923. with an erased lvcb, the output from the "lslv" command might be
  924. misleading or unreliable.
  925.  
  926.  
  927. ------------------------------
  928.  
  929. Subject: 1.704: What's the limit on Physical Partitions Per Volume Group?
  930. From: shieh@austin.ibm.com (Johnny Shieh)
  931.  
  932. 1016 Physical Partitions Per Disk in a Volume Group:
  933.  
  934.      In the design of LVM, each Logical Partition
  935. maps to one Physical Partition.  And, each Physical
  936. Partition maps to a number of disk sectors.  The design
  937. of LVM limits the number of Physical Partitions that LVM
  938. can track PER DISK in a volume group to 1016.  In most cases,
  939. not all the possible 1016 tracking partitions are used by a disk.
  940. The default size of each Physical Partition during a
  941. "mkvg" command is 4 MB, which implies that individual
  942. disks up to 4 GB can be included into a volume group.
  943.  
  944.      If a disk larger than 4 GB is added to a volume
  945. group (based on usage of the default 4 MB size for
  946. Physical Partition) the disk addition will fail with a
  947. warning message that the Physical Partition size needs
  948. to be increased.*  There are two instances where this
  949. limitation will be enforced.  The first case is when the
  950. user tries to use "mkvg" to create a volume group where
  951. the number of physical partitions on one of the disks in
  952. the volume group would exceed 1016.  In this case, the
  953. user must pick from the available Physical Partition ranges of:
  954.  
  955. 1, 2, (4), 8, 16, 32, 64, 128, 256
  956.  
  957. Megabytes and use the "-s" option to "mkvg".  The second
  958. case is where the disk which violates the 1016 limitation
  959. is attempting to join a pre-existing volume group with
  960. the "extendvg" command.  The user can either recreate the
  961. volume group with a larger Physical Partition size (which
  962. will allow the new disk to work with the 1016 limitation)
  963. or the user can create a standalone volume group (consisting
  964. of a larger Physical Partition size) for the new disk.
  965.  
  966.      In AIX 4.1 and 3.2.5, if the install code detects
  967. that the rootvg drive is larger than 4 GB, it will change
  968. the "mkvg -s" value until the entire disk capacity can be
  969. mapped to the available 1016 tracks.**  This install change
  970. also implies that all other disks added to rootvg, regardless
  971. of size, will also be defined at that new Physical Partitions size.
  972.  
  973. For RAID systems, the /dev/hdiskX name used by LVM in AIX may
  974. really consist of many non-4GB disks.  In this case, the 1016
  975. limitation still exists.  LVM is unaware of the size of the
  976. individual disks that may really make up /dev/hdiskX.  LVM bases
  977. the 1016 limitation on the AIX recognized size of /dev/hdiskX,
  978. and not the real independent physical disks that make up /dev/hdiskX.
  979.  
  980. The questions asked of this issue are:
  981. 1) What are the symptoms of this problem?
  982. 2) How safe is my data?  What if I never use mirroring or migratepv?
  983. 3) Can I move this volume group between RS/6000 systems and versions
  984.    of AIX?
  985.  
  986. Here are the answers:
  987. A) What are the symptoms of this problem?
  988.      The 1016 VGSA is used to track the "staleness of mirrors".
  989.      If you are in violation of 1016, you may possibly get a false
  990.      report of a non-mirrored logical volume being "stale" (which
  991.      is an oxymoron) or you may get a false indication that one of
  992.      the your mirror copies has gone stale.  Next, migratepv may
  993.      fail because migratepv briefly uses mirroring to move a logical
  994.      volume from one disk to another.  If the target logical
  995.      partition is incorrectly considered "stale", then the migratepv
  996.      cannot remove the source logical partition and the migratepv
  997.      command will fail in the middle of migration.
  998.  
  999. B) How safe is my data?  What if I never use mirroring or migratepv?
  1000.      The data is as safe (in your mind) as the day before you found
  1001.      out about 1016 violations.  The only case where data may be
  1002.      lost is if one is mirroring a logical volume and ALL copies go
  1003.      bad at the same time and LVM isn't aware of it because the
  1004.      copies that go bad are beyond the 1016 tracking range.  However,
  1005.      in this case, you would lose data even if you were within the
  1006.      1016 range.  If you never mirror or use migratepv, then this
  1007.      issue shouldn't concern you.  But, it might be unwise to state
  1008.      you'll NEVER use either of those options.
  1009.  
  1010. C) Can I move this volume group between RS/6000 systems and versions
  1011.    of AIX?
  1012.      Yes you can.  The enforcement of this 1016 limit is only
  1013.      during mkvg and extendvg.  The "safeness" of the data on the
  1014.      volume group on AIX 3.2 is the same as it is on AIX 4.1.
  1015.  
  1016.  
  1017. * This bug was fixed in apar ix48926.  Current AIX 3.2.5 and
  1018. 4.1.1, which do not have this fix on applied, will allow the
  1019. creation of volume groups with more than 1016 partitions.  The
  1020. implication of this bug allowing more than 1016 physical
  1021. partitions is that the user may access all portions of the logical
  1022. volume.  However during disk mirroring, the status of partitions
  1023. beyond the 1016 limit will not be tracked correctly.  If mirrors
  1024. beyond the 1016 range become "stale", LVM will not be aware of
  1025. their condition and data consistency may become an issue for
  1026. those partitions.  Additionally, the "migratepv" command creates
  1027. mirrors and deletes them as a method for moving logical volumes
  1028. around within/between disks.  If the 1016 limit is violated,
  1029. then the "migratepv" command may not behave correctly.
  1030. The user should pick up apar ix51754, which clarifies the error
  1031. message when this condition is detected.  Additionally, the user
  1032. can read the non-ptf documentation apar ix50874 which is a companion
  1033. to ix48926 and ix51754.
  1034.  
  1035. ** This bug was fixed for AIX 3.2.5 rootvg install in apars
  1036. ix46862 and ix46863.  This bug does not exist in AIX 4.1.1.
  1037.  
  1038. ------------------------------
  1039.  
  1040. Subject: 1.705: Why am I having trouble adding another disk to my VG?
  1041. From: shieh@austin.ibm.com (Johnny Shieh)
  1042.  
  1043. In some instances, the user will experience a problem adding
  1044. a new disk to an existing volume group or in the creation of
  1045. a new volume group.  The warning message provided by LVM will
  1046. be:
  1047.  
  1048.     Not enough descriptor space left in this volume group.
  1049.     Either try adding a smaller PV or use another volume group.
  1050.  
  1051. On every disk in a volume group, there exists an area called the
  1052. Volume Group Descriptor Area (VGDA).  This space is what allows
  1053. the user to take a volume group to another AIX system and
  1054. "importvg" that volume group into that AIX system.  The VGDA
  1055. contains the names of disks that make up the volume group, their
  1056. physical sizes, partition mapping, logical volumes that exist in
  1057. the volume group, and other pertinent LVM management information.
  1058.  
  1059. When the user creates a volume group, the "mkvg" command
  1060. defaults to allowing the new volume group to have a maximum
  1061. of 32 disks in a volume group.  However, as bigger disks have
  1062. become more prevalent, this 32 disk limit is usually not
  1063. achieved because the space in the VGDA is used up faster, as
  1064. it accounts for the capacity on the bigger disks.  This
  1065. maximum VGDA space, for 32 disks, is a fixed size which is
  1066. part of the LVM design.  Large disks require more management
  1067. mapping space in the VGDA, which causes the number and size
  1068. of available disks to be added to the existing volume group
  1069. to shrink.  When a disk is added to a volume group, not only
  1070. does the new disk get a copy of the updated VGDA, but all
  1071. existing drives in the volume group must be able to accept
  1072. the new, updated VGDA.
  1073.  
  1074. The exception to this description of the maximum VGDA is
  1075. rootvg.  In order to provide AIX users more free space, when
  1076. rootvg is created, "mkvg" does not use the maximum limit of
  1077. 32 disks that are allowed into a volume group.  Instead in
  1078. AIX 3.2, the number of disks picked in the install menu of
  1079. AIX is used as the reference number by "mkvg -d" during the
  1080. creation of rootvg.  For AIX 4.1, this "-d" number is 7 for
  1081. one disk and one more for each additional disk
  1082. picked. i.e. you pick two disks, the number is 8.  you pick
  1083. three disks, the number is 9, and so on.....  This limit does
  1084. not mean the user cannot add more disks to rootvg in the
  1085. post-install phase.  The amount of free space left in a VGDA,
  1086. and thus the number of size of the disks added to a volume
  1087. group, depends on the size and number of disks already
  1088. defined for a volume group.  However, this smaller size
  1089. during rootvg creation implies that the user will be able to
  1090. add fewer disks to rootvg than compared to a non-rootvg
  1091. volume group.
  1092.  
  1093. If the customer requires more VGDA space in the rootvg, then
  1094. they should use the "mksysb" and "migratepv" commands to
  1095. reconstruct and reorganize their rootvg (the only way to
  1096. change the "-d" limitation is recreation of the rootvg).
  1097.  
  1098. Note:  It is always strongly recommended that users do not place
  1099. user data onto rootvg disks.  This separation provides an extra
  1100. degree of system integrity.
  1101.  
  1102. ------------------------------
  1103.  
  1104. Subject: 1.706: What are the limits on a file, filesystem?
  1105.  
  1106. There are other limits but these come up most often.  Logical Volumes
  1107. do not _have_ to contain Journaled File Systems and therefore can be
  1108. larger than 2GB even in 3.2.5.
  1109.  
  1110.     File    jfs-Filesystem
  1111. 3.2.5    2GB    2GB
  1112. 4.1.x    2GB    64GB
  1113. 4.2    64GB    128GB
  1114.  
  1115. While it *might* be possible to create larger file systems,  the limits
  1116. shown here represent values that IBM has supposedly tested.    
  1117.  
  1118. ------------------------------
  1119.  
  1120. Subject: 1.707:  Hints for Segate 9 GB and other disks larger than 4 GB? 
  1121.  
  1122. [read 1.704]
  1123.  
  1124.  
  1125. ------------------------------
  1126.  
  1127. Subject: 1.708: How do I fix Volume Group Locked?
  1128.  
  1129. >From /usr/lpp/bos/README (AIX 3.2.5) and 1.800.IBM.4FAX #2809
  1130.  
  1131. If you get '0516-266 publvodm: volume group rootvg is locked, try again'
  1132. or something similar, you can use (putlvodm -K `getlvodm -v <vgname>`)
  1133.  
  1134. ------------------------------
  1135.  
  1136. Subject: 1.709: How do I remove a volume group with no disks?
  1137. From: shieh@austin.ibm.com (Johnny Shieh)
  1138.  
  1139. This is a very common question about AIX LVM and I thought
  1140. I might take some time to explain what is going on.  Within
  1141. a volume group is the Volume Group Descriptor Area (VGDA) is
  1142. is kinda a "suitcase" of lvm information.  This is what allows
  1143. you to pick up your drives and take them to another machine,
  1144. importvg them, and get filesystems automatically defined.
  1145.  
  1146. What happens is that when you importvg the volume group,
  1147. the RS/6000 goes out and reads the VGDA and finds out about
  1148. all the logical volumes and filesystems that may exist on the
  1149. volume group.  It then checks for clashes (name conflicts, etc..)
  1150. on its own machine and then, here is the important part, populates
  1151. its own database with information about the new volume group and
  1152. its associated logical volumes.  In cases of filesystems, it will
  1153. go into the /etc/filesystems file and add the new filesystem entries
  1154. that came along with the imported volume group.
  1155.  
  1156. Okay, the key point is that you've got this independent volume group
  1157. that has "docked" at the new RS/6000.  What keeps the two tethered
  1158. to each other is the varyonvg command.  When this is started on the
  1159. volume group, a software link is created where you can't separate the
  1160. volume group from the AIX operating system unless the volume group
  1161. is no longer seen as active by the system.  In very rare cases, a
  1162. situation can occur where the VGDA thinks that someone has it (the
  1163. volume group) activated, but the operating system doesn't think it has the
  1164. volume group opened up.  This is pretty rare.
  1165.  
  1166. The main question I see is "I've taken away the disks, but how do
  1167. I get rid of the volume group".  The question should really say,
  1168. "How do I get rid of the volume group INFORMATION" since that's
  1169. all you have on the system.  You've got possible entries in
  1170. the /etc/filesystems and definitely entries in the ODM.  Just 
  1171. do:
  1172.     exportvg <vgname>
  1173.  
  1174. It does a reverse importvg, except it doesn't go off and read
  1175. the VGDA.  It nukes anything relating to the volume group in
  1176. the /etc/filesystems and ODM.  The only time this won't work is
  1177. if the system detects that the volume group is varied on.  Then,
  1178. it would be like trying to change tires on a moving car, we won't
  1179. let you do it!
  1180.  
  1181. Some people are concerned that doing an exportvg will somehow damage
  1182. the volume group and/or its VGDA. As I said, all it does is affect the
  1183. information about the volume group on the RS/6000 box, not on the actual
  1184. disk platter itself.  Thus, the volume group you exported is safe to
  1185. take to another system.  The only time the VGDA gets overwritten is when
  1186. you create a new volume on top of it.
  1187.  
  1188. The second most often asked question is "How do I get rid of a disk
  1189. that is no longer really in the volume group?"
  1190.  
  1191. In this case, you DON'T want to do an exportvg.  What you want to do
  1192. is tell the system you want to cut out the memory of the old, bad disk
  1193. from the RS/6000 AND from the VGDA of the volume group.  You simply
  1194. do:
  1195.  
  1196.         reducevg -d -f <vgname> <hdname>
  1197.  
  1198. or if the hdname can't be found:
  1199.  
  1200.         reducevg -d -f <vgname> <PVID>
  1201.  
  1202. Be careful with this command.  Unlike the exportvg command, actions done
  1203. with this command WILL affect the VGDA information on the platter.
  1204.  
  1205. Hope this clarifies some questions about volume groups.
  1206.  
  1207. ------------------------------
  1208. Subject: *1.710:  What are the theoritical limits within the LVM?
  1209. From: Gerry FitzGerald <G.FitzGerald@uk22p.bull.co.uk>
  1210.  
  1211.   -------------------------------------
  1212.   LVM Limits within AIX (my perception)
  1213.   -------------------------------------
  1214.   
  1215.   The system may have 1 to 255 Volumes Groups (VG's).
  1216.   Each VG may contain 1 to 32 Physical Volumes (PV's).
  1217.   Each PV may contain upto 1016 Physical Partitions (PP's).
  1218.   Each PP may have a size (square of 2) from 1 to 256MB.
  1219.   
  1220.   Therefore, if you can get hold of a 260,096 MB disk (one PV with 1016 
  1221.   x 256MB PPs), you can install 32 of these in a single VG giving you 
  1222.   8,323,072MB per VG. You may have up to 255 VG's in one AIX system so 
  1223.   you could (in theory) create the maximum addressable AIX storage area 
  1224.   of 2,122,383,360 MB (2,072,640 GB or 2,024 TB or approx. 2 PB). This 
  1225.   is based on the current limitations of AIX V4.1.
  1226.   
  1227.   The limits for file and filesystem sizes are:
  1228.   
  1229.   AIX V3.2  Max Filesystem size:  2,097,152 bytes (2 GB)
  1230.   Max single file size:  2,097,152 bytes (2 GB)
  1231.   
  1232.  
  1233.   AIX V4.1  Max Filesystem size:  67,108,864 bytes (64 GB)
  1234.   Max single file size:  2,097,152 bytes ( 2 GB)  
  1235.   
  1236.   AIX V4.2  Max Filesystem size:  67,108,864 bytes (64 GB)
  1237.   Max single file size:  67,108,864 bytes (64 GB)
  1238.  
  1239. ------------------------------
  1240. Subject: 1.800: How do I control how hostnames are resolved?
  1241. From: <kraem@ibm.de> Frank Kraemer
  1242.  
  1243. Information from AIX 4.1.2 Infoexplorer:
  1244.  
  1245. The default order can be overwritten by creating the configuration file,
  1246. /etc/netsvc.conf and specifying the desired order. Both the default and
  1247. /etc/netsvc.conf can be overwritten with the environment variable,
  1248. NSORDER. If either the /etc/netsvc.conf file or environment variable,
  1249. NSORDER are defined, then at least one value must be specified along with
  1250. the option.
  1251.  
  1252. examples: 
  1253.     echo hosts = local,nis,bind >/etc/netsvc.conf
  1254.     NSORDER=local,bind; export NSORDER
  1255.  
  1256. ------------------------------
  1257.  
  1258. Subjet: 1.801: dtlogin ignores /etc/profile?
  1259. From: Trevor Bourget (trevor@thomsoft.com)
  1260.  
  1261. Read the /usr/dt/bin/Xsession script.  You can add a file to the
  1262. /etc/dt/config/Xsession.d and it will get sourced as part of the
  1263. startup.  The order is: $HOME/.dtprofile, /etc/dt/config/Xsession.d/*,
  1264. /usr/dt/config/Xsession.d/* (backwards, in my opinion, but CDE is a
  1265. committee result after all).
  1266.  
  1267. >From: Ed Ravin <eravin@panix.com>
  1268.  
  1269. If you want your terminal session to automatically read in
  1270. /etc/profile and your .profile when they start up, you need to either
  1271. invoke them with the "-ls" option (which I couldn't figure out how to
  1272. do, perhaps someone else can elaborate), or set up the default X
  1273. resources so that they set:
  1274.  
  1275. *Dtterm*loginShell:     true
  1276.  
  1277. You could always do this with the .Xresources file in your own account,
  1278. but that wouldn't fix any other users in the system.  To make this change
  1279. globally:
  1280.  
  1281. CDE configuration files are kept in /usr/dt/config
  1282.  
  1283. Those files warn you strenuously not to change them, since AIX upgrades
  1284. will overwrite them and lose your changes.  They recommend that you copy
  1285. the files to /etc/dt/config and change them there, so:
  1286.  
  1287. # cd /usr
  1288. # find dt/config -print | cpio -pdvum /etc
  1289. ... (files get copied)
  1290. # cd /etc/dt/config/C
  1291. # echo "*Dtterm*loginShell:     true" >> sys.resources
  1292. # cd ../en_US
  1293. # echo "*Dtterm*loginShell:     true" >> sys.resources
  1294.  
  1295. ------------------------------
  1296.  
  1297. Subject: 1.802:  Where's the C compiler?
  1298.  
  1299. As of AIX 4.1,  the C compiler has been "unbundled."  It's a separate product,
  1300. and you must purchase a separate license for it.  IBM does offer free
  1301. time limited trial licenses if you want to "try before you buy."
  1302.  
  1303. The GNU C compiler is available from various sources.  The most convenient
  1304. is probably <http://www-frec.bull.com/>.  <ftp://aixpdslib.seas.ucla.edu/>
  1305. is anohter source.
  1306.  
  1307. ------------------------------
  1308.  
  1309. Subject: 1.803:  Why doesn't Netscape work?
  1310.  
  1311. See question 1.515.
  1312.  
  1313. ------------------------------
  1314.  
  1315. Subject: 1.900: SCSI-1 and SCSI-2 "interoperability" got you confused?  
  1316.  
  1317. A.  SCSI-1 devices are supported on a SCSI-2 adapter.  This
  1318.     config will provide SCSI-1 performance.
  1319.  
  1320. B.  SCSI-2 devices are supported on a SCSI-1 adapter.  This
  1321.     config will provide SCSI-1 performance.
  1322.  
  1323. C.  A mix of SCSI-2 and SCSI-1 devices are supported on a SCSI-1
  1324.     adapter.  All devices will have SCSI-1 performance.
  1325.  
  1326. D.  A mix of SCSI-2 and SCSI-1 devices are supported on a SCSI-2
  1327.     adapter.  SCSI-2 devices will have SCSI-2 performance (10 MB/sec)
  1328.     and SCSI-1 devices will have SCSI-1 performance (4-5 MB/sec).
  1329.  
  1330. ------------------------------
  1331.  
  1332. Subject: 1.901: How to get your keyboard back after unplugging it from the 6000
  1333. From: Mickey Coggins and Anne Serre and L. Mark Larsen
  1334.  
  1335. When you unplug your keyboard from a running system, and plug it back
  1336. in, the key mapping is wrong.  For example, keys like Caps Lock and Ctrl
  1337. don't work as designed.
  1338.  
  1339. Solution: Type at the command line
  1340.  
  1341.         /usr/lpp/diagnostics/da/dkbd
  1342.  
  1343. Your screen goes black, you hear a few beeps, and your keyboard is reset.
  1344. It works with any environment, Xwindows, hft, NLS...
  1345.  
  1346. For Models 220, 230 and M20, use the following commands:
  1347.  
  1348. /usr/lpp/diagnostics/da/dkbd
  1349. /usr/lpp/diagnostics/da/dkbdsal   (for the 220)
  1350.  
  1351. After running the keyboard diagnostics to reset keyboard mappings, the
  1352. repeat rate is also reset to some slow value (11, according to the man
  1353. page).  If the user is in X, you need to open an hft window.  Do this
  1354. with "xopen /bin/csh".  Once you have an hft window, run "chhwkbd -r30".
  1355.  
  1356. ------------------------------
  1357.  
  1358. Subject: 1.902: How do I set up pcsim, the DOS emulator?
  1359.  
  1360. [Editor's Note: this product does not exist in AIX 4.x.]
  1361.  
  1362. You must have a bootable DOS diskette to install pcsim. Either DOS 3.3, 
  1363. 4.x, or 5.0 will work. IBM do not officially support DOS 5.0 for pcsim
  1364. but I have no problems with it. Just don't try to be fancy with the UMB 
  1365. and memory manager stuff.
  1366.  
  1367. With a bootable DOS disk in the drive, do:
  1368. $touch /u/dosdrive (this is the AIX file for DOS emulation)
  1369. $pcsim -Adiskette 3 -Cdrive /u/dosdrive
  1370. You would now get an A prompt. Type:
  1371. A> fdisk
  1372. Create the virtual C drive of whatever size you choose. Make it large 
  1373. enough for your needs since you cannot enlarge it later.
  1374. A> format c: /s (to format the virtual C drive)
  1375. Now exit from pcsim with ESCpcsim (Esc key followed by pcsim).
  1376.  
  1377. Now create a simprof file. Following is a starter:
  1378.  
  1379. Adiskette   : 3
  1380. Cdrive      :/u/dosdrive
  1381. lpt1        : name of printer queue
  1382. refresh     : 50
  1383. dmode       : V
  1384. mouse       : com1
  1385.  
  1386. You can now start pcsim anytime by typing pcsim. Make sure no floppies
  1387. are in the drive. For further information, refer to publication
  1388. SC23-2452, Personal Computer Simulator/6000 Guide and Reference.
  1389.        
  1390. ------------------------------
  1391.  
  1392. Subject: 1.903: How do I transfer files between AIX and DOS disks?
  1393.  
  1394. In one of the bos extensions are commands for transferring files between
  1395. DOS diskettes and AIX. The commands are dosread, doswrite, dosdir, dosdel,
  1396. and dosformat. Many users have mentioned that the mtools package from
  1397. prep.ai.mit.edu is better than the native AIX programs.
  1398.  
  1399.  
  1400. ------------------------------
  1401.  
  1402. Subject: 1.904: Where is the crypt program?
  1403.  
  1404. The crypt *program* (as opposed to the crypt subroutine) has been
  1405. deleted, probably to conform to U.S. law regarding export of
  1406. cryptographic technology.
  1407.  
  1408. Other programs such as PGP are available,  but their use and/or
  1409. possesion may be subject to local laws and regulations.
  1410.  
  1411. If anyone has a better answer to this question,  feel free to
  1412. contribute it.
  1413.  
  1414. ------------------------------
  1415.  
  1416. Subject: 1.905: How do I play audio CDs?
  1417. From: woan@austin.ibm.com (Ronald S. Woan)
  1418.  
  1419. Get xmcd by anonymous FTP from ftp.x.org in /contrib/applications/xmcd/
  1420. <URL:ftp://ftp.x.org/contrib/applications/xmcd/>
  1421.  
  1422. ------------------------------
  1423.  
  1424. Subject: 1.906: How can I get the mouse back after unplugging it?
  1425.  
  1426. /usr/lpp/diagnostics/da/dmousea
  1427.  
  1428. ------------------------------
  1429.  
  1430. Subject: 1.907: Where can I get source code to the operating
  1431.                 system binary xxxxx?
  1432.  
  1433. AIX source code is not generally available.  Two other UNIX OS' do
  1434. make their source available, Linux & freeBSD.  Check
  1435. <ftp://ftp.uu.net/systems/unix/bsd-sources/> and
  1436. <ftp://ftp.uu.net/systems/unix/linux/>
  1437.  
  1438. ------------------------------
  1439.  
  1440. Subject: 1.908: What's the difference between the POWER and
  1441.                 POWERPC architectures?
  1442.  
  1443. Read the POWERPC FAQ at
  1444. <http://www.mot.com/SPS/PowerPC/library/ppc_faq/ppc_faq.html>
  1445.  
  1446. ------------------------------
  1447.  
  1448. Subject:1.909:* Will there be date rollover problems in the year 2000?
  1449. From: mbrown@austin.ibm.com (Mark Brown)
  1450.  
  1451. IBM has a major corporate-wide push for *all* of its software products
  1452. to be "safe" in this regard by the end of 1996.
  1453.  
  1454. <http://www.software.ibm.com/year2000/paper.html> is the general-purpose
  1455. [Year 2000] URL for IBM.
  1456.  
  1457. As far as AIX is concerned, we had to fix three things in AIXv4.1.4
  1458. (some logging commands handled date ranges wrong) as PTFs, but other
  1459. than that, we are there.
  1460.  
  1461. ...and we handle the leap year issue correcly. also.
  1462.  
  1463. ------------------------------
  1464.  
  1465. Subject: 1.910: How can I build an "installp format" file?
  1466.  
  1467. Jim Abbey <jim@systelecom.com> has a tool called "lppbuild".
  1468. It is now available from "aixpdslib.seas.ucla.edu"
  1469. in either of
  1470.  
  1471. /pub/lppbuild/RISC/3.2/src/lppbuild.1.0.tar.Z
  1472. /pub/lppbuild/RISC/4.1/src/lppbuild.1.0.tar.Z
  1473.  
  1474. Both are identical and the procedures also work on 4.2.
  1475.  
  1476. Ciaran Diegnan <C.Diegnan@frec.bull.fr> has built a tool called
  1477. "mklpp".  You can retrieve a copy (along with many other
  1478. smit-installable freeware packages) from <http://www-frec.bull.com/>.
  1479.  
  1480. ------------------------------
  1481.  
  1482. Subject: 1.911: Is there a generic SCSI driver for AIX?
  1483. From: Rogan Dawes <rdawes@jhbelec.co.za>
  1484.  
  1485. Yes. Matthew Jacob (mjacob@feral.com) has written a generic SCSI driver
  1486. for AIX 4.1.  It can be found at <ftp://ftp.feral.com/pub/aix/gsc.tar.gz>.
  1487. ------------------------------
  1488.  
  1489. Subject: 2.00: C/C++
  1490.  
  1491. Contrary to many people's belief, the C environment on the RS/6000 is
  1492. not very special.  The C compiler has quite a number of options that can
  1493. be used to control how it works, which "dialect" of C it compiles, how
  1494. it interprets certain language constructs, etc.  InfoExplorer includes a
  1495. Users Guide and a Reference Manual.
  1496.  
  1497. The compiler can be invoked with either xlc for strict ANSI mode and cc
  1498. for RT compatible mode (i.e. IBM 6150 with AIX 2).  The default options
  1499. for each mode are set in the /etc/xlc.cfg file, and you can actually add
  1500. another stanza and create a link to the /bin/xlc executable.
  1501.  
  1502. The file /usr/lpp/xlc/bin/README.xlc has information about the C
  1503. compiler, and the file /usr/lpp/bos/bsdport (AIX 3 only) contains useful
  1504. information, in particular for users from a BSD background.
  1505.  
  1506. The file /etc/xlc.cfg also shows the symbol _IBMR2 that is predefined,
  1507. and therefore can be used for #ifdef'ing RS/6000 specific code.
  1508.  
  1509. ------------------------------
  1510.  
  1511. Subject: 2.01: I cannot make alloca work
  1512.  
  1513. A famous routine, in particular in GNU context, is the allocation
  1514. routine alloca().  Alloca allocates memory in such a way that it is
  1515. automatically free'd when the block is exited.  Most implementations
  1516. does this by adjusting the stack pointer.  Since not all C environments
  1517. can support it, its use is discouraged, but it is included in the xlc
  1518. compiler.  In order to make the compiler aware that you intend to use
  1519. alloca, you must put the line
  1520.  
  1521. #pragma alloca
  1522.  
  1523. before any other statements in the C source module(s) where alloca is
  1524. called.  If you don't do this, xlc will not recognize alloca as anything
  1525. special, and you will get errors during linking.
  1526.  
  1527. For AIX 3.2, it may be easier to use the -ma flag.
  1528.  
  1529. ------------------------------
  1530.  
  1531. Subject: 2.02: How do I compile my BSD programs?
  1532.  
  1533. The file /usr/lpp/bos/bsdport contains information on how to port
  1534. programs written for BSD to AIX 3.  This file may be very useful for
  1535. others as well.
  1536.  
  1537. A quick cc command for most "standard" BSD programs is:
  1538.   
  1539.   $ cc -D_BSD -D_BSD_INCLUDES  -o [loadfile] [sourcefile.c] -lbsd
  1540.  
  1541. If your software has system calls predefined with no prototype
  1542. parameters, also use the -D_NO_PROTO flag.
  1543.  
  1544. ------------------------------
  1545.  
  1546. Subject: 2.03: Isn't the linker different from what I am used to?
  1547.  
  1548. Yes.  It is not at all like what you are used to:
  1549.  
  1550. - The order of objects and libraries is normally _not_ important.  The
  1551.   linker reads _all_ objects including those from libraries into memory
  1552.   and does the actual linking in one go.  Even if you need to put a
  1553.   library of your own twice on the ld command line on other systems, it
  1554.   is not needed on the RS/6000 - doing so will even make your linking slower.
  1555.  
  1556. - One of the features of the linker is that it will replace an object in
  1557.   an executable with a new version of the same object:
  1558.  
  1559.   $ cc -o prog prog1.o prog2.o prog3.o        # make prog
  1560.   $ cc -c prog2.c                # recompile prog2.c
  1561.   $ cc -o prog.new prog2.o prog            # make prog.new from prog
  1562.                         # by replacing prog2.o
  1563.   
  1564. - The standard C library /lib/libc.a is linked shared, which means that
  1565.   the actual code is not linked into your program, but is loaded only
  1566.   once and linked dynamically during loading of your program.
  1567.  
  1568. - The ld program actually calls the binder in /usr/lib/bind, and you can
  1569.   give ld special options to get details about the invocation of the
  1570.   binder.  These are found on the ld man page or in InfoExplorer.
  1571.  
  1572. - If your program normally links using a number of libraries (.a files),
  1573.   you can 'prelink' each of these into an object, which will make your
  1574.   final linking faster.  E.g. do:
  1575.  
  1576.   $ cc -c prog1.c prog2.c prog3.c
  1577.   $ ar cv libprog.a prog1.o prog2.o prog3.o
  1578.   $ ld -r -o libprog.o libprog.a
  1579.   $ cc -o someprog someprog.c libprog.o
  1580.  
  1581. This will solve all internal references between prog1.o, prog2.o and
  1582. prog3.o and save this in libprog.o Then using libprog.o to link your
  1583. program instead of libprog.a will increase linking speed, and even if
  1584. someprog.c only uses, say prog1.o and prog2.o, only those two modules
  1585. will be in your final program.  This is also due to the fact that the
  1586. binder can handle single objects inside one object module as noted above.
  1587.  
  1588. If you are using an -lprog option (for libprog.a) above, and still want
  1589. to be able to do so, you should name the prelinked object with a
  1590. standard library name, e.g. libprogP.a (P identifying a prelinked
  1591. object), that can be specified by -lprogP.  You cannot use the archiver
  1592. (ar) on such an object.
  1593.  
  1594. You should also have a look at section 3.01 of this article, in
  1595. particular if you have mixed Fortran/C programs.
  1596.  
  1597. Dave Dennerline (d.dennerline@bull.com) claims that his experiences
  1598. in prelinking on AIX does not save much time since most people have
  1599. separate libraries which do not have many dependencies between them,
  1600. thus not many symbols to resolve.
  1601.  
  1602. ------------------------------
  1603.  
  1604. Subject: 2.04: How do I statically link my program?
  1605.  
  1606.   cc -o prog -bnoso -bI:/lib/syscalls.exp obj1.o obj2.o obj3.o
  1607.  
  1608. will do that for a program consisting of the three objects obj1.o, etc.
  1609.  
  1610. From: Marc Pawliger (marc@sti.com)
  1611.  
  1612. As of AIX 3.2.5, you can install a speedup for AIXwindows called
  1613. Shared Memory Transport.  To static link an X application after the
  1614. SMT PTF has been installed, you must link with
  1615. -bI:/usr/lpp/X11/bin/smt.exp and the executable will NOT run on a
  1616. machine where SMT is not installed.  See /usr/lpp/X11/README.SMT
  1617.