Ivan Rayner wrote:
>
> On Mon, 28 May 2001, Bernhard R. Erdmann wrote:
>
> > Hi,
> >
> > xfsrestore for Linux in test mode (-t) stops at the beginning if CWD is
> > not on a XFS filesystem:
>
> This is a known problem in xfsrestore which has been there since day 1 in
> IRIX. It has only been a minor inconvenience in IRIX, since few sites
> would use XFS and EFS together on the same system, but obviously it's a
> bigger issue in Linux.
>
> I'll create an entry in SGI's internal bug database for this, and I'm sure
> it'll get dealt with in due course.
>
> Of course, the workaround for this would be to convert /tmp to XFS. :)
I've patched amverify (2.4.2p2) to do the trick. It cds to /tmp/amanda
(on XFS) prior to start xfsrestore being fed by the xfsdump image:
--- /usr/sbin/amverify.orig Mon May 21 22:48:37 2001
+++ /usr/sbin/amverify Sat Jun 2 00:20:19 2001
@@ -307,6 +307,12 @@
# DEFECTS defect list
# REPORT report for mail
+if [ -d /tmp/amanda ]; then
+ cd /tmp/amanda
+else
+ echo "no dir /tmp/amanda"
+ exit 1
+fi
TEMP=/tmp/amanda/amverify.$$
trap 'rm -fr $TEMP' 0
if ( umask 077 ; mkdir $TEMP ) ; then
Ok, it's not the nice, general, amverify.in,
testing-for-OS-and-xfsrestore solution but it works for me.
|