amcheckdump & xfsrestore

Bernhard Erdmann <[email protected]>
Newsgroups gmane.comp.archivers.amanda.user
Message-ID <[email protected]>
Hello,

amcheckdump does not know well xfsrestore on Linux / CentOS 7.

Two lines from
/tmp/amanda/server/be-weekly/amcheckdump.20211219163126.debug:

So Dez 19 16:31:31.502440996 2021: pid 5771: thd-0xf4c400: amcheckdump:
<XferDestApplication@0x2819020> spawning: '/sbin/xfsrestore' '-t' '-v'
'silent'

So Dez 19 16:31:31.524325240 2021: pid 5771: thd-0xf4c400: amcheckdump:
/opt/amanda/lib/amanda/perl/Amanda/Restore.pm:582:info:4900018
application stdout: /sbin/xfsrestore:
 ERROR: no source file(s) specified

I guess that a single "-" is missing when xfsrestore is called.

"man xfsrestore" states:

       -f source [ -f source ... ]
            Specifies a source of the dump to be restored.  This can be
the pathname of a device (such as a tape drive), a regular file or a
remote  tape  drive  (see rmt(8)).  This option must be omitted if the
standard input option (a lone - preceding the dest specification) is
specified.


$ amcheckdump be-weekly
1 volume(s) needed for restoration
The following volumes are needed: BE-weekly-01

Validating image james:/var dumped 20211219122951 level 0
Reading volume BE-weekly-01 file 1
application stderr: /sbin/xfsrestore: usage: xfsrestore [ -a <alt.
workspace dir> ... ]
application stderr:                                     [ -b <blocksize> ]
application stderr:                                     [ -c <media
change alert program>  ]
application stderr:                                     [ -e (don't
overwrite existing files) ]
application stderr:                                     [ -f <source> ... ]
application stderr:                                     [ -h (help) ]
application stderr:                                     [ -i (interactive) ]
application stderr:                                     [ -m (force
usage of minimal rmt) ]
application stderr:                                     [ -n <file>
(restore only if newer than) ]
application stderr:                                     [ -o (restore
owner/group even if not root) ]
application stderr:                                     [ -p <seconds
between progress reports> ]
application stderr:                                     [ -q <use QIC
tape settings> ]
application stderr:                                     [ -r (cumulative
restore) ]
application stderr:                                     [ -s <subtree> ... ]
application stderr:                                     [ -t (contents
only) ]
application stderr:                                     [ -v <verbosity
{silent, verbose, trace}> ]
application stderr:                                     [ -w (use small
tree window) ]
application stderr:                                     [ -A (don't
restore extended file attributes) ]
application stderr:                                     [ -B (restore
root dir owner/permissions) ]
application stderr:                                     [ -D (restore
DMAPI event settings) ]
application stderr:                                     [ -E (don't
overwrite if changed) ]
application stderr:                                     [ -F (don't
prompt) ]
application stderr:                                     [ -I (display
dump inventory) ]
application stderr:                                     [ -J (inhibit
inventory update) ]
application stderr:                                     [ -K (force use
of format 2 generation numbers) ]
application stderr:                                     [ -L <session
label> ]
application stderr:                                     [ -O <options
file> ]
application stderr:                                     [ -Q (force
interrupted session completion) ]
application stderr:                                     [ -R (resume) ]
application stderr:                                     [ -S <session id> ]
application stderr:                                     [ -T (don't
timeout dialogs) ]
application stderr:                                     [ -X <excluded
subtree> ... ]
application stderr:                                     [ -Y <I/O buffer
ring length> ]
application stderr:                                     [ - (stdin) ]
application stderr:                                     [ <destination> ]
1024 kb
/sbin/xfsrestore exited with status 1
17 images not validated.
amcheckdump.20211219163126.debug.txt (text/plain, 15.2 KB)
So Dez 19 16:31:26.734000527 2021: pid 5771: thd-0xf4c400: amcheckdump: pid 5771 ruid 33 euid 33 version 3.5.1: start at Sun Dec 19 16:31:26 2021
So Dez 19 16:31:26.734079805 2021: pid 5771: thd-0xf4c400: amcheckdump: Arguments: be-weekly
So Dez 19 16:31:26.734396952 2021: pid 5771: thd-0xf4c400: amcheckdump: reading config file /var/lib/amanda/be-weekly/amanda.conf
So Dez 19 16:31:26.734512841 2021: pid 5771: thd-0xf4c400: amcheckdump: reading config file /var/lib/amanda/amanda.conf.main
So Dez 19 16:31:26.736554294 2021: pid 5771: thd-0xf4c400: amcheckdump: pid 5771 ruid 33 euid 33 version 3.5.1: rename at Sun Dec 19 16:31:26 2021
So Dez 19 16:31:26.737519355 2021: pid 5771: thd-0xf4c400: amcheckdump: beginning trace log: /var/lib/amanda/be-weekly/log/log.20211219163126.0
So Dez 19 16:31:26.756621520 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:1303:success:4900002 1 volume(s) needed for restoration
The following volumes are needed: BE-weekly-01

So Dez 19 16:31:26.756999059 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/CheckDump.pm:316:info:2700005 Validating image james:/var dumped 20211219122951 level 0
So Dez 19 16:31:26.757427233 2021: pid 5771: thd-0xf4c400: amcheckdump: Amanda::Recovery::Clerk: loading volume 'BE-weekly-01'
So Dez 19 16:31:26.757648686 2021: pid 5771: thd-0xf4c400: amcheckdump: find_volume labeled 'BE-weekly-01'
So Dez 19 16:31:26.757723449 2021: pid 5771: thd-0xf4c400: amcheckdump: parse_inventory: load slot 1
So Dez 19 16:31:26.757805535 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Recovery/Scan.pm:420:info:1200000 slot 1
So Dez 19 16:31:26.770781336 2021: pid 5771: thd-0xf4c400: amcheckdump: Device is in variable block size
So Dez 19 16:31:29.200936979 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Recovery/Scan.pm:459:info:1200001 BE-weekly-01
So Dez 19 16:31:31.428948609 2021: pid 5771: thd-0xf4c400: amcheckdump: Amanda::Recovery::Clerk: successfully located first part for recovery
So Dez 19 16:31:31.501327179 2021: pid 5771: thd-0xf4c400: amcheckdump: Building type SPLIT_FILE header of 128-32768 bytes with name='james' disk='/var' dumplevel=0 and blocksize=0
So Dez 19 16:31:31.502332082 2021: pid 5771: thd-0xf4c400: amcheckdump: Starting <Xfer@0x27d3190 (<XferSourceRecovery@0x23f7000> -> <XferDestApplication@0x2819020>)>
So Dez 19 16:31:31.502397197 2021: pid 5771: thd-0xf4c400: amcheckdump: Final linkage: <XferSourceRecovery@0x23f7000> -(PULL_BUFFER)-> <XferElementGlue@0x27fa000> -(READFD)-> <XferDestApplication@0x2819020>
So Dez 19 16:31:31.502414440 2021: pid 5771: thd-0xf4c400: amcheckdump: setup_impl: 3, 1
So Dez 19 16:31:31.502440996 2021: pid 5771: thd-0xf4c400: amcheckdump: <XferDestApplication@0x2819020> spawning: '/sbin/xfsrestore' '-t' '-v' 'silent'
So Dez 19 16:31:31.503495762 2021: pid 5771: thd-0xf4c400: amcheckdump: xfer_queue_message: MSG: <XMsg@0x281fbb0 type=XMSG_READY elt=<XferSourceRecovery@0x23f7000> version=0>
So Dez 19 16:31:31.503839066 2021: pid 5771: thd-0x2811450: amcheckdump: pull_and_write
So Dez 19 16:31:31.504052433 2021: pid 5771: thd-0xf4c400: amcheckdump: Amanda::Recovery::Clerk: starting recovery
So Dez 19 16:31:31.506303235 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/CheckDump.pm:291:info:2700003 Reading volume BE-weekly-01 file 1
So Dez 19 16:31:31.506721091 2021: pid 5771: thd-0xf4c400: amcheckdump: Amanda::Recovery::Clerk: reading file 1 on 'BE-weekly-01'
So Dez 19 16:31:31.506919463 2021: pid 5771: thd-0xf4c400: amcheckdump: <XferDestApplication@0x2819020>: process exited with status 1
So Dez 19 16:31:31.506938923 2021: pid 5771: thd-0xf4c400: amcheckdump: xfer_queue_message: MSG: <XMsg@0x27ae410 type=XMSG_INFO elt=<XferDestApplication@0x2819020> version=0>
So Dez 19 16:31:31.506950441 2021: pid 5771: thd-0xf4c400: amcheckdump: xfer_queue_message: MSG: <XMsg@0x27f29e0 type=XMSG_ERROR elt=<XferDestApplication@0x2819020> version=0>
So Dez 19 16:31:31.506961285 2021: pid 5771: thd-0xf4c400: amcheckdump: xfer_queue_message: MSG: <XMsg@0x189e540 type=XMSG_CANCEL elt=<XferSourceRecovery@0x23f7000> version=0>
So Dez 19 16:31:31.506981259 2021: pid 5771: thd-0xf4c400: amcheckdump: xfer_queue_message: MSG: <XMsg@0x277e540 type=XMSG_DONE elt=<XferDestApplication@0x2819020> version=0>
So Dez 19 16:31:31.507626245 2021: pid 5771: thd-0xf4c400: amcheckdump: Cancelling <Xfer@0x27d3190 (<XferSourceRecovery@0x23f7000> -> <XferDestApplication@0x2819020>)>
So Dez 19 16:31:31.520315346 2021: pid 5771: thd-0x2811450: amcheckdump: sending XMSG_CRC message 0x2819020
So Dez 19 16:31:31.520341361 2021: pid 5771: thd-0x2811450: amcheckdump: pull_and_write CRC: 4946b4eb      size 1048576
So Dez 19 16:31:31.520353304 2021: pid 5771: thd-0x2811450: amcheckdump: xfer_queue_message: MSG: <XMsg@0x7f0418001500 type=XMSG_CRC elt=<XferDestApplication@0x2819020> version=0>
So Dez 19 16:31:31.520374996 2021: pid 5771: thd-0x2811450: amcheckdump: xfer_queue_message: MSG: <XMsg@0x7f0418001c00 type=XMSG_DONE elt=<XferElementGlue@0x27fa000> version=0>
So Dez 19 16:31:31.521400542 2021: pid 5771: thd-0xf4c400: amcheckdump: info: /sbin/xfsrestore exited with status 1
So Dez 19 16:31:31.521561640 2021: pid 5771: thd-0xf4c400: amcheckdump: dest_crc: 4946b4eb:1048576
So Dez 19 16:31:31.524325240 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:582:info:4900018 application stdout: /sbin/xfsrestore: ERROR: no source file(s) specified
So Dez 19 16:31:31.525188013 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:582:error:4900018 application stderr: /sbin/xfsrestore: usage: xfsrestore [ -a <alt. workspace dir> ... ]
So Dez 19 16:31:31.527075092 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:582:error:4900018 application stderr:                                     [ -b <blocksize> ]
So Dez 19 16:31:31.529463680 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:582:error:4900018 application stderr:                                     [ -c <media change alert program>  ]
So Dez 19 16:31:31.531917855 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:582:error:4900018 application stderr:                                     [ -e (don't overwrite existing files) ]
So Dez 19 16:31:31.533859792 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:582:error:4900018 application stderr:                                     [ -f <source> ... ]
So Dez 19 16:31:31.535625176 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:582:error:4900018 application stderr:                                     [ -h (help) ]
So Dez 19 16:31:31.537584808 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:582:error:4900018 application stderr:                                     [ -i (interactive) ]
So Dez 19 16:31:31.539933013 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:582:error:4900018 application stderr:                                     [ -m (force usage of minimal rmt) ]
So Dez 19 16:31:31.542482576 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:582:error:4900018 application stderr:                                     [ -n <file> (restore only if newer than) ]
So Dez 19 16:31:31.544974321 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:582:error:4900018 application stderr:                                     [ -o (restore owner/group even if not root) ]
So Dez 19 16:31:31.547316723 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:582:error:4900018 application stderr:                                     [ -p <seconds between progress reports> ]
So Dez 19 16:31:31.549355934 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:582:error:4900018 application stderr:                                     [ -q <use QIC tape settings> ]
So Dez 19 16:31:31.551344640 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:582:error:4900018 application stderr:                                     [ -r (cumulative restore) ]
So Dez 19 16:31:31.553128946 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:582:error:4900018 application stderr:                                     [ -s <subtree> ... ]
So Dez 19 16:31:31.554981423 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:582:error:4900018 application stderr:                                     [ -t (contents only) ]
So Dez 19 16:31:31.557364474 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:582:error:4900018 application stderr:                                     [ -v <verbosity {silent, verbose, trace}> ]
So Dez 19 16:31:31.559424033 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:582:error:4900018 application stderr:                                     [ -w (use small tree window) ]
So Dez 19 16:31:31.561896248 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:582:error:4900018 application stderr:                                     [ -A (don't restore extended file attributes) ]
So Dez 19 16:31:31.564226956 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:582:error:4900018 application stderr:                                     [ -B (restore root dir owner/permissions) ]
So Dez 19 16:31:31.566307203 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:582:error:4900018 application stderr:                                     [ -D (restore DMAPI event settings) ]
So Dez 19 16:31:31.568330294 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:582:error:4900018 application stderr:                                     [ -E (don't overwrite if changed) ]
So Dez 19 16:31:31.570041826 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:582:error:4900018 application stderr:                                     [ -F (don't prompt) ]
So Dez 19 16:31:31.571980912 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:582:error:4900018 application stderr:                                     [ -I (display dump inventory) ]
So Dez 19 16:31:31.573965739 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:582:error:4900018 application stderr:                                     [ -J (inhibit inventory update) ]
So Dez 19 16:31:31.576339319 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:582:error:4900018 application stderr:                                     [ -K (force use of format 2 generation numbers) ]
So Dez 19 16:31:31.578057739 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:582:error:4900018 application stderr:                                     [ -L <session label> ]
So Dez 19 16:31:31.579744431 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:582:error:4900018 application stderr:                                     [ -O <options file> ]
So Dez 19 16:31:31.581992694 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:582:error:4900018 application stderr:                                     [ -Q (force interrupted session completion) ]
So Dez 19 16:31:31.583549097 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:582:error:4900018 application stderr:                                     [ -R (resume) ]
So Dez 19 16:31:31.585080400 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:582:error:4900018 application stderr:                                     [ -S <session id> ]
So Dez 19 16:31:31.586897561 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:582:error:4900018 application stderr:                                     [ -T (don't timeout dialogs) ]
So Dez 19 16:31:31.588645530 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:582:error:4900018 application stderr:                                     [ -X <excluded subtree> ... ]
So Dez 19 16:31:31.590447042 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:582:error:4900018 application stderr:                                     [ -Y <I/O buffer ring length> ]
So Dez 19 16:31:31.591855147 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:582:error:4900018 application stderr:                                     [ - (stdin) ]
So Dez 19 16:31:31.593363491 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:582:error:4900018 application stderr:                                     [ <destination> ]
So Dez 19 16:31:31.593908367 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:1913:info:4900012 1024 kb
So Dez 19 16:31:31.594233214 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:1941:error:4900055 /sbin/xfsrestore exited with status 1
So Dez 19 16:31:31.594534837 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/Restore.pm:2174:error:4900068 /sbin/xfsrestore exited with status 1
So Dez 19 16:31:34.496547101 2021: pid 5771: thd-0xf4c400: amcheckdump: /opt/amanda/lib/amanda/perl/Amanda/CheckDump.pm:189:error:2700009 17 images not validated.
So Dez 19 16:31:34.496959401 2021: pid 5771: thd-0xf4c400: amcheckdump: ru_utime   : 0
So Dez 19 16:31:34.496976991 2021: pid 5771: thd-0xf4c400: amcheckdump: ru_stime   : 0
So Dez 19 16:31:34.496987076 2021: pid 5771: thd-0xf4c400: amcheckdump: ru_maxrss  : 34572
So Dez 19 16:31:34.496995891 2021: pid 5771: thd-0xf4c400: amcheckdump: ru_ixrss   : 0
So Dez 19 16:31:34.497004954 2021: pid 5771: thd-0xf4c400: amcheckdump: ru_idrss   : 0
So Dez 19 16:31:34.497013686 2021: pid 5771: thd-0xf4c400: amcheckdump: ru_isrss   : 0
So Dez 19 16:31:34.497022566 2021: pid 5771: thd-0xf4c400: amcheckdump: ru_minflt  : 10636
So Dez 19 16:31:34.497031294 2021: pid 5771: thd-0xf4c400: amcheckdump: ru_majflt  : 0
So Dez 19 16:31:34.497039956 2021: pid 5771: thd-0xf4c400: amcheckdump: ru_nswap   : 0
So Dez 19 16:31:34.497048614 2021: pid 5771: thd-0xf4c400: amcheckdump: ru_inblock : 0
So Dez 19 16:31:34.497057276 2021: pid 5771: thd-0xf4c400: amcheckdump: ru_oublock : 48
So Dez 19 16:31:34.497072179 2021: pid 5771: thd-0xf4c400: amcheckdump: ru_msgsnd  : 0
So Dez 19 16:31:34.497082116 2021: pid 5771: thd-0xf4c400: amcheckdump: ru_msgrcv  : 0
So Dez 19 16:31:34.497091224 2021: pid 5771: thd-0xf4c400: amcheckdump: ru_nsignals: 0
So Dez 19 16:31:34.497100254 2021: pid 5771: thd-0xf4c400: amcheckdump: ru_nvcsw   : 29
So Dez 19 16:31:34.497109357 2021: pid 5771: thd-0xf4c400: amcheckdump: ru_nivcsw  : 112
So Dez 19 16:31:34.497463194 2021: pid 5771: thd-0xf4c400: amcheckdump: pid 5771 finish time Sun Dec 19 16:31:34 2021
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.