Project:Infrastructure/Developer Machines/hppa

hppa Admin Notes
These are various notes mainly targeted at people administrating Gentoo dev machines, although most things are probably generally useful. These are not general "how do I administrate a Gentoo box" notes.

Hostnames
These are the current systems we have available. See machine specific notes at bottom for more details.

Console Access
You connect to the serial console over ssh. If your account doesn't have access, talk to infra@ to get your keys on there. ssh -p 3003 -l $USER console1.gentoo.osuosl.org

You can use this to:
 * Interact with the early firmware (e.g. to select recovery kernel)
 * Log in directly to recover
 * Send magic sysrq requests to try and recover the box (e.g. when ssh is dead)

(For muta: telnet 10.0.1.70)

ILO
Resources:
 * User guide

Rebooting
> CM

MP:HE> LI LI

MP Help: Command Menu List
=======================================

BP : Reset BMC Passwords               MS  : Modem Status CA : Configure asynch/serial ports     PC  : Remote Power Control DATE: Display Date                     PG  : PaGing parameters setup DC : Default Configuration             PR  : Power Restore Policy Config. DF : Display FRU Information           PS  : Power management module Status DI : DIsconnect users                  RB  : Reset BMC DNS : Configure DHCP and DNS           RS  : Reset System through RST signal FW : Upgrade MP firmware               SA  : Set MP Access HE : Display Help                      SNMP: Configure SNMP parameters ID : System Information                SO  : Security Options IT : Modify MP inactivity timeouts     SS  : System processors Status LC : Configure LAN, SSH and Web ports  SYSREV: Display System firmware Revs. LDAP: Configure Directory parameters   TC  : Reset system via INIT LM : License Management                TE  : TEll- send a msg. to other users LOC : Locator LED display              UC  : User Configuration LS : LAN Status                        WHO : Display connected MP users MR : Modem Reset                       XD  : Diagnostics and reset of MP

==== (HE for main help, enter command name, or Q to quit)

[muta-gentoo-ilo] MP:CM> RS RS

Execution of this command irrecoverably halts all system processing and I/O activity and restarts the computer system.

Type Y to confirm your intention to restart the system: (Y/[N]) y y  -> SPU hardware was successfully issued a reset.

Common PDC Commands
If you reboot into the PDC (the early firmware), you have some options to recover manually:


 * Hit any key right after power on (it'll prompt you) to halt the process and interact with PDC directly.
 * Type  to boot the alternative media (usually a livecd).
 * Type  to launch PALO (the bootloader), and then type   when asked whether to interact with the IPL (Initial Program Loader).

Common PALO Commands
PALO will display the list of partitions first, and then show the current command line. Those partition numbers are used when constructing the path to the kernel. So means load the file  from the 2nd partition. When recovery kernels are enabled, then partition is the recovery partition.

To boot a known good kernel, try changing the kernel path to the recovery kernel at.

To boot a recovery shell, try changing the last command line option (usually ) to the rescue shell like.

Magic Sysrq
In order to use magic sysrq, you'll need to send a break command followed by the request. To send a break, you'll need to use the ssh escape sequence, and you'll have to remember to double escape the character (if you're not sshing directly to the console server).

Try typing  (if connected directly) or   (if sshing via another system).

If it worked, you should see the one line of help text like: SysRq : HELP : loglevel(0-9) reboot(b) crash(c) terminate-all-tasks(e) memory-full-oom-kill(f) kill-all-tasks(i) thaw-filesystems(j) sak(k) show-memory-usage(m) nice-all-RT-tasks(n) poweroff(o) show-registers(p) show-all-timers(q) unraw(r) sync(s) show-task-states(t) unmount(u) show-blocked-tasks(w)

Kernel Management
hppa systems use the palo tool from the package to manage booting of kernels. Things to remember:


 * Make updates to.
 * Run  whenever  is changed or kernels referred to by the config file are updated (failure to do so will break booting).
 * The bootable linux kernel is created at (e.g. under ).
 * The  shortcut usually does not do the right thing under hppa.

/etc/palo.conf
--commandline=2/vmlinux root=/dev/sda3 panic=3 --init-partitioned=/dev/sda

--recoverykernel=/boot/vmlinux.ok

hake

 * Contact: support@osuosl.org
 * IPv4: 140.211.166.169; netmask 255.255.255.224; gateway 140.211.166.161
 * IPv6: 2001:470:ea4a:1:230:6eff:fe2b:c8d4/64; gateway 2001:470:ea4a:1::1/64
 * System: C3600
 * Memory: 3G
 * CPU: PA8600 552MHz
 * Disks: 50GB

muta

 * Contact: support@osuosl.org
 * IPv4: 163.166.211.140 netmask TBD; gateway TBD
 * IPv6: TBD
 * System: RP3440
 * Memory: 8G
 * CPU: PA8800 1GHz
 * Disks: ~80GB