Unix/Linux Go Back    


UNIX for Beginners Questions & Answers If you're not sure where to post a Unix or Linux question, post it here. All unix and Linux beginners welcome in this forum!

Ufsrestore on SunBlade 2500

UNIX for Beginners Questions & Answers


Tags
solaris 9, sunblade, ufsrestore

Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 1 Week Ago   -   Original Discussion by Stellaman1977
Stellaman1977's Unix or Linux Image
Stellaman1977 Stellaman1977 is offline
Registered User
 
Join Date: Sep 2017
Last Activity: 19 January 2018, 3:10 PM EST
Posts: 54
Thanks: 41
Thanked 2 Times in 2 Posts
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?
Sponsored Links
    #2  
Old Unix and Linux 1 Week Ago   -   Original Discussion by Stellaman1977
hicksd8's Unix or Linux Image
hicksd8 hicksd8 is offline Forum Staff  
Moderator
 
Join Date: Feb 2012
Last Activity: 21 January 2018, 4:36 PM EST
Location: Devon, UK
Posts: 1,732
Thanks: 248
Thanked 437 Times in 374 Posts
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.
The Following User Says Thank You to hicksd8 For This Useful Post:
Stellaman1977 (5 Days Ago)
Sponsored Links
    #3  
Old Unix and Linux 5 Days Ago   -   Original Discussion by Stellaman1977
Stellaman1977's Unix or Linux Image
Stellaman1977 Stellaman1977 is offline
Registered User
 
Join Date: Sep 2017
Last Activity: 19 January 2018, 3:10 PM EST
Posts: 54
Thanks: 41
Thanked 2 Times in 2 Posts
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 Unix and Linux 5 Days Ago   -   Original Discussion by Stellaman1977
hicksd8's Unix or Linux Image
hicksd8 hicksd8 is offline Forum Staff  
Moderator
 
Join Date: Feb 2012
Last Activity: 21 January 2018, 4:36 PM EST
Location: Devon, UK
Posts: 1,732
Thanks: 248
Thanked 437 Times in 374 Posts
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.
The Following User Says Thank You to hicksd8 For This Useful Post:
Stellaman1977 (5 Days Ago)
Sponsored Links
    #5  
Old Unix and Linux 5 Days Ago   -   Original Discussion by Stellaman1977
Stellaman1977's Unix or Linux Image
Stellaman1977 Stellaman1977 is offline
Registered User
 
Join Date: Sep 2017
Last Activity: 19 January 2018, 3:10 PM EST
Posts: 54
Thanks: 41
Thanked 2 Times in 2 Posts


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.
Sponsored Links
    #6  
Old Unix and Linux 5 Days Ago   -   Original Discussion by Stellaman1977
hicksd8's Unix or Linux Image
hicksd8 hicksd8 is offline Forum Staff  
Moderator
 
Join Date: Feb 2012
Last Activity: 21 January 2018, 4:36 PM EST
Location: Devon, UK
Posts: 1,732
Thanks: 248
Thanked 437 Times in 374 Posts
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.
The Following User Says Thank You to hicksd8 For This Useful Post:
Stellaman1977 (5 Days Ago)
Sponsored Links
    #7  
Old Unix and Linux 4 Days Ago   -   Original Discussion by Stellaman1977
Stellaman1977's Unix or Linux Image
Stellaman1977 Stellaman1977 is offline
Registered User
 
Join Date: Sep 2017
Last Activity: 19 January 2018, 3:10 PM EST
Posts: 54
Thanks: 41
Thanked 2 Times in 2 Posts
Same result. Note, my

Code:
vfstab

doesn't look like this:

Quote:
Originally Posted by hicksd8 View Post



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.
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Cloning a Sunblade 2500 Stellaman1977 Solaris 8 10-25-2017 01:25 PM
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
Anyone has problems with new Blade 2500???? facaizhu Solaris 4 01-11-2006 07:43 PM



All times are GMT -4. The time now is 08:42 PM.