Changing root drives with SVM

From: Tom Grassia (tgrassia@sfnewmexican.com)
Date: Fri Apr 28 2006 - 09:36:57 EDT


Hello,

I'm running Solaris 8 on an Ultra 2. Currently, we have mirrored root
drives that are about 1.6G for the root partition.

Now I know this may be hard to believe, but we're rapidly running low on
disk space on that partition. Therefore, I copied the root fs over to a 9G
attached drive, mounted on /mnt, as follows:

    * ufsdump 0f - /dev/rdsk/c0t0d0s0 | (cd /mnt; ufsrestore xf -)

Then, I installed a boot block on that drive:

    * installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk
/dev/rdsk/c2t9d0s0

After that, I did a metaroot so that after I changed drives and rebooted
the new drive would just come up as itself.

metaroot /dev/dsk/c0t0d0s0

That didn't happen, to put it mildly.

First, The machine didn't boot. I put the old drives back in and tried to
boot, but got a "not this fstype" error. I played with the drives a bit
more and then had the 9G show up with a kernel panic because /etc/init
couldn't execute. Finally, I went back to the old drives and with nothing
else to think up I edited /etc/vfstab by hand so that / was defined as
being on /dev/md/dsk/d0 (the root mirror). The machine came up, but it
said that I tried to mount / twice. That didn't seem to make a difference
though.

What have I done wrong? The disk space is so tight on this root drive that
I'm not letting anyone on it until I can get the new root drive
going. Obviously, I missed a step but I can't figure out what it might be.

--Tom
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:39:42 EDT