Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Which is the best way to clone Octanes?

Status
Not open for further replies.

gontxal

MIS
Nov 24, 2002
6
ES
Which is the best way to clone Octanes?we have several Octanes in a Lan with no CD-ROM.We clone them by networking or by tape.Which is the best way,and where could I find information to do it(commands,...)
 
the best we've found to clone octanes is disk to disk. we take the disk from a machine to clone to the master and jam it in and then use fx -x to set the disk up as a root disk and then use xfsdump to copy the masters info to the second(clone) disk. then use dvhtool to copy the necessary volume header info over. below are the fx commands separted for clarity:

#create a label
fx -x dksc
0
2
0
label
create
sgi
..
..
exit
yes
#root partition
fx -x dksc
0
2
0
repart
rootd
xfs
yes
..
exit
#create swap
fx -x dksc
0
2
0
repart
resize
yes
swap
mega
1000 (would be 1gb)
yes
..
exit
#make the filesystem
mkfs -t xfs /dev/rdsk/dks0d2s0
#mount the disk
mkdir /clone
mount /dev/dsk/dks0d2s0 /clone
#now get the data over there
cd /; xfsdump -l 0 -J - / | (cd /clone;xfsrestore - .)
#umount and get vh info from the masters' disk
umount /clone
/etc/dvhtool -v get sash /stand/sash \ /dev/rdsk/dks0d1vh
/etc/dvhtool -v get ide /stand/ide /dev/rdsk/dks0d1vh
/etc/dvhtool -v get IP30prom /stand/IP30prom \ /dev/rdsk/dks0d1vh
#now put the vh info on the second disk
/etc/dvhtool -v c /stand/sash sash /dev/rdsk/dks0d2vh
/etc/dvhtool -v c /stand/ide ide /dev/rdsk/dks0d2vh
/etc/dvhtool -v c /stand/IP30prom IP30prom \ /dev/rdsk/dks0d2vh

the above dvhtool commands assume you have a /stand directory for putting the three vh files there for the next three that put them on the cloned disk. if not either create it or use /tmp. assuming the octanes are the same you can now take the second disk to where it came from and it will be a clone of the master. you may wish to change the /etc/sys_id, /etc/hosts files to make it a unique hostname and ip address before the above umount and dvhtool commands. hope this helps.
 
i accidentally got a few backslashes "\" in the dvhtool command lines. unless you're typing on a new line ignore them.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top