Restore root disk under RAID controller with new identity

From: Wilson Guerrero Coltters (wguerrero@csh.cl)
Date: Fri Oct 29 2004 - 20:39:19 EDT


Hi Managers,

I have this problem:

Tru64 4.0G

Suppose:

1-. You have the boot disk under a RAID controller (KZPCC).
2-. The root disk is lost (disk failure, both from a RAID 1, go figure :)).
3-. The root partition was in /dev/ri1a.
3-. You have a working backup of the root disk.

Then, a service man replace the failed disk with other,
BUT he configure it through the RAID configuration utility
so the ID of the disk is changed. The new identity now is ri2.
So, you use the boot CD, MAKEDEV ri2 , disklabel, format,
(the new ID) restore the system to, eg., /dev/ri2a (mounted
on /mnt)
and there you go. You modify /mnt/etc/fstab to refer now to
/dev/ri2a /
/dev/ri2g /usr
etc.
BUT, you cannot boot from the new disk because
/mnt/dev/ri2a ... /mnt/dev/ri2h are not on /mnt/dev.

Can you just do this?
(CD prompt)
# cd dev
# cp -p ri2* /mnt/dev/
# cp -p rri2* /mnt/dev/

so the new disk is bootable?

I ask this because that was what happened to me
last weekend. I hadn't the boot CD from 4.0G but
the boot CD from 5.1B from other machine, so I use
the steps above and I stopped at that point.
Anyway, I just
used other disk already configured by the old system
so the /dev/ri?[a-h] entries were already in place.
But I'm already thinking about it. Read the
Installation Guide, Advanced Topics from 5.1B
and I understand from section 3.7 "Restoring the
Root File System Image from a Damaged Disk to a New
Disk" that you can use commands like /sbin/mountroot
and dsfmgr to change the new disk identity. I haven't
found something similar for 4.0G.
Anyway, I found a boot CD from 4.0F .
I don't have a spare machine to reproduce the problem right now,
but I intend to do it a.s.a.p.
Could a
boot -fi genvmunix
help?
I wonder, because if you boot from the new restored disk (/dev/ri2a)
you still cannot mount root (mount -u /) read write so you could create
the /dev/ri2?? entries.

Regards to all,
Wilson
wguerrero@csh.cl



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:50:10 EDT