AIX Getting started

Tips and tricks regarding getting started with AIX

So you want to run AIX and need some tips about compatibility etc? I created this page to answer common questions.

Of course, you will make a better decision by reading up on this topic, so I encourage you to look at the documentation and other resources.

--- Document valid as of end of 2010; updates are expected...

Recent versions of AIX require IBM RISC (RS/6000, pSeries, System p, POWER, Power Systems) hardware.

Should you need more info, or have corrections, additions, feel free to contact me on IRC, or drop some comments below. oops, sorry, this won't work here ;)

OS levels, software, license

Which level of AIX should I install?

As the OS level decides which machines are suitable running it, this should be your first decision.

It is worth having a supported level of the OS which still receives security fixes. As of mid-2010, 5.2 and older is unsupported now. 5.3 is getting to the end of its lifecycle but it is quite mature and stable now after 12 technology levels (these are the major fix/patch levels in AIX). 6.1 offers a lot of additional benefits (enhanced security, WPARs, better RAS capabilities), so I recommend running 6.1 if your budget allows it.

Does AIX have an activation key or serial number?

No.

What can I download from IBM for AIX without any entitlement?

OS updates within the AIX major release, betas, extras (Expansion Pack, AIX Toolbox).

What about the AIX license?

The license is bound to the support contract. During the post-install phase, you must accept both the software license agreement and the support conditions. The license is transferrable while it has not expired, the transfer implies an agreement to the license terms by the new owner.

Can I buy IBM support for my machine bought from a third party?

Yes. It costs a lot, though.

Hardware models, compatibility, buying

Which models are capable of running which OS levels?

Generally speaking, AIX 6.1 and the forthcoming 7.1 supports POWER4 and newer models. AIX 5.3 runs on some of the PowerPC 604 equipped models - check the AIX 5.3 Release Notes for supported models. For 5.3, you need the newer PCI architecture which is called CHRP by IBM.

Which are some recommended models I should look for?

For 5.3, the 7044-170 (44p Model 170) is a popular choice with its 333~400MHz POWER3 64bit CPU and standard LVD SCSI disks. For 6.1, the cheapest choice is the 9114-275 (Intellistation 275) with a 1GHz POWER4 CPU, but it requires special hotplug disk trays which are hard to find. Both are too loud for daily operation in a regular home (there are at least four fans in each).

POWER5 models are still expensive. The Intellistation 285 or the server grade 505, 510 and 520 are in a lower price range, see below.

Could you give estimate prices for used models?

In Europe, the supply is quite good and the prices are fair, you can get a 150, a B50 or a 170 for 50 EUR, a POWER4 275 for 100 EUR (sometimes without disks). The Intellistation POWER5 285 starts from 400 EUR. The cheapest POWER6 box on eBay is currently somewhat under 8000 USD.

Are there machines other than IBM RISC capable of running AIX?

Some older Bull PowerPC workstations and servers (for example the Escala line) are suitable, and the old Apple Network Server as well. In general, no. Especially not Apple ppc models.

May I use 3rd party parts (RAM, HDD, VGA, Ethernet...)?

Almost certainly no, except harddisks. In most cases, you cannot even swap RAM between models of the same class. Try to buy the machine with a big initial setup. If you buy spares, either ask the seller to guarantee that they come from the same model, or make sure the FRU numbers match your model's part list. Foreign PCI cards are not supported by AIX drivers because of the firmware signature etc. The only exception is the Matrox G450 PCI video card which is identical to the IBM GXT135p. Forget about using SATA controllers/disks, USB controllers as well. Note: you can use USB mass storage devices to a limited extent on POWER5 and above models having a factory USB 2.0 port. Other parts (PSU, fans etc) are also custom and hard to find, so be prepared for paying a nice sum in case of a hardware failure.

After purchase

What do I do if I have no install media?

Just to mention, some AIX images are available on torrent sites, but apart from the legal issues, who would trust in it, espacially without at least an official checksum? If you are an IBM AIX customer, you are entitled to download media for the OS levels you have paid support for. Sometimes you may find install kits for sale online.

What should I do if I want to preserve the original installation?

Read the alt_disk_install manual or get familiar with the mksysb utility. On newer releases, you can create a bootable CD/DVD backup with it.

I have a used machine with the original OS installed. How can I gain root access?

If you are lucky, you can find an active guest account or a working remote hole. A more successful attempt is to get a copy of the first install CD/DVD and do a service mode boot (equal to single user). Sometimes you need the exact fix level which may make things more complicated. Unfortunately, another rootvg disk cannot be imported (thus mounted) from the running OS.

How do I check hardware resources in a machine?

You can use the prtconf command from the OS or use the boot and the SMS menus from the firmware, and look for the information entries.

What are the symptoms of a hardware error?

