Some of the key things you'd like to know when recreating a linux server
'just like the one that died' are
a) fdisk -l # lowercase L
b) cat e/tc/redhat-release # shows if is rhel4 or rhel5 or ...
c) free # shows ram / swap usage
d) getconf | more # masses of trivial settings
# esp getconf LONG_BIT will say 32 or 64
so you know which of the two supplied install media
to use in recreating the server
e) df -h ; cat /etc/fstab ; cat /usr/lib/pick0
# shows how the disk has been sliced, thus far.
# maybe cat /boot/grub/menu.lst which is a link
# {think pick q-pointer} to grub.conf file.
e2) grep processor /proc/cpuinfo shows how many
cpu cores your system has; or run top command
and toggle the per-core display by punching digit 1
{ q will end the top command when you're done.}
f) SYSID from DO NOT DISCARD sheet, or
look at CT MESSAGES CONFIG for same info.
g) what did which (cad say your d3 version(s) are?
h) what is in user-coldstart? what procs/files/verbs are
local tweaks that live in the DM account? You're
gonna migrate to a later release of D3 some day,
so keep a log of what you'll have to fuss with then.
i) cat /etc/inittab to see how many system consoles
are running mingetty to provide linux logins, and how
many d3 printer / serial / console d3 screens are there,
and what the runlevel {3 for nongraphic, 5 for X} is at
boot linux time. Erm, cat /etc/dgrp.backing.store
to see what your lan-attached serial { digi portserverII}
box(es} were set to as ip addresses and /dev/tty* names
cat /etc/resolv.conf to see if you had a nameserver or
gateway line there, and ifconfig -a to show ip address
of server. Oh, cat /etc/hosts, since minor tweaks of
the entries for your own server, localhost can bog down
your recreated system if you get them just slightly wrong.
Erm, cat /etc/*mod* {modules.conf, conf.modules, I dunno}
to show any custom drivers / dvd / tape drive tweaks.
or /root/.bashrc if you've tweaked that, or etc. Ooh!, and
lpstat -s shows what ip addresses and ports {like 9100
for jetdirect} your various linux-side printers were set to.
I like to keep a shell script named cups.recreate.printers
to rapidly remake the cups printers. I almost never use a
web browser to administer the linux printers, it can all be
done with lpadmin commands instead.
j) It bears repeating, you'd really like a file-save tape of just
the bare minimum accounts, so like select mds,, dm
before the file-save. I used to tout having a freshly cut
'abs' image to load, so the patches there match what's
in your tweaked dm,abs, but honestly, it is easier just
to load the factory-supplied dm, as a start, then apply the
patches to same abs-patch level as during the crash, then
do a full files restore to that dm - account - only file-save.
Is your dm account password - protected? Write it down
somewhere and stick that with the tape. Remember
gpg or pgp are effective and simple encryption tools, so
you can document secret stuff for long-range planning.
k) And yes, keep those d3 install files to reuse when you rebuild
the server after disaster. I make /u/d3 and /u/ark folders
on all our client boxes for the install files and 'must have'
copies of small linux tweak files/reports as discussed here,
I've been admiring the clever one-line bash commands
at commandlinefu dot com, but the echo !(pattern)
form {files NOT matching pattern} needs the arcane
bash command shopt -s extglob # extended globbing
to use, or else bash just thinks ! is a "h"istory reference.
Googling to "Bare Metal Restore" describes recreating
a running server from backups, with the implication you
were on a shoestring budget when you cut the backups.
I could have enjoyed that in the last decade, though now
we've moved to 64 bit systems, much of the info is obs.
Frank
On Sunday, February 12, 2012 3:19:23 PM UTC-6, Tony Gravagno wrote:
I pulled this from the "Library Functions" thread
as I think it deserves its own discussion...
Frank wrote:
> {Put this on your checklist when planning a weekend file-save / full file
> restore --
<<snip>> }
I {TonyG} will add that it