Amanda-Users

Re: How can I split up a large disk partition?

2004-02-07 17:11:50
Subject: Re: How can I split up a large disk partition?
From: stan <stanb AT panix DOT com>
To: amanda-users AT amanda DOT org
Date: Sat, 7 Feb 2004 17:05:49 -0500
On Fri, Feb 06, 2004 at 10:25:06PM -0500, Gene Heskett wrote:
> On Friday 06 February 2004 19:49, stan wrote:
> >On Fri, Feb 06, 2004 at 02:44:24PM -0500, Gene Heskett wrote:
> >> On Friday 06 February 2004 13:51, stan wrote:
> >> >On Fri, Feb 06, 2004 at 03:48:38PM +0100, Paul Bijnens wrote:
> >> >> stan wrote:
> >> >> >define dumptype comp-user-no-compress {
> >> >> >    comment "Non-root partitions on reasonably fast machines"
> >> >> >       index
> >> >> >       maxdumps 3
> >> >> >    priority medium
> >> >> >}
> >> >> >
> >> >>  > black ads1e/kz ad1s1e {
> >> >> >
> >> >> >       exclude "./[A-K]*"
> >> >> >       user-tar-no-compress
> >> >> >       } 2 local
> >> >>
> >> >> You still seem to be referencing user-tar-no-compress (not
> >> >> included in your mail), and you still have the entries in the
> >> >> wrong sequence.
> >> >
> >> >Soryy, cut and paste errreor. Here it is:
> >> >
> >> >
> >> >define dumptype user-tar-no-compress {
> >> >    program "GNUTAR"
> >> >    index
> >> >    compress none
> >> >    comment "user partitions dumped with tar"
> >> >    priority medium
> >> >}
> >> >
> >> >And they should be in the disklist like this:
> >> >
> >> >black ads1e/kz ad1s1e {
> >> >  exclude "./[A-K]*"
> >> >  user-tar-no-compress
> >> >  } 2 local
> >> >black ads1e/ak ad1s1e {
> >> >  include "./[A-K]*"
> >> >  user-tar-no-compress
> >> >  } 2 local
> >> ># black ad2s1e comp-user-no-compress 3 local
> >> >black ads2e/kz ad2s1e {
> >> >  exclude "./[A-K]*"
> >> >  user-tar-no-compress
> >> >  } 3 local
> >> >black ads2e/ak ad2s1e {
> >> >  include "./[A-K]*"
> >> >  user-tar-no-compress
> >> >  } 3 local
> >> >
> >> >Thansk for the help. Once a day test runs, are a bit furstrating
> >> > :-)
> >>
> >> Your excludes and includes are STILL out of order.  They MUST
> >> follow the included dumptype, not preceed it.
> >
> >OH, I thought you meant the include, and exclude directives.
> >
> >Thanks, I've fixed that.
> 
> Ok, now what does an 'su amanda -c "amcheck /yourconfigname/"' without 
> the single quotes and subbing /yourconfigname/ with the configname 
> you used, show?

OK, I've comletly broken it at this point in time :-(

To answer you specific question:

$ amcheck DailyDump
....
ERROR: black: [Can't open disk 'ad2s1e']
ERROR: black: [No include for 'ads2e/ak']
ERROR: black: [Can't open disk 'ad2s1e']
ERROR: black: [No include for 'ads2e/kz']
ERROR: black: [Can't open disk 'ad1s1e']
ERROR: black: [No include for 'ads1e/ak']
ERROR: black: [Can't open disk 'ad1s1e']
ERROR: black: [No include for 'ads1e/kz']


and here's the disks on that machine:

-ksh93: bdf: not found [No such file or directory]
$ df
Filesystem        1K-blocks     Used    Avail Capacity  Mounted on
/dev/ad0s1a          128990    49866    68806    42%    /
/dev/ad0s1f          257998     3292   234068     1%    /tmp
/dev/ad0s1g        37398386 11110464 23296052    32%    /usr
/dev/ad0s1e          257998    47744   189616    20%    /var
procfs                    4        4        0   100%    /proc
/dev/ad1s1e       116917611 25219352 82344851    23%
/usr/local/www/data/WAVS
/dev/ad2s1e       116917611 20439488 87124715    19%
/usr/local/www/data/MUSI
C
/dev/ad3s1e        39576738  6911990 29498610    19%    /dumpdisk
/dev/ad6s1e       116917611 22594625 84969578    21%    /spare

and gere are teh premissions on one of them:

$ ls -l /dev/ad2s1e
crw-r-----  2 root  operator  116, 0x00020014 Jan 18 15:12 /dev/ad2s1e

Yes, Amanda is a ember of the group operator.

Here's teh dumptype def:

define dumptype user-tar-no-compress {
    program "GNUTAR"
        index
        compress none
        priority medium
}

Here is what I have in the disklist:

black ads1e/kz ad1s1e {
        user-tar-no-compress
                include "./[!A-K]*"
                } 2 local
black ads1e/ak ad1s1e {
                user-tar-no-compress
                include "./[A-K]*"
                } 2 local
# black ad2s1e comp-user-no-compress 3 local
black ads2e/kz ad2s1e {
        user-tar-no-compress
                include "./[!A-K]*"
                } 3 local
black ads2e/ak ad2s1e {
                user-tar-no-compress
                include "./[A-K]*"
                } 3 local

Sorry to be so dense on this. But what have I got wrong now?!

-- 
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
                                                -- Benjamin Franklin