Due to a lack of available cd drives, I am attempting to clone a sparc4 from
a sparc5. To do this, I did the following;
1. Removed the scsi drive from the sparc4 and installed it in an extra slot
in the sparc5.
2. Performed a reconfiguration boot (boot -r), which did indeed make both
drives available (original drive from sparc5 at target 3, and drive from
sparc4 at target 1).
3. Copied contents of drive at target 3 to drive at target 1 using the dd
command "dd if=/dev/rdsk/c0t3d0s2 of=/dev/rdsk/c0t1d0s2". Slice 2 was used
because it reflects the contents of the entire drive for both drives as the
following partition table indicates.
Current partition table (original):
Total disk cylinders available: 2036 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 1903 937.12MB (1904/0/0)
1 swap wu 1904 - 2034 64.48MB (131/0/0)
2 backup wm 0 - 2035 1002.09MB (2036/0/0)
3 unassigned wm 0 0 (0/0/0)
4 unassigned wm 0 0 (0/0/0)
5 unassigned wm 0 0 (0/0/0)
6 unassigned wm 0 0 (0/0/0)
7 unassigned wm 0 0 (0/0/0)
4. Mounted /dev/dsk/c0t1d0s0 onto /mnt and edited /mnt/etc/vfstab, changing all
occurances of c0t3.... to c0t1.... to ensure filesystems were mounted from
the correct drive.
At this point, I was able to boot from either drive, and the contents were in
fact identical. Life is good.....
I then booted from the new drive, ran sys-unconfig, and recofigured the
network information to reflect the new host the sparc4 was to become. Again
I was able to boot from either drive, the original drive as the original host
and the new drive as the new host. Life is still good.....
I then edited the /etc/vfstab file on the new drive again to ensure filesystems
would be mounted from the correct target when the drive was reinstalled into
the sparc4 (change c0t1.... occurances to c0t3...).
After removing the new drive from the sparc5 and reinstalling it in the spar4,
I ran a probe-scsi to ensure the drive was in fact install at target 3, which
it was. I then performed a reconfiguration boot, and life was good no longer.
During boot, the following messages occured;
/dev/dsk/c0t3d0s1: no such device or address
The / file system (/dev/dsk/c0t3d0s0) is being checked
CAN'T OPEN /dev/rdsk/c0t3d0s0
/dev/rdsk/c0t3d0s0: CAN'T CHECK FILE SYSTEM
/dev/rdsk/c0t3d0s0: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY
Entered maintenance mode at this point
fsck -F ufs /dev/rdsk/c0t3d0s0
CAN'T OPEN /dev/rdsk/c0t3d0s0
df command reflect / is /dev/dsk/c0t1d0s0, even though a probe-scsi indicates
the drive is installed at target 3. Target 1 is were the drive was installed
in the sparc5.
The directory structure appears to be intact, although the root partition is
mounted read-only.
A couple of caveats;
1. This is a brand new sparc4, and I'm not ruling out the possibility of a
hardware failure (ie. controller, etc).
2. The sys-unconfig did not have the anticipated results. Hostname and IP
info was not removed, so I corrected this problem by setting the hostname
with the hostname command and editing /etc/inet/hosts.
Any help would be appreciated.
Rob Davis