ToolTalk Reference Guide
只搜尋這本書
以 PDF 格式下載這本書

NAME

partition_map - tell rpc.ttdbserverd(1M) to locate its databases in an alternate file system

SYNOPSIS

partition_map

DESCRIPTION

For each filesystem that rpc.ttdbserverd needs to store information about, it creates a directory called TT_DB at the mountpoint of that file system. In that directory it creates the databases it needs to store its tables and indices. If the partition is not writable, then rpc.ttdbserverd can be told, via partition_map(4), to create the databases in another file system.
The partition_map file is called "partition_map" and resides in /etc/tt. If $TT_PARTITION_MAP is set, it is used in place of /etc/tt/partition_map.
rpc.ttdbserverd(1M) reads the partition map upon startup and rereads the map if it receives signal USR2.

Format rules

The format rules for a partition_map are:
  1. Any line beginning with a "#" or white-space and a "#" is a comment.

  2. Blank lines are comments.

  3. Words are delimited by white space.

  4. The first word in a non-comment line is the partition from which to map.

  5. The second word in a non-comment line is the partition to which to map. Although the TT_DB directories are by default at the root of their file systems, the user may in fact map to any local filename that is writeable by UID root.

ENVIRONMENT

TT_PARTITION_MAP
If $TT_PARTITION_MAP is set, it is used in place of /etc/tt/partition_map.

EXAMPLES

This example maps "/cdrom" to "/usr":
# cannot write to /cdrom
/cdrom /usr
This example maps "/cdrom" to "/usr/TT_maps/cdrom":
# cannot write to /cdrom
/cdrom /usr/TT_maps/cdrom

SEE ALSO

rpc.ttdbserverd(1M), hostname_map(4)