From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,ae7cf5e9c30bd3c0 X-Google-Attributes: gidfee84,public From: Knut Vietze Subject: Re: Disaster recovery!! Date: 1997/12/16 Message-ID: <3496C62D.3F54@theory.phy.tu-dresden.de>#1/1 X-Deja-AN: 298760919 Content-Transfer-Encoding: 7bit References: <34913E27.2AA7@boat.bt.com> Content-Type: text/plain; charset=us-ascii Organization: MPI fuer Physik komplexer Systeme Dresden Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 Pete Beglan wrote: > > Last week I posted a question about booting from another kernel. > I received a couple of useful replies. > Having taken this further this is where I am now at: > The action I took was: > > 1. boot from cdrom (or RIS Server) > 2. exit to shell > 3. cd /dev > 4. ./MAKEDEV rzx tzxx > 5. mkfdmn -r /dev/rz8a root_domain > 6. mkfset root_domain root > 7. mount root_domain#root /mnt > 8. cp /kit/osf_boot /mnt > 9. cp /kit/vmunix /mnt > > This failed as the vmunix on the CD had a problem with the CPU in my > test system: > > WARNING: proc_type 7 / sys_type 16 unknown. Halting CPU!! > > I then tried 1-7 above the same > > 8. cd /mnt > 9. vrestore -xv (tape was backed up vdump -0u / after building the OS > from scratch) > > This also failed: > > Need vrestore V4.0 to rstore contents; terminating..... > > Any ideas about getting around the failures? > > Hopefully this can be of use to others planning their disaster > recovery.. :-) > > Regards > > Pete Beglan >From your post I would assume that a) your system configuration (hard/soft) was non-standard OR b) the OS release of the booted system was prior to this actually installed on your machine. Anyway. In my opinion you do have to build a new customized kernel. In general there may be two ways: 1) If your old /usr filesys is still intact, just mount it and do the doconfig job on your (hopefully) saved kernel customization, /sys/conf/. NOTE: the configuration MUST reside in /sys/conf ( /sys is usually linked to /usr/sys). [=> /usr/sbin/doconfig] 2) If /usr has also been nuked you can build a new kernel either on another machine (needs to move drive physically of course) or on an memory filesystem ( if your machine got the appropriate physical memory of course, ~50-60MByte). I don't know if the latter works in single user mode :-( , but at least you have to copy the whole /sys (/usr/sys respectively) subtree to this filesystem, since not only /sys/conf/ must be written, but, more disgusting, /sys//, which contains links of all needed object files to /sys/BINARY/* etc. as well as a load of custom headers. Hey, if (1) is inappropriate just move the f*cking disk to another machine and rebuild it there. The only thing you have to be aware of is that the FILESET name is written onto the regarding partitions. (on a running machine designed to restore you root partition) # cd /dev # MAKEDEV rzxx # mkdir /etc/fdmns/restore # cd /etc/fdmns/restore # ln -s /dev/rzxx . # cd / # mount -t advfs restore#root /mnt If this doesn't work either, just use mkfdmn/mkfset :-) -- +----------------------------------------------+ | Knut Vietze, vietze@theory.phy.tu-dresden.de | | vietze@iws.fhg.de | | | | No RISC - No Fun ! | +----------------------------------------------+