[OpenAFS] 2 problems for me newbie...

Dexter 'Kim' Kimball dhk@ccre.com
Fri, 17 Sep 2004 11:59:34 -0600


Hi Dave,

I don't mind at all.

As root, from the command line, run:

# /usr/afs/bin/salvager -showmounts

to get a list of mount points in the SalvageLog for the server you're
running the command on.

Example:

[root@angel movies]# time /usr/afs/bin/salvager -showmounts

real    0m11.824s
user    0m0.190s
sys     0m1.000s
[root@angel movies]# cd /usr/afs/logs
[root@angel logs]# grep mountpoint SalvageLog
09/17/2004 11:53:06 In volume 536871302 (user.s.student0) found =
mountpoint
./backup to '#user.s.student0.backup.'
09/17/2004 11:53:06 In volume 536871305 (user.s.student1) found =
mountpoint
./backup to '#user.s.student1.backup.'
09/17/2004 11:53:06 In volume 536871308 (user.s.student2) found =
mountpoint
./backup to '#user.s.student2.backup.'
09/17/2004 11:53:06 In volume 536871311 (user.s.student3) found =
mountpoint
./backup to '#user.s.student3.backup.'
09/17/2004 11:53:06 In volume 536871314 (user.s.student4) found =
mountpoint
./backup to '#user.s.student4.backup.'
09/17/2004 11:53:06 In volume 536871062 (user.ccre) found mountpoint =
./sw to
'#sw.readonly.'
09/17/2004 11:52:57 In volume 536871093 (user.k.kim) found mountpoint =
./sioz
to '#satchmo.ioz.readonly.'
09/17/2004 11:52:57 In volume 536871093 (user.k.kim) found mountpoint
./backup to '#user.k.kim.backup.'
09/17/2004 11:52:56 In volume 536870927 (user.k.kima) found mountpoint
./RBV1 to '#RBV1.vol.'
09/17/2004 11:52:56 In volume 536870927 (user.k.kima) found mountpoint
./backup to '#user.kima.backup.'
09/17/2004 11:52:56 In volume 536870930 (sw) found mountpoint ./n1 to
'#sw.n1.'
09/17/2004 11:52:56 In volume 536870930 (sw) found mountpoint ./g-i to
'#sw.g-i.'
09/17/2004 11:52:56 In volume 536870930 (sw) found mountpoint ./a-c to
'#sw.a-c.'
09/17/2004 11:52:56 In volume 536870930 (sw) found mountpoint ./mm to
'#sw.mm.'
09/17/2004 11:52:56 In volume 536870930 (sw) found mountpoint ./f2 to
'#sw.f2.'
09/17/2004 11:52:56 In volume 536870930 (sw) found mountpoint ./o1 to
'#sw.o1.'
09/17/2004 11:52:56 In volume 536870930 (sw) found mountpoint
./UnfiledDownloads to '#sw.unfileddownloads.'
09/17/2004 11:52:56 In volume 536870930 (sw) found mountpoint ./e-f to
'#sw.e-f.'
09/17/2004 11:52:56 In volume 536870930 (sw) found mountpoint =
./VirtualCDs
to '#sw.virtualCds.'
09/17/2004 11:52:56 In volume 536870930 (sw) found mountpoint =
./macromedia
to '#sw.macromedia2.'
09/17/2004 11:52:56 In volume 536870930 (sw) found mountpoint ./j-k to
'#sw.j-k.'
09/17/2004 11:52:56 In volume 536870930 (sw) found mountpoint ./Linux to
'#sw.linux.'
09/17/2004 11:52:56 In volume 536870930 (sw) found mountpoint ./p1 to
'#sw.p1.'
09/17/2004 11:52:56 In volume 536870930 (sw) found mountpoint ./d to
'#sw.d.'
09/17/2004 11:52:56 In volume 536870930 (sw) found mountpoint ./l to
'#sw.l.'
09/17/2004 11:52:56 In volume 536870930 (sw) found mountpoint ./m to
'#sw.m.'
09/17/2004 11:52:56 In volume 536870930 (sw) found mountpoint ./q to
'#sw.q.'
09/17/2004 11:52:56 In volume 536870930 (sw) found mountpoint =
./authorware
to '#sw.authorware.'
09/17/2004 11:52:56 In volume 536870930 (sw) found mountpoint ./r to
'#sw.r.'
09/17/2004 11:52:56 In volume 536870930 (sw) found mountpoint ./e2 to
'#sw.e2.'
09/17/2004 11:52:56 In volume 536870930 (sw) found mountpoint ./s to
'#sw.s.'
09/17/2004 11:52:56 In volume 536870930 (sw) found mountpoint ./t to
'#sw.t.'
09/17/2004 11:52:56 In volume 536870930 (sw) found mountpoint ./u to
'#sw.u.'
09/17/2004 11:52:56 In volume 536870930 (sw) found mountpoint ./v to
'#sw.v.'
09/17/2004 11:52:56 In volume 536870930 (sw) found mountpoint ./w to
'#sw.w.'
09/17/2004 11:52:56 In volume 536870930 (sw) found mountpoint ./x to
'#sw.x.'
09/17/2004 11:52:56 In volume 536870930 (sw) found mountpoint ./z to
'#sw.z.'
09/17/2004 11:52:56 In volume 536870930 (sw) found mountpoint ./DNS/zip =
to
'#sw.drprozip.'
09/17/2004 11:52:56 In volume 536871011 (afs) found mountpoint ./user to
'#user.ccre.'
09/17/2004 11:52:56 In volume 536871011 (afs) found mountpoint =
./whatDate to
'#whatDate2.'
09/17/2004 11:52:56 In volume 536871011 (afs) found mountpoint ./ARLA to
'#afs.ARLA.'
09/17/2004 11:52:57 In volume 536871011 (afs) found mountpoint
./BENCHMARKING/IOZONERESULTS/satchmo to '#satchmo.ioz.'
09/17/2004 11:52:57 In volume 536871011 (afs) found mountpoint
./BENCHMARKING/BONNIERESULTS/satchmo to '#satchmo.bon.'
09/17/2004 11:52:57 In volume 536871084 (windows) found mountpoint
./smartdraw to '#windows.smartdraw.'
09/17/2004 11:52:57 In volume 536871344 (group1) found mountpoint =
./afs/log
to '#group.afs.logs.'
09/17/2004 11:52:57 In volume 536871345 (group) found mountpoint =
./afs/log
to '#group.afs.logs.'


The "bos salvage" command doesn't have a showmounts option, so either =
run
/usr/afs/bin/salvager from the command line or alternatively use "bos =
exec"
followed by "bos getlog"

If you're trying to run using "bos exec" let me know -- I've got it in a
script somewhere and can find the syntax for you.

Kim



> -----Original Message-----
> From: Dave Blakemore [mailto:daveblakemore@ca.ibm.com]=20
> Sent: Friday, September 17, 2004 11:05 AM
> To: dhk@ccre.com
> Subject: RE: [OpenAFS] 2 problems for me newbie...
>=20
>=20
> Kim
>=20
> Hope you do not mind the direct note...
> I was interested when I saw your append as I would like to=20
> build a mount=20
> point map.   However trying the -showmounts option to see=20
> what info it=20
> would provide did not show any mountpoint information in the=20
> SalvageLog, I=20
> was wondering if I was missing something.   I tried it on the=20
> whole server=20
> and on a specific volume but got no output.....     could you=20
> send me a=20
> sample...
>=20
> # cat SalvageLog
> @(#)Base configuration afs3.6 2.53
> 09/17/2004 11:31:13 STARTING AFS SALVAGER 2.4 (/usr/afs/bin/salvager=20
> -partition /vicepa -volumeid 1769303090 -showmounts -showlog)
>=20
> # vos e  1769303090
> dbonfs1                          1769303090 RW      19962 K  On-line
>     afsfs1 /vicepa
>     RWrite 1769303090 ROnly          0 Backup          0
>     MaxQuota     500000 K
>     Creation    Fri Sep 17 09:17:18 2004
>     Last Update Fri Sep 17 09:24:48 2004
>     42 accesses in the past day (i.e., vnode references)
>=20
>     RWrite: 1769303090
>     number of sites -> 1
>        server afsfs1 partition /vicepa RW Site
>=20
> thanks
> --
> Dave Blakemore
>=20
>=20
>=20
>=20
> "Dexter 'Kim' Kimball" <dhk@ccre.com>=20
> Sent by: openafs-info-admin@openafs.org
> 09/17/2004 12:02 PM
> Please respond to
> dhk
>=20
>=20
> To
> <openafs-info@openafs.org>
> cc
>=20
> Subject
> RE: [OpenAFS] 2 problems for me newbie...
>=20
>=20
>=20
>=20
>=20
>=20
> Actually, no, the "-showmounts" argument does not cause the=20
> fileserver to=20
> be
> shut down.  It's a read operation and makes no changes, so there's no=20
> need.
> Many cells use it to build a mount point map.
>=20
> Daily cron is fine.  It'll spin the disks the vicep's are=20
> mounted on so if you're fileservers are near saturation=20
> you'll want to run it in off times.
>=20
> Kim
>=20
>=20
>=20
>=20
> > -----Original Message-----
> > From: openafs-info-admin@openafs.org=20
> > [mailto:openafs-info-admin@openafs.org] On Behalf Of Kevin Coffman
> > Sent: Friday, September 17, 2004 8:02 AM
> > To: dhk@ccre.com
> > Cc: openafs-info@openafs.org
> > Subject: Re: [OpenAFS] 2 problems for me newbie...
> >=20
> >=20
> > > I'd use a script.  The "vos release" command doesn't take=20
> multiple=20
> > > volume name arguments.
> > >=20
> > > In general, if you need to find out what volumes are
> > mounted below a
> > > given node in your directory tree in order to recursively
> > vos release
> > > them you can use "bos exec" to run /usr/afs/bin/salvager
> > -showmounts
> > > on each fileserver, redirecting the output to a=20
> world-writeable AFS=20
> > > directory for convenience.  I can send an example if you'd like.
> >=20
> > Doesn't running the salvager this way take down the fileserver?
> >=20
> > This is probably not something to be doing in a daily cron,=20
> right? ;-)
> >=20
> > _______________________________________________
> > OpenAFS-info mailing list
> > OpenAFS-info@openafs.org=20
> > https://lists.openafs.org/mailman/listinfo/openafs-info
> >=20
>=20
> _______________________________________________
> OpenAFS-info mailing list
> OpenAFS-info@openafs.org=20
> https://lists.openafs.org/mailman/listinfo/openafs-info
>=20
>=20