Re: Amanda 2.5.1p3 gnutar permissions trouble

2007-06-08 Thread Jean-Louis Martineau

The amanda users also need rx on the directory.

Jean-Louis

Jordan Desroches wrote:
I would love to run AMANDA directly on our Netapp filer, but can't :( 
Root is not being squashed, and I'm able to successfully backup 
/tfs/common/thayer-images when thayer-images is the NFS mount-point 
(report attached below). However, when /tfs/common is the mount point, 
I can backup  /tfs/common, but if I specify the subdirectory 
/tfs/common/thayer-images Amcheck (and amdump) throws the permissions 
error. I'm able to tar this directory manually as root.


Any ideas? Perhaps this is a NFS/NETAPP problem more than a AMANDA 
problem? Or is AMANDA executing tar in such a way as would throw this 
kind of error?


Thanks!

Jordan

These dumps were to tape archival-001.
The next tape Amanda expects to use is: a new tape.


STATISTICS:
  Total   Full  Incr.
      
Estimate Time (hrs:min)0:00
Run Time (hrs:min) 0:20
Dump Time (hrs:min)0:12   0:12   0:00
Output Size (meg)   28940.628940.60.0
Original Size (meg) 28940.628940.60.0
Avg Compressed Size (%) -- -- --
Filesystems Dumped1  1  0
Avg Dump Rate (k/s) 39557.739557.7--

Tape Time (hrs:min)0:06   0:06   0:00
Tape Size (meg) 28940.628940.60.0
Tape Used (%)   7.27.20.0
Filesystems Taped 1  1  0

Chunks Taped  0  0  0
Avg Tp Write Rate (k/s) 76518.776518.7--

USAGE BY TAPE:
  Label  Time  Size  %NbNc
  archival-001   0:0628941M7.2 1 0


NOTES:
  planner: Adding new disk ts:/tfs/common/thayer-images.
  taper: tape archival-001 kb 29635200 fm 1 [OK]


DUMP SUMMARY:
   DUMPER STATS   
TAPER STATS
HOSTNAME DISKL ORIG-MB  OUT-MB  COMP%  MMM:SS   KB/s 
MMM:SS   KB/s
-- - 
-
ts   -yer-images 0   28941   28941--12:29 39557.7   6:27 
76518.6


(brought to you by Amanda version 2.5.1p3)




Olivier Nicole wrote:
I'm running into a problem with permissions when backing up a nfs 
mount.

I'm using gnutar, and while I can backup the entire mount just fine, if
I try to put just a subdirectory of the mount in the disklist, I get
"Permission Denied" errors from amcheck and amdump. Any ideas as to 
what

I'm doing wrong? The OS is Ubuntu Linux 7.04. Thanks all!


Eventually, consider backuping directly from the NFS server. I am
afraid that backup though NFS is pretty unefficient.

I try to have my DLE corresponding to machines where the physical
disks are.

Bests,

Olivier





Re: Amanda 2.5.1p3 gnutar permissions trouble

2007-06-08 Thread Jordan Desroches
I would love to run AMANDA directly on our Netapp filer, but can't :( 
Root is not being squashed, and I'm able to successfully backup 
/tfs/common/thayer-images when thayer-images is the NFS mount-point 
(report attached below). However, when /tfs/common is the mount point, I 
can backup  /tfs/common, but if I specify the subdirectory 
/tfs/common/thayer-images Amcheck (and amdump) throws the permissions 
error. I'm able to tar this directory manually as root.


Any ideas? Perhaps this is a NFS/NETAPP problem more than a AMANDA 
problem? Or is AMANDA executing tar in such a way as would throw this 
kind of error?


Thanks!

Jordan

These dumps were to tape archival-001.
The next tape Amanda expects to use is: a new tape.


STATISTICS:
  Total   Full  Incr.
      
Estimate Time (hrs:min)0:00
Run Time (hrs:min) 0:20
Dump Time (hrs:min)0:12   0:12   0:00
Output Size (meg)   28940.628940.60.0
Original Size (meg) 28940.628940.60.0
Avg Compressed Size (%) -- -- --
Filesystems Dumped1  1  0
Avg Dump Rate (k/s) 39557.739557.7--

Tape Time (hrs:min)0:06   0:06   0:00
Tape Size (meg) 28940.628940.60.0
Tape Used (%)   7.27.20.0
Filesystems Taped 1  1  0

Chunks Taped  0  0  0
Avg Tp Write Rate (k/s) 76518.776518.7--

USAGE BY TAPE:
  Label  Time  Size  %NbNc
  archival-001   0:0628941M7.2 1 0


NOTES:
  planner: Adding new disk ts:/tfs/common/thayer-images.
  taper: tape archival-001 kb 29635200 fm 1 [OK]


DUMP SUMMARY:
   DUMPER STATS   TAPER 
STATS
HOSTNAME DISKL ORIG-MB  OUT-MB  COMP%  MMM:SS   KB/s MMM:SS 
  KB/s
-- - 
-

ts   -yer-images 0   28941   28941--12:29 39557.7   6:27 76518.6

(brought to you by Amanda version 2.5.1p3)




Olivier Nicole wrote:

I'm running into a problem with permissions when backing up a nfs mount.
I'm using gnutar, and while I can backup the entire mount just fine, if
I try to put just a subdirectory of the mount in the disklist, I get
"Permission Denied" errors from amcheck and amdump. Any ideas as to what
I'm doing wrong? The OS is Ubuntu Linux 7.04. Thanks all!


