Netra Proxy Cache Array User's Manual

Adding a SCSI Disk

In the procedure specified below, for purposes of example, we assume the following:

To Add a SCSI Disk
  1. Set the address switch on the back of the MultiPack enclosure to 9-14.

    The two internal disks are c0t0 and c0t1. For controller 0, you can use target numbers other than 0, 1, and 6, which is used by the CD-ROM drive.

  2. Halt your machine.

    In the Netra Proxy Cache Main Administration page, click Restart and Shutdown. In the Restart and Shutdown Administration page, click the Shutdown and power off operation and leave the check box for "Check for new devices upon restart" set to Yes. Click OK.

  3. Ensure that the server is powered off (after about 90 seconds).

    The green indicator light on the front of your Netra Proxy Cache Server is off when the machine is powered off.

  4. Connect the MultiPack enclosure to the SCSI port on the back of the server.

    See the Netra Proxy Cache 30 Hardware Installation Guide for instructions.

  5. Power up the enclosure.

  6. Power up the Netra Proxy Cache Server and log in as root.

  7. Invoke format:


    # format
    

  8. In the available-disk menu, select 2, for the first available disk after the two internal disks.

    In this menu, there are eight disks, 0 and 1 for the internal disks and 2 through 7 for the disks in the MultiPack enclosure.

  9. If the disk is new, asked whether to label the disk. Enter y to label the disk now.

  10. In the format menu, enter p for partition.

  11. In the partition menu, enter m, to modify a partition table.

  12. In response to the Select partitioning base menu, enter the number to select "modify the current partition table."

    The current partition table is displayed.

  13. In the displayed partition table make a note of the number of cylinders for slice (partition) 2.

  14. Press Return to indicate that, yes, you want to create a new partition table.

  15. Press Return to accept the default partition number (for example, 6) for the free hog partition.

  16. Enter the number of cylinders noted in Step 1 for the size of partition 0.

    For example, 4101c, to indicate 4101 cylinders.

  17. Except for the partition number for the free hog partition, enter a size of 0 for the remaining partitions. For the free hog partition, press Return to accept the default.

    After making or accepting an entry for each partition, the partition table is displayed.

  18. Press Return to OK the current partition table or enter n to make changes.

  19. After confirming your partition table, you are prompted to enter a table name. Enter a name enclosed in quotes.

    For example, "added_cache1", for the first disk in a MultiPack enclosure.

  20. If the disk is not a new disk, you are asked whether you are ready to label the disk. Enter y to label the disk.

  21. Enter q at the partition> prompt.

  22. Enter disk at the format> prompt, to return to the available-disk menu.

  23. Repeat Step 8 through Step 21 for each disk in the MultiPack enclosure.

    For Step 1, enter the number that corresponds to the disk whose partition map you are modifying.

  24. After you modify the partition map for the last disk in your MultiPack enclosure, enter q at the format> prompt (see Step 1), to exit format.

  25. For each disk in the MultiPack enclosure, enter a newfs command of the following form:


    # newfs /dev/rdsk/c0t<num>d0s0
    

    where <num> is, in succession, 9, 10, 11, 12, 13, and 14.

    Each instance of the newfs command takes a few minutes.

  26. Edit /etc/vfstab to add the new partitions.

    The original vfstab contains:


    # cat /etc/vfstab.orig
    #device         device          mount           FS      fsck    mount   mount
    #to mount       to fsck         point           type    pass    at boot options
    #
    #/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr          ufs     1       yes     -
    fd      -       /dev/fd fd      -       no      -
    /proc   -       /proc   proc    -       no      -
    /dev/dsk/c0t0d0s1       -       -       swap    -       no      -
    /dev/dsk/c0t1d0s1       -       -       swap    -       no      -
    /dev/dsk/c0t0d0s0       /dev/rdsk/c0t0d0s0      /       ufs     1       no      -
    /dev/dsk/c0t1d0s0       /dev/rdsk/c0t1d0s0      /var    ufs     1       no      -
    /dev/dsk/c0t0d0s6       /dev/rdsk/c0t0d0s6      /var/opt/SUNWcache/cache1 
    this line continued from previous line	 ufs     2       yes     -
    /dev/dsk/c0t1d0s6       /dev/rdsk/c0t1d0s6      /var/opt/SUNWcache/cache2
    this line continued from previous line	 ufs     2       yes     -
    swap    -       /tmp    tmpfs   -       yes     -

    Using the disks in our example MultiPack enclosure, add lines such as the following to vfstab:


    # The following disks were added to extend the cache
    /dev/dsk/c0t9d0s0       /dev/rdsk/c0t9d0s0      /var/opt/SUNWcache/cache3 
    this line continued from previous line	 ufs     2       yes     -
    /dev/dsk/c0t10d0s0       /dev/rdsk/c0t10d0s0      /var/opt/SUNWcache/cache4
    this line continued from previous line	 ufs     2       yes     -
    /dev/dsk/c0t11d0s0       /dev/rdsk/c0t11d0s0      /var/opt/SUNWcache/cache5
    this line continued from previous line	 ufs     2       yes     -
    /dev/dsk/c0t12d0s0       /dev/rdsk/c0t12d0s0      /var/opt/SUNWcache/cache6
    this line continued from previous line	 ufs     2       yes     -
    /dev/dsk/c0t13d0s0       /dev/rdsk/c0t13d0s0      /var/opt/SUNWcache/cache7
    this line continued from previous line	 ufs     2       yes     -
    /dev/dsk/c0t14d0s0       /dev/rdsk/c0t14d0s0      /var/opt/SUNWcache/cache8
    this line continued from previous line	 ufs     2       yes     -

    Note that the mount points, /var/opt/SUNWcache/cache<num>, are present in the Netra Proxy Cache software distribution.

  27. Reboot.

    In the Netra Proxy Cache Main Administration page, click Restart and Shutdown. In the Restart and Shutdown Administration page, click the Restart operation and leave the check box for "Check for new devices upon restart" set to Yes. Click OK.

    Upon rebooting, in the console window, you receive output such as the following:


    Disk configuration has changed. 
    New filesystem detected: /var/opt/SUNWcache/cache3 
    New filesystem detected: /var/opt/SUNWcache/cache4 
    New filesystem detected: /var/opt/SUNWcache/cache5 
    New filesystem detected: /var/opt/SUNWcache/cache6 
    New filesystem detected: /var/opt/SUNWcache/cache7 
    New filesystem detected: /var/opt/SUNWcache/cache8 
    Disk configuration has changed.
    Reconfiguring the cache. Please wait. 
    This operation should take no more than 5 minutes. 
    Current time is: Fri Dec  5 11:06:04 PST 1997 
     
    0           1           2           3           4           5 (min) 
    [boxv  ]_____[boxv  ]_____[boxv  ]_____[boxv  ]_____[boxv  ]_____[boxv  ]_____[boxv  ]_____[boxv  ]_____[boxv  ]_____[boxv  ]_____[boxv  ]
                                                                DONE
    The cache has been reconfigured. 
    
    oamserver in stop state
    The system is ready.
    
    <host name> console login: 

At this point, the proxy cache service can begin to use the additional disks for caching web objects.