Depending on the hit rate experienced by your server, the size of cached objects, and client usage patterns, adding disk space can improve the performance of your server. Such an improvement would be manifested in reduced response time for users and decreased network traffic between the proxy server and its parents.
Adding a SCSI Disk includes three procedures:
Installing the new SCSI disk
Formatting the disk
Configuring new file systems
For these procedures, you must have a serial connection to the Netra j proxy cache server.
In the procedure specified below, for purposes of this example, assume the following:
You are adding a six-disk Sun StorEdge(TM) MultiPack enclosure to the existing SCSI controller (controller 0, or c0).
You will use all of the space on all of the disks in the enclosure for caching.
You will use slice (partition) 0 for all of the available space on a disk.
The disks in the MultiPack enclosure are formatted at the factory.
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.
Halt your machine.
In the Netra j 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.
Ensure that the server is powered off (after about 90 seconds).
The green indicator light on the front of your machine is off when the machine is powered off.
Connect the MultiPack enclosure to the SCSI port on the back of the server.
Power on the enclosure.
Power on the Netra j machine and log in as root.
# format
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.
If the disk is new, you are asked whether to label the disk. Enter y to label the disk now.
In the format menu, enter p for partition.
In the partition menu, enter m to modify a partition table.
In response to the Select partitioning base menu, enter the number to select "modify the current partition table."
The current partition table is displayed.
In the displayed partition table, make a note of the number of cylinders for slice (partition) 2.
Press Return to indicate that, yes, you want to create a new partition table.
Press Return to accept the default partition number (for example, 6) for the free hog partition.
Enter the number of cylinders noted in Step 8 for the size of partition 0.
For example, 4101c, to indicate 4101 cylinders.
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.
Press Return to OK the current partition table or enter n to make changes.
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.
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.
Enter q at the partition> prompt.
Enter disk at the format> prompt, to return to the available-disk menu.
Repeat Step 3 through Step 16 for each disk in the MultiPack enclosure.
For Step 3, enter the number that corresponds to the disk whose partition map you are modifying.
After you modify the partition map for the last disk in your MultiPack enclosure, enter q at the format> prompt (see Step 17), to exit format.
For each disk in the MultiPack enclosure, enter a newfs command of the following form:
# newfs /dev/rdsk/c0tnumd0s0 |
where num is, in succession, 9, 10, 11, 12, 13, and 14.
Each instance of the newfs command takes a few minutes.
Edit /etc/vfstab to add the new partitions.
# 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 - this line continued from previous line ufs 2 yes - 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/cachenum, are present in the Netra j proxy cache software distribution.
Reboot.
In the Netra j 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) |_____|_____|_____|_____|_____|_____|_____|_____|_____|_____| 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.