tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: DU 4.0B crashes and moving system to another disk
@ 1998-09-15 17:44 Marcin Palacz
  0 siblings, 0 replies; only message in thread
From: Marcin Palacz @ 1998-09-15 17:44 UTC (permalink / raw)
  To: tru64-unix-managers


The response to my three mails on 
crashes and recovery of our DU 4.0B alpha was 
prompt and very helpful.  Thanks again to all of you.

And below is a summary of the story.

On Friday noon it crashed for the first time. 
Then on Sunday again and on Monday it could never survive more than
two hours.
There was no crash data on the disk - the system disk was suddenly
becoming unaccessible,  some information was printed  to the
console, but not to the disk (which was unaccessible).
After a crash it was still possible to boot the machine -
power off, a short wait, power on.

Moving /  , first swap partition and /usr
to another disk helped, the old disk is not anymore in use.
Here are the steps which, retrospectively,  I think should be done 
(my path was in fact much more complicated):

(We use AdvFS on all partitions, the broken disk is rz0, the
replacement one is rz1.)

Power off. Wait. Power on. Boot.
disklabel -z rz1
disklabel -w -r -t advfs rz1 RZ29B
export EDITOR=emacs    (bash shell)
disklabel -e rz1
    (change sizes of the a, b(swap) and g partitions, set
     fstypes: AdvFS for a and g, swap for b)
mkfdmn -t RZ29B /dev/rz1a newroot_domain
mkfset newroot_domain root
mkfdmn -t RZ29B /dev/rz1g newusr_domain
mkfset newusr_domain usr
mkdir /mnt/root /mnt/usr

init s
mount -a
mount newroot_domain#root /mnt/root
mount newusr_domain#root /mnt/usr

vdump -0f - / |vrestore -xf - -D /mnt/root
vdump -0f - /usr |vrestore -xf -D /mnt/usr

cd /mnt/root/etc/fdmns
rm -r root_domain
rm -r usr_domain
mv newroot_domain root_domain
mv newusr_domain usr_domain

Modify /mnt/root/etc/fstab 

cd /mnt/root/etc; ln -sf /dev/rz1b swapdefault
cd /mnt/root/sbin; ln -sf /dev/rz1b swapdefault

halt

>> boot dka1

The system should be up now.  It takes about 30 hours if
you do it for the first time (including backups and various file
moving operations).

Marcin

-- 
 Marcin Palacz,  palacz@slcj.uw.edu.pl,  http://www.slcj.uw.edu.pl/~palacz
 Heavy Ion Laboratory, Warsaw University,  ul. Pasteura 5A, Warsaw, Poland
 tel. 48-22-6582021 ext. 206,  fax 48-22-6592714,  home tel. 48-22-6176975

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-09-15 17:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-09-15 17:44 SUMMARY: DU 4.0B crashes and moving system to another disk Marcin Palacz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox