2nd copy of named is dying

2003-10-09 Thread Rich Morin
I run two copies of named(8), out of /etc/rc.network:

  ${named_program:-named} ${named_flags} /etc/namedb/named.conf
  ${named_program:-named} ${named_flags} /etc/namedb/lan/named.conf
This seems to work fine, except that the second instance of named
occasionally (like, once a month) disappears.  Any suggestions as
to how to track down the reason for this?
-r

P.S.  I'm running a fairly vanilla install of FreeBSD 4.7
--
email: [EMAIL PROTECTED]; phone: +1 650-873-7841
http://www.cfcl.com- Canta Forda Computer Laboratory
http://www.cfcl.com/Meta   - The FreeBSD Browser, Meta Project, etc.
http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: crontab same time execution order

2003-07-05 Thread Rich Morin
At 10:43 PM -0700 7/4/03, Dave McCammon wrote:
Perhaps this predictable behavior is in FreeBSD only.
(I don't have access to other platforms). Or perhaps
my simple test was too simple. It just seemed to be
too predictable to not at least try to get some feed
back.
I'm not a big fan of programming to take advantage of undocumented
implementation details; they may change unexpectedly.  Why not:
  *  Write a wrapper script that does the desired ancillary actions,
 running the original command in the process:
:
# newsyslog_lcl - wrapper for newsyslog
... pre-actions ...

newsyslog

... post-actions ...

  *  Change /etc/crontab to invoke newsyslog_lcl, rather than newsyslog

The usual caveats apply, of course, to writing root-level programs.

-r
--
email: [EMAIL PROTECTED]; phone: +1 650-873-7841
http://www.cfcl.com/rdm- my home page, resume, etc.
http://www.cfcl.com/Meta   - The FreeBSD Browser, Meta Project, etc.
http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


format of /etc/crontab?

2003-07-03 Thread Rich Morin
The cron(8) man page (on my FreeBSD 4.7 system) says:

   Cron searches /var/cron/tabs for crontab files which are named after
   accounts in /etc/passwd; crontabs found are loaded into memory.  Cron
   also searches for /etc/crontab which is in a different format (see
   crontab(5)).
The crontab(5) man page, however, says nothing about any differences in
the file formats.  Instead, it appears to describe only the format that
is used in /var/cron/tabs/* files.
I would like to know precisely how the format of /etc/crontab differs,
but I can't find any man page that addresses this.  Help?
-r
--
email: [EMAIL PROTECTED]; phone: +1 650-873-7841
http://www.cfcl.com/rdm- my home page, resume, etc.
http://www.cfcl.com/Meta   - The FreeBSD Browser, Meta Project, etc.
http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: format of /etc/crontab?

2003-07-03 Thread Rich Morin
At 5:23 PM -0400 7/3/03, Paul Chvostek wrote:
The /etc/crontab is largely self-documenting.  It is similar to the
format of the other crontab files, and includes a comment line:
#minute hourmdaymonth   wdaywho command

What further information do you need?
None, in the file itself, but the crontab(5) man page should be tweaked.
I have posted the following suggestion (to [EMAIL PROTECTED]):
  The ``sixth'' field (the rest of the line) specifies the command to be ...
  ---
  In the case of /etc/crontab, another field (username) follows the time
  and date fields.  This is normally set to root, but other names can be
  specified; the command will be setuid(2) to the corresponding uid.
  The ``final'' field (the rest of the line) specifies the command to be ...

The user shouldn't be required to spot the added who field in the comment,
let alone read the source code to determine that no other format changes
have been made.  The man pages promise to (and should) describe any format
differences.
-r
--
email: [EMAIL PROTECTED]; phone: +1 650-873-7841
http://www.cfcl.com/rdm- my home page, resume, etc.
http://www.cfcl.com/Meta   - The FreeBSD Browser, Meta Project, etc.
http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: format of /etc/crontab?

2003-07-03 Thread Rich Morin
At 8:31 PM -0500 7/3/03, Dan Nelson wrote:
It already does, a couple paragraphs above the stuff you quoted:

 The format of a cron command is very much the V7 standard, with a number
 of upward-compatible extensions.  Each line has five time and date
 fields, followed by a user name (with optional ``:group'' and
 ``/login-class'' suffixes) if this is the system crontab file, followed
 by a command.
Thanks for pointing this out.  I still think the information could do
with being a bit less hidden...
-r
--
email: [EMAIL PROTECTED]; phone: +1 650-873-7841
http://www.cfcl.com/rdm- my home page, resume, etc.
http://www.cfcl.com/Meta   - The FreeBSD Browser, Meta Project, etc.
http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Boot problem: ata0: resetting devices

2003-05-31 Thread Rich Morin
At 7:29 AM -0700 5/30/03, Kent Stewart wrote:
I use the Promise TX2 and Maxtor pci cards in several systems. I
just dropped them in and they worked. You would have to boot scsi.
   

So, you're saying that I can't boot from an ATA drive on a PCI-based
controller card?  What is the background for this limitation?
Also, I'm curious about the effects of turning off hw.ata.ata_dma;
outside of using some CPU time, what are the likely effects of this.
For instance, is this likely to slow down disk transfers, assuming
that the system is mostly idle?
-r
--
email: [EMAIL PROTECTED]; phone: +1 650-873-7841
http://www.cfcl.com/rdm- my home page, resume, etc.
http://www.cfcl.com/Meta   - The FreeBSD Browser, Meta Project, etc.
http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series
http://www.ptf.com/tdc - Prime Time Freeware's Darwin Collection
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Boot problem: ata0: resetting devices

2003-05-31 Thread Rich Morin
At 10:04 AM -0700 5/30/03, Kent Stewart wrote:
No, you didn't understand. The ATA cards appear like a scsi to the bios.
To boot from an add in ATA card, you have to choose scsi boot.
I'll look into this.  However, I haven't seen any way to request this
in the SETUP screens.  Anything I should look for?
You lose a lot of speed. My new ATA cards are all UDMA-133. Dma transfers are
always faster. PIO is set at something like 16MB/s. You only get so many
milliseconds of time for a each transfer block and dma is always faster.
So, it's definitely worth pursuing.

-r
--
email: [EMAIL PROTECTED]; phone: +1 650-873-7841
http://www.cfcl.com/rdm- my home page, resume, etc.
http://www.cfcl.com/Meta   - The FreeBSD Browser, Meta Project, etc.
http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series
http://www.ptf.com/tdc - Prime Time Freeware's Darwin Collection
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Boot problem: ata0: resetting devices

2003-05-31 Thread Rich Morin
At 10:52 AM -0700 5/30/03, Kent Stewart wrote:
My definition of speed is a concept based on how long it takes for the
prompt to return after I press the enter key.  A fast HD helps.  ...
The 300 MHz PII I've been running has been totally satisfactory, in terms
of speed, except that I have a Perl/Tk app that is quite demanding.  My
entire motivation for upgrading is to get this app to run faster.  The
current setup (PIO) is still faster than the old machine, but I suspect
strongly that getting DMA online would be a win...
-r
--
email: [EMAIL PROTECTED]; phone: +1 650-873-7841
http://www.cfcl.com/rdm- my home page, resume, etc.
http://www.cfcl.com/Meta   - The FreeBSD Browser, Meta Project, etc.
http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series
http://www.ptf.com/tdc - Prime Time Freeware's Darwin Collection
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Boot problem: ata0: resetting devices

2003-05-30 Thread Rich Morin
I have tried a couple of PCI-based IDE cards.  I see messages that
indicate that the motherboard is seeing the card and that the card
is seeing the disk.  Unfortunately, the system is not willing to
boot off the disk (sigh).  I have tried changing several settings,
including:
  *  Setting {Pri,Sec}{Master,Slave} to Not Installed

  *  Setting the {1st,2nd,3rd} Boot Device to IDE-[123]

  *  Turning off Plug and PLay Aware O/S

  *  Turning off Onboard PCI IDE

No luck.  Suggestions, anyone?

-r
--
email: [EMAIL PROTECTED]; phone: +1 650-873-7841
http://www.cfcl.com/rdm- my home page, resume, etc.
http://www.cfcl.com/Meta   - The FreeBSD Browser, Meta Project, etc.
http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series
http://www.ptf.com/tdc - Prime Time Freeware's Darwin Collection
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: About reading and writing to files

2003-05-30 Thread Rich Morin
At 3:04 AM -0500 5/30/03, Bingrui Foo wrote:
I'm wondering in freeBSD, if I have a directory with 10,000 files, or
maybe even 100,000 files, each about 5 kb long. Wondering will reading and
writing to any one of these files in C be affected by the sheer number of
these files? Will the access time be affected significantly?
Just wondering because not sure whether I should put these data in a
database or just use files with unique names.
Also will separating the files into many directories help?
Looking up .../x/12/34/56 can be done in logarithmic time (i.e., look up
.../x/12, then .../x/12/34, then .../x/12/34/56); looking up 
.../y/123456 (unless some optimization has been added) will require a 
linear scan
through the directory.  In short, don't go there...

-r
--
email: [EMAIL PROTECTED]; phone: +1 650-873-7841
http://www.cfcl.com/rdm- my home page, resume, etc.
http://www.cfcl.com/Meta   - The FreeBSD Browser, Meta Project, etc.
http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series
http://www.ptf.com/tdc - Prime Time Freeware's Darwin Collection
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Boot problem: ata0: resetting devices

2003-05-30 Thread Rich Morin
At 2:05 AM -0700 5/30/03, Kent Stewart wrote:
Did you try doing it in /boot/loader.conf.
The man page indicates that I can set assorted variables in this file,
so perhaps I could put in a line such as:
  hw.ata.ata_dma=0

If so, the sysctl.conf(5) man page should be amended to indicate the
fact.  Nonetheless, as I already have a kernel which has the variable
turned off, this wouldn't buy me anything.
What I'm really looking for is a way to use a different ATA controller.

-r
--
email: [EMAIL PROTECTED]; phone: +1 650-873-7841
http://www.cfcl.com/rdm- my home page, resume, etc.
http://www.cfcl.com/Meta   - The FreeBSD Browser, Meta Project, etc.
http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series
http://www.ptf.com/tdc - Prime Time Freeware's Darwin Collection
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Boot problem: ata0: resetting devices

2003-05-29 Thread Rich Morin
I recently purchased a new motherboard (ECS EliteGroup Mainboard P4S5A/DX+;
AMI BIOS) and a matching CPU (Celeron, 478 pin, 2.1 GHz) from outpost.com.
I stuffed these into an old chassis, adding a 500 W power supply and a pair
of 512 MB DDR DIMMs.
After walking through the configuration (accepting Optimal Settings for
everything), I tried booting up the machine on an IDE drive that was loaded
with FreeBSD and had been used most recently with a 200 MHz Pentium II.
The boot sequence proceeded without problems for quite a while, checking
devices, etc.  Then, however, it halted with a pair of nastygrams:
  ad0: READ command timeout tag=0 serv=0 resetting
  ata0: resetting devices
I tried putting the ATA drive and the CDROM on separate cables, but that
didn't seem to help.  My suspicion is that the drive is too slow for the
ATA controller, but I don't see any way to compensate for this.  Help?
-r
--
email: [EMAIL PROTECTED]; phone: +1 650-873-7841
http://www.cfcl.com/rdm- my home page, resume, etc.
http://www.cfcl.com/Meta   - The FreeBSD Browser, Meta Project, etc.
http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series
http://www.ptf.com/tdc - Prime Time Freeware's Darwin Collection
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Boot problem: ata0: resetting devices

2003-05-29 Thread Rich Morin
Here's a bit more information on the configuration:

  OS: FreeBSD 4.5

  Disk:   Seagate Barracuda ATA II (ST320420A; 20 GB)

  Chips:  478 pin Celeron; 2.1 GHz
  512 MB DDR DIMM (2 ea.)
  SiS645DX  Northbridge _or_ SiS962(L) Southbridge
The manual indicates that the motherboard could have either a
Northbridge or Southbridge chipset, but I don't know an easy
way to tell which one this board has.  Suggestions?
Anyway, assuming that it's the latter, here's a note that
seems relevant, if not real encouraging:
  http://www.geocrawler.com/archives/3/160/2002/11/0/10219234/

  the controller is technically unsupported

The note does NOT say whether I can simply plug in a PCI-based
controller card (which seems like the obvious workaround).  Is
this likely to work?
-r
--
email: [EMAIL PROTECTED]; phone: +1 650-873-7841
http://www.cfcl.com/rdm- my home page, resume, etc.
http://www.cfcl.com/Meta   - The FreeBSD Browser, Meta Project, etc.
http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series
http://www.ptf.com/tdc - Prime Time Freeware's Darwin Collection
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Does FreeBSD work on Walmart's $199 Microtel box?

2002-12-05 Thread Rich Morin
A quick web search didn't bring up any answer to this.
Does anyone here have the definitive word?

-r
--
email: [EMAIL PROTECTED]; phone: +1 650-873-7841
http://www.cfcl.com/rdm- my home page, resume, etc.
http://www.cfcl.com/Meta   - The FreeBSD Browser, Meta Project, etc.
http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series
http://www.ptf.com/tdc - Prime Time Freeware's Darwin Collection

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



SIZE of rpc.statd?

2002-11-18 Thread Rich Morin
In looking for a possible memory leak, I tries running top -S -osize.
I was curious about the size listed for rpc.statd:

  PID USERNAMEPRI NICE  SIZERES STATETIME   WCPUCPU COMMAND
  124 root  2   0   257M 0K select   0:00  0.00%  0.00% rpc.statd


Why is it listed with such a large size?  BTW, my current swap space is
256 MB: 128 from the partition that the installer set up and another 128
that I set up as /usr/swap0.

-r
--
email: [EMAIL PROTECTED]; phone: +1 650-873-7841
http://www.cfcl.com/rdm- my home page, resume, etc.
http://www.cfcl.com/Meta   - The FreeBSD Browser, Meta Project, etc.
http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series
http://www.ptf.com/tdc - Prime Time Freeware's Darwin Collection

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



100Base-T problem?

2002-11-14 Thread Rich Morin
I am trying to get my FreeBSD system to work with 100Base-T.  It works
fine with 10Base-T, but when I put in any of several 100Base-T cards, it
fails to work.  Interestingly, the lights on the card and on the hub both
indicate that the 100Base-T card is connecting.

I am running a fairly vanilla PC:

  CPU: AMD-K6(tm) 3D processor (300.68-MHz 586-class CPU)
Origin = AuthenticAMD  Id = 0x58c  Stepping = 12
Features=0x8021bfFPU,VME,DE,PSE,TSC,MSR,MCE,CX8,PGE,MMX
AMD Features=0x8800SYSCALL,3DNow!

I recently upgraded from FreeBSD 4.5 to 4.7, but I don't think this is
relevant to the problem at hand.  Here are some lines from an unsuccessful
(in terms of networking) boot -v, using a Netgear 100Base-TX card:

  ...
  dc0: 82c169 PNIC 10/100BaseTX port 0xb800-0xb8ff mem 0xdd80-0xdd8000ff
irq 10 at device 11.0 on pci0
  dc0: Ethernet address: 00:a0:cc:5e:89:b2
  miibus0: MII bus on dc0
  ukphy0: Generic IEEE 802.3u media interface on miibus0
  ukphy0: OUI 0x001018, model 0x0021, rev. 2
  ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
  bpf: dc0 attached
  ...
  isa_probe_children: probing PnP devices
  BIOS Geometries:
  ...

Here are some lines from a successful (in terms of networking) boot -v,
using an SMC 10Base-TX card:

  ...
  de0: Digital 21041 Ethernet port 0xb800-0xb87f mem 0xdd80-0xdd80007f
irq 10 at device 11.0 on pci0
  de0: SMC 21041 [10Mb/s] pass 1.1
  de0: address 00:00:c0:63:b2:f2
  bpf: de0 attached
  ...
  isa_probe_children: probing PnP devices
  de0: enabling 10baseT port- note additional line
  BIOS Geometries:
  ...

I have also tried a couple of Farallon cards (de0 driver, IIRC) with no
success.  Clues and/or suggestions are solicited...

-r
--
email: [EMAIL PROTECTED]; phone: +1 650-873-7841
http://www.cfcl.com/rdm- my home page, resume, etc.
http://www.cfcl.com/Meta   - The FreeBSD Browser, Meta Project, etc.
http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series
http://www.ptf.com/tdc - Prime Time Freeware's Darwin Collection

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: 100Base-T problem? (solved)

2002-11-14 Thread Rich Morin
It turns out that my /etc/rc.conf file was asking for de0, so it
wasn't starting up the dc0 interface.  Blush.

-r
--
email: [EMAIL PROTECTED]; phone: +1 650-873-7841
http://www.cfcl.com/rdm- my home page, resume, etc.
http://www.cfcl.com/Meta   - The FreeBSD Browser, Meta Project, etc.
http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series
http://www.ptf.com/tdc - Prime Time Freeware's Darwin Collection

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message