Re: Gnome FreeBSD

2007-08-22 Thread Ghirai
On Mon, 20 Aug 2007 10:11:54 -0400 (EDT)
Michael S [EMAIL PROTECTED] wrote:

 Thank you all for the suggestions. I am going to take
 into consideration everything everyone wrote.
 
 Michael
 
 --- P.U.Kruppa [EMAIL PROTECTED] wrote:
 
  On Sun, 19 Aug 2007, Michael S wrote:
  
   Good day all,
  
   I decided to add GUI to my GUI-less FreeBSD
  machine. I
   am  considering installing Gnome, which I haven't
  used
   for long while and the last time was on Linux
  anyway.
   The reason is that most of my favorite
  applications
   use gtk libraries, like Firefox, GAIM (can't get
  used
   to the new name),wxPython and others. In short I
   wanted to avoid 2 huge sets of libraries (gtk and
  qt)
   by not installing KDE.
   I wanted to know how Gnome feels on FreeBSD, is it
   polished enough? Are there crashes? Any caveats at
   all?
  There is a minimal gnome installation in
  /usr/ports/x11/gnome2-lite
  you can start with that and - if you like it - add
  all the the 
  other stuff. 
  One caveat:
  First install /usr/ports/x11/xorg (i.e. xorg-7.2)
  and check if 
  your monitor and graphics card are set up correctly.
  
  Greetings,
  
  Uli.
  

I'd suggest you also give xfce a try (http://xfce.org), it's also GTK based,
and lighter than gnome/kde, while still having plenty of features.

-- 
Regards,
Ghirai.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ldconfig problem after upgrade 4.11 to 5.5

2007-08-22 Thread Kris Kennaway
On Wed, Aug 22, 2007 at 06:51:18AM +0200, Martin Schweizer wrote:
 Hello Kris
 
 Am Wed, Aug 22, 2007 at 12:37:25AM -0400 Kris Kennaway schrieb:
  On Wed, Aug 22, 2007 at 06:22:46AM +0200, Martin Schweizer wrote:
   After I updated my 4.11 to an 5.5 system (following /usr/src/UPDATING), I 
   get 
   around 63 error messages while the system boot up:
   
   ldconfig: /var/run/ld.so.hints: No such file or directory
 search: trailing characters ignored
 No such file or directory
   0: - lmalloc.1.1: trailing characters ignored. No such file or 
   directory
   ...
   ...
   
  Looks like it might be a broken symlink.
  
  Why are you updating to 5.5 though?  You should be using 6.2.
 
 If I'm understanding /usr/src/UPDATING correct I should first update to 5.5 
 and then to 6.2?

OK.  It may have been easier (and still could be) to just do a binary
upgrade instead.

 Any ideas where I can check this symlink?

Use find(1) to look for libmalloc.so.1.1

Kris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ldconfig problem after upgrade 4.11 to 5.5

2007-08-22 Thread Kris Kennaway
On Wed, Aug 22, 2007 at 07:06:19AM +0200, Martin Schweizer wrote:
 Hello Kris
 
 Am Wed, Aug 22, 2007 at 06:51:18AM +0200 Martin Schweizer schrieb:
  Am Wed, Aug 22, 2007 at 12:37:25AM -0400 Kris Kennaway schrieb:
   On Wed, Aug 22, 2007 at 06:22:46AM +0200, Martin Schweizer wrote:
After I updated my 4.11 to an 5.5 system (following /usr/src/UPDATING), 
I get 
around 63 error messages while the system boot up:

ldconfig: /var/run/ld.so.hints: No such file or directory
  search: trailing characters ignored
  No such file or directory
0: - lmalloc.1.1: trailing characters ignored. No such file or 
directory
...
...

   Looks like it might be a broken symlink.
   
   Why are you updating to 5.5 though?  You should be using 6.2.
  
  If I'm understanding /usr/src/UPDATING correct I should first update to 5.5 
  and then to 6.2? Any ideas where I can check this symlink?
 
 In /etc/defaults/rc.conf I find some pathes which are not valid:
 
 ldconfig_local_dirs=/usr/local/libdata/ldconfig /usr/X11R6/libdata/ldconfig
 # Local directories with ldconfig configuration files.
 ldconfig_local32_dirs=/usr/local/libdata/ldconfig32 
 /usr/X11R6/libdata/ldconfig32
 # Local directories with 32-bit compatibility ldconfig
 
 Is this the problem?

No, shouldn't be.  You have something left behind on your system that
is causing problems.  Perhaps it was from an even older version than
4.11, if you had done previous upgrades from e.g. 3.x.

Kris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ldconfig problem after upgrade 4.11 to 5.5

2007-08-22 Thread Martin Schweizer
Hello Kris

Am Wed, Aug 22, 2007 at 02:31:04AM -0400 Kris Kennaway schrieb:
  
  Am Wed, Aug 22, 2007 at 12:37:25AM -0400 Kris Kennaway schrieb:
   On Wed, Aug 22, 2007 at 06:22:46AM +0200, Martin Schweizer wrote:
After I updated my 4.11 to an 5.5 system (following /usr/src/UPDATING), 
I get 
around 63 error messages while the system boot up:

ldconfig: /var/run/ld.so.hints: No such file or directory
  search: trailing characters ignored
  No such file or directory
0: - lmalloc.1.1: trailing characters ignored. No such file or 
directory
...
...

   Looks like it might be a broken symlink.
   
   Why are you updating to 5.5 though?  You should be using 6.2.
  
  If I'm understanding /usr/src/UPDATING correct I should first update to 5.5 
  and then to 6.2?
 
 OK.  It may have been easier (and still could be) to just do a binary
 upgrade instead.
 
  Any ideas where I can check this symlink?
 
 Use find(1) to look for libmalloc.so.1.1

The files are all located in /usr/lib/compat/aout. The path is defined in 
/etc/defaults/rc.conf
[snip]
ldconfig_paths_aout=/usr/lib/compat/aout /usr/X11R6/lib/aout 
/usr/local/lib/aout
[snip]

Any ideas?

-- 

Regards

Martin Schweizer
[EMAIL PROTECTED]

PC-Service M. Schweizer GmbH; Bannholzstrasse 6; CH-8608 Bubikon
Tel. +41 55 243 30 00; Fax: +41 55 243 33 22; http://www.pc-service.ch;
public key : http://www.pc-service.ch/pgp/public_key.asc; 
fingerprint: EC21 CA4D 5C78 BC2D 73B7  10F9 C1AE 1691 D30F D239;



pgpCA1LHylS4f.pgp
Description: PGP signature


Unlimited CEUs for $49.99

2007-08-22 Thread Dr . Dawn-Elise_Snipes
Affordable, High-Quality CEUs!

--
If you do not want to receive any more special offers or newsletters, 
http://allceus.com/mail_list/?p=unsubscribeuid=4499e5ff375326efdcd9e044bebad6f3

To update your preferences and to unsubscribe visit
http://allceus.com/mail_list/?p=preferencesuid=4499e5ff375326efdcd9e044bebad6f3
Forward a Message to Someone
http://allceus.com/mail_list/?p=forwarduid=4499e5ff375326efdcd9e044bebad6f3mid=6

Dr. Dawn-Elise Snipes
[EMAIL PROTECTED]
PO BOX 1688
Alachua, FL 32616


--
Powered by PHPlist, www.phplist.com --


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


ps2ascii. c.

2007-08-22 Thread Gary Kline

Guys,

If this is a re-post, sorry.  I thought I mailed this to -questions.
Anyway, where are the pdf and pd and other ghostscript converters?
I thought these utilities were in the default distribution, but I
can't find them. pdfps, pdftoascii, and so forth.

thanks in advance for any help,

gary




-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ps2ascii. c.

2007-08-22 Thread Yuri Pankov
On Wed, Aug 22, 2007 at 12:35:47AM -0700, Gary Kline wrote:
 
   Guys,
 
   If this is a re-post, sorry.  I thought I mailed this to -questions.
   Anyway, where are the pdf and pd and other ghostscript converters?
   I thought these utilities were in the default distribution, but I
   can't find them. pdfps, pdftoascii, and so forth.
 
   thanks in advance for any help,
 
   gary
 
 
 
 
 -- 
   Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
 

They are in print/ghostscript-{afpl,gnu,gpl}, though ghostscript-gpl is
preferred one.


HTH,
Yuri
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Ports build parameters (knobs)

2007-08-22 Thread Gabriel Linder
Hello,

During the build of the graphical portion of my new FreeBSD-powered
laptop I noticed that some knobs are not listed in /usr/ports/KNOBS and
so, I can't add them to make.conf before building the packages.

When I run make fetch-recursive for fluxbox, I get :

WITH_DEBUG=yes  Build with debugging symbols
WITH_DOCHTML=yesInstall the HTML documentation
WITH_DOCPDF=yes Install the PDF documentation
WITH_GNOME=yes  Enable GNOME support
WITH_IMLIB2=yes Enable Imlib2 (pixmap themes) support
[snip]

and for libiconv :

WITHOUT_EXTRA_ENCODINGS=yes Disable extra character sets
WITH_EXTRA_PATCHES=yes  Apply extra patches (fixes cp932, adds
EUCJP-MS)

GNOME and DEBUG are listed in /usr/ports/KNOBS, but IMLIB2 and
EXTRA_PATCHES are not... Is there a way to have the full list of
supported build options ? Or maybe I am wrong and these settings are not
supposed to be in make.conf but in /var/db/ports/portname/options, if
so please let me know :)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ps2ascii. c.

2007-08-22 Thread Predrag Punosevac

Gary Kline wrote:

Guys,

If this is a re-post, sorry.  I thought I mailed this to -questions.
Anyway, where are the pdf and pd and other ghostscript converters?
I thought these utilities were in the default distribution, but I
can't find them. pdfps, pdftoascii, and so forth.

thanks in advance for any help,

gary




  

I use ghostscript-gpl-8.57 which is in print.
The commands are actually ps2pdf and pdf2ps. I am not using acscii 
converter but I the command  is

ps2ascii. Are you sure you are using right commands?

The other converters like dvips, dvipdfm are in print.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: GEOM, Vinum difference

2007-08-22 Thread Michel Talon
Rakhesh Sasidharan wrote:

 Another (related) question: both gvinum and the geom utilities like 
 gmirror and gstripe etc provide for RAID0, RAID1, and RAID3. Any 
 advantages/ disadvantages of using one instead of the other?

There has been a polemic between Greg Lehey and PJ Dawidek about the
comparative advantages of raid3 and raid5. You can find the exchanges on
Google. One example being:
http://arkiv.freebsd.se/?ml=freebsd-performancea=2004-08t=227183
As far as i remember there are arguments showing that raid3 is better
than raid5 both in terms of speed and of data security. It seems that
raid5 has mostly a hype factor for him, but i may err. Anyways it is for
such reasons that in the modern geom system, raid3 has been implemented
and not raid5. But vinum has been ported to the geom framework for the
benefit of old users, or of people who like it. For example if you are
using FreeBSD-4 or DragonFlyBSD, vinum is the standard tool, and you
may prefer getting expertise in just one tool.

Finally none of these raid systems is really good, both for performance
and security. If you are concerned with your data and want good write
speed, you must buy enough disks and use raid 10. Another important
factor is ease of use.  The geom tools, gmirror, gstripe, graid3, etc.
are *very* easy to use.  The documentation in the man pages is clear,
sufficient for doing work, and not too long. On the contrary, vinum was
traditionaly documented in a very hermetic way. But more recently, Greg
Lehey has provided a very clear chapter of his book on his web site
which can be recommanded, but is not short. Note the documentation is a
critical aspect of such systems because its lack may bite you in case a
disk crashes and you need to adopt correct procedures under stress.
Also for some time the gvinum stuff was extremely buggy, and was
completely non functional when i tried it. I hope it is fixed now.

-- 

Michel TALON

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


It's top shows wrong load percent?

2007-08-22 Thread Nguyen Tam Chinh
Hello,

Recently we got some trouble on some FreeBSD 6.2-STABLE servers
(GENERIC kernel). Some python scripts are working on these servers and
after a day or two we get 0% idle in the CPU states. After sometime,
the operating system will unable to do even simple task like resolving
DNS name and the zabbix process can not send outbound packets to the
remote monitoring server. Maybe the top is showing wrong load percent?
vmstat -i shows that some kind of irq0: clk has a maximum value of
1000. Does this matter?
Please advice how to debug this overload problem.
Thank you very much!

--
%top
last pid: 12901;  load averages:  8.68,  8.65,  8.65up 1+20:44:06  04:15:12
1438 processes:9 running, 1429 sleeping
CPU states: 38.8% user,  0.0% nice, 60.1% system,  1.2% interrupt,  0.0% idle
Mem: 191M Active, 784M Inact, 141M Wired, 4K Cache, 112M Buf, 824M Free
Swap: 3883M Total, 3883M Free

  PID USERNAME  THR PRI NICE   SIZERES STATETIME   WCPU COMMAND
  893 test 1205  200   283M   158M kserel 746:23  0.83% python
  878 test  207  960 59864K 39912K select 139:48  0.00% python
  693 zabbix  1 1015  1876K  1180K RUN  0:31  0.00% zabbix_agentd
  699 zabbix  1 1015  1876K  1308K RUN  0:15  0.00% zabbix_agentd
  719 zabbix  1 1015  1876K  1308K RUN  0:14  0.00% zabbix_agentd
  717 zabbix  1 1015  1876K  1308K RUN  0:14  0.00% zabbix_agentd
  718 zabbix  1 1015  1876K  1316K RUN  0:14  0.00% zabbix_agentd
  666 root1  960  3504K  2936K select   0:04  0.00% sendmail
  660 root1  960  3524K  2692K select   0:02  0.00% sshd

%vmstat -i
interrupt  total   rate
irq0: clk  161045527   1000
irq8: rtc   20609989127
irq10: fxp0 84315079523
irq14: ata0   341080  2
Total  266311675   1653

%netstat -m
1100/2485/3585 mbufs in use (current/cache/total)
1092/1730/2822/96000 mbuf clusters in use (current/cache/total/max)
1092/1724 mbuf+clusters out of packet secondary zone in use (current/cache)
0/0/0/0 4k (page size) jumbo clusters in use (current/cache/total/max)
0/0/0/0 9k jumbo clusters in use (current/cache/total/max)
0/0/0/0 16k jumbo clusters in use (current/cache/total/max)
2459K/4081K/6540K bytes allocated to network (current/cache/total)
0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters)
0/0/0 requests for jumbo clusters denied (4k/9k/16k)
0/7/16896 sfbufs in use (current/peak/max)
0 requests for sfbufs denied
0 requests for sfbufs delayed
0 requests for I/O initiated by sendfile
0 calls to protocol drain routines

From dmesg:

Copyright (c) 1992-2007 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 6.2-RELEASE #0: Fri Jan 12 10:40:27 UTC 2007
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm) Prosussor (1994.95-MHz 686-class CPU)
  Origin = AuthenticAMD  Id = 0x6a0  Stepping = 0
  
Features=0x383f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
  AMD Features=0xc0400800SYSCALL,MMX+,3DNow+,3DNow
real memory  = 2080309248 (1983 MB)
avail memory = 2029355008 (1935 MB)
kbd1 at kbdmux0
ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
acpi0: KM266P AWRDACPI on motherboard
acpi0: Power Button (fixed)
Timecounter ACPI-fast frequency 3579545 Hz quality 1000
acpi_timer0: 24-bit timer at 3.579545MHz port 0x4008-0x400b on acpi0
cpu0: ACPI CPU on acpi0
acpi_button0: Power Button on acpi0
acpi_button1: Sleep Button on acpi0
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
agp0: VIA 8235/8237 (Apollo KM400/KM400A) host to PCI bridge mem
0xe000-0xe3ff at device 0.0 on pci0
pcib1: PCI-PCI bridge at device 1.0 on pci0
pci1: PCI bus on pcib1
pci1: display, VGA at device 0.0 (no driver attached)
fxp0: Intel 82550 Pro/100 Ethernet port 0xd000-0xd03f mem
0xeb02-0xeb020fff,0xeb00-0xeb01 irq 10 at device 8.0 on
pci0
miibus0: MII bus on fxp0
inphy0: i82555 10/100 media interface on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:02:b3:ee:78:48
isab0: PCI-ISA bridge at device 17.0 on pci0
isa0: ISA bus on isab0
atapci0: VIA 8235 UDMA133 controller port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xe000-0xe00f at device 17.1 on
pci0
ata0: ATA channel 0 on atapci0
ata1: ATA channel 1 on atapci0
acpi_tz0: Thermal Zone on acpi0
fdc0: floppy drive controller port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: [FAST]

-- 
With best regards,| The Power to Serve
Nguyen Tam Chinh  |  http://www.FreeBSD.org

Ethernet controllers

2007-08-22 Thread King Wong
Dear Both,

 

Could you help me to check IBM x3250 server Ethernet controllers which can
support FreeBSD? And the Server Ethernet is Broadcom NetXtreme.

 

THX!

 

Best Regards,

 

King Wong

 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: What is a sane setting for maxdsize when running amd64? it seems many normal suggestions do not apply.

2007-08-22 Thread Dag-Erling Smørgrav
Chuck Swiger [EMAIL PROTECTED] writes:
 You should configure squid to use no more than about 60 - 70% of the
 available physical RAM-- ie, set the cache_mem parameter to about 2.5
 or 3GB.

Better yet, don't run Squid at all.  It was designed for a computer
architecture that was already obsolete when Squid was first written.

 It wouldn't be unreasonable to limit datasize to 3 GB on such a
 machine, assuming that nothing you run will ever need to grow
 larger...

...actually, maxdsiz is meaningless in FreeBSD 7, because the new
allocator uses mmap(2) instead of brk(2) / sbrk(2), so malloc() counts
towards the resident set size (ulimit -m), not the data segment size
(ulimit -d).

(unless, of course, your application has its own allocator, in which
case you can kiss performance goodbye)

DES
-- 
Dag-Erling Smørgrav - [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: What is a sane setting for maxdsize when running amd64? it seems many normal suggestions do not apply.

2007-08-22 Thread Ganbold

Dag-Erling Smørgrav wrote:

Chuck Swiger [EMAIL PROTECTED] writes:
  

You should configure squid to use no more than about 60 - 70% of the
available physical RAM-- ie, set the cache_mem parameter to about 2.5
or 3GB.



Better yet, don't run Squid at all.


Ok, then what do you recommend instead of Squid?

thanks,

Ganbold



  It was designed for a computer
architecture that was already obsolete when Squid was first written.

  

It wouldn't be unreasonable to limit datasize to 3 GB on such a
machine, assuming that nothing you run will ever need to grow
larger...



..actually, maxdsiz is meaningless in FreeBSD 7, because the new
allocator uses mmap(2) instead of brk(2) / sbrk(2), so malloc() counts
towards the resident set size (ulimit -m), not the data segment size
(ulimit -d).

(unless, of course, your application has its own allocator, in which
case you can kiss performance goodbye)

DES
  



--
Heuristics are bug ridden by definition. If they didn't have bugs, then 
they'd be algorithms.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Ports build parameters (knobs)

2007-08-22 Thread Roland Smith
On Wed, Aug 22, 2007 at 09:54:08AM +0200, Gabriel Linder wrote:
 Hello,
 
 During the build of the graphical portion of my new FreeBSD-powered
 laptop I noticed that some knobs are not listed in /usr/ports/KNOBS and
 so, I can't add them to make.conf before building the packages.

I don't see why not.
 
 When I run make fetch-recursive for fluxbox, I get :
 
 WITH_DEBUG=yes  Build with debugging symbols
 WITH_DOCHTML=yesInstall the HTML documentation
 WITH_DOCPDF=yes Install the PDF documentation
 WITH_GNOME=yes  Enable GNOME support
 WITH_IMLIB2=yes Enable Imlib2 (pixmap themes) support
 [snip]
 
 and for libiconv :
 
 WITHOUT_EXTRA_ENCODINGS=yes Disable extra character sets
 WITH_EXTRA_PATCHES=yes  Apply extra patches (fixes cp932, adds
 EUCJP-MS)
 
 GNOME and DEBUG are listed in /usr/ports/KNOBS, but IMLIB2 and
 EXTRA_PATCHES are not... Is there a way to have the full list of
 supported build options?

Look at the port Makefile.

 Or maybe I am wrong and these settings are not
 supposed to be in make.conf but in /var/db/ports/portname/options, if
 so please let me know :)

If they aren't OPTIONS, just list them in make.conf like this;

.if ${.CURDIR:M*/x11-wm/fluxbox}
WITH_IMLIB2=yes
.endif

This way the variables are only defined when make is called from a
directory that ends in x11-wm/fluxbox.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpPxkxxLpNOR.pgp
Description: PGP signature


FreeBSD MBRs

2007-08-22 Thread Christopher Key
Hello,

I've a machine with 3 SATA drives.  The first (ad8) with a standard
FreeBSD install in a single slice with /boot/boot0 MBR.  The remaining
two drives (ad10, ad12) are in a RAID1 mirror with 3 slices, and used
for storing data.  They have the /boot/mbr MBR.

After booting off various USB flash drives to try and update the BIOS on
my machine, it got into a state where during startup, it would display
'Missing operating system' and hang.  What seems to have been happening
is that it was trying to boot from one of my data store drives, despite
the boot order of the disks set in the BIOS.

The only solution that I found was to start booting from a USB flash
drive with a boot0 MBR, and to hit F5 to change to booting from my first
drive  After this, the machine then reboots quite happily until I hit F5
again, in which case I get the same 'Missing operating behavior'.  This
persists even while power cycling the machine.

I had imagined the boot process to be entirely stateless, certainly
across power cycles.  The BIOS executes the MBR on the first drive in
its boot boot.  The boot0 MBR then allowed you to either execute the
boot sector from any of the slices on the current drive, or to execute
the MBR from the next drive in the list.

However, this clearly isn't what's happening.  Is it boot0 remembering
my F5 key stroke, or is it more likely that the BIOS is remembering
something?  Does anyone have any recommendations to avoid this in the
future?  Is putting boot0 on all three drives a good idea perhaps?

Regards,

Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: What is a sane setting for maxdsize when running amd64? it seems many normal suggestions do not apply.

2007-08-22 Thread Claus Guttesen
  You should configure squid to use no more than about 60 - 70% of the
  available physical RAM-- ie, set the cache_mem parameter to about 2.5
  or 3GB.
 
 
  Better yet, don't run Squid at all.

 Ok, then what do you recommend instead of Squid?

Varnish.

http://varnish.projects.linpro.no/

-- 
regards
Claus

When lenity and cruelty play for a kingdom,
the gentlest gamester is the soonest winner.

Shakespeare
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: What is a sane setting for maxdsize when running amd64? it seems many normal suggestions do not apply.

2007-08-22 Thread Dag-Erling Smørgrav
Ganbold [EMAIL PROTECTED] writes:
 Dag-Erling Smørgrav [EMAIL PROTECTED] writes:
  Better yet, don't run Squid at all.
 Ok, then what do you recommend instead of Squid?

That depends on what you use it for...

DES
-- 
Dag-Erling Smørgrav - [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Minimal gateway hardware configuration

2007-08-22 Thread Bahman M.
One other question -a bit silly:
If I use that configuration as the gateway, can it be left on and
working 24x7? I mean, regarding the _hardware_, how often does it need
to be powered off: once a day, once a week, ... to prevent hardware
failures such as HDD crash?

Bahman

On 8/21/07, Bahman M. [EMAIL PROTECTED] wrote:
  Note: You need two LAN cards:  One for the outside connection and one
  to your internal network.  (You probably already know that, but since you
  referred to 'LAN Card' in the singular I thought I should mention it
  anyway.)
 
 Yes, the machine has 2 D-Link cards.

  More than enough.
 
  I use a Pentium I @ 133MHz w/ 64MB RAM as a gateway with a faster Internet
  connection (8Mbps down / 1Mbps up) and it has no problem keeping up.
 
  Earlier I had only 512 Kbps connection, and at that time used a 386sx @
  33MHZ w/ 8MB RAM as gateway.  It had no problem handling that speed.
 
 Then my configuration is not minimal I'd say :-)
 Thanks.

 Bahman

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Ports build parameters (knobs)

2007-08-22 Thread Gabriel Linder
On Wed, 22 Aug 2007 13:17:17 +0200
Roland Smith [EMAIL PROTECTED] wrote:

 On Wed, Aug 22, 2007 at 09:54:08AM +0200, Gabriel Linder wrote:
  Hello,
  
  During the build of the graphical portion of my new FreeBSD-powered
  laptop I noticed that some knobs are not listed in /usr/ports/KNOBS
  and so, I can't add them to make.conf before building the packages.
 
 I don't see why not.
  

Because I was thinking that everything possible was included
in /usr/ports/KNOBS, which is not the case, I know now.

  When I run make fetch-recursive for fluxbox, I get :
  
  WITH_DEBUG=yes  Build with debugging symbols
  WITH_DOCHTML=yesInstall the HTML documentation
  WITH_DOCPDF=yes Install the PDF documentation
  WITH_GNOME=yes  Enable GNOME support
  WITH_IMLIB2=yes Enable Imlib2 (pixmap themes) support
  [snip]
  
  and for libiconv :
  
  WITHOUT_EXTRA_ENCODINGS=yes Disable extra character sets
  WITH_EXTRA_PATCHES=yes  Apply extra patches (fixes cp932,
  adds EUCJP-MS)
  
  GNOME and DEBUG are listed in /usr/ports/KNOBS, but IMLIB2 and
  EXTRA_PATCHES are not... Is there a way to have the full list of
  supported build options?
 
 Look at the port Makefile.
 

That's an idea, but I was looking for a list similar
to /usr/ports/KNOBS, if such a list exists. If not, I guess I will have
to run grep on /usr/ports :)

  Or maybe I am wrong and these settings are not
  supposed to be in make.conf but
  in /var/db/ports/portname/options, if so please let me know :)
 
 If they aren't OPTIONS, just list them in make.conf like this;
 
 .if ${.CURDIR:M*/x11-wm/fluxbox}
 WITH_IMLIB2=yes
 .endif
 
 This way the variables are only defined when make is called from a
 directory that ends in x11-wm/fluxbox.

Thanks for this precision !
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: SATA to PCI cards

2007-08-22 Thread Jack Stone

From: Bahman M. [EMAIL PROTECTED]
To: freebsd-questions@freebsd.org
Subject: SATA to PCI cards
Date: Tue, 21 Aug 2007 13:39:01 +0330

Hi all,

I'm running FreeBSD 6.2.
$ uname -a
FreeBSD attila 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 10:40:27
UTC 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC
 i386

My motherboard which is an ASUS A7V8X-X doesn't support SATA. I
searched the internet and found out that there are SATA to PCI cards
for my situation. Is anyone using such cards? Will they cause any
problem with FreeBSD 6.2?

By the way, I'd appreciate any suggestions for a good SATA to PCI card to 
buy.


Thanks in advance,
Bahman


Yes, I've had good luck with the Promise brand PCI-SATA cards on 6.x. We are 
using this method to evolve older machines to SATA.


HTH

Jack

_
Puzzles, trivia teasers, word scrambles and more. Play for your chance to 
win! http://club.live.com/home.aspx?icid=CLUB_hotmailtextlink


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Gnome FreeBSD

2007-08-22 Thread Roger Olofsson

Michael S skrev:

Good day all,

I decided to add GUI to my GUI-less FreeBSD machine. I
am  considering installing Gnome, which I haven't used
for long while and the last time was on Linux anyway.
The reason is that most of my favorite applications
use gtk libraries, like Firefox, GAIM (can't get used
to the new name),wxPython and others. In short I
wanted to avoid 2 huge sets of libraries (gtk and qt)
by not installing KDE.
I wanted to know how Gnome feels on FreeBSD, is it
polished enough? Are there crashes? Any caveats at
all?

Thanks in advance,
Michael
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]




A while back on this list I read about fluxbox so I decided to try it 
out. I like it very much, it's very lightweight and very flexible. It's 
in the ports tree if you want to have a look.



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


AMD64 vs i386

2007-08-22 Thread Arend P. van der Veen

Hi All,

I have a general question.

We have access to some new AMD64 based Dell Servers with 2 Core Duo 
Xeons.  We are currently using i386 Dell Servers with a core duo 
processor.  I recall from my MS Windows days that when there was the 
shift from 16-bit to 32-bit processors it did take a while for 
applications to support 32 bit.  Sometimes 16-bit applications actually 
ran slower on the 32-bit hardware.  I know this is a loaded question:


- Will the AMD64 based FreeBSD 6.2 distribution with applications such 
as Postgresql, Apache, Python, Tomcat and SBCL be able to take advantage 
of the 64-bit quad processor?


Thanks,
Arend
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Minimal gateway hardware configuration

2007-08-22 Thread Manolis Kiagias


Bahman M. wrote:
 One other question -a bit silly:
 If I use that configuration as the gateway, can it be left on and
 working 24x7? I mean, regarding the _hardware_, how often does it need
 to be powered off: once a day, once a week, ... to prevent hardware
 failures such as HDD crash?

 Bahman


   
You will be pleasantly surprised to find out that with adequate cooling
and a good quality power supply, most standard PCs can go on for ages
without a single problem, no shutdowns, no reboots. A UPS is also
recommended but definitely not required if the machine will not have
mission critical data (as I understand, yours will not have any data at
all...). In fact, from my experience, the 24/7 machines may be more
reliable than others since they will not go the endless power up / down
cycles that actually stresses components, both electronic and mechanical
(like disks). Hard disks mostly wear out from constant head movement and
not just by simply spinning idly. Low load machines, where IO bound
processes are few, will have no problems with disk reliability. Just
test the components (ie memtest, disk surface etc. esp. if old),
install, turn on and forget. FreeBSD will happily do the rest...
forever that is :)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


beryl dell x300 intell 845i blues

2007-08-22 Thread Dan Sikorsky

xorg.conf at bottom of email.. I Followed these instructions,
http://www.bsdforums.org/forums/archive/index.php/t-47986.html
except without nvidia driver
cause i have intel 855i or somthing chipset.
ps. i dont have compat5 enabled in rc.conf

I try to start emerald... i receive no errors, just sits there at 
command line.
I try to start beryl... the 'style' dissappears off my windows that are 
open (you know, cant click or move it or anything) and then it goes 
white... if i do the zoom out thing, moving mouse to
top right corner, it stays white, but i can see my terminal icon, click 
it, and hit ctrl +c to stop beryl.


here is output of term after starting and killing beryl.

$ beryl
**
* Beryl system compatiblity check*
**

Detected xserver: AIGLX

Checking Display :0.0 ...

Checking for XComposite extension   : passed (v0.3)
Checking for XDamage extension  : passed
Checking for RandR extension: passed
Checking for XSync extension: passed

Checking Screen 0 ...

Checking for GLX_SGIX_fbconfig  : passed
Checking for GLX_EXT_texture_from_pixmap: passed
Checking for non power of two texture support   : passed
Checking maximum texture size   : passed (2048x2048)

beryl: No GLXFBConfig for default depth, falling back on visinfo.
Reloading options
beryl: Error int SHM creation











# File generated by xorgconfig.

#
# Copyright 2004 The X.Org Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the 
Software),

# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
# # The above copyright notice and this permission notice shall be 
included in

# all copies or substantial portions of the Software.
# # THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, 
EXPRESS OR

# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
# The X.Org Foundation BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
# OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
# # Except as contained in this notice, the name of The X.Org Foundation 
shall

# not be used in advertising or otherwise to promote the sale, use or other
# dealings in this Software without prior written authorization from
# The X.Org Foundation.
#

# **
# Refer to the xorg.conf(5) man page for details about the format of # 
this file.

# **

# **
# Module section -- this  section  is used to specify
# which dynamically loadable modules to load.
# **
#
Section Module

# This loads the DBE extension module.

  Loaddbe  # Double buffer extension

# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
  SubSection  extmod
Optionomit xfree86-dga   # don't initialise the DGA extension
  EndSubSection

# This loads the font modules
  Loadtype1
  Loadfreetype
  Loadextmod
  Loadrecord
  Loadxtrap
#Loadxtt

# This loads the GLX module
  Load   glx
# This loads the DRI module
#Load   dri

EndSection

# **
# Files section.  This allows default font and rgb paths to be set
# **

Section Files

# The location of the RGB database.  Note, this is the name of the
# file minus the extension (like .txt or .db).  There is normally
# no need to change the default.

#RgbPath/usr/local/share/X11/rgb

# Multiple FontPath entries are allowed (which are concatenated together),
# as well as specifying multiple comma-separated entries in one FontPath
# command (or a combination of both methods)
# #
  FontPath   /usr/local/lib/X11/fonts/misc/
  FontPath   /usr/local/lib/X11/fonts/TTF/
  FontPath   /usr/local/lib/X11/fonts/OTF
  FontPath   /usr/local/lib/X11/fonts/Type1/
  FontPath   /usr/local/lib/X11/fonts/100dpi/
  FontPath   /usr/local/lib/X11/fonts/75dpi/
  FontPath   /usr/local/lib/X11/fonts/local/

Re: Minimal gateway hardware configuration

2007-08-22 Thread Erik Trulsson
On Wed, Aug 22, 2007 at 04:07:42PM +0330, Bahman M. wrote:
 One other question -a bit silly:
 If I use that configuration as the gateway, can it be left on and
 working 24x7? I mean, regarding the _hardware_, how often does it need
 to be powered off: once a day, once a week, ... to prevent hardware
 failures such as HDD crash?

As long as it doesn't overheat (and as long as you do not care overly much
about increasing the electricity bill) you can pretty much leave it on all
the time.




 
 Bahman
 
 On 8/21/07, Bahman M. [EMAIL PROTECTED] wrote:
   Note: You need two LAN cards:  One for the outside connection and one
   to your internal network.  (You probably already know that, but since you
   referred to 'LAN Card' in the singular I thought I should mention it
   anyway.)
  
  Yes, the machine has 2 D-Link cards.
 
   More than enough.
  
   I use a Pentium I @ 133MHz w/ 64MB RAM as a gateway with a faster Internet
   connection (8Mbps down / 1Mbps up) and it has no problem keeping up.
  
   Earlier I had only 512 Kbps connection, and at that time used a 386sx @
   33MHZ w/ 8MB RAM as gateway.  It had no problem handling that speed.
  
  Then my configuration is not minimal I'd say :-)
  Thanks.
 
  Bahman
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

-- 
Insert your favourite quote here.
Erik Trulsson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ldconfig problem after upgrade 4.11 to 5.5

2007-08-22 Thread Kris Kennaway
On Wed, Aug 22, 2007 at 08:44:31AM +0200, Martin Schweizer wrote:
 Hello Kris
 
 Am Wed, Aug 22, 2007 at 02:31:04AM -0400 Kris Kennaway schrieb:
   
   Am Wed, Aug 22, 2007 at 12:37:25AM -0400 Kris Kennaway schrieb:
On Wed, Aug 22, 2007 at 06:22:46AM +0200, Martin Schweizer wrote:
 After I updated my 4.11 to an 5.5 system (following 
 /usr/src/UPDATING), I get 
 around 63 error messages while the system boot up:
 
 ldconfig: /var/run/ld.so.hints: No such file or directory
   search: trailing characters ignored
   No such file or directory
 0: - lmalloc.1.1: trailing characters ignored. No such file 
 or 
 directory
 ...
 ...
 
Looks like it might be a broken symlink.

Why are you updating to 5.5 though?  You should be using 6.2.
   
   If I'm understanding /usr/src/UPDATING correct I should first update to 
   5.5 
   and then to 6.2?
  
  OK.  It may have been easier (and still could be) to just do a binary
  upgrade instead.
  
   Any ideas where I can check this symlink?
  
  Use find(1) to look for libmalloc.so.1.1
 
 The files are all located in /usr/lib/compat/aout. The path is defined in 
 /etc/defaults/rc.conf
 [snip]
 ldconfig_paths_aout=/usr/lib/compat/aout /usr/X11R6/lib/aout 
 /usr/local/lib/aout
 [snip]
 
 Any ideas?

Are you missing aout support from your kernel?  I think it's COMPAT_AOUT.

Kris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: AMD64 vs i386

2007-08-22 Thread Kris Kennaway
On Wed, Aug 22, 2007 at 08:58:34AM -0400, Arend P. van der Veen wrote:
 Hi All,
 
 I have a general question.
 
 We have access to some new AMD64 based Dell Servers with 2 Core Duo 
 Xeons.  We are currently using i386 Dell Servers with a core duo 
 processor.  I recall from my MS Windows days that when there was the 
 shift from 16-bit to 32-bit processors it did take a while for 
 applications to support 32 bit.  Sometimes 16-bit applications actually 
 ran slower on the 32-bit hardware.  I know this is a loaded question:
 
 - Will the AMD64 based FreeBSD 6.2 distribution with applications such 
 as Postgresql, Apache, Python, Tomcat and SBCL be able to take advantage 
 of the 64-bit quad processor?

This is a very frequently asked question, so you might like to do a
bit of research in the archives or on google.

Kris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Configuring OpenLDAP and FreeBSD 6.2R

2007-08-22 Thread Lisandro Grullon
Hi all,
I have been trying to get openLDAP up and running before I decide to integrated 
into a number of aplications. 
 
The port currently install are:
openldap-sasl-client-2.4.3.aopenldap-server-2.4.3.a
db4-4.0.14_1,1
 
 
After restarting the service and looking at the logs, I am getting some 
warnings, can someone elaborate what they mean with the following.
 
Aug 22 09:16:00 sce2 slapd[32190]: @(#) $OpenLDAP: slapd 2.4.3alpha (Oct 18 
2006 03:27:53) $[EMAIL 
PROTECTED]:/work/a/ports/net/openldap24-server/work/openldap-2.4.3alpha/servers/slapdAug
 22 09:16:00 sce2 slapd[32190]: NSSWITCH(nss_method_lookup): ldap, passwd, 
endpwent, not foundAug 22 09:16:00 sce2 slapd[32190]: 
NSSWITCH(nss_method_lookup): ldap, group, setgrent, not foundAug 22 09:16:00 
sce2 slapd[32190]: NSSWITCH(nss_method_lookup): ldap, group, getgrent_r, not 
foundAug 22 09:16:00 sce2 slapd[32190]: NSSWITCH(nss_method_lookup): ldap, 
group, endgrent, not foundAug 22 09:16:00 sce2 slapd[32190]: 
NSSWITCH(nss_method_lookup): ldap, group, endgrent, not foundAug 22 09:16:00 
sce2 slapd[32191]: slapd starting
 
I have added the following entries to my rc.conf.
 
# Configuration for OpenLDAPslapd_enable=YESslapd_flags='-h 
ldapi://%2fvar%2frun%2fopenldap%2fldapi/ 
ldap://0.0.0.0/;'slapd_sockets=/var/run/openldap/ldapi
I have also change my nsswitch settings to reflect the following.
 
group: files ldap compatgroup_compat: nishosts: files dnsnetworks: filespasswd: 
files ldap compatpasswd_compat: nisshells: files
 
Thank you in advance for your input.
 
FreeBSD sce2.mydomain.com 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 
08:43:30 UTC 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/SMP  amd64
_
Find a local pizza place, movie theater, and more….then map the best route!
http://maps.live.com/default.aspx?v=2ss=yp.bars~yp.pizza~yp.movie%20theatercp=42.358996~-71.056691style=rlvl=13tilt=-90dir=0alt=-1000scene=950607encType=1FORM=MGAC01___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Ports build parameters (knobs)

2007-08-22 Thread Maxim Khitrov
On 8/22/07, Gabriel Linder [EMAIL PROTECTED] wrote:
 Hello,

 During the build of the graphical portion of my new FreeBSD-powered
 laptop I noticed that some knobs are not listed in /usr/ports/KNOBS and
 so, I can't add them to make.conf before building the packages.

 When I run make fetch-recursive for fluxbox, I get :

 WITH_DEBUG=yes  Build with debugging symbols
 WITH_DOCHTML=yesInstall the HTML documentation
 WITH_DOCPDF=yes Install the PDF documentation
 WITH_GNOME=yes  Enable GNOME support
 WITH_IMLIB2=yes Enable Imlib2 (pixmap themes) support
 [snip]

 and for libiconv :

 WITHOUT_EXTRA_ENCODINGS=yes Disable extra character sets
 WITH_EXTRA_PATCHES=yes  Apply extra patches (fixes cp932, adds
 EUCJP-MS)

 GNOME and DEBUG are listed in /usr/ports/KNOBS, but IMLIB2 and
 EXTRA_PATCHES are not... Is there a way to have the full list of
 supported build options ? Or maybe I am wrong and these settings are not
 supposed to be in make.conf but in /var/db/ports/portname/options, if
 so please let me know :)

My experience has shown that it's always best to look at the Makefile
of any port you are about to install. That's the most reliable way to
learn about the port and the knobs it supports. However, this can be
rather tedious when installing something with a few hundred
dependencies (like gnome), so I actually came up with a solution to
speed things up.

First of all, you should install portconf from ports-mgmt and use it
to specify port-specific options. It's a much cleaner way of doing
things than using if statements in make.conf. You can also easily
transfer the configuration to other systems. In addition to
port-specific options, you can use * to set global knobs. Here's the
start of my ports.conf file just to give you an idea:

*:WITHOUT_BDB|\
  WITHOUT_DEBUG  |\
  WITHOUT_DEBUGGING  |\
  WITHOUT_IPV6   |\
  WITHOUT_NLS|\
  WITHOUT_PROFILE|\
  WITH_OPTIMIZED_CFLAGS  |\
  WITH_TTF_BYTECODE_ENABLED
converters/libiconv:  WITHOUT_EXTRA_ENCODINGS
lang/php5:WITHOUT_CGI|\
  WITH_MULTIBYTE

And so on... Now as far as actually discovering what knobs are
available, I wrote a simple script to do this. The contents are below,
save them as /usr/local/sbin/getknobs or something similar. The idea
is this; when you are about to install a port, run getknobs from the
port's directory. The script uses 'make missing' to determine all the
other ports that are about to be installed, then goes through their
port directories and searches all the files for WITH/WITHOUT_*
patterns. You then get a nice print out of all the knobs that you can
configure before running make install for the current port.

Since this script is using make missing you will not get the knobs for
ports that are already installed. The script was meant to be used from
the very beginning (i.e. starting from a clean system), so that on
each step you are only shown knobs for ports that aren't already
configured. You can easily modify this behavior if you want. You may
also need to adjust the regular expression used to find the knobs.

- Max

#!/bin/sh

cmd='make missing'
regex='WITH(OUT)?_[^[:space:]=)}\?]+'

dir=`pwd`
dir=`dirname $dir`
dir=`dirname $dir`

if [ /usr/ports != $dir ]; then
echo 12 This script must be run for a port's directory.
exit 1
fi

ports=`$cmd` `pwd | sed 's/\/usr\/ports\///'`

for port in $ports; do
knobs=`grep -Eho $regex /usr/ports/$port/* | sort | uniq`

if [ -z $knobs ]; then
continue
fi

echo --- ${port}:

for knob in $knobs; do
echo $knob
done

echo
done
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Servers Crash every few days

2007-08-22 Thread amin
 or 
directory
...
...

What did I wrong or what did I forget? Any hints are welcome.

-- 

Regards

Martin 
[EMAIL PROTECTED]

PC-Service M. Schweizer GmbH; Bannholzstrasse 6; CH-8608 Bubikon
Tel. +41 55 243 30 00; Fax: +41 55 243 33 22; http://www.pc-service.ch;
public key : http://www.pc-service.ch/pgp/public_key.asc; 
fingerprint: EC21 CA4D 5C78 BC2D 73B7  10F9 C1AE 1691 D30F D239;

-- next part --
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :
http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20070822/a6
044428/attachment-0001.pgp

--

Message: 8
Date: Wed, 22 Aug 2007 00:37:25 -0400
From: Kris Kennaway [EMAIL PROTECTED]
Subject: Re: ldconfig problem after upgrade 4.11 to 5.5
To: freebsd-questions@freebsd.org
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=us-ascii

On Wed, Aug 22, 2007 at 06:22:46AM +0200, Martin Schweizer wrote:
 Hello
 
 After I updated my 4.11 to an 5.5 system (following /usr/src/UPDATING), I
get 
 around 63 error messages while the system boot up:
 
 ldconfig: /var/run/ld.so.hints: No such file or directory
   search: trailing characters ignored
   No such file or directory
 0: - lmalloc.1.1: trailing characters ignored. No such file or 
 directory
 ...
 ...
 
 What did I wrong or what did I forget? Any hints are welcome.

Looks like it might be a broken symlink.

Why are you updating to 5.5 though?  You should be using 6.2.

Kris
-- next part --
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :
http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20070822/0b
313884/attachment-0001.pgp

--

