[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[debian-users:17334] [Q]afbackup didn't work on slink
いつみ と申します
ネットワーク指向のバックアップユーティリティ afbackup を使いたいのです
が、うまく動いてくれません。御指導を賜わりたく存じます
不具合の為再投稿しています、二重投稿となっているかもしれませんが
お許しください
現象
ストリーマーの付いているマシンに次に示すように slink のサーバークライアント
[Manbo:501]dpkg -l *afbackup*
Desired=Unknown/Install/Remove/Purge
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-===============-==============-============================================
ii afbackup 3.1beta1-1 Client-Server Backup System (Server side)
ii afbackup-client 3.1beta1-1 Client-Server Backup System (Client side)
両方をSlink環境にインストール、 /usr/doc/afbackup/{INTRO,CONFIG}に従っ
て設定をおこなった。なお使用するストリーマは、HP のDDS2で、device name
は /dev/nst0 である。tar 、taper 等では問題なく読み書きできている。
デビアンのインストーラによって 次のように /etc/services /etc/inetd.conf
には適切な記述が追加されたのを確認した。
/etc/services より抜粋
afbackup 2988/tcp # Afbackup system
afbackup 2988/udp # Afbackup system
/etc/inetd.conf より抜粋
afbackup stream tcp nowait root /usr/sbin/afserver -b server /etc/afbackup/serv
er.conf
念のため リブートしてから、ルートになって
#cartis 1;cartis -i 1 1
とカートリッジの数をシステムに教えてから、afclinet で(今教えたカートリッジの数を確認する
コマンドを打ってみたところ
# afclient -h localhost -q
Error: Cannot get the greeting message from server.
というエラー出力がされた。ps aux | grep afserver としてみると、サーバーが動いていないので
手でサーバーを立ち上げると
# afserver & ; -b オプションを付けても同じ結果だった
このときのサーバーのログを以下に示します。クライアントの方もログを取る設定にしてあるのですが
クライアントはログを吐きませんでした。
Sun Aug 1 18:23:24 1999, Warning: Could not get name of connected peer: Socket operatio
n on non-socket
sh: -c: line 1: syntax error near unexpected token `<unknown>'
sh: -c: line 1: `<unknown>'
Sun Aug 1 18:23:24 1999, Warning: Executing init command <unknown> returned exit status
512.
Sun Aug 1 18:23:24 1999, Warning: Could not get name of connected peer: Socket operatio
n on non-socket
sh: -c: line 1: syntax error near unexpected token `<unknown>'
sh: -c: line 1: `<unknown>'
Sun Aug 1 18:23:24 1999, Warning: Executing init command <unknown> returned exit status
512.
これを見ると、ネットワークの設定がおかしいような感じですが、他のネットワーク機能今のところ
きちんと使えています。
この状態で、再び、ローカルホストでクライアントを動かしても、先程と同じエラーが出るだけです。
バックアップ等他機能のオプションをクライアント起動時に付けても全く同じエラーが出ます。
# afclient -h localhost -X full_backup -k /etc/afbackup/cryptkey
Error: Cannot get the greeting message from server.
何が悪いのか、見当も見当もつき。御指導をおねがいします
最後に /etc/afbackup/{server|client}.conf を付けます
/etc/afbackup/server.conf
#
# DEVICE SPECIFICATION
# The device name (No-Rewind-Version !)
Backup-Device: /dev/nst0
#
# The blocksize of the device
Tape-Blocksize: 10240
#
# Flag, whether the device is a robot / cartridge handling system (0 or 1)
Cartridge-Handler: 0
#
# Insert your number of cartridges, whether you have a robot or not
Number Of Cartridges: 1
#
# The last cartridges of different cartridge sets, if requested.
# Default is 1 set with cartridges ranging from 1 up to the
# previous parameter. If e.g. 3 cartridge sets are requested:
# 1-3, 4-8, 9-10, supply here: 3 8 10
# If not all cartridges should be used, the last number may be
# smaller than the previous parameter
Last Cartridges: 1
#
# The maximum number of bytes per file on tape
Max Bytes Per File: 3000000
#
# Time to wait from the moment, a new cartridge has been inserted
# until a new action is attempted on the tape device
Cart-Insert-Gracetime: 30
#
# Time to wait while the device is unavailable until a mail is
# sent to the user in charge
Device Unavail Send mail after min: 0
#
# Time to wait while the device is unavailable until abort
Device Unavail give up after min: 1
#
# The interval in seconds for probing, if device is ready, when
# inserting another cartridge is requested. 0 for no probing.
Device-Probe Interval: 0
#
# SHELL-COMMANDS FOR TAPE HANDLING
# In these commands %d is replaced by the device name,
# %n by the number, if within the command the count starts with 1,
# %m by the number, if the count starts with 0.
# Command to set the file # on tape
SetFile-Command: sh -c "mt -f /dev/nst0 rewind && mt -f /dev/nst0 fsf %m"
#
# Command to skip to the next %n-th file on tape
SkipFiles-Command: mt -f /dev/nst0 fsf %n
#
# If there is a command to set the cartridge directly, supply it here
#Set-Cart-Command:
#
# If the cartridges can only by changed successively, insert the
Change-Cart-Command: mt -f /dev/nst0 rewoffl
#
# The command to erase the tape. This is necessary on some systems.
Erase-Tape-Command: mt -f /dev/nst0 erase
#
# CONFIGURATION FOR NON-EXISTING CARTRIDGE HANDLING SYSTEM
# The user to inform, if a cartridge should be changed manually
User To Inform: amt
#
# The mail-program to use.
# Insert %u for the position, where the username has to appear.
Mail-Program: cat > /dev/console
#
# FILES TO SAVE THE STATE AND LOGGINGS
# Filename to save the actual tape position
Tape-Pos-File: /var/lib/afbackup/tapepos
#
# Filename for error loggings etc.
Logging-file: /var/log/afbackup/server.backup.log
#
# Locking file to prevent several server starts
#Lock-file:
#
# The file with the authentication encryption key
Encryption-Key-File: /etc/afbackup/cryptkey
#
# CONFIGURATION FOR REMOTE_EXECUTION
# Directory, where remotely started programs must reside
Program-Directory: /usr/lib/afbackup/rexec
#
# SERVER-STARTUP AND SHUTDOWN ACTIONS
# shell-command to perform, when the server starts
Init-Command: %p
#
# shell-command to perform, when the server exits
Exit-Command: %p
/etc/afbackup/client.conf
#
# The backup server hosts
BackupHosts: localhost
#
# The backup server port-numbers
BackupPorts: 2988
#
# The cartridge sets to use
CartridgeSets: 1
#
# The compress and decompress programs, if desired.
CompressCmd: gzip -9
#
UncompressCmd: gunzip
#
# The part of the file, where the saved filenames
# are stored (current number appended)
IndexFilePart: /var/lib/afbackup/backup_log.
#
# Whether to compress the saved files
CompressBackupedFiles: 1
#
# Whether to compress the filename logfiles
CompressLogfiles: 1
#
# Patterns for names of files, no compression
# is attempted on
DoNotCompress: *.gz *.[zZ] *.tgz *.taz *.bz2 *.zip
#
# The number of such files, that are maintained.
# More (older ones) are removed.
NumIndexesToStore: 1
#
# The file where to log events
LoggingFile: /var/log/afbackup/client.backup.log
#
# The directory for varying files
VarDirectory: /var/lib/afbackup
#
# The file with the authentication encryption key
EncryptionKeyFile: /etc/afbackup/cryptkey
#
# The program to save startup information
StartupInfoProgram: sh -c "[ -d /var/log ] && touch /var/log/bumsgs && cat >> /var/log/bumsgs";sh -c "[ -d /var/logs ] && touch /var/logs/bumsgs && cat >> /var/logs/bumsgs"
#
# The program to be run before attempting a backup. If this program
# returns an exit status unequal to 0, no backup is performed.
#InitProgram:
#
# The program to be executed when everything requested is done.
# %l is replaced by the filename-logfile, %r by the file with
# the report statistics, %e by the overall exit status
ExitProgram: (echo [Afbackup]: Overall exit status: %e;echo " ";cat %r; uuencode %l `basename %l`)|mail root
#
# The directory, where to run the backup
RootDirectory: /
#
# Names of files to be skipped during the backup
# (wildcards are allowed)
FilesToSkip: *~ core
#
# Names of directories to be skipped during the backup
# (wildcards are allowed)
DirsToSkip: lost+found proc
#
# Name of a file containing a (pattern-) list of files
# and directories to be skipped during the backup
ExcludeListFile: .buexcl
#
# The number of parts of the full backup (if this takes a long time)
NumBackupParts: 1
#
# The subdirectories of the RootDirectory to backup
# (wildcards are allowed)
DirsToBackup: /../.