Changing root drives with SVM



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@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



Relevant Pages

  • Re: HEADSUP: geom_vinum committed
    ... it may have been in your case that the root volume failed to mount ... two Vinum test drives. ... plex name usr.p1 org concat vol usr ...
    (freebsd-current)
  • Re: Hard drive weirdness.
    ... then I got a grub Error 17: ... I changed root from to ... Now I tried removing both sata drives. ... My problem is that raid ...
    (Ubuntu)
  • Re: user failures
    ... I had my boot drives partition table zeroed out last night by something ... to the filter screen, but when I click the apply button, anything I've ... I've nuked /root/kmailrc, and then restarted kmail as root, with no ...
    (Fedora)
  • Re: A few newbie questions...
    ... a root password at the console. ... I need to edit my fstab to add a second HDD (D: ... What would the mount point be? ... the hard drives are devices starting with ad. ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Grub Manual ... Solved
    ... definition of a root directory has been tested and it is right. ... It is doable but the stuff in info grub is not ... defines the drive and partition number on that drive where grub can find its ... that ones broken too basis, currently running 2.6.23 (no sata drives here, so ...
    (Fedora)