Message: 9
Date: Wed, 22 Aug 2007 08:42:30 +0400 (GST)
From: Rakhesh Sasidharan [EMAIL PROTECTED]
Subject: Re: wildcard usage in fetch
To: Philip Hallstrom [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED] ORG freebsd-questions@FreeBSD.ORG
Message-ID: [EMAIL PROTECTED]
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed


 fetch -avrpAFU ftp://loginid:[EMAIL PROTECTED]/IDX/ActivePhotos/*/*.*
 
 The /*/ directory is 2 positions in size and
 contains 00 through 99 as directory names.
 The *.* means all files in this directory.
 
 When I execute this I get logged in but get file
 not found or not available error message.
 
 Is wildcard usage not allowed in ftp?
 
 How would you suggest to accomplish downloading source file
 directory structure and their contents?

 You might look into curl.  I know it has some wildcarding capabilities.

I haven't done ftp'ing around in a while. But a long time ago, when I did, 
I used ncftp. That does wildcarding iirc.

Regards,
- Rakhesh
 http://rakhesh.com/


--

Message: 10
Date: Wed, 22 Aug 2007 06:51:18 +0200
From: Martin Schweizer [EMAIL PROTECTED]
Subject: Re: ldconfig problem after upgrade 4.11 to 5.5
To: Kris Kennaway [EMAIL PROTECTED]
Cc: freebsd-questions@freebsd.org
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=us-ascii

Hello Kris

Am Wed, Aug 22, 2007 at 12:37:25AM -0400 Kris Kennaway schrieb:
 On Wed, Aug 22, 2007 at 06:22:46AM +0200, Martin Schweizer wrote:
  After I updated my 4.11 to an 5.5 system (following /usr/src/UPDATING),
I get 
  around 63 error messages while the system boot up:
  
  ldconfig: /var/run/ld.so.hints: No such file or directory
search: trailing characters ignored
No such file or directory
  0: - lmalloc.1.1: trailing characters ignored. No such file or 
  directory
  ...
  ...
  
 Looks like it might be a broken symlink.
 
 Why are you updating to 5.5 though?  You should be using 6.2.

If I'm understanding /usr/src/UPDATING correct I should first update to 5.5 
and then to 6.2? Any ideas where I can check this symlink?

-- 

Regards

Martin 
[EMAIL PROTECTED]

PC-Service M. Schweizer GmbH; Bannholzstrasse 6; CH-8608 Bubikon
Tel. +41 55 243 30 00; Fax: +41 55 243 33 22; http://www.pc-service.ch;
public key : http://www.pc-service.ch/pgp/public_key.asc; 
fingerprint: EC21 CA4D 5C78 BC2D 73B7  10F9 C1AE 1691 D30F D239;

-- next part --
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :
http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20070822/d6
7a2fd9/attachment-0001.pgp

--

Message: 11
Date: Wed, 22 Aug 2007 08:51:09 +0400 (GST)
From: Rakhesh Sasidharan [EMAIL PROTECTED]
Subject: Re: GEOM, Vinum difference
To: freebsd-questions@freebsd.org
Message-ID: [EMAIL PROTECTED]
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed


Lowell Gilbert wrote:

 Rakhesh Sasidharan [EMAIL PROTECTED] writes:

 I see that if I want

Re: What is a sane setting for maxdsize when running amd64? it seems many normal suggestions do not apply.

2007-08-22 Thread Dag-Erling Smørgrav
Alexandre Biancalana [EMAIL PROTECTED] writes:
 Dag-Erling Smørgrav [EMAIL PROTECTED] writes:
  Ganbold [EMAIL PROTECTED] writes:
   Ok, then what do you recommend instead of Squid?
  That depends on what you use it for...
 What the options for forward proxy/cache with user authentication and
 access control ?

I'm not really into forward proxies, but there are a few (mod_proxy,
privoxy, wwwoffle).

DES
-- 
Dag-Erling Smørgrav - [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: What is a sane setting for maxdsize when running amd64? it seems many normal suggestions do not apply.

2007-08-22 Thread Alexandre Biancalana
On 8/22/07, Dag-Erling Smørgrav [EMAIL PROTECTED] wrote:

 Ganbold [EMAIL PROTECTED] writes:
  Dag-Erling Smørgrav [EMAIL PROTECTED] writes:
   Better yet, don't run Squid at all.
  Ok, then what do you recommend instead of Squid?

 That depends on what you use it for...


What the options for forward proxy/cache with user authentication and access
control ?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


pam _start: system error

2007-08-22 Thread Kalnz

Hi!

After installing (in the jail) mysql-server-5.0.45 from ports,
I can`t get up and running my mysql server.
I have to point out that this problem is only inside the jail.
All I have is:
1) clean mysql-server install
2) default my.cnf (small systems)
3) mysql_enable=YES

After this server should run, but it didn`t, so I get this:

# /usr/local/etc/rc.d/mysql-server start
Starting mysql.
su: pam_start: system error
#

In the logs there is:
su: in openpam_load_module(): no pam_unix.so found
su: pam_start: system error

In fact pam_unix.so file is present in /usr/lib directory.
I`m sure this is because of jail, but I can`t figure out what could be 
the problem.


I`ve allready googled and did some search on this but without success:(
Any help would be apriciated.

Best Regards

--
Edmunds aka Kalnz

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Servers Crash every few days

2007-08-22 Thread Kris Kennaway
On Wed, Aug 22, 2007 at 09:06:50PM +0800, amin wrote:
 Hi,
 I have six servers running FreeBSD 6.2 and all of them have the same config.
 My servers are configured to run as a socks5 proxy server.
 
 Lately the servers are going down without any good reasons. How do I check
 what are the errors or processes or the state of the server before it goes
 down. All of them are running quite well without any reboots for the last
 few weeks. My sysctl.conf is as follows:

You need to characterise going down.  Is it panicking?  Is it
rebooting?  Is it hanging?

Consult the developers handbook for tips on how to obtain sufficient
debugging information to identify and debug a panic or hang.

Kris

pgpHIZF7Yemgk.pgp
Description: PGP signature


Snapshots fail on busy filesystem

2007-08-22 Thread Chris Morris

Greetings to all,

I'm trying to set up an automated system wherein snapshots of the file 
system are taken prior to a backup run.  The problem I'm running into 
can best be described by the following bug report:


http://www.freebsd.org/cgi/query-pr.cgi?pr=100365cat=

I get this same problem completely at random, and thus is most likely 
caused by the busy file system, I just don't have anything in place to 
prove it as the bug submitter does.


Has this bug ever been *really* fixed?  The bug report seems to try to 
call it fixed.  I even contacted the bug reporter about this and he 
admitted that the bug had never been fixed, but that he'd moved on and 
never found a way around this. 

If the bug has never been fixed, has someone developed a work around?  
My primary goal is to make sure that I have a good backup of the 
databases running on our servers when we run a backup with Bacula.  If 
there is a method other than snapshots to make absolutely sure that my 
databases are backed up correctly, I would consider that as well. 

Please help.  My backup system is running perfectly except for this 
nagging sensation that my databases aren't being backed up correctly.  
Any assistance is appreciated.


Thank you,

Chris Morris

--
S i x  F e e t  U p  |  Nowhere to go but open source
Silicon Valley: +1 (650) 401-8579 x609
Midwest: +1 (317) 861-5948 x609
Toll-Free: 1-866-SIX-FEET
mailto:[EMAIL PROTECTED]
http://www.sixfeetup.com  |  Zope/Plone Custom Development

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Ports build parameters (knobs)

2007-08-22 Thread Gabriel Linder
On Wed, 22 Aug 2007 09:32:34 -0400
Maxim Khitrov [EMAIL PROTECTED] wrote:

 On 8/22/07, Gabriel Linder [EMAIL PROTECTED] wrote:
  Hello,
 
  During the build of the graphical portion of my new FreeBSD-powered
  laptop I noticed that some knobs are not listed in /usr/ports/KNOBS
  and so, I can't add them to make.conf before building the packages.
 
  When I run make fetch-recursive for fluxbox, I get :
 
  WITH_DEBUG=yes  Build with debugging symbols
  WITH_DOCHTML=yesInstall the HTML documentation
  WITH_DOCPDF=yes Install the PDF documentation
  WITH_GNOME=yes  Enable GNOME support
  WITH_IMLIB2=yes Enable Imlib2 (pixmap themes) support
  [snip]
 
  and for libiconv :
 
  WITHOUT_EXTRA_ENCODINGS=yes Disable extra character sets
  WITH_EXTRA_PATCHES=yes  Apply extra patches (fixes cp932,
  adds EUCJP-MS)
 
  GNOME and DEBUG are listed in /usr/ports/KNOBS, but IMLIB2 and
  EXTRA_PATCHES are not... Is there a way to have the full list of
  supported build options ? Or maybe I am wrong and these settings
  are not supposed to be in make.conf but
  in /var/db/ports/portname/options, if so please let me know :)
 
 My experience has shown that it's always best to look at the Makefile
 of any port you are about to install. That's the most reliable way to
 learn about the port and the knobs it supports. However, this can be
 rather tedious when installing something with a few hundred
 dependencies (like gnome), so I actually came up with a solution to
 speed things up.
 
 First of all, you should install portconf from ports-mgmt and use it
 to specify port-specific options. It's a much cleaner way of doing
 things than using if statements in make.conf. You can also easily
 transfer the configuration to other systems. In addition to
 port-specific options, you can use * to set global knobs. Here's the
 start of my ports.conf file just to give you an idea:
 
 *:WITHOUT_BDB|\
   WITHOUT_DEBUG  |\
   WITHOUT_DEBUGGING  |\
   WITHOUT_IPV6   |\
   WITHOUT_NLS|\
   WITHOUT_PROFILE|\
   WITH_OPTIMIZED_CFLAGS  |\
   WITH_TTF_BYTECODE_ENABLED
 converters/libiconv:  WITHOUT_EXTRA_ENCODINGS
 lang/php5:WITHOUT_CGI|\
   WITH_MULTIBYTE

I did not know this tool, thanks :)

 And so on... Now as far as actually discovering what knobs are
 available, I wrote a simple script to do this. The contents are below,
 save them as /usr/local/sbin/getknobs or something similar. The idea
 is this; when you are about to install a port, run getknobs from the
 port's directory. The script uses 'make missing' to determine all the
 other ports that are about to be installed, then goes through their
 port directories and searches all the files for WITH/WITHOUT_*
 patterns. You then get a nice print out of all the knobs that you can
 configure before running make install for the current port.
 
 Since this script is using make missing you will not get the knobs for
 ports that are already installed. The script was meant to be used from
 the very beginning (i.e. starting from a clean system), so that on
 each step you are only shown knobs for ports that aren't already
 configured. You can easily modify this behavior if you want. You may
 also need to adjust the regular expression used to find the knobs.

Wow, this is a great idea with a wonderful script. Thanks you !
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Snapshots fail on busy filesystem

2007-08-22 Thread Kris Kennaway
On Wed, Aug 22, 2007 at 10:01:35AM -0400, Chris Morris wrote:
 Greetings to all,
 
 I'm trying to set up an automated system wherein snapshots of the file 
 system are taken prior to a backup run.  The problem I'm running into 
 can best be described by the following bug report:
 
 http://www.freebsd.org/cgi/query-pr.cgi?pr=100365cat=
 
 I get this same problem completely at random, and thus is most likely 
 caused by the busy file system, I just don't have anything in place to 
 prove it as the bug submitter does.
 
 Has this bug ever been *really* fixed?  The bug report seems to try to 
 call it fixed.  I even contacted the bug reporter about this and he 
 admitted that the bug had never been fixed, but that he'd moved on and 
 never found a way around this.

Sounds like you both need to talk to [EMAIL PROTECTED]  Of course as long as he
thinks the problem is fixed he is not going to work on fixing it :)

Kris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: What is a sane setting for maxdsize when running amd64? it seems many normal suggestions do not apply.

2007-08-22 Thread JoaoBR
On Tuesday 21 August 2007 20:54:36 N. Harrington wrote:
 Hello
  I feel stupid, but I am confused about kern.maxdsiz (or datasize via
 limits command) on FreeBSD amd64.


  I have seen many posts and suggestions to raise it to 1G. However it seems
 this only applies to i386. By default, on servers I have with 4G of
 physical memory, and 2X that of swap, I am showing a reported datasize
 limit of 33554432KB. far in excess of even my physical and swap combined! I
 have seen suggestions from mysql for maxdsize to be set to 1G. Obviously no
 such problem with amd64?

on amd64 when maxdsiz not set it stops at 512 limit but soon you set it to 1G  
it appearently is able to use more  this is not the case on i386 - but I 
would say don't worry about it

on i386 your machine could hang at boot when setting maxdsiz higher than 
installed physical memory but that never happened to me with amd64

I have some server running squid for caching perfect with 4, 8 and 16G of RAM 

I set maxdsiz do 3G on machines with 4Gigs of RAM but I do not run anything 
else so then I adjust cache_mem with maximum_object_size_in_memory to use the 
most possible amount of memory without doing swap. 

anyway you set it in boot.loader there is no need to compile something into 
the kernel

-- 

João







A mensagem foi scaneada pelo sistema de e-mail e pode ser considerada segura.
Service fornecido pelo Datacenter Matik  https://datacenter.matik.com.br
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: AMD64 vs i386

2007-08-22 Thread Roland Smith
On Wed, Aug 22, 2007 at 08:58:34AM -0400, Arend P. van der Veen wrote:

 - Will the AMD64 based FreeBSD 6.2 distribution with applications such as 
 Postgresql, Apache, Python, Tomcat and SBCL be able to take advantage of 
 the 64-bit quad processor?

Yes, if you compile them natively on AMD64.

Whether this results in speedups depends on a lot of factors.
Instruction words on AMD64 are longer than i386, so binaries tend to be
bigger, but on the other hand you've got more general purpose registers.

The general consensus seems to be that you _need_ AMD64 if you routinely
run out of address space. In other situations it can be nice to have,
but it depends on the apps and the workload.

I've been using an AMD64 system as my main desktop machine for years
without problems. There are some ports that won't work, but that's
mostly x86 binaries like the flash plugin and nvidia drivers. Both of
which I can well live without.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpfMxLXAP3eR.pgp
Description: PGP signature


Re: ldconfig problem after upgrade 4.11 to 5.5

2007-08-22 Thread Martin Schweizer
Hello Kris

Am Wed, Aug 22, 2007 at 09:20:51AM -0400 Kris Kennaway schrieb:
  After I updated my 4.11 to an 5.5 system (following 
  /usr/src/UPDATING), I get 
  around 63 error messages while the system boot up:
  
  ldconfig: /var/run/ld.so.hints: No such file or directory
search: trailing characters ignored
No such file or directory
  0: - lmalloc.1.1: trailing characters ignored. No such file 
  or 
  directory
  ...
  ...
  
 Looks like it might be a broken symlink.
 
 Why are you updating to 5.5 though?  You should be using 6.2.

If I'm understanding /usr/src/UPDATING correct I should first update to 
5.5 
and then to 6.2?
   
   OK.  It may have been easier (and still could be) to just do a binary
   upgrade instead.
   
Any ideas where I can check this symlink?
   
   Use find(1) to look for libmalloc.so.1.1
  
  The files are all located in /usr/lib/compat/aout. The path is defined in 
  /etc/defaults/rc.conf
  [snip]
  ldconfig_paths_aout=/usr/lib/compat/aout /usr/X11R6/lib/aout 
  /usr/local/lib/aout
  [snip]
  
  Any ideas?
 
 Are you missing aout support from your kernel?  I think it's COMPAT_AOUT.

As described in /usr/src/UPDATING I compiled my kernel with this option.

-- 

Regards

Martin 
[EMAIL PROTECTED]

PC-Service M. Schweizer GmbH; Bannholzstrasse 6; CH-8608 Bubikon
Tel. +41 55 243 30 00; Fax: +41 55 243 33 22; http://www.pc-service.ch;
public key : http://www.pc-service.ch/pgp/public_key.asc; 
fingerprint: EC21 CA4D 5C78 BC2D 73B7  10F9 C1AE 1691 D30F D239;



pgpsMLyBCGkoe.pgp
Description: PGP signature


Natd statistics

2007-08-22 Thread eternityos


Hello everyone :)
I'm trying to get some natd stats such as
number of active connections
List of active connections and originating IP
Destination ports
Destination IPs...

I would grab those informations from 5 to 5 minutes or so...
Even better would be to be able to grab those through snmp...


Thanks for any help you could provide :)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: fsck strangeness

2007-08-22 Thread Chris
On 20/08/07, Ian Smith [EMAIL PROTECTED] wrote:
 Sorry for the repeat post folks, but I goofed last time, leaving out the
 subject line while replying to the digest.  Still curious .. Ian
 ===

 On Sat, 18 Aug 2007 21:32:28 +0200 Erik Trulsson [EMAIL PROTECTED] wrote:
   On Sat, Aug 18, 2007 at 08:21:42PM +0100, Christopher Key wrote:
Hello,
   
I'm having some rather strange behaviour with fsck.
   
When I boot the system, it asserts that all the file systems are clean, 
 but
subsequently running an fsck on /dev/ad8s1e (mounted as /var) detects
errors.  Even if this first check is run whilst the file system is 
 mounted,
and is hence run in NO WRITE mode, a second check doesn't find block
errors.  If I then unmount the file system and check the disk, it's fine,
as indeed it is if I unmount, remount, then check.  However, if I then
reboot, the process repeats, and an fsck immediately after reboot will 
 find
errors again.  If I bring the system up in single user mode, and run fsck
either before or after mounting /var, it finds no errors.
   
I'm running 6.2_RELEASE with a custom kernel based upon generic-smp, but
with a lot of unecessary bits removed, and geom_mirror compiled in.  I
don't think it's the drive that's at fault, all the other partitions in 
 the
slice are fine, it's a fairly new drive, and it passes a self test quite
happily.  Included below is a transcript that attempt to show what's 
 going
on in detail, is there anything else relevant?
   
Can anyone suggest what might be going on and how to fix it, or suggest
some slightly better diagnostics?  Apologies if this is an RTFM issue, I
have had a good dig through the handbook, but can't seem to find anything
that helps.

   Running fsck on a file system that has been mounted read/write will almost
   always report spurious errors and can really screw up the disk if it tries
   to 'correct' those errors.

 I'm a bit confused by this.  I've been running 'fsck -n' over FreeBSD
 systems since 2.2.6, and modulo seeing the at-the-time inconsistencies
 on those filesystems in /etc/fstab that are mounted, as Chris reported
 and as are expected, I've never had a problem with it, nor seen the sort
 of inconsistent results between runs that Chris is reporting.

   You should normally not run fsck on a mounted filesystem and you should
   *NEVER* run fsck on a filesystem that has been mounted read/write.

 This seems to imply that using the -n switch may have different results
 than not using it and having fsck determine 'NO WRITE' itself from the
 fact that it's noticed that the fs is mounted?  Are you suggesting by
 can really screw up the disk if it tries to 'correct' those errors
 that fsck might WRITE to a mounted fs that it's showing as 'NO WRITE'?

 I've never had any screwups with it, but then I've always specified -n.

 Later Bill Moran said:

   Don't run fsck on mounted filesystems unless they're mounted read-only.
  
   Although, it's possible I misunderstood your description of the problem.

 so I'm still curious, and am wondering if Chris using SMP kernel and/or
 geom_mirror might have anything to do with this?  Or whether his use of
 'umount -f' might be (or cause) the problem indicated by his results?

# umount -f /var
   
   
# mount /var

 Cheers, Ian

 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]


If its bad to run fsck on a mounted read,write then why does
background fsck do it? or you talking about foreground fsck only?

Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Servers Crash every few days

2007-08-22 Thread Roland Smith
On Wed, Aug 22, 2007 at 09:06:50PM +0800, amin wrote:
 Hi,
 I have six servers running FreeBSD 6.2 and all of them have the same config.
 My servers are configured to run as a socks5 proxy server.
 
 Lately the servers are going down without any good reasons. How do I check
 what are the errors or processes or the state of the server before it goes
 down. All of them are running quite well without any reboots for the last
 few weeks.

Do what Kris mentioned, but check for hardware issues as well; overheating,
voltage drops etc. The mbmon port running from cron and logging to another
machine can be helpfull here.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpYXxsle56zT.pgp
Description: PGP signature


Re: wildcard usage in fetch

2007-08-22 Thread Jerry McAllister
On Tue, Aug 21, 2007 at 04:04:47PM -0700, Philip Hallstrom wrote:

 fetch -avrpAFU ftp://loginid:[EMAIL PROTECTED]/IDX/ActivePhotos/*/*.*
 
 The /*/ directory is 2 positions in size and
 contains 00 through 99 as directory names.
 The *.* means all files in this directory.
 
 When I execute this I get logged in but get file
 not found or not available error message.
 
 Is wildcard usage not allowed in ftp?
 
 How would you suggest to accomplish downloading source file
 directory structure and their contents?

I have used wildcards with no problem with FTP, but only within a
single directory at a time.   I have never used it in a recursive 
situation like you indicate, so, don't know about that.

jerry

 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: IPFW Questions.

2007-08-22 Thread Lowell Gilbert
Grant Peel [EMAIL PROTECTED] writes:

 I was wondering what the concensus is on using dynamic rules in IPFW. Every 
 once in a while, I suppose there is a DoS attaclk that causes me to see 
 hundreds of:

 +ipfw: install_state: Too many dynamic rules

 in my security log.

 I am sure i read somewhere that many people are skipping the dynamic rules 
 and just relying on the line by line rules.

 You thoughts please.

You shouldn't allow people outside the network to invoke a dynamic
rule; that's a limited resource that they can overwhelm, as you see.
Usual practice is to set up state only on already-confirmed
connections; in my case, that means only outbound packets that didn't
match any previous state.

 Any while your up, does anyone really know what this means?

 ipfw: pullup failed

 I dont see that often maybe 1 or 2 times a month.

A pullup is just advancing deeper into the packet.  If it failed,
that probably means the packet was too short.

Truncated packets can happen for a number of benign reasons, but if
they happen frequently they're probably a sign of a problem in your
network equipment.  By frequently I mean several orders of magnitude
more than you're seeing them.  Don't worry about it.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ata1 probe causes lockup

2007-08-22 Thread Paul Keusemann
On Mon, Jun 11, 2007 at 08:40:05AM -0400, Tuc at T-B-O-H.NET wrote:
 Hi,
 
   Having a problem installing 5.5 on a Toshiba 2805-S301 laptop.
 (I *HAVE* to load 5.5 on it for various reasons). I can load 5.4 
 perfectly, but as soon as I go to 5.5, the kernel won't boot. If
 I boot in 5.4 with verbose, I get
 

[snip]

I'm seeing the same problem that you are.  I upgraded from 5.4 to 5.5
(via make buildworld, etc) and now the kernel boot hangs in exactly the
same place that it did for you.  FYI, I'm booting off a SCSI drive, I
have one IDE device -- a CDROM configured as the master on the secondary
channel and I have two SATA drives.

The weird thing is it booted the first time and will _very_ occasionally
boot but most of the time it hangs.  I've tried removing the CDROM drive,
disabling IDE altogether but nothing seems to help.

I've also been able to boot 6.2 from the CD but I have not tried upgrading
to it yet and I'd prefer not to at this point.

Have you resolved this issue and if so, how?
-- 
Paul Keusemann [EMAIL PROTECTED]
4266 Joppa Court   (952) 894-7805
Savage, MN  55378
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD MBRs

2007-08-22 Thread Jerry McAllister
On Wed, Aug 22, 2007 at 12:27:51PM +0100, Christopher Key wrote:

 Hello,
 
 I've a machine with 3 SATA drives.  The first (ad8) with a standard
 FreeBSD install in a single slice with /boot/boot0 MBR.  The remaining
 two drives (ad10, ad12) are in a RAID1 mirror with 3 slices, and used
 for storing data.  They have the /boot/mbr MBR.
 
 After booting off various USB flash drives to try and update the BIOS on
 my machine, it got into a state where during startup, it would display
 'Missing operating system' and hang.  What seems to have been happening
 is that it was trying to boot from one of my data store drives, despite
 the boot order of the disks set in the BIOS.
 
 The only solution that I found was to start booting from a USB flash
 drive with a boot0 MBR, and to hit F5 to change to booting from my first
 drive  After this, the machine then reboots quite happily until I hit F5
 again, in which case I get the same 'Missing operating behavior'.  This
 persists even while power cycling the machine.
 
 I had imagined the boot process to be entirely stateless, certainly
 across power cycles.  The BIOS executes the MBR on the first drive in
 its boot boot.  The boot0 MBR then allowed you to either execute the
 boot sector from any of the slices on the current drive, or to execute
 the MBR from the next drive in the list.
 
 However, this clearly isn't what's happening.  Is it boot0 remembering
 my F5 key stroke, or is it more likely that the BIOS is remembering
 something?  Does anyone have any recommendations to avoid this in the
 future?  Is putting boot0 on all three drives a good idea perhaps?

I am having a little trouble following the narrative here, but maybe I
can comment on a couple of specific questions.

The system does record your most recent menu choice and the next time
it will be the default if you don't hit another one during the countdown.
This makes it default to trying to boot the way it last booted.

You only need an MBR on disks that will be booted.  I don't know as
it will actually hurt anything to write an MBR on non-boot, data only
disks, but it can garbage up you menu with non-functional choices.

Those other disk with an MBR show up as an F5 and maybe F6, etc (I've
never had more than two at a time) in the menu, but then if you hit
F5, it won't be able to go anywhere, because there is no real boot
stuff on that disk.

jerry

 
 Regards,
 
 Chris
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Minimal gateway hardware configuration

2007-08-22 Thread Jerry McAllister
On Wed, Aug 22, 2007 at 04:07:42PM +0330, Bahman M. wrote:

 One other question -a bit silly:
 If I use that configuration as the gateway, can it be left on and
 working 24x7? I mean, regarding the _hardware_, how often does it need
 to be powered off: once a day, once a week, ... to prevent hardware
 failures such as HDD crash?

On average, the less you power it off the better.
Power cycling is more stressful than running.
The exception would be if it is getting too hot while running and
that is a totally different problem, not fixable by powering it off
and on.

jerry

 
 Bahman
 
 On 8/21/07, Bahman M. [EMAIL PROTECTED] wrote:
   Note: You need two LAN cards:  One for the outside connection and one
   to your internal network.  (You probably already know that, but since you
   referred to 'LAN Card' in the singular I thought I should mention it
   anyway.)
  
  Yes, the machine has 2 D-Link cards.
 
   More than enough.
  
   I use a Pentium I @ 133MHz w/ 64MB RAM as a gateway with a faster Internet
   connection (8Mbps down / 1Mbps up) and it has no problem keeping up.
  
   Earlier I had only 512 Kbps connection, and at that time used a 386sx @
   33MHZ w/ 8MB RAM as gateway.  It had no problem handling that speed.
  
  Then my configuration is not minimal I'd say :-)
  Thanks.
 
  Bahman
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: What is a sane setting for maxdsize when running amd64? it seems many normal suggestions do not apply.

2007-08-22 Thread JoaoBR
On Wednesday 22 August 2007 08:32:05 Claus Guttesen wrote:
   You should configure squid to use no more than about 60 - 70% of the
   available physical RAM-- ie, set the cache_mem parameter to about 2.5
   or 3GB.
  
   Better yet, don't run Squid at all.
 
  Ok, then what do you recommend instead of Squid?

 Varnish.

 http://varnish.projects.linpro.no/

that certainly is a really hotty for caching :)


-- 

João







A mensagem foi scaneada pelo sistema de e-mail e pode ser considerada segura.
Service fornecido pelo Datacenter Matik  https://datacenter.matik.com.br
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: What is a sane setting for maxdsize when running amd64? it seems many normal suggestions do not apply.

2007-08-22 Thread Chuck Swiger

On Aug 22, 2007, at 3:53 AM, Dag-Erling Smørgrav wrote:

Chuck Swiger [EMAIL PROTECTED] writes:

You should configure squid to use no more than about 60 - 70% of the
available physical RAM-- ie, set the cache_mem parameter to about 2.5
or 3GB.


Better yet, don't run Squid at all.  It was designed for a computer
architecture that was already obsolete when Squid was first written.


This could be said of a lot of software, including many Unix  
flavors.  :-)


I can think of several things to criticise about Squid-- a config  
file which falls between Apache's httpd.conf and a sendmail.cf in  
terms of complexity is probably close to the top of my list, but for  
the simple purpose of saving limited network bandwidth using on-disk  
or in-memory caching, squid does just fine.  I'd be happy to look at  
Varnish when I get a chance, though.



It wouldn't be unreasonable to limit datasize to 3 GB on such a
machine, assuming that nothing you run will ever need to grow
larger...


...actually, maxdsiz is meaningless in FreeBSD 7, because the new
allocator uses mmap(2) instead of brk(2) / sbrk(2), so malloc() counts
towards the resident set size (ulimit -m), not the data segment size
(ulimit -d).


OK.  Nicole, the OP, mentioned amd64, not -CURRENT, but I'll keep  
this in mind for future reference.


Regards,
--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: It's top shows wrong load percent?

2007-08-22 Thread Chuck Swiger

On Aug 22, 2007, at 2:34 AM, Nguyen Tam Chinh wrote:

Please advice how to debug this overload problem.
Thank you very much!

--
%top
last pid: 12901;  load averages:  8.68,  8.65,  8.65up 1 
+20:44:06  04:15:12

1438 processes:9 running, 1429 sleeping


Look at the number of processes you've got-- most likely you've got  
some scripts leaving zombie processes around, or one of the server  
programs you are running isn't cleaning up after it's children  
properly.  Do a ps aux and look for excessive numbers of processes


--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Servers Crash every few days

2007-08-22 Thread Aminuddin
Thanks.
But the servers are dedicated servers rented from a datacenter. I'm not sure
if it hangs or panic. The provider just keep rebooting when we said servers
not responding.
 Will try to use mbmon. Is there any ports I can use to log what actually
happened before it hangs or crashes?


-Original Message-
From: Roland Smith [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 22, 2007 10:59 PM
To: amin
Cc: freebsd-questions@freebsd.org
Subject: Re: Servers Crash every few days

On Wed, Aug 22, 2007 at 09:06:50PM +0800, amin wrote:
 Hi,
 I have six servers running FreeBSD 6.2 and all of them have the same
config.
 My servers are configured to run as a socks5 proxy server.
 
 Lately the servers are going down without any good reasons. How do I check
 what are the errors or processes or the state of the server before it goes
 down. All of them are running quite well without any reboots for the last
 few weeks.

Do what Kris mentioned, but check for hardware issues as well; overheating,
voltage drops etc. The mbmon port running from cron and logging to another
machine can be helpfull here.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Need to edit rc.conf, but FS won't allow.

2007-08-22 Thread Lisandro Grullon

Hi all,
I was playing around with rc.conf under /etc and accidentally didn't quote 
properly one of my YES entries, now the system won't boot. I tried booting 
into single user and re-editing the file, yet the time I tried saving it it 
tells me that the root files systm is read only. Is ther a way around this. 
Thanks in advance.
_
Learn. Laugh. Share. Reallivemoms is right place!
http://www.reallivemoms.com?ocid=TXT_TAGHMloc=us___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Need to edit rc.conf, but FS won't allow.

2007-08-22 Thread Gabor Kovesdan

Lisandro Grullon escribió:

Hi all,
I was playing around with rc.conf under /etc and accidentally didn't quote properly one of my YES entries, now the system won't boot. I tried booting into single user and re-editing the file, yet the time I tried saving it it tells me that the root files systm is read only. Is ther a way around this. 
  
/ is read-only in single user mode. Use mount -u / to remount / witht 
the default options in /etc/fstab after booting into single user mode. 
You should be able to edit rc.conf now.


Regards,

--
Gabor Kovesdan
FreeBSD Volunteer

EMAIL: [EMAIL PROTECTED] .:|:. [EMAIL PROTECTED]
WEB:   http://people.FreeBSD.org/~gabor .:|:. http://kovesdan.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


ls there any way to limit the server resource per user?

2007-08-22 Thread ann kok
Hi all

I have desktop computer to our user access to use eg:
web browser. office

ls there any way to limit the server resource per
user?

thank you


   

Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos  more. 
http://mobile.yahoo.com/go?refer=1GNXIC
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Need to edit rc.conf, but FS won't allow. [Thank you, Solved]

2007-08-22 Thread Lisandro Grullon

 Date: Wed, 22 Aug 2007 19:36:02 +0200 From: [EMAIL PROTECTED] To: [EMAIL 
 PROTECTED] CC: freebsd-questions@freebsd.org Subject: Re: Need to edit 
 rc.conf, but FS won't allow.  Lisandro Grullon escribió:  Hi all,  I 
 was playing around with rc.conf under /etc and accidentally didn't quote 
 properly one of my YES entries, now the system won't boot. I tried booting 
 into single user and re-editing the file, yet the time I tried saving it it 
 tells me that the root files systm is read only. Is ther a way around this.  
   / is read-only in single user mode. Use mount -u / to remount / witht  
 the default options in /etc/fstab after booting into single user mode.  You 
 should be able to edit rc.conf now.  Regards,  --  Gabor Kovesdan 
 FreeBSD Volunteer  EMAIL: [EMAIL PROTECTED] .:|:. [EMAIL PROTECTED] WEB: 
 http://people.FreeBSD.org/~gabor .:|:. http://kovesdan.org  
 ___ 
 freebsd-questions@freebsd.org mailing list 
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, 
 send any mail to [EMAIL PROTECTED]
_
See what you’re getting into…before you go there
http://newlivehotmail.com/?ocid=TXT_TAGHM_migration_HM_viral_preview_0507___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ls there any way to limit the server resource per user?

2007-08-22 Thread Peter Boosten
ann kok wrote:
 Hi all
 
 I have desktop computer to our user access to use eg:
 web browser. office
 
 ls there any way to limit the server resource per
 user?
 

Have a look a login.conf (man 5 login.conf)

Peter
-- 
http://www.boosten.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Building UNSTRIPPED binaries in ports?

2007-08-22 Thread Doug Barton

On Tue, 21 Aug 2007, Dan Mahoney, System Admin wrote:


Hello,

I am encountering a bug with named-9.4.1-P1 that I am attempting to work with 
ISC on, that I have built from ports (dns/bind94).


That's great, every little bit helps. :) You might also be interested to 
know that they have a new beta out for 9.4.2. 
ftp://ftp.isc.org/isc/bind9/9.4.2b1/bind-9.4.2b1.tar.gz
You should probably download that and take a look at the changelog to see 
if your issues are covered.


However, I need a non-stripped version of the binary to get a backtrace. 
I can't roll my own binary because it may be related to some way that 
the port is built so I need to maintain a similar build environment.


I purposely do not do anything exotic with the port, so I doubt that's 
related. However, you can easily replicate the port's build environment by 
doing 'make config ; make -V CONFIGURE_ARGS' then running configure with 
that output and building it yourself.


Of course, the advice you got on WITH_DEBUG is also good if you want to 
use the port anyway.



hth,

Doug

--

This .signature sanitized for your protection

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD MBRs

2007-08-22 Thread Lowell Gilbert
Christopher Key [EMAIL PROTECTED] writes:

 I've a machine with 3 SATA drives.  The first (ad8) with a standard
 FreeBSD install in a single slice with /boot/boot0 MBR.  The remaining
 two drives (ad10, ad12) are in a RAID1 mirror with 3 slices, and used
 for storing data.  They have the /boot/mbr MBR.

 After booting off various USB flash drives to try and update the BIOS on
 my machine, it got into a state where during startup, it would display
 'Missing operating system' and hang.  What seems to have been happening
 is that it was trying to boot from one of my data store drives, despite
 the boot order of the disks set in the BIOS.

 The only solution that I found was to start booting from a USB flash
 drive with a boot0 MBR, and to hit F5 to change to booting from my first
 drive  After this, the machine then reboots quite happily until I hit F5
 again, in which case I get the same 'Missing operating behavior'.  This
 persists even while power cycling the machine.

 I had imagined the boot process to be entirely stateless, certainly
 across power cycles.  The BIOS executes the MBR on the first drive in
 its boot boot.  The boot0 MBR then allowed you to either execute the
 boot sector from any of the slices on the current drive, or to execute
 the MBR from the next drive in the list.

 However, this clearly isn't what's happening.  Is it boot0 remembering
 my F5 key stroke, or is it more likely that the BIOS is remembering
 something?  Does anyone have any recommendations to avoid this in the
 future?  Is putting boot0 on all three drives a good idea perhaps?

The boot process isn't completely stateless at the best of times; it
uses the partition (as in slice) table to tell it what to boot by
default.  I think that explains the behaviour when you boot from the
flash drive, but not when you try to boot from the SATA disk.

It won't hurt, and might help, to put the FreeBSD boot manager on more
of the disks.  You could also try other boot managers; at the expense
of having a boot manager that doesn't fit completely into the MBR, you
could get something more user-friendly.

Good luck.
-- 
[Greetings to Cambridge; I spent a term in the city as a teenager
(fifth form), and I loved the place.]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


syslog redundancy

2007-08-22 Thread Sean Murphy

Can syslogd provide failover redundancy to another box?

Should I configure my devices to send to two different syslogd servers? 
(if the devices allow more then one syslogd box to log to.  If not I 
would like to know if the first option is available.)

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: syslog redundancy

2007-08-22 Thread Eric Crist

On Aug 22, 2007, at 1:29 PMAug 22, 2007, Sean Murphy wrote:


Can syslogd provide failover redundancy to another box?

Should I configure my devices to send to two different syslogd  
servers? (if the devices allow more then one syslogd box to log  
to.  If not I would like to know if the first option is available.)


Sure, why not?  Try man syslog.conf, or read what's already within  
your /etc/syslog.conf file.  You'd just have to set up a rule to send  
off to another server, and configure that server to listen those  
requests, of course.  We do this very thing for our public boxen so  
that there's less worry with log tampering, etc.


HTH
-
Eric F Crist
Secure Computing Networks


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Servers Crash every few days

2007-08-22 Thread Roland Smith
On Thu, Aug 23, 2007 at 01:19:10AM +0800, Aminuddin wrote:
 Thanks.
 But the servers are dedicated servers rented from a datacenter.

Then get their tech support involved. See if they can log in on the console.

 I'm not sure if it hangs or panic. The provider just keep rebooting
 when we said servers not responding.

Which service doesn't respond anymore? Are you sure that the problem
isn't in the datacenter's hardware. e.g. faulty router or switch.

  Will try to use mbmon. Is there any ports I can use to log what actually
 happened before it hangs or crashes?

Syslogd(8) from the base system can log to a syslogd on another machine.

Set the services that you use to log more than normal. That might make
it easier to catch the event that causes the problems.

Does it hang or does it crash? Those are different things.  If the
kernel panics, there's not a lot you can do remotely. Obviously it can't
log it to another machine. Enable crashdumps and analyze them as the
machine comes up.

I'm guessing a lot here because I don't know your setup. If you want
better help, provide more information.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpZd9OY52KnC.pgp
Description: PGP signature


Re: Servers Crash every few days

2007-08-22 Thread Ovi

Kris Kennaway wrote:


On Wed, Aug 22, 2007 at 09:06:50PM +0800, amin wrote:
 


Hi,
I have six servers running FreeBSD 6.2 and all of them have the same config.
My servers are configured to run as a socks5 proxy server.

Lately the servers are going down without any good reasons. How do I check
what are the errors or processes or the state of the server before it goes
down. All of them are running quite well without any reboots for the last
few weeks. My sysctl.conf is as follows:
   



You need to characterise going down.  Is it panicking?  Is it
rebooting?  Is it hanging?

Consult the developers handbook for tips on how to obtain sufficient
debugging information to identify and debug a panic or hang.

Kris

I had the same issue, kernel panic and server reboot after tuning to 
high sysctl variable (like maxsockbuf, but others too)

but having only 1 GB of RAM.

Another rebooting problem was caused by running tcpdump on high used router.

Other problem can be caused by hardware problems (I had those too).

I disabled once creation of coredump by kernel, and I had problem (with 
6.2), when an userland app crash, the kernel panicked because of that.


Last, some userland apps. can cause kernel panic and reboot.

ovi

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Need to edit rc.conf, but FS won't allow.

2007-08-22 Thread Jerry McAllister
On Wed, Aug 22, 2007 at 01:32:30PM -0400, Lisandro Grullon wrote:

 
 Hi all,
 I was playing around with rc.conf under /etc and accidentally didn't quote 
 properly one of my YES entries, now the system won't boot. I tried 
 booting into single user and re-editing the file, yet the time I tried 
 saving it it tells me that the root files systm is read only. Is there
 a way around this. Thanks in advance.

Yes, when you boot single user, it comes up with root mounted read-only
and no other file system mounted.
You need to remount root.
At minimum do:
  mount -u /

Actually, from long habit, when I boot single user,
I do the whole schmear as follows:
  fsck -p
  mount -u /
  mount -a
  swapon -a
and then go on to fix up what I need.

jerry

 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


xdm fails! can't find pcidata

2007-08-22 Thread Gary Kline

I just rebooted my DNS server and now X fails. I'm pretty sure I
did everything re the xorg instructions in UPDATING.  The error 
message in /var/lob/Xorg.0.log says exactly::

(II) Loader running on freebsd
(II) LoadModule: pcidata
(WW) Warning, couldn't open module pcidata
(II) UnloadModule: pcidata
(EE) Failed to load module pcidata (module does not exist, 0)

How can I fix this?  I find pcidata deep in the
/usr/sys/src.../dev directory.  Nothing in my KERNCONF=GENERIC
file.   Insights, anybody??

tia,

gary




-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ls there any way to limit the server resource per user?

2007-08-22 Thread ann kok
thank you

Can I limit the bandwidth by user what they use any
program to download and upload?

thank you

--- Peter Boosten [EMAIL PROTECTED] wrote:

 ann kok wrote:
  Hi all
  
  I have desktop computer to our user access to use
 eg:
  web browser. office
  
  ls there any way to limit the server resource per
  user?
  
 
 Have a look a login.conf (man 5 login.conf)
 
 Peter
 -- 
 http://www.boosten.org
 ___
 freebsd-questions@freebsd.org mailing list

http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]
 



  

Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel 
and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: xdm fails! can't find pcidata

2007-08-22 Thread Yuri Pankov
On Wed, Aug 22, 2007 at 12:11:47PM -0700, Gary Kline wrote:
 
   I just rebooted my DNS server and now X fails. I'm pretty sure I
   did everything re the xorg instructions in UPDATING.  The error 
   message in /var/lob/Xorg.0.log says exactly::
 
 (II) Loader running on freebsd
 (II) LoadModule: pcidata
 (WW) Warning, couldn't open module pcidata
 (II) UnloadModule: pcidata
 (EE) Failed to load module pcidata (module does not exist, 0)
 
   How can I fix this?  I find pcidata deep in the
   /usr/sys/src.../dev directory.  Nothing in my KERNCONF=GENERIC
   file.   Insights, anybody??
 
   tia,
 
   gary
 
 
 
 
 -- 
   Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix

Could you show us what is your ModulePath set to? (either from xorg.conf or from
Xorg.0.log, should be /usr/local/lib/xorg/modules).


Yuri
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: xdm fails! can't find pcidata

2007-08-22 Thread Boris Samorodov
On Wed, 22 Aug 2007 12:11:47 -0700 Gary Kline wrote:

   I just rebooted my DNS server and now X fails. I'm pretty sure I
   did everything re the xorg instructions in UPDATING.  The error 
   message in /var/lob/Xorg.0.log says exactly::

 (II) Loader running on freebsd
 (II) LoadModule: pcidata
 (WW) Warning, couldn't open module pcidata
 (II) UnloadModule: pcidata
 (EE) Failed to load module pcidata (module does not exist, 0)

   How can I fix this?  I find pcidata deep in the
   /usr/sys/src.../dev directory.  Nothing in my KERNCONF=GENERIC
   file.   Insights, anybody??

I've seen something like this after Xorg-6.9 to Xorg-7.1 update. Seems
that I succeeded after deletting my old xorg.conf file, creating a new
one and fitting it.


WBR
-- 
bsam
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ps2ascii. c.

2007-08-22 Thread Gary Kline
On Wed, Aug 22, 2007 at 11:47:15AM +0400, Yuri Pankov wrote:
 On Wed, Aug 22, 2007 at 12:35:47AM -0700, Gary Kline wrote:
  
  Guys,
  
  If this is a re-post, sorry.  I thought I mailed this to -questions.
  Anyway, where are the pdf and pd and other ghostscript converters?
  I thought these utilities were in the default distribution, but I
  can't find them. pdfps, pdftoascii, and so forth.
  
  thanks in advance for any help,
  
  gary
  
  
  
  
  -- 
Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
  
 
 They are in print/ghostscript-{afpl,gnu,gpl}, though ghostscript-gpl is
 preferred one.
 
 
 HTH,


It prob'ly will.   Maybe I can select which things to build from
the Makefile.  It's been awhle.

gary



 Yuri
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ls there any way to limit the server resource per user?

2007-08-22 Thread Roland Smith
On Wed, Aug 22, 2007 at 12:34:22PM -0700, ann kok wrote:
 thank you
 
 Can I limit the bandwidth by user what they use any
 program to download and upload?

The pf firewall can do this. Filter packets by user, then assign them to
an appropriate queue. Read pf.conf(5). You'll have to rebuild the kernel
with altq(4), since it's not in the generic kernel and it's not
available as a module.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpkUIRddwKGd.pgp
Description: PGP signature


Re: ps2ascii. c.

2007-08-22 Thread Gary Kline
On Wed, Aug 22, 2007 at 01:12:06AM -0700, Predrag Punosevac wrote:
 Gary Kline wrote:
  Guys,
 
  If this is a re-post, sorry.  I thought I mailed this to -questions.
  Anyway, where are the pdf and pd and other ghostscript converters?
  I thought these utilities were in the default distribution, but I
  can't find them. pdfps, pdftoascii, and so forth.
 
  thanks in advance for any help,
 
  gary
 
 
 
 
   
 I use ghostscript-gpl-8.57 which is in print.
 The commands are actually ps2pdf and pdf2ps. I am not using acscii 
 converter but I the command  is
 ps2ascii. Are you sure you are using right commands?


On my Ubuntu server (which is starting to fail big time)
there is pdf2ascii.  It takes severa flags, so it may be a custom
script from the Debian guys.  Here (FBSD) the scripts are
similar, but much simpler; fewer flaf.s.  --Of course I haven't
upgraded ghostscript-gnu for months.

BTW, I was looking for the ps/pdf stuff in converters  Live
and learn!
 
 The other converters like dvips, dvipdfm are in print.

thanks, gents; it helps to have all this expertise 

gary



-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


FreeBSD 6.2 on new Mac mini

2007-08-22 Thread Richard Tobin
I'm running FreeBSD 6.2 on a new (i.e. Core 2 Duo) Mac mini.  It was
generally remarkably painless, except for getting up-to-date with Xorg.

I used Boot Camp Assistant to partition the disk, but I didn't install
rEFIt so I have to select windows' to boot FreeBSD.  I got a double
fault when exiting the FreeBSD installer but everything seems ok.
Both cores are recognised and appear to work.  I haven't bothered to
get the wired ethernet working because the wireless works adequately.
I had to use 915resolution to get my 1680x1050 display working
properly with X.

I haven't installed the Macbook patches (http://wiki.freebsd.org/AppleMacbook)
as they seem to be for current, and I'm running 6.2.  Many of them are
irrelevant to the mini anyway (backlight etc).  The one thing I don't seem 
to have is sound: kldload snd_driver doesn't seem to find any sound
devices.  Is there a solution to this?

-- Richard
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


/var or /usr for data?

2007-08-22 Thread Brad Waite
It would appear that the proper allocation of filesystems on FreeBSD is
to put all data in /usr.  I'm used to this and have been doing it for
years.

However, there's a few issues that keep coming up.  A lot of the ports use
/var for data dirs.  MySQL, Qmail, dspam are a few that I've had issues
with.

Is there a canonical place to put data files on a modern FreeBSD server? 
Figuring out the sizes for each partition is an exercise in frustration
when I don't know how big /var or /usr are going to grow.

For now, I've changed the default config files for MySQL and dspam to use
/usr/local for data dirs, but is this the right thing to do?

I used to put everything on /, but that created problems when I couldn't
fsck the single large partition and I had to boot from CD to fix things. 
That's an issue when the server's not in the same state.

A Solaris associate of mine is of the opinion that /usr should be able to
be mounted RO for security purposes.  If /var was the default for all
add-ons and data, I could see that, but that wouldn't work the ways things
are now.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /var or /usr for data?

2007-08-22 Thread Maxim Khitrov
On 8/22/07, Brad Waite [EMAIL PROTECTED] wrote:
 It would appear that the proper allocation of filesystems on FreeBSD is
 to put all data in /usr.  I'm used to this and have been doing it for
 years.

 However, there's a few issues that keep coming up.  A lot of the ports use
 /var for data dirs.  MySQL, Qmail, dspam are a few that I've had issues
 with.

 Is there a canonical place to put data files on a modern FreeBSD server?
 Figuring out the sizes for each partition is an exercise in frustration
 when I don't know how big /var or /usr are going to grow.

 For now, I've changed the default config files for MySQL and dspam to use
 /usr/local for data dirs, but is this the right thing to do?

 I used to put everything on /, but that created problems when I couldn't
 fsck the single large partition and I had to boot from CD to fix things.
 That's an issue when the server's not in the same state.

 A Solaris associate of mine is of the opinion that /usr should be able to
 be mounted RO for security purposes.  If /var was the default for all
 add-ons and data, I could see that, but that wouldn't work the ways things
 are now.

I put all the server-related data such as databases, mail, websites,
subversion/mercurial repositories under /srv. It's part of the FHS,
but I don't think many people use it. You should not be using /usr for
this. I think of /usr as the place where software gets installed to
(and from), but there shouldn't be your own data under it with the
exception of configuration files. If I had to use something other than
/srv I would go for /var, but in my opinion that's also messy.
Especially so if you have /var/tmp on the same partition.

As far as partition sizes go, I tend to follow a rather simple model.
I give 1GB to /, even though that's usually an overkill, 2xRAM for
swap, 1-4GB for /var depending on what I plan to use the machine for,
5-20GB for /usr (20 is mostly for workstations where you plan to run
an X server with many other apps), and the rest either for /srv or
/home. For a server I use /srv, for a workstation I use /home.

- Max
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Strange rsync issue

2007-08-22 Thread Chris Maness
I am experiencing a very strange issue when I sync up my FreeBSD file 
server with my windows box using rsync.  It seems as though the windows 
files end up read only in a way that I can't change back to read write 
using the standard windows tools, even if I delete it and create it 
again, very wierd.  I can use the --no-p flag to keep it from copying 
these perms over to the FreeBSD box.


Thanks,

--
Chris Maness
(909) 223-9179
http://www.chrismaness.com

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: What is a sane setting for maxdsize when running amd64? it seems many normal suggestions do not apply.

2007-08-22 Thread Ganbold

Dag-Erling Smørgrav wrote:

Ganbold [EMAIL PROTECTED] writes:
  

Dag-Erling Smørgrav [EMAIL PROTECTED] writes:


Better yet, don't run Squid at all.
  

Ok, then what do you recommend instead of Squid?



That depends on what you use it for...

DES
  


We are using several squid machines (6 machines, each have all others as 
a siblings) for transparent caching/proxying

using gre tunnel and wccp2 (with Cisco router).
Can varnish work in such situation?

thanks,

Ganbold


--
A [golf] ball hitting a tree shall be deemed not to have hit the tree. 
Hitting a tree is simply bad luck and has no place in a scientific game. 
The player should estimate the distance the ball would have traveled if 
it had not hit the tree and play the ball from there, preferably atop a 
nice firm tuft of grass. -- Donald A. Metz

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


mplayer, vlc, gimp issues in the past week

2007-08-22 Thread Jimmie James
Hi, not 100% sure where this is coming from, but in the past 7-10 days 
(my port update times) something has triggered the following.


mplayer foo.flv results in it crashing with:
X11 error: BadAccess (attempt to access private resource denied)
MPlayer interrupted by signal 6 in module: decode_video

vlc foo.flv results in it playing the clip, but with the following error:
(.:80554): Gdk-WARNING **: shmget failed: error 28 (No space left on device)

and starting up the gimp causes:
(gimp:80561): Gdk-WARNING **: shmget failed: error 28 (No space left on 
device)
(gimp:80561): Gimp-Plug-In-WARNING **: shmget() failed: No space left on 
device


Last time I saw this was in June, 
http://www.freebsd.org/cgi/getmsg.cgi?fetch=1705036+1708586+/usr/local/www/db/text/2007/freebsd-questions/20070701.freebsd-questions


There was a bug in x11/libX11, which was fixed with
   /usr/ports/x11/libX11/files/patch-src::GetMoEv.c
(IIRC around June 22)

Any suggestions/ideas/hints?


--
If you can't beat your computer at chess, try kickboxing.
--- --- ---
Solving Today's Problems Tomorrow
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Configuring OpenLDAP on FreeBSD 6.2 Release, Problems.

2007-08-22 Thread Olivier Nicole
 I think it may be a problem there, do you have any how to for that configur=
 ation, in case I can double check. Off course besides the info provide at o=
 penldap.org. Thanks in advance.

Sorry, I am pretty new with LDAP too :) I have no documentation beside
the one I found from Googling around.

Olivier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mplayer, vlc, gimp issues in the past week

2007-08-22 Thread Tuc at T-B-O-H.NET
 mplayer foo.flv results in it crashing with:
 X11 error: BadAccess (attempt to access private resource denied)
 MPlayer interrupted by signal 6 in module: decode_video

Hey, I started getting that too. The only thing *I* linked
it to was I had installed nsplayer. Weird that they'd be associated,
but was the only thing I changed recently. As soon as I exit my
web browser that stops.

Tuc
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Investment Partner.

2007-08-22 Thread Paul Moore

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /var or /usr for data?

2007-08-22 Thread Andrew Gould
On 8/22/07, Brad Waite [EMAIL PROTECTED] wrote:

 It would appear that the proper allocation of filesystems on FreeBSD is
 to put all data in /usr.  I'm used to this and have been doing it for
 years.

 However, there's a few issues that keep coming up.  A lot of the ports use
 /var for data dirs.  MySQL, Qmail, dspam are a few that I've had issues
 with.

 Is there a canonical place to put data files on a modern FreeBSD server?
 Figuring out the sizes for each partition is an exercise in frustration
 when I don't know how big /var or /usr are going to grow.

 For now, I've changed the default config files for MySQL and dspam to use
 /usr/local for data dirs, but is this the right thing to do?

 I used to put everything on /, but that created problems when I couldn't
 fsck the single large partition and I had to boot from CD to fix things.
 That's an issue when the server's not in the same state.

 A Solaris associate of mine is of the opinion that /usr should be able to
 be mounted RO for security purposes.  If /var was the default for all
 add-ons and data, I could see that, but that wouldn't work the ways things
 are now.

 I usually move the data directories (/usr/home, /usr/local/pgsql,
/var/db/mysql, etc) to a separate, hard drive mounted at /data and create
symbolic links back at the default locations.  If you run out of space, you
can move the data to a larger hard drive and either adjust the links or have
the new drive mount at /data (or wherever you choose).

I hope this helps.

Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: GEOM, Vinum difference

2007-08-22 Thread Rakhesh Sasidharan


Michel Talon wrote:


Rakhesh Sasidharan wrote:


Another (related) question: both gvinum and the geom utilities like
gmirror and gstripe etc provide for RAID0, RAID1, and RAID3. Any
advantages/ disadvantages of using one instead of the other?


There has been a polemic between Greg Lehey and PJ Dawidek about the
comparative advantages of raid3 and raid5. You can find the exchanges on
Google. One example being:
http://arkiv.freebsd.se/?ml=freebsd-performancea=2004-08t=227183
As far as i remember there are arguments showing that raid3 is better
than raid5 both in terms of speed and of data security. It seems that
raid5 has mostly a hype factor for him, but i may err. Anyways it is for
such reasons that in the modern geom system, raid3 has been implemented
and not raid5. But vinum has been ported to the geom framework for the
benefit of old users, or of people who like it. For example if you are
using FreeBSD-4 or DragonFlyBSD, vinum is the standard tool, and you
may prefer getting expertise in just one tool.

Finally none of these raid systems is really good, both for performance
and security. If you are concerned with your data and want good write
speed, you must buy enough disks and use raid 10. Another important
factor is ease of use.  The geom tools, gmirror, gstripe, graid3, etc.
are *very* easy to use.  The documentation in the man pages is clear,
sufficient for doing work, and not too long. On the contrary, vinum was
traditionaly documented in a very hermetic way. But more recently, Greg
Lehey has provided a very clear chapter of his book on his web site
which can be recommanded, but is not short. Note the documentation is a
critical aspect of such systems because its lack may bite you in case a
disk crashes and you need to adopt correct procedures under stress.
Also for some time the gvinum stuff was extremely buggy, and was
completely non functional when i tried it. I hope it is fixed now.


Great, thanks Michael! :) That's just the sort of info I was looking for 
...


Regards,

- Rakhesh
http://rakhesh.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: SATA to PCI cards

2007-08-22 Thread Bahman M.
 Yes, I've had good luck with the Promise brand PCI-SATA cards on 6.x. We are
 using this method to evolve older machines to SATA.
Thanks for the hint. Would you tell me why did you choose Promise
brand as it's expensive compared to the other brands?

Bahman


 Hi all,
 
 I'm running FreeBSD 6.2.
 $ uname -a
 FreeBSD attila 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 10:40:27
 UTC 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC
   i386
 
 My motherboard which is an ASUS A7V8X-X doesn't support SATA. I
 searched the internet and found out that there are SATA to PCI cards
 for my situation. Is anyone using such cards? Will they cause any
 problem with FreeBSD 6.2?
 
 By the way, I'd appreciate any suggestions for a good SATA to PCI card to
 buy.
 
 Thanks in advance,
 Bahman

 Yes, I've had good luck with the Promise brand PCI-SATA cards on 6.x. We are
 using this method to evolve older machines to SATA.

 HTH

 Jack

 _
 Puzzles, trivia teasers, word scrambles and more. Play for your chance to
 win! http://club.live.com/home.aspx?icid=CLUB_hotmailtextlink

 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Minimal gateway hardware configuration

2007-08-22 Thread Bahman M.
Thank you all! Very surprising! I didn't know that.

Bahman
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: isc-dhcp3-server issues with windows 2000 client

2007-08-22 Thread Olivier Nicole
Hi,

 I built it by doing:
 cd /usr/ports/net/isc-dhcp3-server  make install
 
 the version = isc-dhcp3-server-3.0.5_2 for both,  could their be code changes 
 if the _2 did not change?

There should not be any change BUT... I imagine the aplied patches
could be different depending on FreeBSD version? The port maintener
would know about that.

 it is started via supplied shell script isc-dhcp3, I just renamed to  
 isc-dhcp3.sh
 
 I tried setting authoritative on and off in the dhcpd.conf file and that had 
 no effect.  
 
 It is almost like dhcpd does not even recognize the packets coming
 from win2k, but WinXP and FreeBSD clients seem okay.  I haven't
 tried other clients yet (Linux / Mac) but do have them.

Have you tried to examine the W2K packets with something like
wireshark (/usr/ports/net, formerly known as etherreal), if the w2k
packets are illy formed, it should tell you.

Silly question but, you are sure that there is no rogue DHCP server
floating around, and that it is not a problem with wyour w2k client?

 It is NOT running in a jail.
 
 The weird thing is that if I set IPAutoConfiguration in the win2k
 registry to 0 ( turning it off ), win2k get the gateway and dhcp
 server configured, but not it's IP address.

I am using 6.2p7 and isc-dhcpd.3.0.5_2 without any probelm.

Bests,

Olivier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: fsck strangeness

2007-08-22 Thread Ian Smith
On Wed, 22 Aug 2007, Chris wrote:
  On 20/08/07, Ian Smith [EMAIL PROTECTED] wrote:
   Sorry for the repeat post folks, but I goofed last time, leaving out the
   subject line while replying to the digest.  Still curious .. Ian
   ===
  
   On Sat, 18 Aug 2007 21:32:28 +0200 Erik Trulsson [EMAIL PROTECTED] wrote:
 On Sat, Aug 18, 2007 at 08:21:42PM +0100, Christopher Key wrote:
  Hello,
 
  I'm having some rather strange behaviour with fsck.
 
  When I boot the system, it asserts that all the file systems are 
   clean, but
  subsequently running an fsck on /dev/ad8s1e (mounted as /var) detects
  errors.  Even if this first check is run whilst the file system is 
   mounted,
  and is hence run in NO WRITE mode, a second check doesn't find block
  errors.  If I then unmount the file system and check the disk, it's 
   fine,
  as indeed it is if I unmount, remount, then check.  However, if I then
  reboot, the process repeats, and an fsck immediately after reboot 
   will find
  errors again.  If I bring the system up in single user mode, and run 
   fsck
  either before or after mounting /var, it finds no errors.
 
  I'm running 6.2_RELEASE with a custom kernel based upon generic-smp, 
   but
  with a lot of unecessary bits removed, and geom_mirror compiled in.  I
  don't think it's the drive that's at fault, all the other partitions 
   in the
  slice are fine, it's a fairly new drive, and it passes a self test 
   quite
  happily.  Included below is a transcript that attempt to show what's 
   going
  on in detail, is there anything else relevant?
 
  Can anyone suggest what might be going on and how to fix it, or 
   suggest
  some slightly better diagnostics?  Apologies if this is an RTFM 
   issue, I
  have had a good dig through the handbook, but can't seem to find 
   anything
  that helps.
  
 Running fsck on a file system that has been mounted read/write will 
   almost
 always report spurious errors and can really screw up the disk if it 
   tries
 to 'correct' those errors.
  
   I'm a bit confused by this.  I've been running 'fsck -n' over FreeBSD
   systems since 2.2.6, and modulo seeing the at-the-time inconsistencies
   on those filesystems in /etc/fstab that are mounted, as Chris reported
   and as are expected, I've never had a problem with it, nor seen the sort
   of inconsistent results between runs that Chris is reporting.
  
 You should normally not run fsck on a mounted filesystem and you should
 *NEVER* run fsck on a filesystem that has been mounted read/write.
  
   This seems to imply that using the -n switch may have different results
   than not using it and having fsck determine 'NO WRITE' itself from the
   fact that it's noticed that the fs is mounted?  Are you suggesting by
   can really screw up the disk if it tries to 'correct' those errors
   that fsck might WRITE to a mounted fs that it's showing as 'NO WRITE'?
  
   I've never had any screwups with it, but then I've always specified -n.
  
   Later Bill Moran said:
  
 Don't run fsck on mounted filesystems unless they're mounted read-only.

 Although, it's possible I misunderstood your description of the problem.
  
   so I'm still curious, and am wondering if Chris using SMP kernel and/or
   geom_mirror might have anything to do with this?  Or whether his use of
   'umount -f' might be (or cause) the problem indicated by his results?
  
  # umount -f /var
 
 
  # mount /var

  If its bad to run fsck on a mounted read,write then why does
  background fsck do it? or you talking about foreground fsck only?

Well I was referring to foreground fsck, and I still don't know why
running it on a mounted fs is 'bad' when fsck runs in 'NO WRITE' mode
anyway when it finds a fs is mounted, hence my query above.

My knowledge of this is thin, despite reading McKusick's paper through
several times, but we're told that background fsck runs on a snapshot of
the fs concerned.  How any bg fsck corrections are woven back into the
live fs later is still a mystery to me, but that's because I still have
an only barely superficial understanding of how snapshots work ..

I still feel that your 'umount -f /var' seems potentially hairy, but
can't say if that might explain the behaviour you were reporting.

Cheers, Ian

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


freebsd-questions@freebsd.org

2007-08-22 Thread Truong Minh Hanh - FPT Software
How can I upgrate source code to 7.0-CURRENT with cvsup?
Currently I'm using 6.2p5.

Btw could anyone post here your cvsup-file to update your source code to 
7.0 CURRENT?
Tnx you very much
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: freebsd-questions@freebsd.org

2007-08-22 Thread Nguyen Tam Chinh
Please read the sample cvsup-file (in /usr/share). A detail
instruction is already there in that sample file.

On 8/23/07, Truong Minh Hanh - FPT Software [EMAIL PROTECTED] wrote:
 How can I upgrate source code to 7.0-CURRENT with cvsup?
 Currently I'm using 6.2p5.

 Btw could anyone post here your cvsup-file to update your source code to
 7.0 CURRENT?
 Tnx you very much
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]



-- 
With best regards,| The Power to Serve
Nguyen Tam Chinh  |  http://www.FreeBSD.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: It's top shows wrong load percent?

2007-08-22 Thread Nguyen Tam Chinh
On 8/23/07, Chuck Swiger [EMAIL PROTECTED] wrote:
 On Aug 22, 2007, at 2:34 AM, Nguyen Tam Chinh wrote:
  Please advice how to debug this overload problem.
  Thank you very much!
 
  --
  %top
  last pid: 12901;  load averages:  8.68,  8.65,  8.65up 1
  +20:44:06  04:15:12
  1438 processes:9 running, 1429 sleeping

 Look at the number of processes you've got-- most likely you've got
 some scripts leaving zombie processes around, or one of the server
 programs you are running isn't cleaning up after it's children
 properly.  Do a ps aux and look for excessive numbers of processes

Thank you for your reply, we actually initialized over 1200 python
threads on each server. I'll try to low down the thread number for
tracking the problem.

-- 
With best regards,| The Power to Serve
Nguyen Tam Chinh  |  http://www.FreeBSD.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cvsupfile-current was (freebsd-questions@freebsd.org)

2007-08-22 Thread Beech Rintoul
On Wednesday 22 August 2007, Truong Minh Hanh - FPT Software said:
 How can I upgrate source code to 7.0-CURRENT with cvsup?
 Currently I'm using 6.2p5.

 Btw could anyone post here your cvsup-file to update your source
 code to 7.0 CURRENT?
 Tnx you very much

*default  tag=.
*default  host=cvsup6.freebsd.org
*default  base=/usr
*default  prefix=/usr
*default  release=cvs
*default  delete use-rel-suffix
src-all
doc-all

Cheers, 

Beech

-- 
---
Beech Rintoul - FreeBSD Developer - [EMAIL PROTECTED]
/\   ASCII Ribbon Campaign  | FreeBSD Since 4.x
\ / - NO HTML/RTF in e-mail   | http://www.freebsd.org
 X  - NO Word docs in e-mail | Latest Release:
/ \  - http://www.FreeBSD.org/releases/6.2R/announce.html
---



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: freebsd-questions@freebsd.org

2007-08-22 Thread Martin Tournoij
On Thu, August 23, 2007 07:19, Truong Minh Hanh - FPT Software wrote:
 How can I upgrate source code to 7.0-CURRENT with cvsup?
 Currently I'm using 6.2p5.

 Btw could anyone post here your cvsup-file to update your source code to
 7.0 CURRENT?
 Tnx you very much
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]


You may want to edit the host to a host near you.

*default host=cvsup4.de.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=.
*default delete use-rel-suffix
*default compress
src-all

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: freebsd-questions@freebsd.org

2007-08-22 Thread Nguyen Tam Chinh
On 8/23/07, Martin Tournoij [EMAIL PROTECTED] wrote:
 On Thu, August 23, 2007 07:19, Truong Minh Hanh - FPT Software wrote:
  How can I upgrate source code to 7.0-CURRENT with cvsup?
  Currently I'm using 6.2p5.
 
  Btw could anyone post here your cvsup-file to update your source code to
  7.0 CURRENT?
  Tnx you very much
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to
  [EMAIL PROTECTED]
 

 You may want to edit the host to a host near you.

 *default host=cvsup4.de.FreeBSD.org
 *default base=/var/db
 *default prefix=/usr
 *default release=cvs tag=.
 *default delete use-rel-suffix
 *default compress
 src-all


IMO, a cvsup server from jp, tw or sg regions will be the best fit for Vietnam.

PS. Why don't FPT, as a lead  ISP, create mirrors for FreeBSD and
other OSS projects? )) I do think that this would be a very good PR
campaign :)

-- 
With best regards,| The Power to Serve
Nguyen Tam Chinh  |  http://www.FreeBSD.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]