can't boot into multiuser after restore

can't boot into multiuser after restore

Post by Dogg » Sat, 09 Aug 2003 05:30:26



Solaris 8/Sparc

I have finished doing a restore of a dmp and now I'm not able to boot
in multi-user mode.
This is how I did the restore: I booted with the cdrom and mounted
/dev/dsk/c0t0d0s0 onto /a. Then I restored and umounted /a. When I
rebooted, I get the following below, then I issue the fsck h
/dev/dsk/c0t0d0s0 and still I can reboot. Any suggestions, greatly
appreciated.
=============================================================
/dev/dsk/c0t0d0s1: I/O error
The system is coming up.  Please wait.
checking ufs filesystems
/dev/rdsk/c0t0d0s7: BAD SUPER BLOCK: MAGIC NUMBER WRONG
/dev/rdsk/c0t0d0s7: USE AN ALTERNATE SUPER-BLOCK TO SUPPLY NEEDED
INFORMATION;
/dev/rdsk/c0t0d0s7: eg. fsck [-F ufs] -o b=# [special ...]
/dev/rdsk/c0t0d0s7: where # is the alternate super block. SEE
fsck_ufs(1M).

/dev/rdsk/c0t0d0s7: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.

THE FOLLOWING FILE SYSTEM(S) HAD AN UNEXPECTED INCONSISTENCY:
/dev/rdsk/c0t0d0s7
 (/local)

WARNING - Unable to repair one or more filesystems.
Run fsck manually (fsck filesystem...).

 
 
 

can't boot into multiuser after restore

Post by Darren Dunha » Sat, 09 Aug 2003 08:31:38



> Solaris 8/Sparc
> I have finished doing a restore of a dmp and now I'm not able to boot
> in multi-user mode.

What's a dmp?  I think you've only got a single disk here...

Quote:> This is how I did the restore: I booted with the cdrom and mounted
> /dev/dsk/c0t0d0s0 onto /a. Then I restored and umounted /a. When I
> rebooted, I get the following below, then I issue the fsck h
> /dev/dsk/c0t0d0s0 and still I can reboot. Any suggestions, greatly
> appreciated.
> =============================================================
> /dev/dsk/c0t0d0s1: I/O error
> The system is coming up.  Please wait.
> checking ufs filesystems
> /dev/rdsk/c0t0d0s7: BAD SUPER BLOCK: MAGIC NUMBER WRONG
> /dev/rdsk/c0t0d0s7: USE AN ALTERNATE SUPER-BLOCK TO SUPPLY NEEDED
> INFORMATION;

Did you partition the disk so that all the filesystems and other
partitions required are available (like slice 1 and slice 7)?
Did you newfs/restore /dev/dsk/c0t0d0s7 also?

--

Unix System Administrator                    Taos - The SysAdmin Company
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >

 
 
 

can't boot into multiuser after restore

Post by M. Bouherro » Sat, 09 Aug 2003 08:47:58


First from where did you get the restore, i mean was it a backup from the
same
system and slice that was taken before or it's from another machine.

That's because the slice 0 has the hardware configuration of the machine and
the s7 may not available anymore.

In case it's a resore from the same machine, you will have to boot to the
single user mode using the installation cdrom.
- insert the cd 1 of 2 Solaris installation media.
- at ok prompt (STOP + A at POST step)
- type  boot cdrom -s

when logged in:
Get the list of alternate super-block numbers (32 is always one)
% fsck -N /dev/rdsk/c0t0d0s7

Correct the supper block problem by the command:
% fsck -o b=32 /dev/rdsk/c0t0d0s7
if the 32 don't work, use another number from the list.

Confirm the corection when asked for.

Hope this will help.



Quote:> Solaris 8/Sparc

