ufsrestore root file system

Hi all

I am trying to restore the root and var file system which have been backed-up on one server and restore is on another server:

1. I took /,/var ufsdump on server 1

2. I booted from cdrom -s on server 2

3. I used ftp to get the ufdump from server 1

4. I ran format on server 2 and created /,/var and swap

5. I created new file systems for /,/var on server 2

6. I ran ufsrestore on server 2

7. I modified the new /etc/vfstab, /etc/nodename, /etc/hostname.*, /etc/system and /etc/hosts to reflect the new settings

8. I ran the installboot on server 2 on the new root partition

Now when I try to boot server 2, I get the error:

** START **

Rebooting with command: boot disk0:a

Boot device: /pci@1c,600000/scsi@2/disk@0,0:a File and args:

SunOS Release 5.9 Version Generic_117171-17 64-bit

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

Use is subject to license terms.

Hardware watchdog enabled

ifconfig: plumb: bge0: No such file or directory

moving addresses from failed IPv4 interfaces: bge0 (couldn't move, no alternative interface).

Hostname: server2

metainit: server2: there are no existing databases

/dev/dsk/c1t0d0s1: No such device or address

The / file system (/dev/rdsk/c1t0d0s0) is being checked.

Can't open /dev/rdsk/c1t0d0s0

/dev/rdsk/c1t0d0s0: CAN'T CHECK FILE SYSTEM.

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

WARNING - Unable to repair the / filesystem. Run fsck

manually (fsck -F ufs /dev/rdsk/c1t0d0s0). Exit the shell when

done to continue the boot process.

Type control-d to proceed with normal startup,

(or give root password for system maintenance):

** END **

Notes:

1. Backup and restore is on Solaris9

2. The two servers are NOT of the same model (server 1 is V1280 and server2 is V240)

3. The first server V1280 is part of a SUN Cluster 3.1 (two node cluster)

4. Although I modified the new /etc/system on server 2, the boot process still look for the metadbs !!

5. The boot process cannot detect the boot disk c1t0d0s0 !!

6. Server 1 has ce network interfaces, but the new server 2 has bge network interfaces , however the boot messages above shows that server 2 did not detect the bge interface !! which boot cdrom -s have detected the bge interfaces

Is this process not supported ? is it related to the different server models?

[2549 byte] By [goSolarisa] at [2007-11-27 8:31:52]
# 1

> Hi all

>

> I am trying to restore the root and var file system

> which have been backed-up on one server and restore

> is on another server:

>

> 1. I took /,/var ufsdump on server 1

> 2. I booted from cdrom -s on server 2

> 3. I used ftp to get the ufdump from server 1

> 4. I ran format on server 2 and created /,/var and

> swap

> 5. I created new file systems for /,/var on server 2

> 6. I ran ufsrestore on server 2

> 7. I modified the new /etc/vfstab, /etc/nodename,

> /etc/hostname.*, /etc/system and /etc/hosts to

> reflect the new settings

> 8. I ran the installboot on server 2 on the new root

> partition

This will include a /dev tree with paths to the devices on the old system, which may be completely different from the new one.

> /dev/dsk/c1t0d0s1: No such device or address

> The / file system (/dev/rdsk/c1t0d0s0) is being

> checked.

> Can't open /dev/rdsk/c1t0d0s0

Here we see that a path in /dev isn't working. The device originally pointed to isn't present. You need to rebuild the device trees, and you have to do it from CDrom (since the disk won't boot completely).

Google for 'devfsadm cdrom rebuild'.

Like this one:

<http://spiralbound.net/2005/12/21/rebuilding-the-solaris-device-tree/>

--

Darren

Darren_Dunhama at 2007-7-12 20:27:31 > top of Java-index,General,Installation...