Amanda-Users

Re: globbing

2009-10-20 11:09:49
Subject: Re: globbing
From: Brian Cuttler <brian AT wadsworth DOT org>
To: Jean-Louis Martineau <martineau AT zmanda DOT com>
Date: Tue, 20 Oct 2009 11:00:39 -0400
Jean-Louis,

I reconfigured one of my globs to use dumptype zfs-snapshot
rather than user-tar. Backups ran well but I believe that we
did a single snapshot of /export/home rather than a snapshot
of /export/home/a* for each of the 'a' directories.

I think this because when I look on the client system in the
/tmp/amanda/client directory, at the Amzfs_snapshot.20091019*.debug
files I see sepatate zfs snapshots for things like /export/samba/<shares>
but only the single snapshot for /export/home and not unique snapshots
for 

[finsen/tmp/amanda/client] cd /export/home
[finsen/export/home] ls -ld a*
drwxr-xr-x   2 agaupel  users          4 Aug 25 09:46 agaupel
drwxr-xr-x   2 along    users          4 Sep 11 13:37 along
drwxr-xr-x   5 amanda   sys           12 Sep 24 13:46 amanda
drwxrwxr-x   2 daver    root           3 Aug 27 15:44 amandaScript
drwxr-xr-x   2 anarmand users          4 Sep 23 09:37 anarmand
drwxr-xr-x   2 aroselan users          4 Oct 15 10:46 aroselan

While this may work fine for a limited number of a* directories
I'm afraid of what will happen if I again try to produce a
snapshot for the b* directories.

It may be that the snapshot create fails after the first successfull
attempt, but what happens when the first glob completes dumping and
attempts to remove the snapshot ?

I will revert that glob to user-tar dumptype for the time being.

                                                thank you,

                                                Brian

