From: feats@indiana (Stephen Greenfield) Newsgroups: comp.sys.sgi.admin Subject: How to copy a Root Disk Date: 8 Mar 1996 12:26:30 GMT Organization: Virginia Tech, Blacksburg, Virginia Message-ID: <4hp91m$hcf@solaris.cc.vt.edu> I just got through having my boot drive replaced. These are the steps that I followed to clone a new boot drive and to clone a backup boot drive. Everything has been fine for over 2 weeks now. * * * * * These instructions will help you make a clone of your boot drive. The assumption is made that these are the filesystems on your current boot drive: Filesystem Type kbytes use avail %use Mounted on /dev/root efs 23275 17348 5927 75% / /dev/usr efs 1863420 1668733 194687 90% /usr This example assumes that your boot drive is on scsi channel 1 with an address of 1 and the clone drive is on scsi channel 1 with an address of 7. The root partition is dks1d1s0 and the usr partition is dks1d1s6. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 1) Make full backup of system and verify that it is usable. 2) Perform all functions in "single user" mode. 3) Run "fx -x" to get partition sizes from current boot drive and set clone drive to same partition sizes. 4) Run "mkfs" on the clone drive's new partitions, making sure you use the proper file type (efs/xfs). mkfs /dev/dsk/dks1d7s0 mkfs /dev/dsk/dks1d7s6 5) Make mount points for the clone drive's new partitions and mount them. mkdir /root2 mkdir /usr2 mount /dev/dsk/dks1d7s0 /root2 mount /dev/dsk/dks1d7s6 /usr2 6) If all appears o.k., you are ready to copy the files to the clone disk from the boot drive. You MUST do the following to make sure the directory structure is kept the same. (cd /; bru -cmf -) | (cd /root2; bru -xf -) (cd /usr; bru -cmf -) | (cd /usr2; bru -xf -) 7) You need to copy the volume header information over to the clone drive using dvhtool. List the contents of the volume header of the boot drive. dvhtool -v list /dev/rdsk/dks1d1vh Current contents: File name Length Block # sgilabel 512 3 sash 180736 4 ide 1097728 357 symmon 304128 2501 Make sure you install the proper image of "sash" for your system! I did a "ls -al /stand" to check the sizes of my sash, ide, and symmon files. -rwxr-xr-x 1 root sys 1097472 Mar 21 1995 ide -rwxr-xr-x 1 root sys 180512 Jan 12 08:33 sash -rwxr-xr-x 1 root sys 303648 Jan 12 06:25 symmon To copy from /stand to the clone drive use the following: dvhtool -v creat /stand/ide ide /dev/rdsk/dks1d7vh dvhtool -v creat /stand/sash sash /dev/rdsk/dks1d7vh dvhtool -v creat /stand/symmon symmon /dev/rdsk/dks1d7vh 8) Now you are ready to boot off the new cloned drive. Remove the boot drive and readdress the clone drive. Then re-boot. *** I was given a copy of these procedures from an SGI support person and used them to clone the boot drive on a POWER Challenge XL Server. This is a rough outline and should not be attempted by someone who does not have adequate system administrator experience on an SGI system. PLEASE BE EXTREMELY CAREFUL!!! -- ------------------------------------------------------------------------- Stephen L. Greenfield Voice: (540) 231-4025 Computer Systems Senior Engineer Fax: (540) 231-7413 1700 Pratt Drive ,/\ Email: feats@indiana.cc.vt.edu Blacksburg, VA 24060-6361 / `\/`'\ ,/\/ / ,/ <_ ._. / `\ / / ,/\_ _/' `-`-\ |/ ,/' `_'_' * Blacksburg \_> ' ,/' \__>_/\ +----------------------------------------------+ -------------------------------------------------------------------------