Eventually, consider backuping directly from the NFS server. I am
afraid that backup though NFS is pretty unefficient.

I try to have my DLE corresponding to machines where the physical
disks are.

Bests,

Olivier



Re: Amanda 2.5.1p3 gnutar permissions trouble

2007-06-08 Thread Olivier Nicole
> I'm running into a problem with permissions when backing up a nfs mount.
> I'm using gnutar, and while I can backup the entire mount just fine, if
> I try to put just a subdirectory of the mount in the disklist, I get
> "Permission Denied" errors from amcheck and amdump. Any ideas as to what
> I'm doing wrong? The OS is Ubuntu Linux 7.04. Thanks all!

Eventually, consider backuping directly from the NFS server. I am
afraid that backup though NFS is pretty unefficient.

I try to have my DLE corresponding to machines where the physical
disks are.

Bests,

Olivier


Re: Amanda 2.5.1p3 gnutar permissions trouble

2007-06-08 Thread Paul Bijnens
On 2007-06-07 03:48, Jordan Desroches wrote:
> Hi fellow users :)
> 
> I'm running into a problem with permissions when backing up a nfs mount.
> I'm using gnutar, and while I can backup the entire mount just fine, if
> I try to put just a subdirectory of the mount in the disklist, I get
> "Permission Denied" errors from amcheck and amdump. Any ideas as to what
> I'm doing wrong? The OS is Ubuntu Linux 7.04. Thanks all!

Are you running into the "root_squash" problem?  Root on the client
is normally mapped to the user "nobody" on the server.  And that
user "nobody" is probably getting the "permission denied" error
when trying to access the directory.

I just updated the wiki there:
http://wiki.zmanda.com/index.php/How_To:Backup_Partitions_Mounted_via_NFS

Are you 100% sure that "backing up the entire mount" succeeded (or
did Amanda exclude everything below the mountpoint :-) ).


-- 
Paul Bijnens, xplanation Technology ServicesTel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUMFax  +32 16 397.512
http://www.xplanation.com/  email:  [EMAIL PROTECTED]
***
* 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, *
* init 0, kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out  *
***



Re: Amanda 2.5.1p3 gnutar permissions trouble

2007-06-07 Thread Jordan Desroches
No, no automounters. Here is the amcheck failure when trying to access a 
directory underneath the mount point:


Amanda Backup Client Hosts Check

ERROR: tardis: [could not access /tfs/common/backups 
(/tfs/common/backups): Permission denied]

Client check: 1 host checked in 0.019 seconds, 1 problem found

and an excerpt from that debug file:

OPTIONS features=feff9ffeff7f;
ERROR [could not access /tfs/common/backups (/tfs/common/backups): 
Permission denied]


And the successful amcheck when trying to backup the entire mount point 
(/tfs/common):


Amanda Backup Client Hosts Check

Client check: 1 host checked in 0.019 seconds, 0 problems found


/tfs is on the local system, and /tfs/common (and everything underneath 
that) is NFS mounted from our NetApp filer.


Thanks,

Jordan



Dustin J. Mitchell wrote:

On Wed, Jun 06, 2007 at 09:48:51PM -0400, Jordan Desroches wrote:
I'm running into a problem with permissions when backing up a nfs mount. I'm using gnutar, and while I can backup the entire mount just fine, if I try to put just a subdirectory of 
the mount in the disklist, I get "Permission Denied" errors from amcheck and amdump. Any ideas as to what I'm doing wrong? The OS is Ubuntu Linux 7.04. Thanks all!


Hmm - at a guess, are you using an automounter?  Could you paste the
errors themselves, and any relevant debug files?

Dustin

P.S. Please consult, and feel free to update, the wiki page on the
topic:
  http://wiki.zmanda.com/index.php/How_To:Backup_Partitions_Mounted_via_NFS



Re: Amanda 2.5.1p3 gnutar permissions trouble

2007-06-07 Thread Dustin J. Mitchell
On Wed, Jun 06, 2007 at 09:48:51PM -0400, Jordan Desroches wrote:
> I'm running into a problem with permissions when backing up a nfs mount. I'm 
> using gnutar, and while I can backup the entire mount just fine, if I try to 
> put just a subdirectory of 
> the mount in the disklist, I get "Permission Denied" errors from amcheck and 
> amdump. Any ideas as to what I'm doing wrong? The OS is Ubuntu Linux 7.04. 
> Thanks all!

Hmm - at a guess, are you using an automounter?  Could you paste the
errors themselves, and any relevant debug files?

Dustin

P.S. Please consult, and feel free to update, the wiki page on the
topic:
  http://wiki.zmanda.com/index.php/How_To:Backup_Partitions_Mounted_via_NFS

-- 
Dustin J. Mitchell
Storage Software Engineer, Zmanda, Inc.
http://www.zmanda.com/


Amanda 2.5.1p3 gnutar permissions trouble

2007-06-06 Thread Jordan Desroches

Hi fellow users :)

I'm running into a problem with permissions when backing up a nfs mount. 
I'm using gnutar, and while I can backup the entire mount just fine, if 
I try to put just a subdirectory of the mount in the disklist, I get 
"Permission Denied" errors from amcheck and amdump. Any ideas as to what 
I'm doing wrong? The OS is Ubuntu Linux 7.04. Thanks all!


Jordan