> I have finished doing a restore of a dmp and now I'm not able to boot
> in multi-user mode.
> This is how I did the restore: I booted with the cdrom and mounted
> /dev/dsk/c0t0d0s0 onto /a. Then I restored and umounted /a. When I
> rebooted, I get the following below, then I issue the fsck -h
> /dev/dsk/c0t0d0s0 and still I can reboot. Any suggestions, greatly
> appreciated.
> =============================================================
> /dev/dsk/c0t0d0s1: I/O error
> The system is coming up.  Please wait.
> checking ufs filesystems
> /dev/rdsk/c0t0d0s7: BAD SUPER BLOCK: MAGIC NUMBER WRONG
> /dev/rdsk/c0t0d0s7: USE AN ALTERNATE SUPER-BLOCK TO SUPPLY NEEDED
> INFORMATION;
> /dev/rdsk/c0t0d0s7: eg. fsck [-F ufs] -o b=# [special ...]
> /dev/rdsk/c0t0d0s7: where # is the alternate super block. SEE
> fsck_ufs(1M).

> /dev/rdsk/c0t0d0s7: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.

> THE FOLLOWING FILE SYSTEM(S) HAD AN UNEXPECTED INCONSISTENCY:
> /dev/rdsk/c0t0d0s7
>  (/local)

> WARNING - Unable to repair one or more filesystems.
> Run fsck manually (fsck filesystem...).

 
 
 

can't boot into multiuser after restore

Post by Dogg » Sat, 09 Aug 2003 23:51:42




> > Solaris 8/Sparc

> > I have finished doing a restore of a dmp and now I'm not able to boot
> > in multi-user mode.

> What's a dmp?  I think you've only got a single disk here...

I mean "dump" which was from a ufsrestore.
Quote:

> > This is how I did the restore: I booted with the cdrom and mounted
> > /dev/dsk/c0t0d0s0 onto /a. Then I restored and umounted /a. When I
> > rebooted, I get the following below, then I issue the fsck ?h
> > /dev/dsk/c0t0d0s0 and still I can reboot. Any suggestions, greatly
> > appreciated.
> > =============================================================
> > /dev/dsk/c0t0d0s1: I/O error
> > The system is coming up.  Please wait.
> > checking ufs filesystems
> > /dev/rdsk/c0t0d0s7: BAD SUPER BLOCK: MAGIC NUMBER WRONG
> > /dev/rdsk/c0t0d0s7: USE AN ALTERNATE SUPER-BLOCK TO SUPPLY NEEDED
> > INFORMATION;

> Did you partition the disk so that all the filesystems and other
> partitions required are available (like slice 1 and slice 7)?
> Did you newfs/restore /dev/dsk/c0t0d0s7 also?

I didn't newfs, I did a ufsrestore to the s7 which local was mounted
on it. After I restored /, I did a ufsrestore on s7
 
 
 

can't boot into multiuser after restore

Post by Dogg » Sun, 10 Aug 2003 00:12:45



> First from where did you get the restore, i mean was it a backup from the
> same
> system and slice that was taken before or it's from another machine.

The restore was from a dump file (ufsdump) of another machine. It was
a restore of / and /local which were on different partitions.

Quote:

> That's because the slice 0 has the hardware configuration of the machine and
> the s7 may not available anymore.

> In case it's a resore from the same machine, you will have to boot to the
> single user mode using the installation cdrom.
> - insert the cd 1 of 2 Solaris installation media.
> - at ok prompt (STOP + A at POST step)
> - type  boot cdrom -s

> when logged in:
> Get the list of alternate super-block numbers (32 is always one)
> % fsck -N /dev/rdsk/c0t0d0s7

> Correct the supper block problem by the command:
> % fsck -o b=32 /dev/rdsk/c0t0d0s7
> if the 32 don't work, use another number from the list.

> Confirm the corection when asked for.

> Hope this will help.

I'll update, thanks.

- Show quoted text -



> > Solaris 8/Sparc

