Ufsrestore on SunBlade 2500

Tags
resolved, solaris 9, sunblade, ufsrestore

 
Thread Tools Search this Thread
# 1  
Old 01-12-2018
Ufsrestore on SunBlade 2500

Good Afternoon,

I'm setting up a SunBlade 2500 using
Code:
ufsrestore

and have gotten to the point where I have restored the root and usr partitions. However, the machine keeps rebooting, never really coming up. Looking at
Code:
vfstab

, it looks pretty empty- shouldn't I see entries like
Code:
/dev/dsk/c0t0d0s0

etc?. I'm cloning a machine so should I pretty much just make it match the other?
# 2  
Old 01-12-2018
Yes, it should look pretty much like the original machine, except if the device nodes are different on this new hardware.

For example, if the original system root device is c0t0d0s0 but on the clone it is c2t0d0s0, then you need to edit that. Same with other filesystems such as /usr.

In /etc/vfstab (that's /a/etc/vfstab when booted from DVD) you should easily pick out the device to be mounted on '/' (root) and the device to be mounted on /usr. You can tell from running 'format' whilst in single user node which disk and which slice any particular filesystem is on.

So first question is: Are they different???

If yes, then there might be other things to do too.
This User Gave Thanks to hicksd8 For This Post:
Stellaman1977 (01-16-2018)
# 3  
Old 01-16-2018
Ah.. I was looking at
Code:
vfstab

without the drive mounted to /a. the
Code:
vfstab

on the
Code:
ufsrestore

d drive matches.

The machine had to be shut down over the weekend. So I booted from CDROM and mounted S0 to /a

When I reboot the machine, it still keeps rebooting. I'm getting something very similar to this:
Code:
Cannot mount root on /pseudo/md@0:0,10,blk fstype ufs

panic[cpu0]/thread=140a000: vfs_mountroot: cannot mount root

0000000001409970 genunix:vfs_mountroot+70 (0, 0, 0, 200, 1457ee0, 0)

  %l0-3: 000000000144b800 000000000144b800 0000000000002000 00000000014954a8
  %l4-7: 000000000149b000 0000000001411e28 000000000144c000 000000000144f400
0000000001409a20 genunix:main+90 (1409ba0, f005bc0c, 1409ec0, 394648, 2000, 438)

  %l0-3: 0000000000000001 000000000140a000 0000000001412f98 0000000000000000
  %l4-7: 0000000078002000 0000000000396000 00000000014a38b0 00000000010664f8

skipping system dump - no dump device configured
rebooting...
Probing system devices

It goes by too fast. I found that somewhere else so it doesn't match exactly but its close.
# 4  
Old 01-16-2018
The point is that the device nodes for the root filesystem and the /usr filesystem might be different on the new hardware.

If you enter the command:

Code:
# mount

on the original system you will be able to see the devices mounted for root (/) and /usr. Make a note of them. This is device node list #1.

Now, on the clone, when booted from DVD into single user (with nothing mounted) and using the 'format' command you can see the devices on the clone plus you know what slice YOU are using to configure, format, and ufsrestore different filesystems on. Make a note of these. This is device node list #2. Are they the same devices (eg, c0t0d0s0) on both machines??? Also, if you now mount the root filesystem of the clone on /a and look in /a/dev/dsk, do the required devices (from list #2) exist in this directory?? If not, we need to create them before the system will boot and find its root filesystem.
This User Gave Thanks to hicksd8 For This Post:
Stellaman1977 (01-16-2018)
# 5  
Old 01-16-2018
Code:
mount

on the original (list #1)=
Code:
/ on /dev/md/dsk/d0
/usr on /dev/md/dsk/d3

Code:
format

on the clone (list #2)=
Code:
c0t0d0

so its not a match (unless there's more I could have found selecting something from the format menu)

Mounted the root on a. I see about 200 slices including:
Code:
c0t0d0s0, c0t0d0s1, c0t0d0s2,c0t0d0s3,c0t0d0s4,c0t0d0s5,c0t0d0s6,c0t0d0s7

so not a match again.
# 6  
Old 01-16-2018
The

Quote:
/ on /dev/md/dsk/d0
/usr on /dev/md/dsk/d3
tells me that, on the original system, the volumes are mirrored ("md") using Sun's Logical Volume Manager.

So, booting from DVD into single user and mounting your clone root under /a, edit /a/etc/vfstab file to point to the new clone devices:

eg,

Code:
/ on /dev/dsk/c0t0d0s0
swap on <whatever you created it as>
/usr on /dev/dsk/<whatever you create it as>

eg, c0t0d0s2

Then, shutdown the machine in an orderly manner:

Code:
# init 0

and at the ok> prompt:

Code:
ok> boot -r

to tell Solaris to reconfigure as it boots.

Post the results of that.
This User Gave Thanks to hicksd8 For This Post:
Stellaman1977 (01-16-2018)
# 7  
Old 01-17-2018
Same result. Note, my
Code:
vfstab

doesn't look like this:

Quote:
Originally Posted by hicksd8

Code:
/ on /dev/dsk/c0t0d0s0
swap on <whatever you created it as>
/usr on /dev/dsk/<whatever you create it as>

In
Code:
vfstab

I put
Code:
/dev/dsk/c0t0d0s0    /dev/rdsk/c0t0d0s0    /    ufs   1   no   -

and similar for var's slice.

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Ufsrestore Stellaman1977 Shell Programming and Scripting 52 01-12-2018 01:18 PM
Cloning a Sunblade 2500 Stellaman1977 Solaris 8 10-25-2017 01:25 PM
Need in for a script that should check for errors in multiple log file (approx 2500) and should mail Pratik_CTS UNIX for Beginners Questions & Answers 2 04-26-2017 05:14 AM
Installing OpenBSD for Xorg on Sunblade 2500 harqobi22 BSD 2 08-20-2015 12:05 PM
StorageTek 2500 sprehodec Hardware 1 03-14-2013 10:53 AM
Now Over 2500 FB Fans for Our New Timeline Neo What is on Your Mind? 0 08-06-2012 10:51 AM
ufsrestore skully Solaris 4 06-14-2008 01:43 PM
Sunblade 1000 Kawakaze UNIX for Dummies Questions & Answers 3 03-16-2008 07:32 AM
SunBlade 2000 Arkayev Solaris 6 08-08-2007 08:13 PM
SB2000, 2500 server client convert howhowzz Filesystems, Disks and Memory 0 05-16-2006 08:12 PM
ufsrestore? ECBROWN Solaris 3 03-15-2006 12:05 PM
Anyone has problems with new Blade 2500???? facaizhu Solaris 4 01-11-2006 07:43 PM
AMD 2500 / 1G RAM / Soyo KT600 Ultra MB Neo Linux Benchmarks 5 01-17-2005 05:57 PM
ufsrestore -i gerwhelan UNIX for Dummies Questions & Answers 4 06-10-2003 12:16 PM