The SP file collections can be used to contain system control files that you will need or want to change. When you update files that are part of a file collection, you do not have to make the same update on each replication of the files. Instead, you make the update to the copy on the master server for that collection and run the supper update command on all systems you want updated. The supper program does the updates for you.
The supper update command is included in the crontabs file with the default set to run hourly. You can modify the crontabs file to run the supper update more or less frequently. Refer to Chapter 13, Maintaining the crontabs file for more information.
In a file collection there are many replications of the same file. It is possible for copies of a file to exist on the control workstation, on several boot-install servers, and on all the processor nodes.
In the default system, the control workstation is the master server for all file collections. If you have not changed anything in this configuration, this is where you will always make updates.
Note |
---|
If you changed the default configuration, be aware of the hierarchy of servers in your system and be sure you are modifying the copy of the file that is on the master server for the collection. |
See Understanding how file collections are organized to review file collection hierarchy.
In our default configuration, the master files for all file collections are on the control workstation.
Log in to the control workstation as root and copy a new version of /.profile into the /share/power/system/3.2 directory.
To keep the scan file current, you must run the supper scan command on the master collection every time you make a change.
Run the supper scan command on the control workstation. Enter:
/var/sysman/supper scan power_system
You need to run the supper update command in every location that the collection is installed and where you want the change to be effective. For example, if you change the files on a server that is the master for eight processor nodes and you want each node to have the changes, you need to run the update on all eight nodes.
You can accomplish this update in several ways:
/var/sysman/supper update power_system
/var/sysman/supper update node.root
====================================================================== [r02n07][/]> supper update node.root Updating collection node.root from server mrcs-r1. File Changes: 1 updated, 0 removed, 0 errors. ======================================================================
supper also writes summary messages to the following file:
/var/adm/SPlogs/filec/sup.<month>.<day>.<year>.<hour >.<min>
Detailed information is written to the following file:
/var/adm/SPlogs/filec/sup.<month>.<day>.<year>.<hour>.<min>.r
File collection log files older than 48 hours are removed at midnight by a crontab entry. To see all the messages in the log, you have to display or print the logs file. You can check the supper log for messages from the last install or update using a supper command. The following example shows a supper update, followed by a supper rlog command:
[r05n01][/var/adm/SPlogs/filec]> supper update node.root Updating collection node.root from server r05cw. File Changes: 2 updated, 0 removed, 0 errors. [r05n01][/var/adm/SPlogs/filec]> supper rlog SUP 7.24 (4.3 BSD) for file /tmp/.sf13689 at May 6 12:01:57 SUP Upgrade of node.root at Fri May 6 12:01:57 1994 SUP Fileserver 7.12 (4.3 BSD) 26295 on r05cw.hpssl.kgn.ibm.com SUP Locked collection node.root for exclusive access SUP Requesting changes since Fri May 6 12:00:07 1994 SUP Receiving file .kshrc SUP Receiving file .profile SUP Upgrade of node.root completed at Fri May 6 12:01:58 1994