> > I have finished doing a restore of a dmp and now I'm not able to boot
> > in multi-user mode.
> > This is how I did the restore: I booted with the cdrom and mounted
> > /dev/dsk/c0t0d0s0 onto /a. Then I restored and umounted /a. When I
> > rebooted, I get the following below, then I issue the fsck -h
> > /dev/dsk/c0t0d0s0 and still I can reboot. Any suggestions, greatly
> > appreciated.
> > =============================================================
> > /dev/dsk/c0t0d0s1: I/O error
> > The system is coming up.  Please wait.
> > checking ufs filesystems
> > /dev/rdsk/c0t0d0s7: BAD SUPER BLOCK: MAGIC NUMBER WRONG
> > /dev/rdsk/c0t0d0s7: USE AN ALTERNATE SUPER-BLOCK TO SUPPLY NEEDED
> > INFORMATION;
> > /dev/rdsk/c0t0d0s7: eg. fsck [-F ufs] -o b=# [special ...]
> > /dev/rdsk/c0t0d0s7: where # is the alternate super block. SEE
> > fsck_ufs(1M).

> > /dev/rdsk/c0t0d0s7: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.

> > THE FOLLOWING FILE SYSTEM(S) HAD AN UNEXPECTED INCONSISTENCY:
> > /dev/rdsk/c0t0d0s7
> >  (/local)

> > WARNING - Unable to repair one or more filesystems.
> > Run fsck manually (fsck filesystem...).

 
 
 

can't boot into multiuser after restore

Post by Darren Dunha » Sun, 10 Aug 2003 00:54:09





>> > Solaris 8/Sparc

>> > I have finished doing a restore of a dmp and now I'm not able to boot
>> > in multi-user mode.

>> What's a dmp?  I think you've only got a single disk here...
> I mean "dump" which was from a ufsrestore.

Gotcha.  'DMP' can mean something else and my brain locked...

Quote:>> Did you partition the disk so that all the filesystems and other
>> partitions required are available (like slice 1 and slice 7)?
>> Did you newfs/restore /dev/dsk/c0t0d0s7 also?
> I didn't newfs, I did a ufsrestore to the s7 which local was mounted
> on it. After I restored /, I did a ufsrestore on s7

Generally if you're doing a restore, you'll want to newfs the partition
its going onto to make sure there's nothing bad left on it.

In this case it's complaining about the filesystem.  I can't imagine how
a ufsrestore would work properly, but leave the filesystem corrupt like
this.  Does it fsck?  'fsck /dev/rdsk/c0t0d0s7'.  Even if it did, I
would newfs the slice and perform the restore again.

Quote:>> > /dev/dsk/c0t0d0s1: I/O error

This says to me that it's trying to swap on s1, but there isn't one.
Can you show the layout of the disk?

prtvtoc /dev/rdsk/c0t0d0s0

--

Unix System Administrator                    Taos - The SysAdmin Company
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >

 
 
 

1. using 'restore' to restore one file

I know this is a silly question, but I want to make sure "restore" will do
what I think it's supposed to do before I try it and end up deleteing the
wrong files. Can 'restore' restore as little as one file or only a whole
directory? Reading the man page it makes it sound like it'll try to put
back all the files in a certain directory no matter what option you give
it. It's not very clear (at least to me ;) ). I think I have to use the "h"
key but when I actually start the extraction it tells me "warning xxx
directory already exists" when I'm trying to restore only a file that
exists in that directory, not that directory itself. I canceled the
operation because there are files in that directory I don't want restored.
Should I just ignore the warnings?

Can somone give me an example of how to restore one file from a "dump"
backup?

thanks!


2. Hard drive not detected?

3. restore giving 'resync restore, skipped N blocks'

4. 3Com 3c509 register map

5. 'r' option of restore (dump/restore)

6. SCSI for Debian2.0,Slackware3.6,FreeBSD3.0,NetBSD-1.3.2

7. Can't boot into multiuser mode

8. Problem reading 4mm DAT tape

9. can't boot singleuser or multiuser

10. Can't boot into single user mode OR multiuser mode!

11. It's not bad canned meat...

12. Restoring AIX Volume group device files w/out restoring VG's?