Amanda-Users

Re: Q: Backing up Netware3 via ncpfs?

2003-06-13 09:15:12
Subject: Re: Q: Backing up Netware3 via ncpfs?
From: Paul Bijnens <paul.bijnens AT xplanation DOT com>
To: Dave Ewart <Dave.Ewart AT cancer.org DOT uk>
Date: Fri, 13 Jun 2003 15:11:13 +0200
Oops!!!
Following up on myself again :-)

Dave Ewart wrote:
On Friday, 13.06.2003 at 12:49 +0200, Paul Bijnens wrote:


A stat of one of the files on the ncp filesystem looks like this:

File: "pm-net2.ini"
Size: 14025 Blocks: 28 IO Block: -4611692065741340160 Regular File Device: 15h/21d Inode: 1517 Links: 1 Access: (0444/-r--r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: Wed Jun 11 00:00:00 2003
Modify: Wed Jun  4 12:08:00 2003
Change: Tue Jun  3 11:07:06 2003

This file, according to its timestamp was changed at 12:08 on June 4th.

The mtime + the inode number are compared by gnutar.
Maybe linux fakes inodes for ncpmounts and maybe they don't stay
constant between mounts.
Have a look at the files in gnutar-lists. They look like:

35651587 423837 ./lant/lib
35651587 891648 ./lant24/var/spool/data/in
35651587 341248 ./lant24/Nl-Fr
35651587 522880 ./lant24/En-SN/lib
35651587 181633 ./lant/En-Es

The first number is the mtime (in seconds since epoch), the second

I was too fast.  The first number on each line is the device number.
The timestamp is the very first line (a number alone).
The mtime of each file is compared to that single timestamp only.

number is the inode number, followed by the filename.
You find files named:  (in perl notation:)
        $host . "_" . ($dir =~ s!/!_!g) . $level
A e.g. host__0 for the level 0 backup of the root filesystem.
A level 1 backup is compared to the status of the last level 0 backup.


Hmmm - the 'seconds since epoch' is clearly wrong for all the Netware
gnutar lists (it is showing 0, rather than something corresponding

There are some comments in the gnutar source about handling nfs
special: the device name is ignored in this case, so that all nfs
mounted files are assumed to be one big filesystem.
Maybe ncpmounts get the same behaviour?  (And get devicenumber 0
to indicate it is an nfs-or-alike device)

approximately to 'this year').  Seems like the Netware mount is getting
a rogue timestamp which is making AMANDA think everything is new.

Your help has been useful - you may have directed me towards the real
problem.  Now all I need to do is figure out the right way to mount the
Netware filesystems ...

Thanks Paul,

Not yet :-)


Dave.


--
Paul Bijnens, Xplanation                            Tel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM    Fax  +32 16 397.512
http://www.xplanation.com/          email:  Paul.Bijnens AT xplanation DOT com
***********************************************************************
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, F6, *
* quit,  ZZ, :q, :q!,  M-Z, ^X^C,  logoff, logout, close, bye,  /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* kill -9 1,  Alt-F4,  Ctrl-Alt-Del,  AltGr-NumLock,  Stop-A,  ...    *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out          *
***********************************************************************