The site command

The site command is for cluster maintainance. For now it addresses only some basic purposes. It is invoked in the form

site [options] command [cmdpar] filepar ...
where options and cmdpar depend on command.

Currently the only available option is -r. This make the site command recursive, that is it will descend into directories.

filepar must be an info/link file of a file or directory. Parameters that point to regular files or directories are ignored.

The following sub commands are implemented.

chown userid file ...
changes the owning user of file to userid which must be the numeric user id.

delete file ...
deletes the given file. If the real file exists on the cluster server it is removed, the info/link file is moved to the delete directory where it is later deleted by remove.

remove node file ...
removes node's entry from the node list in file if there is at least on other entry. Furthermore an entry to delete the data file on node is added to the remove queue.

rmnode node file ...
removes node's entry in file but does not add an entry to the remove queue. If node is the only node holding the data file is printed to standard output.

Which delete/remove command to use when?

This depends on the situation. If you want to delete files or a directory tree on your cluster use delete. If your are going to shutdown a node to remove it from your cluster (or to clean and recycle it's data space) use remove to remove it's entries from the info/link files and to remove the data files from the node. If the node is already broken use rmnode to simply erase it's entries from the info/link files.