If you have a newer model, the yellow LED on the front panel may be on, but it can mean a simple power loss. If the machine stops booting and a code is shown on the LED panel, check for it in the diagnostics guide.

Alternative access (if you don't need a machine of your own)

Is there an emulator for running AIX?

A commercial product, Virtutech's Simics is a hardware modeling emulator which can be extended with further CPU libraries including POWER, these are not included in the default installation and must be purchased separately.

PearPC seems to have given up adding support for AIX due to lack of hardware etc.

Recently, qemu developers have gotten close to booting the kernel, but it still fails due to the firmware requirements (see here).

AIX/PS2 1.3 does install and work in Bochs. See a description here.

For POWER8, you can use the POWER8 Functional Simulator (systemsim) which boots only Linux using OPAL and PowerKVM.

Is there an AIX VPS available?

I haven't heard of any, please let me know if you found them. Update: https://www.siteox.com/ (an affiliate of Mt Xia) claims to have AIX hosting.

Can I test drive AIX?

IBM has a Virtual Loaner Program for AIX on Power.

Can I get a free AIX shell somewhere?

Check out blinkenshell.org or polarhome.com. Update Apr 2013: Unfortunately, Blinkenshell doesn't seem to have AIX anymore. Update Feb 2014: MetaModul GmbH offers OpenAIX for mainly open source development, but anyone can request a shell there.

Does IBM provide an academic program for schools?

Yes, check out the IBM Academic Initiative for AIX to see which institutions are participating in it.

Virtualization

Can I use LPAR virtualization capabilities of the hardware?

This is a long story. First of all, in most cases you need a special Linux appliance called the Hardware Management Console (HMC) in order to actually manage virtualization. If you don't have an HMC, you must install a Virtual I/O Server partition first (a special AIX instance) which will act as the 'console' for virtualization. See the problems with VIO resources below. Second, in each CPU class you need to enter a firmware level activation code before the partitioning can take place. This cannot be worked around.

If my machine doesn't have virtualization enabled, can I puchase the code later?

Yes, for another significant sum. I'm not sure if an existing support contract is necessary.

Which models support which level of virtualization?

IBM POWER Virtualization starts from POWER4. It is nowadays called PowerVM.

POWER4 cannot divide CPU units, so forget about it in the low price range (you need at least two cores and two disk adapters to do something that makes sense).

POWER5 and above are able to use fragments of CPU, thus allowing for more systems on the same box.

What are the hardware resource concerns when talking about LPARs?

Keep in mind that little to nothing can be done under 1GB of RAM per AIX instance. If you have only one disk adapter, your only choice is to create a Virtual I/O Server partition which requires separate disks. Those disks will be divided into logical volumes which appear as disks to VIO clients, but when the disk is under load, every client sharing the disk will be affected. If you have a compatible storage, it is always better to have a fibre channel adapter and use storage LUNs for OS disks.

Weird ideas

I want to run Linux on my IBM ppc64 hardware, what about it?

I cannot tell much about it. I believe these machines were designed for running AIX, whatever you want to do with them will work more efficiently on a PC class server. I have successfully installed SLES9 on POWER3, but that is all. Recent distributions targeted for macppc failed to install on the same box. Distros in general are dropping ppc64 (chrp) support. The best you can do is search for working solutions from other people with the same model. YMMV.

Can I access AIX JFS/JFS2 filesystems with the Linux JFS driver?

I don't think it is possible, starting from the fact that AIX puts everything on LVM. It is not possible to create a filesystem on a raw disk device.

I want to sell my machine. How do I wipe disks?

Simply use dd from urandom to the raw disk devices. As this will render every file unreadable, make sure you do it properly. Alternatively, you can use the disk overwrite function of the diag utility (also found under 'More Disk Options' in the installer) but it is a lengthy process. Note that if you dd the system under itself, the halt commands will not work anymore. Better use a Linux-ppc live cd for this job. SLES9-ppc worked for me.

AIX vs GNU/Linux

Which GNU or Linux tools and features are missing from AIX, and how can I acquire them?

  • GNU Bash; bash_completion etc - install bash
  • GNU sed ('sed -i' for example) - install GNU sed from a 3party package
  • pgrep, pkill - write a shell function
  • badblocks, smartd and similar disk health tools - rely on the device drivers and errpt
  • foreign filesystem drivers (ext, FAT etc) - why would you need them?
  • ACPI-like suspend, or any kind of hibernation/sleep
  • proper mount of ISO9660 images see the 'loopmount' command on newer releases

Which AIX features are unavailable on Linux?

  • the ability to create live bootable system backups 'out of the box' (mksysb)
  • unified VPD/configuration and device inventory (lscfg/lsdev/lsattr)
  • JFS2 filesystem driver
  • backup/restore commands to handle this type of archive (.bff extension) on Linux
  • grep -p - GNU grep developers refused to implement it