From: LBRO <lbro () dscc ! dk>
To: tru64-unix-managers
Subject: No subject given
Date: Fri, 17 Jul 1998 12:37:41 +0000 [thread overview]
Message-ID: <96078715811746.tru64-unix-managers.marc@archive.invalid> (raw)
--simple boundary
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Hi, managers.
The problem, I reported was that in a cluster, I suddenly got a lot of
errors in the uerf log referring to disks that other members of the
cluster had mounted.
Almost all agreed that this was caused by 'advfsd' that monitors care
of the file sets and domains. This program makes a sort of 'scu show
edt' and monitors all the disks found here. But some of those are
reserved by other members of the cluster and that causes the error.
Chris H Ruhnke suggested that one could put the names of the disks
mounted by other cluster members into a 'ignore' file (THANKS!!, it is
not documented in the man pages) and then restart advfsd. That seems
to work quite well with the following to note:
On my system (DU4.0D patch kit 1):
It is /var/opt/... instead of /usr/opt/...
It doesn't seem necessary to restart advfsd.
I attach an awk script that I have made that can be run by cron. It
makes an ignore file that contains those disks of the disks visible by
scu that are not below /etc/fdmns.
Thanks to
+ Chris H Ruhnke who suggested changing /usr/opt/advfsd/disks.ignore
+ Mike Cross
+ Viktor Holmberg
+ Steve Parker
+ rye@jtasc.acom.mil
+ Rodrigo Poblete
+ Ken Krueger
--simple boundary
Content-Type: text/plain; charset=US-ASCII; name="ignore~1.awk"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="ignore~1.awk"
#!/usr/bin/awk -f
BEGIN { while ("/sbin/scu show edt" | getline ) {
for (i=1; i <= NF; i++) {
if ($(i-1) == "Bus:")
bus=$i;
if ($(i-1) == "Target:")
target=$i;
if ($(i-1) == "Lun:")
lun=$i;
if ($(i-1) == "Type:")
type=$i;
}
if (type == "Direct") {
sub(/,/, "", bus);
sub(/,/, "", target);
sub(/,/, "", lun);
if (lun == 0)
lunletter="";
else if (lun == 1)
lunletter="a";
else if (lun == 2)
lunletter="b";
else if (lun == 3)
lunletter="c";
else if (lun == 4)
lunletter="d";
else if (lun == 5)
lunletter="e";
else if (lun == 6)
lunletter="f";
else if (lun == 7)
lunletter="g";
disk=sprintf("rz%c%d", lunletter, bus*8+target);
alldisks[disk]=1;
}
}
while ("find /etc/fdmns" | getline) {
sub(/\/.*\//, "");
sub(/.$/, "");
if (alldisks[$1]) {
alldisks[$1]=0;
}
}
for (disk in alldisks)
if (alldisks[disk])
print disk > "/var/opt/advfsd/disks.ignore";
}
--simple boundary--
next reply other threads:[~1998-07-17 12:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-07-17 12:37 LBRO [this message]
-- strict thread matches above, loose matches on Subject: below --
1999-05-12 17:40 No subject given Randy.Greenway
1998-01-23 13:53 LBRO
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox