"John R. Jackson" wrote:

> >Can't determine disk and mount point from $CWD
>
> Amanda takes your current working directory ($CWD) and tries to figure
> out what disk it is related to in disklist on the assumption you started
> amrecover from the client and disk you want to do the restore into.
> The message says it was not able to do that, which could be caused by
> any number of things.
>

I tried to set CWD as an environment variable in a variety of shells (bash,
csh, ksh)
export CWD=`pwd`
.... but alas I still got the complaint, "Can't determine disk and mount
point from $CWD"

>
> What disklist entry do you think should match your current working
> directory?

I am testing with the root directory of my workstation "clark, a Red Hat 7.0
PC"  clark is my amanda server,
index server and tape server.  Using amdump with (index = yes) I dumped
/dev/hda1, the root partition.
>From the "/" directory I executed amrecover.  At the amrecover> prompt I
tried to set my disk with
the following results:
# amrecover -C Weekly -s clark -t clark -d /dev/nst0
AMRECOVER Version 2.4.2p1. Contacting server on clark. ...
220 clark AMANDA index server (2.4.1p1) ready.
200 Access OK
Setting restore date to today (2001-03-29)
200 Working date set to 2001-03-29.
200 Config set to Weekly.
200 Dump host set to clark.
Can't determine disk and mount point from $CWD
amrecover> setdisk /dev/hda1
598 Error: disk not found.
amrecover>


>
>
> Do you have index set to "yes" for the dumptype associated with that
> disk?

Yes,  here are some excerpts from my amanda.conf and disklist

from amanda.conf:
...
infofile "/usr/local/etc/amanda/Weekly/curinfo" # database DIRECTORY
logdir   "/usr/local/etc/amanda/Weekly"         # log directory
indexdir "/usr/local/etc/amanda/Weekly" # index directory
tapelist "/usr/local/etc/amanda/Weekly/tapelist"        # list of used tapes

....

define dumptype linux0 {
    comment "Linux dump level 0"
    program "DUMP"
    dumpcycle 0
    index yes
}

from disklist:
#
# clark
#
clark /dev/hda1 linux0
clark /dev/hda5 linux0
clark /dev/hda3 linux0
clark /dev/hda6 linux0

>
>
> >amrecover> setdisk /dev/hda1
> >598 Error: disk not found.

> That's the correct syntax, but again, it is not finding the index records
> that match "/dev/hda1".  Same questions as above: is that a disklist
> entry, and do you have indexing turned on?
>
> One way to see what Amanda is working with is to look at your indexdir
> entry in amanda.conf.  That points to a directory.  In there is one
> directory per client, and in each client directory is one more directory
> for each disk (that has indexing turned on).  Finally, in those
> directories, are the gzip'd index files themselves.

In my /usr/local/etc/amanda/Weekly directory there is a "clark" directory
with breaks out in an index tree holding the gzip'd files

[/usr/local/etc/amanda/Weekly]>cd clark
[/usr/local/etc/amanda/Weekly/clark]>ls
_dev_hda1/  _dev_hda3/  _dev_hda5/  _dev_hda6/
[/usr/local/etc/amanda/Weekly/clark]>cd _dev_hda1
[/usr/local/etc/amanda/Weekly/clark/_dev_hda1]>ls
20010326_0.gz  20010326_1.gz  20010328_0.gz  20010328_1.gz
[/usr/local/etc/amanda/Weekly/clark/_dev_hda1]>


>
>
> Note that Amanda is picky about things matching.  For instance, if
> your disklist entry is "hda1", you cannot enter "/dev/hda1" (or the
> mount point).  Some of that can be worked around with symlinks, but
> amrecover usually gets it right when properly set up.
>
> Another place to look for clues is /tmp/amanda/amindexd*debug on your
> server (clark).

Here is my amindexd.debug file

amindexd: debug 1 pid 4270 ruid 11 euid 11 start time Thu Mar 29 10:36:15
2001
amindexd: version 2.4.1p1
< 220 clark AMANDA index server (2.4.1p1) ready.
> SECURITY USER root
bsd security: remote host clark.purematrix.com user root local user operator

amandahosts security check passed
< 200 Access OK
> DATE 2001-03-29
< 200 Working date set to 2001-03-29.
> SCNF Weekly
< 200 Config set to Weekly.
> HOST clark
< 200 Dump host set to clark.
> DISK /
< 501 No index records for disk: /. Invalid?
> DISK root
< 501 No index records for disk: root. Invalid?
> DISK /dev/hda1
! /usr/sbin/amadmin Weekly find clark \^/dev/hda1\$
< 598 Error: disk not found.
> QUIT
< 200 Good bye.
amindexd: pid 4270 finish time Thu Mar 29 10:36:33 2001


>
>
> John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]
begin:vcard 
n:Brannigan;Paul
tel;fax:303-245-1025
tel;work:303-245-1045
x-mozilla-html:TRUE
adr:;;3434 47th St.;Boulder;Colorado;80301;USA
version:2.1
email;internet:[EMAIL PROTECTED]
title:Support Engineer
x-mozilla-cpt:;0
fn:Paul Brannigan
end:vcard

Reply via email to