I'm trying to test tape backup of a specific directory, made using:
xfsdump -l 0 -f /dev/nst0 -L "session label" -M "media label" -s mybackups /NFSMOUNT
Checking the dump contents succeeds without errors:
xfsrestore -f /dev/nst0 -t
But when to restore the dump, I get:
xfsrestore -f /dev/nst0 -i .
xfsrestore: ERROR: unexpected tape error: errno 16 nread -1 blksz 1048576 recsz 1048576 isvar 1 wasatbot 1 eod 0 fmk 0 eot 0 onl 1 1 wprot 0 ew 0