Subject: bin/33274: /etc/security needs changes due to iostat changes
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <gcw@primenet.com.au>
List: netbsd-bugs
Date: 04/17/2006 03:10:00
>Number: 33274
>Category: bin
>Synopsis: /etc/security needs changes due to iostat changes
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Apr 17 03:10:00 +0000 2006
>Originator: Geoff C. Wing
>Release: NetBSD 3.99.18
>Organization:
>Environment:
System: NetBSD g.primenet.com.au 3.99.18 NetBSD 3.99.18 (G) #0: Mon Apr 17 12:56:00 EST 2006 gcw@g.primenet.com.au:/usr/netbsd/src/sys/arch/i386/compile/G i386
Architecture: i386
Machine: i386
>Description:
``iostat -x'' now spews more information, specifically about nfs
instances.
e.g.
% iostat -x
device read KB/t r/s time MB/s write KB/t w/s time MB/s
wd0 8.41 36 8160488.12 0.29 7.26 2 8160488.12 0.02
nfs0 0.00 0 0.00 0.00 0.00 0 0.00 0.00
nfs1 0.00 0 0.00 0.00 0.00 0 0.00 0.00
(wd0 wasn't doing that on my last reboot, hmmmm.... this is 2 mins
uptime)
This causes /etc/security to back up disklabels of nfs mounts - not
very meaningful, especially when I use amd.
>How-To-Repeat:
find /etc/security backing up disklabel.nfs*
>Fix:
--- etc/security.org 2006-02-02 10:59:36.000000000 +1100
+++ etc/security 2006-04-17 13:02:56.000000000 +1000
@@ -807,8 +807,8 @@
egrep -v '\.(backup|current)(,v)?$' > $LABELS
xargs rm < $LABELS
- # generate disklabels of all disks excluding: cd fd md st
- disks=`iostat -x | awk 'NR > 1 && $1 !~ /^[cfm]d|st/ { print $1; }'`
+ # generate disklabels of all disks excluding: cd fd md st nfs
+ disks=`iostat -x | awk 'NR > 1 && $1 !~ /^[cfm]d|st|nfs/ { print $1; }'`
for i in $disks; do
disklabel $i > "$work_dir/disklabel.$i" 2>/dev/null
done