On Mon, Oct 19, 2009 at 10:42:40AM -0400, Brian Cuttler wrote:
> 
> Jean,
> 
> Sorry for the delay, wanted to make sure the house was in 
> order after my return.
> 
> Will schedule a test on a single glob (not all 26 of them)
> for tonight and see if we can't tell what happens.
> 
> On Tue, Oct 13, 2009 at 02:35:41PM -0400, Jean-Louis Martineau wrote:
> > Brian,
> > 
> > It should create a different snapshot for each DLE, if not, then it is a 
> > missing feature of amzfs-snapshot.
> > Can you test it and confirm it it works or not?
> > 
> > Jean-Louis
> > 
> > Brian Cuttler wrote:
> > >Jean-Louis,
> > >
> > >  
> > >>This will create two snapshot of /export/home, if they include the 
> > >>subdirs, then it should works.
> > >>It must be tried.
> > >>    
> > >
> > >but if the snapshots have the same name, /export/home-amanda current,
> > >then the second, 3rd... will fail. I have to wonder what happens to
> > >uncompleted dumps when the first dump completes and attempts to destroy
> > >the snapshot.
> > >
> > >--
> > >
> > >I've been away (10-days in Germany) and I no longer recall if
> > >I was afraid of leaving as largely untested globing config behind.
> > >
> > >I left it with dumptype user-tar rather than zfs-snapshot and we
> > >have been successfull.
> > >
> > >I have to note however that the zfs manager is running a nightly
> > >snapshot of the zfs mount points each day. A 5/weekly recursive
> > >snapshot of the pool, where each new "monday" snapshot destroyes
> > >the old and creates a new one. We still have snapshots, but not
> > >through amanda. I believe the idea was to allow user directed
> > >file recovery, since old files will remain available for 7 days.
> > >
> > >I may give this (zfs-snapshot) a try in this config now that I
> > >am back. If so I will let you know the result. Dangerous to assume
> > >I've tested and not resported.
> > >
> > >                                           thank you,
> > >
> > >                                           Brian
> > >
> > >On Wed, Sep 30, 2009 at 10:53:51AM -0400, Jean-Louis Martineau wrote:
> > >  
> > >>Brian Cuttler wrote:
> > >>    
> > >>>Using amanda 2.6.1 on Solaris 10 (server x86, client Sparc)
> > >>>
> > >>>I currently have entries in the disklist like these, currently
> > >>>there are 55+ entries.
> > >>>
> > >>>finsen  /export/home/agaupel    zfs-snapshot
> > >>>finsen  /export/home/along      zfs-snapshot
> > >>>finsen  /export/home/amanda     zfs-snapshot
> > >>>finsen  /export/home/bhowland   zfs-snapshot
> > >>>finsen  /export/home/brainard   zfs-snapshot
> > >>>finsen  /export/home/cbryant    zfs-snapshot
> > >>>finsen  /export/home/cchen      zfs-snapshot
> > >>>finsen  /export/home/dkim       zfs-snapshot
> > >>>finsen  /export/home/dmuller    zfs-snapshot
> > >>>
> > >>>Each user directory is its own zfs mount point.
> > >>>
> > >>>Can I successfully replace them with entries like this ?
> > >>>
> > >>>I think this will do what I think it does, because I do it
> > >>>on other machines, but the zfs-snapshot is a new addition
> > >>>to this structure.
> > >>>
> > >>>finsen  /export/home-A /export/home  {
> > >>>       zfs-snapshot
> > >>>       include "./[a]*"
> > >>>       }
> > >>>
> > >>>finsen  /export/home-B /export/home  {
> > >>>       zfs-snapshot
> > >>>       include "./[b]*"
> > >>>       }
> > >>> 
> > >>>      
> > >>This will create two snapshot of /export/home, if they include the 
> > >>subdirs, then it should works.
> > >>It must be tried.
> > >>
> > >>Jean-Louis
> > >>
> > >>    
> > >---
> > >   Brian R Cuttler                 brian.cuttler AT wadsworth DOT org
> > >   Computer Systems Support        (v) 518 486-1697
> > >   Wadsworth Center                (f) 518 473-6384
> > >   NYS Department of Health        Help Desk 518 473-0773
> > >
> > >
> > >
> > >IMPORTANT NOTICE: This e-mail and any attachments may contain
> > >confidential or sensitive information which is, or may be, legally
> > >privileged or otherwise protected by law from further disclosure.  It
> > >is intended only for the addressee.  If you received this in error or
> > >from someone who was not authorized to send it to you, please do not
> > >distribute, copy or use it or any attachments.  Please notify the
> > >sender immediately by reply e-mail and delete this from your
> > >system. Thank you for your cooperation.
> > >
> > >
> > >  
> > 
> ---
>    Brian R Cuttler                 brian.cuttler AT wadsworth DOT org
>    Computer Systems Support        (v) 518 486-1697
>    Wadsworth Center                (f) 518 473-6384
>    NYS Department of Health        Help Desk 518 473-0773
> 
> 
> 
> IMPORTANT NOTICE: This e-mail and any attachments may contain
> confidential or sensitive information which is, or may be, legally
> privileged or otherwise protected by law from further disclosure.  It
> is intended only for the addressee.  If you received this in error or
> from someone who was not authorized to send it to you, please do not
> distribute, copy or use it or any attachments.  Please notify the
> sender immediately by reply e-mail and delete this from your
> system. Thank you for your cooperation.
> 
> 
---
   Brian R Cuttler                 brian.cuttler AT wadsworth DOT org
   Computer Systems Support        (v) 518 486-1697
   Wadsworth Center                (f) 518 473-6384
   NYS Department of Health        Help Desk 518 473-0773



IMPORTANT NOTICE: This e-mail and any attachments may contain
confidential or sensitive information which is, or may be, legally
privileged or otherwise protected by law from further disclosure.  It
is intended only for the addressee.  If you received this in error or
from someone who was not authorized to send it to you, please do not
distribute, copy or use it or any attachments.  Please notify the
sender immediately by reply e-mail and delete this from your
system. Thank you for your cooperation.



<Prev in Thread] Current Thread [Next in Thread>