Upgrade Proceedure

  1. Take SCSI chain 2 mirror components offline.
    	
    	metaonline d0 d2
    	metaonline d10 d12
    	metaonline d20 d22
    	metaonline d30 d32
    	metaonline d40 d42
    	metaonline d50 d52
    	metadb -a /dev/dsk/c2t2d0s7
    	
    
  2. Halt brick
  3. Remove frame buffer card and insert new SCSI card
  4. Add new drives to SCSI chain, do a probe SCSI to make sure they can be seen.
  5. Boot -rs
  6. If all is well with SCSI chain 2 bring mirrors back on line:
    	
    	metaonline d0 d2
    	metaonline d10 d12
    	metaonline d20 d22
    	metaonline d30 d32
    	metaonline d40 d42
    	metaonline d50 d52
    	metadb -a /dev/dsk/c2t2d0s7
    	
    
  7. Partition new drives to have two partitions slice 0 for data slice 7 for metadb replicas.
  8. Create a metadevice to stripe each of these new disk packs. Add these lines to /etc/opt/SUNWmd.tab
    	
    		d53 1 2 /dev/dsk/c0t0d0s0 /dev/dsk/c0t1d0s0
    		d54 1 2 /dev/dsk/c2t0d0s0 /dev/dsk/c2t1d0s0
    	
    	
    Then run the commands:
    		
    		metainit d53
    		metainit d54
    		
    	
  9. Add d53 as a mirror component of d50 using command
    		
    		metattach d50 d53
    		
    	
  10. Wait till the resync operation is complete.
  11. Detach the old /home drives using the commands:
    		
    		metadetach d50 d51
    		metadetach d50 d52
    		
    	
    This will leave /home as a one way mirror on the old drives.
  12. Grow the /home file system to fill the new 'drive' using the command:
    		
    		growfs /dev/md/rdsk/d50
    		
    	
  13. Add d54 as a mirror component of d50 using command:
    		
    		metattach d50 d54
    		
    	
  14. Wait for resync operation to complete. At this point we are running a two way mirror on the new drives and the old drives are no longer in use for /home but still have meta database replicas.
  15. Remove the metadevice definitions for the /home partitions on the old drives:
    		
    			metaclear d51
    			metaclear d52
    		
    	
  16. Add metadb replicas on the new drives. Only one replica per drive, root disk will still have two but this should not be a problem.
    		
    			metadb -a  /dev/dsk/c0t0d0s7
    			metadb -a  /dev/dsk/c0t1d0s7
    			metadb -a  /dev/dsk/c2t0d0s7
    			metadb -a  /dev/dsk/c2t1d0s7
    		
    	
  17. Remove the database replicas from the old drives:
    		
    			metadb -d /dev/dsk/c0t2d0s7
    			metadb -d /dev/dsk/c2t2d0s7
    		
    	
  18. Halt brick and remove old drives from SCSI chains.
  19. Reboot with -r option.
  20. Update http:www.usyd.edu.au/~stephen/sna/sna.html to show partition table for new drives and meta device configuration.

Upgrade Proceedure for addition of 2nd SCSI card - if things go wrong look here -

The complication here is that when a new SCSI card is install the reboot -r may change the designation of the two SCSI cards, with consequent mirroring problems. To safe guard against problems all the mirror components on SCSI controler 2 should be offlined before installing the card. Since 4 out of 8 database replicas will be available even in the worse case it should be possible to boot, we can make doubly sure of this by deleteing the replica on one of the new drives on chain 2, thus ensuring that we have 4 out of 7 replicas available at boot. Here is the command sequence:

	
	metaoffline d0 d2
	metaoffline d10 d12
	metaoffline d20 d22
	metaoffline d30 d32
	metaoffline d40 d42
	metaoffline d50 d54
	metadb -d /dev/dsk/c2t1d0s7
	
Once the card is installed there are several possibilities: