Check hair, nails, teeth, socks, bootlist
AnthonyEnglish 270000RKFN Visits (5794)
I once had a boss who told me that the first rule of public speaking was to have clean boots. I can't say I've ever scientifically tested his theory, although I can certainly affirm that one clean boot a good speaker does not make. But it does remind me that it's nice to check your boots are nice and clean.
So, here's how you how to check your boot images on AIX.
You can use the diag command to step through the menus to the bootlist.
Tip for SMIT and diag:
you can page down in diag and SMIT using Ctrl-v
page up is Esc-vDepending on your operating system and firmware, the menus may be a little different, but here are the menus I go through on a system I'm using:
diag > Enter > Task Selection (Diagnostics, Advanced Diagnostics, Service Aids, etc.)
Display or Change Bootlist > Display/Alter Bootlist
At this point you get to select Normal mode bootlist or Service mode bootlist
The documentation for the bootlist command explains that "normal mode bootlist is used when the system is booted in normal mode." That's helpful, isn't it? Basically, you want normal mode for most reboots that occasionally happen as part of day to day operations. If, on the other hand you want to do a new installation or maybe migrate to a new release of AIX, you want the service mode bootlist. The service mode bootlist is especially important if your OS has gone on holidays and you need to recover by booting off a CD, for example.
From the command line
You can display your bootlist from the command line without having to go through all those diag menus using the (you guessed it!) bootlist command.
When you run this you can specify which mode (normal or service) you want using the -m option.You can display the current bootlist without changing it by using the-o flag:
bootlist -m normal -o
Or, since I like to save space, this works just as well:
Easier to type, harder to read.
At your service
To display the service mode bootlist, change the
Here's how you can update (i.e. overwrite) the service mode bootlist with, say, cd0 rmt0 hdisk0.
bootlist -m service cd0 rmt0 hdisk0
From the VIO command line
The syntax for the bootlist command on the VIO server within the restricted shell (that's the one where you're logged in as padmin) is slightly different, but a little more guessable
bootlist -mode service -rmThe boot's on the other foot
Knowing how to look at your boot devices is handy. On the other hand (or foot) there are other things you need to consider if you're using multibos to create multiple instances on the same rootvg, or if you're using MPIO. For the moment, we'll leave it at the simple bootlist command with a single boot image and path. I have to go to attend to my non-virtual boots. You never know when you're going to be asked to make a speech.