[Suns-at-Home] Re: Suns-at-Home digest, Vol 1 #622 - 7 msgs
Brian Costello
costellob@asme.org
Mon, 23 Jun 2008 19:09:05 -0700
Here is a how-to I put together quite a while ago. Since "ufsdump" was
(aparently) "dump" back in 4.1.3 days you should probably check the man
page to see if the options were the same. Obviously the disk devices I
list below are Solaris. I know I have also used ufsdump to copy a file
system from one partition to another as well. The man page describes the
fairly well under Solaris. I prefer ufsdump over dd since you do not
have to worry about maintaining the same partition or disk size. The key
thing you need on the restore is to restore the boot block using
installboot (not sure if this is Solaris only or not). Here it is:
Replacement of a hard drive (Solaris 2.6):
1. make a backup of the drive to be replaced using the ufsdump command
to make the backup to tape. Ex: Replace system drive c0t3d0 for sparc
systems (and c0t0d0 for ultra and ss1000) assuming the tape is located
at /dev/rmt/0
# df |grep /dev/dsk/c0t3d0 |cut -d' ' -f1
# /usr/sbin/ufsdump 0uf /dev/rmt/0n /
# /usr/sbin/ufsdump 0uf /dev/rmt/0n /usr
# /usr/sbin/ufsdump 0uf /dev/rmt/0n /var
# /usr/sbin/ufsdump 0uf /dev/rmt/0 /opt
2. Add the new drive on an unused SCSI location, ID 2 for example. Then
do a reconfiguration boot.
3. format the NEW drive now at location 2
4. newfs all the new partitions to create the new file systems
5. If the drive is to be a system drive you MUST install the boot block
with the following command:
# /usr/sbin/installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk
/dev/rdsk/c0t2d0s0
6. Create a location to mount the new drive partitions and restore the
data from tape. Be carefull about what partition was created on the tape in
what order so as not to restore the wrong partition in the wrong place.
# mkdir /mnt
# mount /dev/dsk/c0t2d0s0 /mnt
# cd /mnt
# ufsrestore rvf /dev/rmt/0n
Repeat on all the partitions to be added to the new drive. Since this was
the root partition, all of the secondary partition directories will have
been recreated. Therefore it will not be necessary to mkdir these
directories.
Brian P. Costello costellob@asme.org
San Francisco Bay Area
>
> Subject:
> [Suns-at-Home] SunOs - Disk clone
> From:
> martin nichols <mjnichols@dsl.pipex.com>
> Date:
> Mon, 23 Jun 2008 00:37:19 +0100
> To:
> suns-at-home@net-kitchen.com
>
> To:
> suns-at-home@net-kitchen.com
>
>
> Hi All,
>
> I wonder if anyone can point me in the right direction.
>
> I'm trying to keep an an early 1990's IPX based PCB CAD system operational. I
> have another complete IPX which can be canibalised for hardware spares, but
> no copy of SunOs 4.1.3 or the CAD package that runs on it. Even If I had I'm
> not sure that I would be able to install and configure it without any
> manuals.
>
> Both IPX's have had the NVRAM hack and now have a 1/2AA lithium cell that
> should keep the clock ticking until I'm in a box!
>
> My question is can I somehow copy the entire disk so that in the event of the
> disk drive failing I can rebuild the system.
> The drives in both the IPXs are the same - SUN424.
> I have an Archive Viper QIC150 tape drive.
> An Exabyte EXB-8500 tape drive.
> A SUN CD ROM drive.
> A non-SUN SCSI external drive box and some SCSI disks in the 1 to 2 GByte size
> range.
> Network cables +AUI -> 10baseT adapters.
>
> Any help would be much appreciated.
> Thanks.
>
> Regards to all on Suns@home.
> Martin Nichols, Surrey UK.
>
>
> tinfo/suns-at-home
>