Can I rebuild amd without rebuilding world?
Paul Schmehl
pschmehl_lists at tx.rr.com
Sat May 9 20:26:34 UTC 2009
I have a problem with amd. It's not working right, and I don't think I
can fix it without rebuilding it.
Here's the problems:
# uname -a
FreeBSD utd65257.utdallas.edu 7.2-STABLE FreeBSD 7.2-STABLE #12: Wed May
6 12:12:16 CDT 2009
root at utd65257.utdallas.edu:/usr/obj/usr/src/sys/GENERIC i386
amd appears to be obtaining the correct information from my system:
# amd -r
May 9 13:38:22 utd65257 amd[22655]/info: no logfile defined; using stderr
May 9 13:38:22 utd65257 amd[22655]/info: AM-UTILS VERSION INFORMATION:
May 9 13:38:22 utd65257 amd[22655]/info: Copyright (c) 1997-2006 Erez
Zadok
May 9 13:38:22 utd65257 amd[22655]/info: Copyright (c) 1990 Jan-Simon
Pendry
May 9 13:38:22 utd65257 amd[22655]/info: Copyright (c) 1990 Imperial
College of Science, Technology & Medicine
May 9 13:38:22 utd65257 amd[22655]/info: Copyright (c) 1990 The Regents
of the University of California.
May 9 13:38:22 utd65257 amd[22655]/info: am-utils version 6.1.5 (build
702100).
May 9 13:38:22 utd65257 amd[22655]/info: Report bugs to
https://bugzilla.am-utils.org/ or am-utils at am-utils.org.
May 9 13:38:22 utd65257 amd[22655]/info: Configured by David O'Brien
<obrien at FreeBSD.org> on date 4-December-2007 PST.
May 9 13:38:22 utd65257 amd[22655]/info: Built by
root at utd65257.utdallas.edu on date Wed May 6 11:44:19 CDT 2009.
May 9 13:38:22 utd65257 amd[22655]/info: cpu=i386 (little-endian),
arch=i386, karch=i386.
May 9 13:38:22 utd65257 amd[22655]/info: full_os=freebsd7.2,
os=freebsd7, osver=7.2, vendor=undermydesk, distro=The FreeBSD Project.
May 9 13:38:22 utd65257 amd[22655]/info: domain=utdallas.edu,
host=utd65257, hostd=utd65257.utdallas.edu.
May 9 13:38:22 utd65257 amd[22655]/info: Map support for: root, passwd,
union, nis, ndbm, file, exec, error.
May 9 13:38:22 utd65257 amd[22655]/info: AMFS: nfs, link, nfsx, nfsl,
host, linkx, program, union, ufs, cdfs,
May 9 13:38:22 utd65257 amd[22655]/info: pcfs, auto, direct,
toplvl, error, inherit.
May 9 13:38:22 utd65257 amd[22655]/info: FS: cd9660, nfs, nfs3, nullfs,
msdosfs, ufs, unionfs.
May 9 13:38:22 utd65257 amd[22655]/info: Network: wire="129.110.3.0"
(netnumber=129.110.3).
May 9 13:38:22 utd65257 amd[22655]/info: My ip addr is 127.0.0.1
But it can't seem to parse the amd.conf file correctly:
# amd -F /etc/amd.conf
AMDCONF: syntax error on line 2 (section global)
However the conf file is correct:
# cat -n /etc/amd.conf
1 # GLOBAL OPTIONS SECTION
2 [global]
3 auto_dir =/.amd_net
I have tried putting spaces on either side of global without success. I
have tried using different types of brackets without success. The global
line is correct yet amd claims that it is not.
That's not all. There are some settings for amd_flags in
/etc/defaults/rc.conf:
grep "amd_flags=" /etc/defaults/rc.conf
bootparamd_flags="" # Flags to bootparamd
amd_flags="-a /.amd_mnt -l syslog /host /etc/amd.map /net /etc/amd.map"
If I override those flags by adding amd_flags to /etc/rc.conf, amd will
not run:
# grep amd_flags /etc/rc.conf
amd_flags="-l /var/log/amd.log"
# /etc/rc.d/amd start
NFS access cache time=60
Starting amd.
[root at utd65257 ~]# /etc/rc.d/amd status
amd is not running.
It runs fine with the default flags:
# grep amd_flags /etc/rc.conf
#amd_flags="-l /var/log/amd.log"
# /etc/rc.d/amd start
NFS access cache time=60
Starting amd.
# /etc/rc.d/amd status
amd is running as pid 23091.
I'd like to rebuild amd without having to rebuild world as well, although
I'll do that if I have to.
Paul Schmehl, If it isn't already
obvious, my opinions are my own
and not those of my employer.
******************************************
WARNING: Check the headers before replying
More information about the freebsd-questions
mailing list