📄 afserver.conf.8.in
字号:
.TH AFSERVER.CONF 8 "2001 April 1" "Debian Project".SH NAME@serverconf@ \- server side configuration file for afbackup.SH DESCRIPTIONThis file needs not be edited by hand with an editor,instead the program @serverbindir@/afserverconfigcan be used. If you are running X, the programs are the same, but start with an 'x';(Tcl/Tk must be installed): and @serverbindir@/xafserverconfig.The parameters described below are the same for both versions.Entries consist of lines starting with the parameter name,then follows a colon and the value of the parameter. Commentlines can be inserted as desired starting with the # character..SH ENTRIES.TP.B Backup-DeviceThis is the device the backup is written to. It can be anytape device with the capability to distinguish between severalfiles on the media. It is mandatory to supply the no-rewind device here, otherwise this package won't work properly. Suitable device names for some OS-es:.br AIX: /dev/rmt0.1.br Solaris: /dev/rmt/0bn.br IRIX: /dev/rmt/tps0d4nr.br HP-UX: /dev/rmt/0hn.br Linux: /dev/nst0.br Digital UNIX: /dev/nrmt0h.br FreeBSD: /dev/nsa0.brIf the drive has a media handler attached, a specifier forthis may follow the device name. The format for thisis =<drive-count>@<device>#<num-slots>^<num-loadbays> , for example =1@/dev/sg0#6^2 . Whitespace before and followingthe specialcharacters = @ and # is allowed for readability. The examplemeans: The drive is number 1 in the changer, /dev/sg0 is thechanger device, that has 6 media slots and 2 loadbays. Theparts =<drive-count> and ^<num-loadbays> are optional..brIf the server is only used for remote start and no real backupdevice should be accessed, a dash - should be configured hereas device, so a respective warning to the server log will besuppressed.TP.B ServerIdentifierThe identifier for the server. Default: The official hostname,followed by a colon and the full path to the configuration file.The server identifier can be used to become independent of theserver machine name. This might be helpful, if the backup servershould move to another machine. Whitespace characters may beused in this identifier, but they are replaced with asterisks *before comparing, so they are not significant.TP.B Tape-BlocksizeThe blocksize of the tape device. This value specifies how manybytes are written to tape or read from it with one system call.Usually this value is at least 512 or a multiple of it.It is not very important if the blocksize is set to 2048or 1024. The main thing to keep in mind is that if there is aminimum, it should be respected (e.g. 1024 on AIX), otherwisemedia space is wasted..TP.B Tape-BufferThree numbers and a filename can be given here. The first numberis the desired size of the tape buffer in bytes. The optionalsecond number is the high-watermark while writing in percent(default: 67), the optional third number is the low watermark,also in percent (default: 0). As long as the buffer fill ratedoes not reach the high watermark, nothing is written, but whenit is reached, writing does not stop until the buffer fill rateis equal or below the low watermark. This procedure hopefullyreduces tape wear and increases average writing speed, becauseexcessive tape stops/starts are avoided. If the optional filenameis given, buffering is done in the given file, which is mappedinto the server's address space for that purpose. In the filename,patterns are replaced like with Changer-Configuration-File..TP.B Cartridge-HandlerThis value must be 1 or 0, which means, that you either have acartridge handling system (i.e. some kind of robot) (1) ornot (0). If you don't have a robot, you may nonetheless maintaina set of cartridges, that you will have to manually number. The backup server side will inform you via email or console output,whenever another cartridge has to be inserted into the drive and whatnumber it requires it is..TP.B Number Of CartridgesThis number specifies, how many cartridges you are maintaining.If you have a cartridge handling system (some kind of robot),this is usually the number of cartridges, your system is juggling..TP.B Cartridge-SetsSeveral cartridge sets can be used. Here they can be specified.The specifiers for the cartridge sets must be separated bywhitespace. Each specifier may consist of digits, commas anddashes. Examples for cartridge set specifiers: 1-5 7-9,12 6,10,11 .This example shows how to specify three cartridge sets. If theaccess to a cartridge set should be allowed only for certainclients, this may specified with a colon immediately followingthe set specifier without whitespace, followed by one of threeforms: Either a list of hostnames, separated by commas and nowhitespace inbetween, or the full path to a file containing thehostnames one per line, or by a command to be executed. Thecommand must start with a bar | and must be enclosed in doublequotes, if it is containing whitespace. If %H occurres in thecommand it will be replaced with the client name, who wants togain access to the cartridge set. The command must exit with astatus of 0, if access is to be granted, otherwise with an exitstatus unequal to 0. The name of the host to be checked is alsowritten to standard input of this command, so %H needs not tobe used. Examples specifying cartridge sets with restrictedaccess: 1-5:apollo,localhost,taurus 6-8,16:/usr/local/backup/etc/set2clients 9-15:"| fgrep .my.domain.com".brRemember, that grep will exit with 0, if a match has been found,otherwise 1. Note, that localhost and the network name of themachine should be both given, if the server is also a client.The names to be supplied here are not the client IDs configuredon the client side, but the network names of the machines..brIf this parameter is not given, there is only the default setnumber 1 with all available cartridges, access is permitted toany client. Not all cartridges need to be included in a set andsets must not overlap..TP.B Max Bytes Per FileThe stream of data, that represents your backup, is divided intopieces (files on tape). This is done to find the files fasterduring a restore. This value determines, how large the pieces ontape may be in bytes. Some good values for a few tape technologies:.br QIC: 20000000.br DAT: 30000000.br Exabyte: 50000000.br DLT: 100000000.br.TP.B Max Bytes Per TapeWith this entry the number of bytes written to a single tapecan be limited. Serveral entries with a leading range specifierallow to handle certain tapes differently. The range specifiermust end in a colon : and may contain lists of ranges and numbers.A given number without a leading range specifier will be valid forall tapes not explicitly described. Default is use of full tapecapacity. Several entries must be separated by whitespace and maylook like the following examples:.br4000000000 1,3-5:3500000000 7,9-:5000000000.brThis means: 3.5 GB for cartridges 1 and 3 through 5, 5 GBfor cartridges 7 and 9 up to the last cartridge, 4 GB for therest..TP.B Full Append ModeNormally, when the insert (writing) position is forced toanother tape with the cartis command or with the clientsideoption -G, the rest of the current tape remains unused. Whenthis option is set to 1, it will nonetheless be used to writedata on, if there is no free tape left..TP.B Variable Append ModeIn default mode, the place (tape and tapefile), where the next datawill be written, is fix and can only manipulated using the commandcartis or the clientside option -G. When the server wants to writewith variable append mode enabled, any cartridge, that is in thedrive, is belonging to the right cartridge set and is allowed to bewritten, will be accepted and appended to. Note, that this will alsooverride the settings of cartis or option -G..TP.B Reject Unlabeled TapesDefault is to accept an unlabeled tape as the requested one andto label it automatically. If this behaviour is unwanted and onlytapes with a recognized label should be permitted for writing,this parameter should be set..TP.B PreferCartInChangerWhen a tape gets full and another one must be chosen to continuewriting, the server does not make a difference, whether a tapeis available in a changer or not, if this flag is not set. Thisis the default. If this parameter is set, the next cartridge ischosen from those, that are available in the slots of a changer,if present and configured. If there is no tape found inside thechanger, that is allowed to be overwritten, manual administratorinteraction is nonetheless required..TP.B Cart-Insert-GracetimeThis is the time in seconds, the program waits after anothercartridge has been put into the drive. Normal devices need acertain time span to mount the tape to get it ready for use.Normally this value is not critical. If you estimate it toolow, the ioctl-system-call will wait until the device becomes available. This time is sometimes longer than two minutes,so if you want to proceed quickly after a cartridgechange, you may measure the maximum time your system needs.Some tried values for a few tape technologies:.br QIC: 20.br DAT: 30
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -