next up previous contents
Next: copy-rootfs Up: Utility Programs Previous: mk-sysimage   Contents


update-node

 Usage: update-node [OPTION]... $<$-run$>$  


This script updates all files and directories in /ram that have changed in the configuration and starts/stops any services if necessary.

Options:
-r, -run This argument must be given to run the script
-c, -clean Removes files/directories in /ram not in the config
-d, -dryrun Shows updates without making them
-cf, -config=FILE Specify alternate configuration file
-q, -quiet Suppress output

The update-node script performs a very similar function as the boot-time script, rc.preinit. It updates all the files and directories configured in /etc/sysimage.conf that reside in the oneSIS RAM disk mounted on /ram. It will also resize the RAM disk if necessary.

If any new RAM* or LINK* directives are added to the configuration, running update-node on all nodes will ensure that their RAM disk is consistent with the new configuration.

By default, if any directives are removed from the configuration, the corresponding files and directories are NOT deleted from the RAM disk.

To remove files and directories in /ram that are no longer specified in the config, the -clean option must be given to update-node. However, it is recommended to clean files no longer in the config without destroying useful data that may be stored in a RAMDIR or LINKDIR. To protect such directories from having useful data destroyed by an `update-node -clean' operation, a -p flag can be added to the configuration directive:

After protecting such directories, `update-node -r -clean' can safely be run on all nodes as often as necessary to clean up the oneSIS RAM disk and keep the nodes consistent with their configuration.


next up previous contents
Next: copy-rootfs Up: Utility Programs Previous: mk-sysimage   Contents
root 2017-02-23