try this one ... should work on any solaris ... (assumes source disk disk0 is c0t0d0 and disk1 is c0t1d0) ... you might also want to add code to modify the /etc/vfstab automatically so you can quickly boot-up with the 2nd disk --- i'll let you handle that part ... test on useless system first though just to be safe ...
Code:
#! /bin/ksh
prtvtoc /dev/rdsk/c0t0d0s2 | fmthard -s - /dev/rdsk/c0t1d0s2
partlist=$(prtvtoc /dev/rdsk/c0t0d0s2 | awk '!/\*/ {print $1}')
for p in $partlist
do
if [ "$p" != "1" -a "$p" != "2" ]
then
newfs /dev/rdsk/c0t1d0s$p < /dev/null
mount /dev/dsk/c0t1d0s$p /mnt
cd /mnt
ufsdump 0uf - /dev/dsk/c0t0d0s$p | ufsrestore rf -
cd /
umount /mnt
fi
done
mount /dev/dsk/c0t1d0s0 /mnt
installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c0t1d0s0
umount /mnt
exit 0
Last edited by Just Ice; 08-10-2005 at 11:02 AM..
Reason: saw something that could be a problem
Hai ......... my name Rio,
I want to clone my harddisk at Sun Balade 2000 server with Solaris 8 OS, my question is :
a. what kind method for making backup or clonning disk ?
b. what method more easier , quick but still reliable ?
c. how to proceed it ?
Thanks (1 Reply)
Disk cloning
I had an external SCSI master disk that I used to clone to an identical external SCSI disk because the other SCSI disk would become corrupted. My original Master became corrupted so I used one of the other to good disk to copy back to the master. Unfortunately the new master needs... (1 Reply)
Hi.
We tried cloning a SCO Unix hard disk using Norton Ghost.
However, the new cloned hard disk encounter booting problem.
What possibly go wrong? (1 Reply)
Continuing saga of working on making a retail store more robust by creating a backup clone of the main server, a 1995 era :eek: PC running SCO OpenServer 5.0.0b and a discontinued Point of Sales (POS) software system.
I have a PC of the same make and model. The CPU runs faster and it has a... (5 Replies)
I wasn't sure where to put this thread but since i use ubuntu for data recovery, I figured this is the best place. So, a friend passed me a 250G Western Digital hard disk the other day and said that his client needs to get her pictures off it. the problem: windows says it wants to reformat the... (13 Replies)
hello folks,
I have a 300GB ROOTVG volume groups with one filesystem /backup having 200GB allocated space
Now, I cannot alt disk clone or mirrorvg this hdisk with another smaller disk. The disk size has to be 300GB; I tried alt disk clone and mirrorvg , it doesn't work. you cannot copy LVs as... (9 Replies)
Guys can anyone tell how can we do faster disk cloning
Below i found in google
1. dd if=/dev/sda of=/dev/sdb bs=4096 conv=noerror,sync
So adding "conv=noerror,sync " makes it faster looks against not adding it
2. Enable write cache activated (hdparm -W1 /dev/sda) then run dd ..
... (2 Replies)
Hi,
I am trying to clone the hard disk image of Solaris OS on one disk to another disk. After some googling I found that there is a command "dd" to achieve this.
However there is a condition to use the dd command, that the disk geometry of both the disks (source and target disks) should... (5 Replies)
Discussion started by: rajujayanthy
5 Replies
LEARN ABOUT NETBSD
svhlabel
SVHLABEL(8) BSD System Manager's Manual SVHLABEL(8)NAME
svhlabel -- update disk label from SGI Volume Header
SYNOPSIS
svhlabel [-fqrw] device
DESCRIPTION
svhlabel is used to update a NetBSD disk label from the Silicon Graphics Volume Header on disks that were previously used on IRIX systems.
svhlabel scans the Volume Header contained in the first blocks of the disk and generates additional partition entries for the disk from the
entries found.
Each Volume Header entry which does not have an equivalent partition in the disk label (equivalent in having the same size and offset) is
added to the first free partition slot in the disk label. A free partition slot is defined as one with an fstype of 'unused' and a size of
zero ('0'). If there are not enough free slots in the disk label, a warning will be issued.
The raw partition (typically partition c, but d on i386 and some other platforms) is left alone during this process.
By default, the proposed changed disk label will be displayed and no disk label update will occur.
Available options:
-f Force an update, even if there has been no change.
-q Performs operations in a quiet fashion.
-r In conjunction with -w, also update the on-disk label. You probably do not want to do this.
-w Update the in-core label if it has been changed.
SEE ALSO disklabel(8), dkctl(8), mount_efs(8), sgivol(8)HISTORY
The svhlabel command appeared in NetBSD 5.0.
BSD February 26, 2007 BSD