This discussion is archived
6 Replies Latest reply: Mar 21, 2013 3:09 AM by 831265 RSS

Solaris 10 boot error after ufsrestore

831265 Newbie
Currently Being Moderated
Hi,

We have restored a V490 using ufsrestore and are having a few issues.

The root partitions of the original V490 were mirrored by SVM so I basically restored /, /var, /opt and /usr and changed vfstab (among other things) and also commented out the MD lines in system. (for info we have done numerous of these restores on T2000's albeit they were hardware mirrored).

The new boot disk partitions are c1t1d0xx and I can mount /ust on c1t1d0s6 from the boot disk, ive cut/pasted vfstab at the end of this thread...

After checking everything I rebootedfrom the other disk but unfortunately I receive this error when booting:

Rebooting with command: boot disk1 -s
Boot device: /pci@9,600000/SUNW,qlc@2/fp@0,0/disk@1,0 File and args: -s
SunOS Release 5.10 Version Generic_147440-10 64-bit
Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
sorry, variable 'xmit_hiwat' is not defined in the 'udp' module
sorry, variable 'udp_recv_hiwat' is not defined in the 'udp' module
Booting to milestone "milestone/single-user:default".
Hostname: SERVER
ERROR: svc:/system/filesystem/root:default failed to mount /usr (see 'svcs -x' for details)
Requesting System Maintenance Mode
Console login service(s) cannot run

Root password for system maintenance (control-d to bypass):
single-user privilege assigned to /dev/console.
Entering System Maintenance Mode

Mar 14 16:00:56 su: 'su root' succeeded for root on /dev/console
-sh: /bin/i386: not found
-sh: /usr/sbin/quota: not found
-sh: /bin/cat: not found
-sh: /bin/mail: not found

Ive gone back and checked, double (triple) checked vfstab, put a space at the end but im at my wits end...

I am unable to enter any commands at the prompt and when I reboot to the original disk there is nothing in svc logs to indicate what the issue is.

Any assistance would be appreciated.

#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/dsk/c1t1d0s1 - - swap - no -
/dev/dsk/c1t1d0s0 /dev/rdsk/c1t1d0s0 / ufs 1 no -
/dev/dsk/c1t1d0s6 /dev/rdsk/c1t1d0s6 /usr ufs 1 no -
/dev/dsk/c1t1d0s4 /dev/rdsk/c1t1d0s4 /var ufs` 1 no -
/dev/dsk/c1t1d0s5 /dev/rdsk/c1t1d0s5 /opt ufs 2 yes -
/devices - /devices devfs - no -
ctfs - /system/contract ctfs - no -
objfs - /system/object objfs - no -
swap - /tmp tmpfs - yes -
#/dev/zvol/dsk/tankroot/swap - - swap - no -
sharefs - /etc/dfs/sharetab sharefs - no -


Thanks.
  • 1. Re: Solaris 10 boot error after ufsrestore
    bobthesungeek76036 Pro
    Currently Being Moderated
    Is it possible that the OS on the boot disk sees the controller as something other than "c1"? You might want to boot off DVD and mount your / directory (under something like /a) and run:

    <pre>mv /a/etc/path_to_inst /a/etc/path_to_inst-OLD
    rm -rf /a/dev/dsk/* /a/dev/rdsk/*
    devfsadm -r /a -p /a/etc/path_to_inst</pre>

    And check your /a/dev/dsk directory and see what links are there to your disks and adjust /a/etc/vfstab if needed.
  • 2. Re: Solaris 10 boot error after ufsrestore
    831265 Newbie
    Currently Being Moderated
    Thanks Bob but already tried that to no avail, my initial thought was the boot disk basically being something other than c1 but ive tried different devices (c0t1 etc) all unsuccessfully.. very frustrating!!!
  • 3. Re: Solaris 10 boot error after ufsrestore
    Reidod Explorer
    Currently Being Moderated
    Hi,

    Your problem is that the /usr partition cannot be mounted. This is the reason you cannot give commands.

    How did you restore the /usr partition? Which slice did you use to create the new /usr file system (prior to ufsrestore command)? You should use that slice in /etc/vfstab file for the OS to mount the /usr correctly.

    Regards,
    Rei
  • 4. Re: Solaris 10 boot error after ufsrestore
    831265 Newbie
    Currently Being Moderated
    Hi, thanks for the reply...

    Ive created the /usr usiong the same criteria as the V490 we took the ufsdump from

    /dev/dsk/c1t1d0s6 /dev/rdsk/c1t1d0s6 /usr ufs 1 no -

    Ive checked the disk hasnt changed to something else and used the standard ufsrestore -rf command to restore the data.

    The original V490 OS was mirrored using SVM but ive removed all traces of SVM from vfstab and system and am now going to try restoring /usr back into / itself and see what happens, ive a feeling I will receive the same error message though but worth a try.

    One google hit suggested a blank line at the end of vfstab but ive tried that as well to no avail.
  • 5. Re: Solaris 10 boot error after ufsrestore
    Nik Expert
    Currently Being Moderated
    Hi.

    Check line at /etc/vfstab:
    <pre>
    /dev/dsk/c1t1d0s4 /dev/rdsk/c1t1d0s4 /var ufs` 1 no -
    ^
    </pre>
    This quota present at original file or not ?

    After booting from HDD.
    Try use:

    */sbin/mount /dev/dsk/c1t1d0s6 /usr*

    Regards.
  • 6. Re: Solaris 10 boot error after ufsrestore
    831265 Newbie
    Currently Being Moderated
    Thanks for the replies...

    In the end I removed SVM from the original server, took a new ufsdump and the restore worked as expected.

    Not really sure why the ufdrestore failed but ill put it down to experience.


    Thanks again.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points