Ufsrestore on SunBlade 2500

I think the problem has occurred because we didn't know at the start that the original system from which the ufsdump was taken had volumes mirrored by Sun Volume manager.

Having thought about it, I think we need to repeat the root filesystem restore and insert some more steps. Most of the main steps you already know so this won't take too long.

  1. Boot from DVD into single user and 'newfs' the root filesystem slice (c0t0d0s0).
  2. Plumb, configure and up a network interface, and mount your NAS under /mnt
  3. mount your now empty root filesystem under /a, cd into /a, check for Lost+Found as the sole contents.
  4. Stay in /a and ufsrestore your root filesystem. When finished check the contents of /a looks like a root filesystem.
  5. If this file exists immediately delete it:
# rm restoresymtable
  1. Edit the file /a/etc/system and look for the line referencing 'rootdev'. Remove this line and write the file back.

  2. Edit /a/etc/vfstab to point to the correct devices and removing all references to 'md' devices (as you did before).

  3. Take the system down in orderly manner:

# init 0
  1. Now be careful NOT to try and boot the system multi-user. Instead, boot from hard disk into single user mounting the root volume with write access:
ok> boot -sw
  1. When at the # prompt (you may need to enter the root password to get there), issue the command:
# metaclear -a -f

which will blow away all the mirroring information.

  1. Take the system down:
# init 0
  1. Boot the system with the reconfigure switch:
ok> boot -r

Let's see if that will fix it. Leave the restored /usr volume alone; it shouldn't be affected.