On Thursday 08 November 2018 12:40:37 Chris Miller wrote:
> Hi Gene,
>
> > From: "Gene Heskett" <[email protected]>
> > To: "amanda-users" <[email protected]>
> > Sent: Wednesday, November 7, 2018 12:16:36 PM
> > Subject: Re: Can AMANDA be configured "per client"?
> >
> > A few questions here:
> > How did you build amamda? [here, as the user amanda, always
> > configure driven by the same script shown here:]
> > =======================================
>
> I installed from RPM: amanda-backup_server-3.5.1-1.rhel7.x86_64.rpm
>
> A brief description:
>
> I have NAS storage available to AMANDA as /net/nas1/d0/Mail.TCLC.org.
> In an effort to generalize, this is symlinked as "dst" from the config
> directory, /etc/amanda/mail.tclc.org, vis:
>
> bash-4.2$ ls -al /etc/amanda/mail.tclc.org/
>
> lrwxrwxrwx. 1 root root 26 Nov 6 07:02 dst ->
> /net/nas1/d0/Mail.TCLC.org
>
>
> bash-4.2$ ls -l /net/nas1/d0/Mail.TCLC.org/
>
> -rwxr-xr-x. 1 amandabackup disk 1110 Nov 8 09:12 state
> drwxr-xr-x. 2 amandabackup disk 0 Nov 5 10:17 vtape.00
>
> drwxr-xr-x. 2 amandabackup disk 0 Nov 5 10:17 vtape.62
>
> When I run amlabel: amlabel mail.tclc.org Mail.TCLC.org.00 slot
> vtape.00
>
If there is nothing precious on that NAS now, take a look at the mkvtapes
script in the GenesAmandaHelper I just made available on my web page. In
my case the slots directories are the vtapes, and amanda manipulates the
linkage of "data" to the slot to be used, as in "data" is a soft link to
the slot-number it is going to use as a vtape for this run.
Grab the file from my site in the sig, out of the Genes-os9-stf link from
the front page, look at the header will less which will show you how to
unpack it. Position your shell/terminal at the root of your file system
and run the line from the header, filling in the blanks between the < >
with the filename. Then either unpack it which will create the directory
if you've perms to do it, becomeing root is probably sufficient. Then do
a chown amanda:disk on the directories contents, then step into the
created directory and look at mkvtapes to see how I do it. Change the
path to the NAS, and with a bit of luck it might work, but more than
likely will need to chown the NAS to amanda:disk to give you permissions
when su'd to amanda.
I actually have a user amanda, and I build amanda in that home directory
using the script I posted here a couple or 3 days back. called gh.cf
here. If you don't have a user amanda, check and see if backup will
work, but since I build the amanda from source in the /home/amanda
directory I have a real user amanda but no passwd set.
When working on this I do a sudo -i to get root, then su amanda to do any
editing, otherwise you may accidentally give something to root, which is
a no-no.
Adjust the number of vtapes in that script and figure on as many vtapes
as can be fitted in the NAS at the size stated in your
$config/amanda.conf. You should wind up with a Dailys/slot-(number)
array, with "data" being a softlink to slot-00. At that point amanda can
handle the rest of it.
> Reading label...
> Slot vtape.00 not found
> Slot vtape.00 not found
>
> I apparently do not understand the whole "vtape" thing at all... At a
> minimum, I don't see where the config declares my "slots" as having
> names "vtape.{00..62}"
vtape is essentially nothing but slanguage to indicate your "tape" is a
directory on a hard drive. It is not actually used by amanda. Amanda
expects in my case to always write to $path/to/your/storage/Dailys/data.
This gets manipulated by this entry in your $config/amanda.conf
TPCHANGER "chg-disk:/amandatapes/Dailys"
the pathname name to the right of the : is arbitrary, as long as the rest
of the configurtion matches.
There's probably more, in which case yelp at me here.
> Thanks for the help,
NP, so far & thank you!
Copyright 2018 by Maurice E. Heskett
--
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>