[Q] - Booting from a spare root disk

From: Susan Rodriguez <SUSROD_at_HBSI.COM>
Date: Tue, 07 Oct 1997 15:13:14 -0700

I have created a spare root disk on my Alpha 3000. I used dump -0f - /
| (cd /mnt;restore -xf -) to make the spare disk look exactly like my
root disk. I did dumps for / and /usr. All of this works fine.

I am trying to simulate what I would need to do if my root disk really
went bad. I am having two problems:

1. How to auto-mount my /, /usr, and swap1 to partitions on the spare
device .

I can specify the spare device to boot with:

>>> boot dkb200

 When I boot this way, /etc/fstab tries to mount to the original devices
and swap spaces. I thought that setting ">>>boot_osflags s" would allow
me to edit the fstab and reboot, but - low and behold, booting to
single-user from the spare disk brought / up as a read-only file system.


How can I get the filesystems to mount to the spare devices?


2. Can't seem to lose the swap partition from the original device.

I worked around the fstab problem by booting on my original root device,
changing the fstab on the spare device to mount the filesystems to the
spare partitions, then rebooted. (Yes - I cheated, couldn't do this if
root were really bad.) It worked except for the swap space. Now,
instead of just the original rz1b swap partition, I have 2: rz1b
(original) and rz10b (spare). Now why would rz1b show up as swap when
it was not in my new fstab file?

Original fstab:

/dev/rz1a / ufs rw 1 1
/proc /proc procfs rw 0 0
/dev/rz1g /usr ufs rw 1 2
/dev/rz1b swap1 ufs sw 0 2


New fstab:

/dev/rz10a / ufs rw 1 1
/proc /proc procfs rw 0 0
/dev/rz10g /usr ufs rw 1 2
/dev/rz10b swap1 ufs sw 0 2


Perhaps the answers would be obvious if the root disk were really bad,
but I'd rather not wait to find out. Any helpful hints are greatly
appreciated. Summary will follow.

TIA

Susan Rodriguez
susrod_at_hbsi.com
Received on Wed Oct 08 1997 - 00:30:38 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:36 NZDT