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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.