Edited /etc/vfstab for mirroring, rebooted and system won't boot!

Hello,

I was trying to setup a RAID-1 (mirroring) on a sunfire V210. I did create the replicas in /dev/dsk/c0t0d0s3 (which I labeled /mirror, can replicas be in filesysems?), initialized the mirrors, edited the /etc/vfstab and rebooted! Now, the system can't find /usr.

My /etc/vfstab before editing for RAID-1

#device device mountFSfsckmountmount

#to mountto fsck pointtypepassat boot options

#

fd-/dev/fd fd-no-

/proc-/procproc-no-

/dev/dsk/c0t0d0s1--swap-no-

/dev/dsk/c0t0d0s0/dev/rdsk/c0t0d0s0/ufs1no-

/dev/dsk/c0t0d0s4/dev/rdsk/c0t0d0s4/usrufs1no-

/dev/dsk/c0t0d0s5/dev/rdsk/c0t0d0s5/varufs1no-

/dev/dsk/c0t0d0s7/dev/rdsk/c0t0d0s7/export/homeufs2yes-

/dev/dsk/c0t0d0s3/dev/rdsk/c0t0d0s3/mirror ufs2yes-

/dev/dsk/c0t0d0s6/dev/rdsk/c0t0d0s6/optufs2yes-

swap-/tmptmpfs-yes-

My edited /etc/vfstab for RAID-1

#device device mountFSfsckmountmount

#to mountto fsck pointtypepassat boot options

#

fd-/dev/fd fd-no-

/proc-/procproc-no-

/dev/md/dsk/d1--swap-no-

/dev/md/dsk/d0/dev/md/rdsk/d0/ufs1no-

/dev/md/dsk/d4/dev/md/rdsk/d4/usrufs1no-

/dev/md/dsk/d5/dev/md/rdsk/d5/varufs1no-

/dev/md/dsk/d7/dev/md/rdsk/d7/export/homeufs2yes-

/dev/md/dsk/d6/dev/md/rdsk/d6/optufs2yes-

swap-/tmptmpfs-yes-

Here the log of my booting screen follows:

Rebooting with command: boot

Boot device: disk File and args:

SunOS Release 5.9 Version Generic_112233-07 64-bit

Copyright 1983-2003 Sun Microsystems, Inc. All rights reserved.

Use is subject to license terms.

WARNING: forceload of misc/md_trans failed

WARNING: forceload of misc/md_raid failed

WARNING: forceload of misc/md_hotspares failed

WARNING: forceload of misc/md_sp failed

Hardware watchdog enabled

configuring IPv4 interfaces: bge0.

Hostname: test.testserv.org

mount: /dev/md/dsk/d4 no such device

/sbin/rcS: /usr/sbin/devfsadm: not found

/sbin/rcS: /usr/bin/loadkeys: not found

/etc/rcS.d/S35svm.init: rm: not found

/etc/rcS.d/S35svm.init: grep: not found

WARNING: /proc could not be mounted

/sbin/swapadd: expr: not found

/sbin/swapadd: swap: not found

<snip>

syncing file systems... done

Program terminated

{0} ok

I understand that there must have something in /etc/vfstab is missing. Where have I gone wrong? How can I edit back that /etc/vfstab file?

TIA

--

Raqueeb Hassan

Bangladesh

[2592 byte] By [Raqueeb] at [2007-11-26 10:29:57]
# 1

boot off cdrom or a netboot server and mount the / partition as /mnt.

Then edit /mnt/etc/vfstab.

Restore it to the state it was in before you tried to mirror.

It seems most likely you screwed up the creation of meta devices.

Once you get the system rebooted, post the output of

metastat -p

You want to initially convert all your volumes to unmirrored metadevices.

Then edit your vfstab to use them.

Then reboot. Then you can add the mirrors.

You probably want to convert / first and use the metaroot command to edit the vfstab for you.

Then reboot using the "reboot" command, not a shutdown command.

robertcohen at 2007-7-7 2:36:08 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 2
Sounds like you may have forgotten the metaroot command. Among others, this will set a few params in OBP and /etc/system, that will allow you to boot from the newly built mirror.
Cailin_Coilleach at 2007-7-7 2:36:08 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 3
Thanks everyone. I messed up with /etc/vfstab file. I had to reconfigure the whole thing. I don't have cdrom attatched to it, how do I net boot (over the network) in single user mode?TIA--Raqueeb HassanBangladesh
Raqueeb at 2007-7-7 2:36:08 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...