SUMMARY: Problems with cloning a disk

From: Barry <barry.deevey_at_enmo.co.uk>
Date: Tue May 27 2003 - 11:25:58 EDT
The answer was that I was trying to boot from an incorrect scsi controller:
I was trying to use /pci@1f,0/pci@1/scsi@8,1/sd@1,0:a instead of
/pci@1f,0/pci@1/scsi@8/sd@1,0:a

One point I would make is that on the cloning of the disk, it all seemed to
work much better after I ran installboot to load the boot block BEFORE I ran
the ufsdump/ufsrestore of the filesystems.

Many, many thanks to everybody that replied, there's far too many to list
but you know who you are.



-----Original Message-----
From: Barry [mailto:barry.deevey@enmo.co.uk]
Sent: 27 May 2003 13:04
To: sunmanagers
Subject: Update(2): Problems with cloning a disk


Hello again,

>From all the replies I've recieved and the documentation I've read, I'm
absolutely certain that the new disk has been cloned correctly.  But I still
cannot get the system to boot from it.

The original disk boots fine:
ok> boot /pci@1f,0/pci@1/scsi@8/disk

But it is not recognising the clone disk
ok> boot /pci@1f,0/pci@1/scsi@8,1/disk
Boot device: /pci@1f,0/pci@1/scsi@8,1/disk  File and args:
Drive not ready
Can't read disk label.
Can't open disk label package
Evaluating: boot /pci@1f,0/pci@1/scsi@8,1/disk
Can't open boot device

The show-disks and probe-scsi-all commands recognise the cloned disk
ok> probe-scsi-all
/pci@1f,0/pci@1/scsi@8,1

/pci@1f,0/pci@1/scsi@8
Target 0
  Unit 0   Disk     SEAGATE ST336607LSUN36G 0207
Target 1
  Unit 0   Disk     SEAGATE ST336607LSUN36G 0207

I apologise for being a pain, but any pointers/things to try would be
greatly appreciated.

Best Regards,
Barry.


-----Original Message-----
From: Barry [mailto:barry.deevey@enmo.co.uk]
Sent: 27 May 2003 09:08
To: sunmanagers
Subject: Update: Problems with cloning a disk


I still cannot get the cloned disk to boot, after I have ran the
ufsdump/ufsrestore for ( / /opt /var /usr )I then run
	# /usr/sbin/installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk
\
	/dev/rdsk/c0t1d0s0

to load the bootblk, and I then do ls -la /dev/dsk/c0t1d0s0 to get the
correct device alias, and at the ok prompt I run

ok> nvalias clone /pci@1f,0/pci@1/scsi@8/sd@1,0:a

Everything seems ok until I try ok> boot clone

I get the message "Cannot open boot device"

Any ideas what I'm missing or doing wrong??

I know that I can use the dd method of copying the disks, but I would prefer
not to, because when I start doing this for real on the production system
the disks are completely different.

I'm running the testing on Netra T1's with 36GB disks, but when I do it for
real I will need to clone SunFire V120 (& I *think* the disks are 18GB)

Thanks for any further replies, as always they are very much appreciated.

Barry.

-----Original Message-----
From: sunmanagers-bounces@sunmanagers.org
[mailto:sunmanagers-bounces@sunmanagers.org]On Behalf Of Barry
Sent: 23 May 2003 14:41
To: sunmanagers
Subject: Problems with cloning a disk


Hi all,

I'm trying to clone a Solaris 8 O/S disk onto another disk.

Here's what I'm doing:
prtvtoc and fmthard -s to create the relevant slice information on the
target disk
'newfs /dev/rdsk/c0t1d0s0' to create the relevant filesystem, then 'mount -F
ufs -o rw /dev/dsk/c0t1d0s0 /mnt' and then 'ufsdump 0f - / | ( cd /mnt
;ufsrestore xvf - )'
Everything seems to be working fine as I run it, but when I try to boot from
the cloned disk, it cannot mount /usr (message states unable to mount or a
badly damaged filesystem) When I boot from the original disk  'mount -F
ufs -o rw /dev/dsk/c0t1d0s6 /mnt' works fine and 'fsck /dev/dsk/c0t1d0s6'
does not return any errors.

The above example is for the root filesystem, upon completion I umount /mnt
and then use the same commands for the other filesystems.  I have also
altered /mnt/etc/vfstab for the target disk label before I unmounted it.)

If anybody has any suggestion they will be much appreciated.  I will
summarise.

Many Thanks,
Barry.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Tue May 27 11:25:50 2003

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:11 EST