Re: filesystem full after many mmap/munmap cycles

2008-04-05 Thread Wojciech Puchar

I have an app server that uses mmap a lot.  After running a long batch
(four hours, 5,100+ transactions), I got the message filesystem full
(/usr--ufs, local, soft-updates).  df -i says plenty of space.

I restarted the batch process, and watched app server process
carefully with fstat -p, and it looks to be behaving responsibly.  The
open file list is short, and when I looked up the file names by inum,
they were correct.

Each transaction does a mmap/munap cycle with a (big ?) file (79M),
then copies another smaller file, using mmap to do the copy.  fwrite
failed on the copy operation; FreeBSD said no space.  (When fwrite
failed, I called abort, so I have a core and can see where it
happened.)


probably the program doesn't unmap/close files that it deletes.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problem with lid on Dell D400

2008-04-05 Thread Victor M. Blood
On 04.04.2008, Spil Oss wrote:
> On a Dell D400 notebook (Pentium-M 1.4GHz, Intel 855GM, ICH4M) running
> FreeBSD 7.0 #0

> Closing the lid switches off the display, opening the lid does not
> switch the display back on. Very annoying. The machine is fully
> functional otherwise (accessed via ssh).

> Noticed this first on a vanilla FreeBSD-7.0 #0 install, the optimized
> kernel seems to behave the same.

> In sysctl I noticed after closing and opening the lid
>hw.acpi.lid_switch_state: NONE
> but I have not checked the status of this sysctl before I closed the lid.

> dmesg output is not of boot -v, but of regular boot

> I wouldn't care if the lid doesn't have acpi features (e.g. suspend on
> lid close), but I'd like the screen to switch off for additional
> battery-life.

> Hope someone can help me!

on Dell 1300B I use module acpi_video
add to loader.conf acpi_video_load="yes"

and configure devd.conf to run script on lid change status: exist in
it's examples.

notify 10 {
match "system"  "ACPI";
match "subsystem"   "Lid";
action  "/sbin/lidctl $notify";
};


# cat /sbin/lidctl
#!/bin/sh
hive=hw.acpi.video.lcd0.active
sysctl=/sbin/sysctl

case "$1" in 
"1" | "0x01") 
${sysctl} ${hive}=1 >/dev/null
;;
"0" | "0x00") 
${sysctl} ${hive}=0 >/dev/null
;;
esac




-- 
With all regards, Victor M. Blood.   mailto: [EMAIL PROTECTED]
FTN: 2:5024/[EMAIL PROTECTED], ICQ#3567656





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


The FreeBSD Diary: 2008-03-16 - 2008-04-05

2008-04-05 Thread Dan Langille
The FreeBSD Diary contains a large number of practical 
examples and how-to guides.  This message is posted weekly
to freebsd-questions@freebsd.org with the aim of letting people
know what's available on the website.  Before you post a question
here it might be a good idea to first search the mailing list 
archives  
and/or The FreeBSD Diary . 

These are the articles posted during this period:

20-Mar : ThinkPad x61s
 Unpacking the box, installing PC-BSD 
 http://freebsddiary.org/thinkpad-x61s.php?2

17-Mar : Using two monitors with X.org
 The GeForce 8600 GT with two monitors 
 http://freebsddiary.org/xorg-two-screens.php?2


-- 
Dan Langille
BSDCan - http://www.BSDCan.org/ - BSD Conference

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


filesystem full after many mmap/munmap cycles

2008-04-05 Thread Mark Bucciarelli
Hi,

I'm running FreeBSD 7.0 RC1 on AMD 64, dual Opteron with h/w raid1 (scsi).

I have an app server that uses mmap a lot.  After running a long batch
(four hours, 5,100+ transactions), I got the message filesystem full
(/usr--ufs, local, soft-updates).  df -i says plenty of space.

I restarted the batch process, and watched app server process
carefully with fstat -p, and it looks to be behaving responsibly.  The
open file list is short, and when I looked up the file names by inum,
they were correct.

Each transaction does a mmap/munap cycle with a (big ?) file (79M),
then copies another smaller file, using mmap to do the copy.  fwrite
failed on the copy operation; FreeBSD said no space.  (When fwrite
failed, I called abort, so I have a core and can see where it
happened.)

pid 29990 (r.fcgi), uid 1001 inumber 359181 on /usr: filesystem full
pid 29990 (r.fcgi), uid 1001: exited on signal 11

Filesystem  1K-blocksUsed   Avail Capacity iused  ifree %iused  Mounted on
/dev/da0s1g   6297070 3380066 241324058%  183869 640449   22%   /usr

Is there some file system delay (maybe something related to
softupdates) that could accumulate in some way that would cause the
file system full message?

Please CC me, as I'm not a subscriber.

Thanks,

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


Online shell programming training for novices

2008-04-05 Thread Gaspar Chilingarov

Hi there !


I'm going to start soon (10-14 apr) free online training for novices in 
unixes and especially FreeBSD.


If you would like to participate - join us.

Please check more details on

http://community.livejournal.com/bin_sh_en/348.html


I will post announce also to Linux communities, but a little bit later - 
I prefer to have more FreeBSD people on the training, than Linuxish ones ;)


Get your seat, while it's free :)

--
Gaspar Chilingarov

System Administrator,
Network security consulting

tel +37493 419763 (mobile - leave voice mail message)
icq 63174784
skype://gasparch
e mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
w http://gasparchilingarov.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: I'd like some help

2008-04-05 Thread Chad Perrin
On Mon, Mar 24, 2008 at 12:18:11PM +1000, Da Rock wrote:
> 
> On Sun, 2008-03-23 at 19:51 -0600, Chad Perrin wrote:
> > On Sun, Mar 23, 2008 at 09:10:04AM +1000, Da Rock wrote:
> > > 
> > > On Sat, 2008-03-22 at 14:58 -0700, Matthew Woodson wrote:
> > > > I've been learning about a bunch of the BSD OSes, and i want to try 
> > > > Free BSD, but i can't figure out how to download it and the 
> > > > instructions don't make sense. I am running Windows XP OS- can you tell 
> > > > me how to download Free BSD with it?
> > > 
> > > Go to the download section of the site and download the iso files. Once
> > > you have those, double click on them and burn them to disk.
> > 
> > Last I checked, the MS Windows built-in CD burning software didn't do
> > burning from an image -- you'd need third-party software.  Burning an ISO
> > without such software would just result in a copy of the ISO on the CD,
> > rather than a CD that would boot up an installer.
> > 
> 
> Which software were you using and how long ago? I've used Roxio, Nero,
> and Easy CD Creator- all of which did that. Most bundled burning
> software will do it automatically. They offer burn from cd/dvd  image,
> as well as data cd creation, so when you double click on an iso file it
> sets up to burn the image for you.
> 
> If you haven't got the bundled software installed I agree with you
> though. Fairly uncommon though.

Err, I didn't notice this until now.  Please excuse my late reply.

I was talking about the CD burning software that's built in to MS Windows
XP, not any third-party software.

-- 
CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ]
John W. Russell: "People point. Sometimes that's just easier. They also use
words. Sometimes that's just easier. For the same reasons that pointing has
not made words obsolete, there will always be command lines."


pgpjBkQNcNjKf.pgp
Description: PGP signature


Anyone using cups with an epson printer?

2008-04-05 Thread Steven Friedrich
I'd like to see if you have an epson backend 
in /usr/local/libexec/cups/backend
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: "Fatal Trap 19" on initial install

2008-04-05 Thread Frank Solensky
On Sat, 2008-03-22 at 19:08 +0100, Kris Kennaway wrote: 
> Frank Solensky wrote:
> > I'm attempting to add FreeBSD 7.0 onto a free disk partition on my Sony
> > Vaio (VGN-FZ340E; Intel Core 2 Duo processor; 3 GB memory) and am
> > running into a "Fatal Trap 19" while running the installation disks.
> > Here's the last screenful of messages:
> > 
  fwohci0: <1394 Open Host Controller Interface> mem 
0xfc102000-0xfc1027ff,0xfc104000-0xfc107fff irq 17 at device 3.1 on pci9
  fwochi0: [FILTER]
  fwochi0: OHCI version 1.10 (ROM=1)
  fwochi0: No. of Isochronous channels is 4.
  fwochi0: EUI64 08:00:46:03:02:91:55
> >   NMI ISA b0, EISA FF
> >   RAM parity error, likely hardware failure
> > 
> >   fatal trap 19: non-maskable interrupt trap while in kernel mode
> >   instruction pointer = 0x8:0x802da7cf
> >   stack pointer   = 0x10:0x80a738f0
> >   frame pointer   = 0x10:0
> >   code segment= base 0x0, limit 0xf, type 0x1b
> >   = DPL 0, pres 1, def32 0, gran 1
> >   processor eflags= interrupt enabled, IOPL = 0
> >   current process = 0 (swapper)
> >   trap number = 19
> >   panic: non-maskable interrupt trap
> >   cpuid = 0
> >   uptime = 1s
> > 
> > The above is from the attempt with 7.0 amd64; I've been stopped with
> > similar errors on disks with 7.0 amd64 bootonly, 7.0 i386, 6.3 amd64 and
> > 6.1 amd64.  I believe the "RAM parity error" is a red herring: I haven't
> > had any problems running Linux or Vista on this machine and running
> > Memtest86+ overnight didn't turn up any problems.
> > 
> > http://updraft3.jp.freebsd.org/cgi/query-pr.cgi?pr=i386/107564 appears
> > to be similar but unresolved.
> > 
> > Trying with ACPI disabled stops at:
> >   md0: Preloaded image  4194304 bytes at 0x80bc6c08
> >   Trying to mount root from ufs:/dev/md0
> > 
> > Any suggestions?  Thanks in advance..
> 
> The other OSes may be recovering (with performance penalty) from your 
> RAM errors due to additional code not present in FreeBSD.  In my 
> experience this error is not a red herring, it indicates a real problem 
> with your memory.

After retesting with the current version of memtest86+ and discovering
no problems, then still running into the same error after taking each
memory chip out of the portable, I brought the machine back to the
store's service department.  They didn't find anything either.

I'm suspecting that there may be some problem in the firewire driver
since that's where the final messages are coming from.

So what I'd like to do at this point is find some way to disable loading
the firewire driver to see if I can get the install process going any
further than that.  I've tried going into the command line interface and
entering "set hw.firewire.enable=0" but that doesn't seem to have any
effect.  And I don't believe I can build a custom kernel without
firewire if I can't get the initial install going.

So where to go from here?


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


Re: Documentation for port config options?

2008-04-05 Thread Maxim Khitrov
On Sat, Apr 5, 2008 at 4:09 PM, Steven Friedrich <[EMAIL PROTECTED]> wrote:
> cups-base has several options:
>
>   [X] GNUTLSBuild with GNUTLS library
>   [ ] PHP   Build PHP support
>   [ ] PYTHONBuild PYTHON support
>   [ ] LIBPAPER  Build with libpaper support
>   [ ] DNSSD Build with DNS_SD (avahi) support
>   [ ] PAM   Build with PAM support
>   [ ] LDAP  Build with LDAP support
>   [ ] DBUS  Build with DBUS support
>
>  Where can I find documentation regarding these options, so I can determine
>  which ones I need?

Your best bet is to figure out which dependencies each of the option
adds (by looking through the Makefile). This is usually pretty simple
to do as you have constructs such as if defined(WITH_X) require some
other port. You can then look at the pkg-desc file for each dependency
and decide if you need that software installed. I don't think there is
a better way at this time.

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


Re: Documentation for port config options?

2008-04-05 Thread Matthew Seaman

Steven Friedrich wrote:

cups-base has several options:

 [X] GNUTLSBuild with GNUTLS library
 [ ] PHP   Build PHP support
 [ ] PYTHONBuild PYTHON support
 [ ] LIBPAPER  Build with libpaper support
 [ ] DNSSD Build with DNS_SD (avahi) support
 [ ] PAM   Build with PAM support
 [ ] LDAP  Build with LDAP support
 [ ] DBUS  Build with DBUS support

Where can I find documentation regarding these options, so I can determine 
which ones I need?


That's actually a pretty hard thing to do, given the current way the
ports tree operates.  If you're lucky the port maintainer will have
commented the ports' Makefile nicely for you.  Another good place to
look is the documentation included in the source tarball of whatever
it is you are trying to build.  In that case, it helps if you can
follow through the logic in the ports Makefile to see what it does
to change the build when the option is toggled -- usually it's by
tweaking the options to  the configure script in the package sources.
Other possibilities are searching the web or asking someone knowledgeable.

Unfortunately there isn't a sure-fire way of getting any sort of
reasonable explanation of how port options work.  There is a proposal
being discussed over on the freebsd-ports@ list about adding a one
line explanatory snippet for each option, which would actually make
a pretty big difference despite the limited space to work with.

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Documentation for port config options?

2008-04-05 Thread Steven Friedrich
cups-base has several options:

 [X] GNUTLSBuild with GNUTLS library
 [ ] PHP   Build PHP support
 [ ] PYTHONBuild PYTHON support
 [ ] LIBPAPER  Build with libpaper support
 [ ] DNSSD Build with DNS_SD (avahi) support
 [ ] PAM   Build with PAM support
 [ ] LDAP  Build with LDAP support
 [ ] DBUS  Build with DBUS support

Where can I find documentation regarding these options, so I can determine 
which ones I need?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Local package mirror

2008-04-05 Thread freebsd
> Hello Lowell,
>
> Thank you so much for the reply. I am trying to do the build once and
> use prebuilt packages for the target boxes. However the problem I am
> facing is a bit crude.
>
> Lets assume I am trying to build pkgA which has dependencies of pkgB
> and pkgC. The process I am following is
>
> cd /usr/ports/xxx/pkgA ; make package. This makes the prebuilt package
> in /usr/ports/ packages. However it does not case about pkgB which is
> a dependency.
>
> On a target system when I am trying to pkg_add it, it is rightly
> complaining about a missing dependency and also saying that it cant
> find the package in the local repository and aborting.
>
> How can this be taken care of?
>
> Thanks
> Subhro

Hello,

Correct me if I'm wrong but all you need to do is to "make
package-recursive" instead of "make package" for your pkgA. It will make a
package for all the dependencies of pkgA.

Good luck,

Martin


> On Sat, Apr 5, 2008 at 6:26 PM, Lowell Gilbert
> <[EMAIL PROTECTED]> wrote:
>> Subhro <[EMAIL PROTECTED]> writes:
>>
>> > I am trying to get a Network install working on my local network. I
>> > have been able to successfully create a NFS export of the installation
>> > disk and perform a install from there. The target machines boot over
>> > PXE and fetch "stuff" from the NFS.
>> >
>> > However I am unable to figure out how to get the packages working. I
>> > have a list of about 180 packages which needs to be installed. But I
>> > am unable to figure out how to go about it. I would like to use
>> > precompiled packages, but the CD do not contain the packages I am
>> > looking for. One of the option is to mirror the whole package
>> > directory from the freebsd mirrors, but that story involves a lot of
>> > data transfer and bandwidth. Is there something obvious I am missing?
>> >
>> > Any help would be highly appreciated.
>>
>> There are a number of ways to do this general sort of thing.  For the
>> base system approach, with pkg_add(1), setting PACKAGEROOT (or
>> possibly PACKAGESITE depending on exactly how you configure the server
>> for network fetch, or PKG_PATH if the clients have the NFS directory
>> mounted) should be good enough.
>>
>> On the other hand, the way I do it is to have a master server, where I
>> build everything (or fetch everything, if I don't want to build it
>> myself).  Then the other machines mount /usr/ports from the master
>> server.  I use portupgrade to do the installs from the clients, which
>> knows how to use packages when available locally and only fetch them
>> if they aren't.
>>
>> I hope this helps.
>>
> ___
> 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: pkg_version error

2008-04-05 Thread Matthew Seaman

Ghirai wrote:

Hey,

Running pkg_version -vL =, when it reaches postfix is says:

--
1 open conditional:
 at line 1115 (evaluated to true)
make: fatal errors encountered -- cannot continue
pkg_version: Failed to get PKGNAME from /usr/ports/mail/postfix/Makefile!
1 open conditional:
 at line 1115 (evaluated to true)
make: fatal errors encountered -- cannot continue
pkg_version: Failed to get PKGNAME from /usr/ports/databases/ruby-bdb/Makefile!
--

Then continues normally.

Any idea how to fix it?
I'm running 6.3-RELEASE-p1 (SMP), i386.


Wait for an hour, then cvsup again.  It's a syntax error in a Makefile
that  seems to have been committed by accident, and should be fixed soon.

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


pkg_version error

2008-04-05 Thread Ghirai
Hey,

Running pkg_version -vL =, when it reaches postfix is says:

--
1 open conditional:
 at line 1115 (evaluated to true)
make: fatal errors encountered -- cannot continue
pkg_version: Failed to get PKGNAME from /usr/ports/mail/postfix/Makefile!
1 open conditional:
 at line 1115 (evaluated to true)
make: fatal errors encountered -- cannot continue
pkg_version: Failed to get PKGNAME from /usr/ports/databases/ruby-bdb/Makefile!
--

Then continues normally.

Any idea how to fix it?
I'm running 6.3-RELEASE-p1 (SMP), i386.

Thanks.

-- 
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: Local package mirror

2008-04-05 Thread Subhro
Hello Lowell,

Thank you so much for the reply. I am trying to do the build once and
use prebuilt packages for the target boxes. However the problem I am
facing is a bit crude.

Lets assume I am trying to build pkgA which has dependencies of pkgB
and pkgC. The process I am following is

cd /usr/ports/xxx/pkgA ; make package. This makes the prebuilt package
in /usr/ports/ packages. However it does not case about pkgB which is
a dependency.

On a target system when I am trying to pkg_add it, it is rightly
complaining about a missing dependency and also saying that it cant
find the package in the local repository and aborting.

How can this be taken care of?

Thanks
Subhro

On Sat, Apr 5, 2008 at 6:26 PM, Lowell Gilbert
<[EMAIL PROTECTED]> wrote:
> Subhro <[EMAIL PROTECTED]> writes:
>
> > I am trying to get a Network install working on my local network. I
> > have been able to successfully create a NFS export of the installation
> > disk and perform a install from there. The target machines boot over
> > PXE and fetch "stuff" from the NFS.
> >
> > However I am unable to figure out how to get the packages working. I
> > have a list of about 180 packages which needs to be installed. But I
> > am unable to figure out how to go about it. I would like to use
> > precompiled packages, but the CD do not contain the packages I am
> > looking for. One of the option is to mirror the whole package
> > directory from the freebsd mirrors, but that story involves a lot of
> > data transfer and bandwidth. Is there something obvious I am missing?
> >
> > Any help would be highly appreciated.
>
> There are a number of ways to do this general sort of thing.  For the
> base system approach, with pkg_add(1), setting PACKAGEROOT (or
> possibly PACKAGESITE depending on exactly how you configure the server
> for network fetch, or PKG_PATH if the clients have the NFS directory
> mounted) should be good enough.
>
> On the other hand, the way I do it is to have a master server, where I
> build everything (or fetch everything, if I don't want to build it
> myself).  Then the other machines mount /usr/ports from the master
> server.  I use portupgrade to do the installs from the clients, which
> knows how to use packages when available locally and only fetch them
> if they aren't.
>
> I hope this helps.
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Obtaining FreeBSD

2008-04-05 Thread LinuxCD.ro Webmaster

Hi Giorgos!

Thanks for your reply.

LinuxCD.ro is online since 2002 and provides CD and DVD distributions to the 
romanian Open Source enthusiasts. Here they can find the latest versions of 
their favourite distributions and ocasionaly suport if they need it.


Best regards,
Ionut


- Original Message - 
From: "Giorgos Keramidas" <[EMAIL PROTECTED]>

To: "LinuxCD.ro Webmaster" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, April 05, 2008 4:59 PM
Subject: Re: Obtaining FreeBSD


On Sat, 5 Apr 2008 12:41:27 +0300, "LinuxCD.ro Webmaster" 
<[EMAIL PROTECTED]> wrote:

Hi everybody!

I want to ask you how ca I get my site (linuxcd.ro) on the "Obtaining
FreeBSD" page of the documentation.


That's probably ok.  Can you send me a short description for the site,
and we will get it discussed with the www team.

Cheers,
Giorgos



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


Re: building a distribution server

2008-04-05 Thread Jonathan McKeown
On Saturday 05 April 2008 04:23, Steel City Phantom wrote:
> i have about 10 production servers that i want to upgrade to bsd 7 and
> update all their ports in one shot.  the problem is the down time.  im
> wrapping up upgrading a 6.3 to 7 and its taken over 7 hours so far.  thats
> way too long for our machines to be down.

> the biggest slow down is the downloading of files.  just sitting watching
> things i would say 70% of the time is downloading files.  is there a way
> where i can build a distribution server that has everything i could
> possibly need to upgrade a machine from any 6.x to 7.0 and redo all the
> ports on that machine and have a cron job keep everything up to date on
> that server and when i upgrade a new machine, it simply goes to my internal
> distribution server to get the files.

I have a fast machine which has the source and ports trees on it. It also has 
the kernel configurations for all the machines I use (GENERIC, SMP, and two 
others, IPFWD for a firewall which does IP forwarding and SERIAL for a box 
which has a multiport serial card in it).

That box doesn't do anything else.

In its /etc/make.conf is the line

KERNCONF=GENERIC SMP IPFWD SERIAL

which has the effect of building all four kernels but installing the 
first-mentioned. Other boxes have their KERNCONF set in make.conf and only 
need to make installkernel after the build box has finished to get the 
appropriate one.

It also has a full ports tree and I have created the directory
/usr/ports/packages (it gets messy if you don't).

All the other boxes mount /usr/src, /usr/obj and /usr/ports over NFS. They all 
use portupgrade which is configured to use /usr/bin/false to fetch packages 
instead of /usr/bin/fetch. They are also configured to build ports locally 
but store distfiles and packages on the NFS server.

When I build and install a port, I use

portupgrade -NRPp

which upgrades ports, installing if necessary and building requirements as 
well (-N -R). It checks for a package in /usr/ports/packages (-P); if it 
can't find it it checks the 'Net using /usr/bin/false (which of course fails 
immediately) and then builds from source, creating a package at the end (-p).

This means each port gets downloaded once, and then built once if it can be 
packaged - but it also deals with ports that can't be packaged, like 
sysutils/screen.

By not using -P you can also build the port separately with different options 
on different machines.

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


Re: Remote backups using ssh and dump

2008-04-05 Thread Vince

Paul Schmehl wrote:

Has anyone done this?

I'm presently using rsync over ssh, but I think dump would be better if 
it will work.  I've been reading the man page, but I'm wondering if 
anyone is doing this successfully and would like to share their cmdline.


We do this for ~100 linux (centos) systems at work. we looked at a 
variety of other systems (rsync, rdiffbackup, tar, dar) and settled on 
dump because of the ease of baremetal restore, support of file system 
attributes, ease of compression etc. It all runs via the crontab of the 
backup user on the backup server, uses a passphraseless ssh key to a 
backup user on each server who has passwordless sudo on dump. If you 
like I can dig out the script although it will probably need modifying 
for freebsd.



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


Re: Obtaining FreeBSD

2008-04-05 Thread Giorgos Keramidas
On Sat, 5 Apr 2008 12:41:27 +0300, "LinuxCD.ro Webmaster" <[EMAIL PROTECTED]> 
wrote:
> Hi everybody!
>
> I want to ask you how ca I get my site (linuxcd.ro) on the "Obtaining
> FreeBSD" page of the documentation.

That's probably ok.  Can you send me a short description for the site,
and we will get it discussed with the www team.

Cheers,
Giorgos

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


Re: Local package mirror

2008-04-05 Thread Lowell Gilbert
Subhro <[EMAIL PROTECTED]> writes:

> I am trying to get a Network install working on my local network. I
> have been able to successfully create a NFS export of the installation
> disk and perform a install from there. The target machines boot over
> PXE and fetch "stuff" from the NFS.
>
> However I am unable to figure out how to get the packages working. I
> have a list of about 180 packages which needs to be installed. But I
> am unable to figure out how to go about it. I would like to use
> precompiled packages, but the CD do not contain the packages I am
> looking for. One of the option is to mirror the whole package
> directory from the freebsd mirrors, but that story involves a lot of
> data transfer and bandwidth. Is there something obvious I am missing?
>
> Any help would be highly appreciated.

There are a number of ways to do this general sort of thing.  For the
base system approach, with pkg_add(1), setting PACKAGEROOT (or
possibly PACKAGESITE depending on exactly how you configure the server
for network fetch, or PKG_PATH if the clients have the NFS directory
mounted) should be good enough.

On the other hand, the way I do it is to have a master server, where I
build everything (or fetch everything, if I don't want to build it
myself).  Then the other machines mount /usr/ports from the master
server.  I use portupgrade to do the installs from the clients, which
knows how to use packages when available locally and only fetch them
if they aren't.

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


Re: Error fatal_tls

2008-04-05 Thread Lowell Gilbert
"Ruel Luchavez" <[EMAIL PROTECTED]> writes:

> can anyone help me whats the meaning of this error? I always have this every
> minute
>
> mail pop: fatal_error: tls_start_servertls() failed
>
> How to get rid of this error? PLEase
>
> Thanks in advanced

This is coming from your POP server.  Without knowing which server
software you are using, we can't help much.  

However, it is possible that the server software is expecting TLS
support from a port that isn't installed or isn't installed properly.
Look at the dependencies of your POP port.

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


Re: Bootloader not working on Compaq Proliant ML330 G2

2008-04-05 Thread Jeremy Chadwick
On Sat, Apr 05, 2008 at 12:09:55AM +0200, Ján ?ebo?ík wrote:
> I`ve tried to install FreeBSD 7 on Compaq Proliant ML330 G2 server, but it 
> won`t boot. FreeBSD boot0 beeps after pressing F1, or F2 (got 2 partitions) 
> key. So i`ve installed grub on another machine, but than it says "Error 5" 
> only in Proliant, I don`t even get grub command prompt.

Please see the below thread.  Do not let the subject stop you from
reading it.

http://lists.freebsd.org/pipermail/freebsd-stable/2008-March/041501.html

I still can't find a present-day RELENG_7 SNAPSHOT that I can tell
people to download.  There isn't one in the snapshots/200803/ directory
past March 14th, and the snapshots/2008/04/ directory only contains
snapshots for ia64 and powerpc.

I'm left to believe David Overton built his own ISO.  It sounds as if
you may have to do the same.

And I can't explain what GRUB is doing.

> HDD`s (2 x 250G) are connected to Parallel ATA on ServerWorks CSB5 
> controller (it`s not onboard controller). When I connected drives to onboad 
> controller they got some problem with DMA TIMEOUT.

Not enough information to help debug this, but DMA timeouts are a known
problem right now, regardless of controller:

http://wiki.freebsd.org/JeremyChadwick/Commonly_reported_issues

Scott Long may be able to help track this problem down for you, but more
details are needed.

> PS: Is there any way how to debug Bootloader?

Debugging the bootstraps is an incredibly tedious process at this point.
No, it's not easy.

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

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


Re: trying atausb instead of umass, part 2

2008-04-05 Thread Da Rock

On Fri, 2008-04-04 at 10:53 -0400, Steven Friedrich wrote:
> On Friday 04 April 2008 09:03:33 am Da Rock wrote:
> > On Fri, 2008-04-04 at 08:16 -0400, Steven Friedrich wrote:
> > > On Thursday 03 April 2008 04:38:27 am Dieter wrote:
> > > > [ no replies from -drivers, so added -questions ]
> > >
> > > I looked at http://www.freebsd.org/search/search.html#mailinglists
> > > and couldn't find a freebsd-drivers list.  Perhaps that's why you didn't
> > > get any replies?
> >
> > Then this would be a figment of our imagination? :)
> > http://lists.freebsd.org/mailman/listinfo/freebsd-drivers
> >
> > ___
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to
> > "[EMAIL PROTECTED]"
> 
> I think the link I provided before was just the "search the list 
> archives".  -drivers should be added to it...
> 
> I went back and looked at 
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/eresources.html#ERESOURCES-MAIL
> and it IS listed there.
> 
> A small task for the webmaster 8o)
> 
> I was searching the archives because I wanted to see his previous posts, 
> since 
> this one was labeled "part 2".
> 

Ahh, I see. Actually I looked through some of the archives and that
posting must have been a while back because I can't find it either. By a
while I mean more than a month- since I subscribed.

Meanwhile, the OP is still waiting for an answer... :) I'll have to go
back and check what the question was I think.

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


Re: Problem with lid on Dell D400

2008-04-05 Thread Spil Oss
Thanks Christian

That would be something that I can try, if only I had X running. Any
other utilities to send a dpms signal that don't require X?

Kind regards,

Spil.

On 04/04/2008, Christian Laursen <[EMAIL PROTECTED]> wrote:
> "Spil Oss" <[EMAIL PROTECTED]> writes:
>
> > On a Dell D400 notebook (Pentium-M 1.4GHz, Intel 855GM, ICH4M) running
> > FreeBSD 7.0 #0
> >
> > Closing the lid switches off the display, opening the lid does not
> > switch the display back on. Very annoying. The machine is fully
> > functional otherwise (accessed via ssh).
>
> It sounds like the behaviour I experienced on the Dell Latitude D610.
>
> I wrote about my solution here:
> http://borderworlds.dk/blog/20071027-00.html
>
> --
> Christian Laursen
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Obtaining FreeBSD

2008-04-05 Thread LinuxCD.ro Webmaster
Hi everybody!

I want to ask you how ca I get my site (linuxcd.ro) on the "Obtaining FreeBSD" 
page of the documentation.

Thanks for doing a great job!

Best regards,
Ionut Visan
LinuxCD.ro Owner
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: building a distribution server

2008-04-05 Thread Roland Smith
On Fri, Apr 04, 2008 at 10:23:24PM -0400, Steel City Phantom wrote:
> i have about 10 production servers that i want to upgrade to bsd 7 and
> update all their ports in one shot.  the problem is the down time.  im
> wrapping up upgrading a 6.3 to 7 and its taken over 7 hours so far.  thats
> way too long for our machines to be down.
 
First you need to rebuild one server, which you already seem to have done.

If your servers all use the same kernel, you can use tar(1) and nc(1) to
copy /usr/src and /usr/obj to all machines, and run 'make
installkernel' and 'make installworld' locally. Wether you can copy /etc
and thus avoid mergemaster depends if you have large local configuration
differences between the servers. 

If your servers don't use the same kernel, you can copy /usr/src, and
you'll have to rebuild the kernels locally.

Ports is somewhat easier. Build one machine with all the ports you need,
and use tar and nc again to distribute /usr/local, /var/db/ports and
/var/db/pkg to all machines. 

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)


pgpu8ghtUTBfN.pgp
Description: PGP signature


Re: openoffice.org-2.4.0_2 hanging

2008-04-05 Thread Volker Glatz
Am Samstag, 5. April 2008 07:40:53 schrieb Jeremy Gransden:
> On Fri, Apr 4, 2008 at 7:41 PM, Volker Glatz <[EMAIL PROTECTED]>
>
> wrote:
> > Hi there,
> >
> > I compiled openoffice with
> >
> > WITHOUT_MOZILLA=yes WITH_KDE=yes LOCALIZED_LANG=de WITH_CUPS=yes
> > WITHOUT_GNOMEVFS=yes WITH_TTF_BYTECODE_ENABLED=yes
> >
> > Openoffice is hanging while opening or saving a document.
> >
> > I tried the following posted earlier here in the list:
>
> I had a similar issue that was fixed by  adding the following to  the
> /usr/local/bin/openoffice.org-2.3.1 script:
>
> export OOO_FORCE_DESKTOP=kde
>
> I use KDE as my desktop. Now my saving works fine.
>
> http://user.services.openoffice.org/en/forum/viewtopic.php?f=6&t=4065
>
> thanks,
> jeremy


Hi Jeremy,

thanks for your reply.

I changed /usr/local/bin/openoffice.org-2.4.0 to:

#!/bin/sh
#
# $FreeBSD: ports/editors/openoffice.org-2/files/openoffice.org-wrapper,v 1.3 
2006/04/20 21:56:12 maho Exp $

oopath=/usr/local/openoffice.org-2.4.0/program/
program=`echo $0 | sed -e 's|.*-2.4.0-||'`

case $program in
$0)
$oopath/soffice "$@"
;;
*)
$oopath/$program "$@"
;;
esac

export OOO_FORCE_DESKTOP=kde

But it makes no difference. OO.org still locks.

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


Re: Source upgrade from 6.3-PRERELEASE to 7-STABLE

2008-04-05 Thread Matthew Seaman

Joshua Isom wrote:
I've looked back at a lot of the emails about upgrading a system from 6 
to 7, but all seem to contain some caveat or other, generally ports.  I 
want a "clean" system, but don't want to deal with backing up, 
reformatting, and installing, not to mention reconfiguring everything.  
Since by now many people have done it, what's the best way to upgrade 
from 6.3 to 7.0 for the entire system, base and ports?


It depends...

Seriously, one very good and fairly bulletproof way of migrating from 6.3
to 7.0 is by a nuke and repave job on your machine.  That may not be
right for you though.

Given that, you have to do an in-place update.  Consider the base system
and the ports separately.

To upgrade the base you have essentially two choices:

 *) Use FreeBSD-update -- follow the procedure shown here:

http://www.daemonology.net/blog/2007-11-11-freebsd-major-version-upgrade.html

 *) cvsup with the appropriate TAG for the branch you want to
switch to (RELENG_7_0 for 7.0-RELEASE, RELENG_7 for 7.0-STABLE)
and then build and update your system according to the instructions
in the Handbook and the notes in /usr/src/UPDATING.

If you've been using either one of these methods to maintain your
system previously, then you're probably best to stick with what you
know for the major upgrade.  FreeBSD Update may have difficulties
with a system that isn't either a virgin install from the distribution
ISOs or that has been maintained solely through FreeBSD Update previously.

Note that once you have the base OS updated, you can leave it running
with the ports from 6.x for a while -- so long as you've still got the
6.x shlibs available everything will carry on working.  That means you
either have to install the misc/compat6.x port or you have to skip the
'make delete-old-libs' step at the end of the buildworld procedure.  (Well,
postpone it until the ports can be rebuilt.)

If you do choose to run a mixed system like this for a while, bear in
mind that you should not now upgrade or install the odd port here and there:
either you go ahead with the next stage which is to upgrade the whole lot,
or you leave well alone.  


The second major phase of work is to upgrade all your ports.  The mechanisms
for doing this are essentially the same as you'ld use for maintaining ports
routinely.  You will need to use a management tool that will order all of
the updates correctly: portmaster and portupgrade are the two leading
examples.

portmaster should work without any further ado as it has no other
dependencies within the ports tree.  portupgrade requires you to 
rebuild ruby and whichever of the ruby-bdb ports it links against

first.  Something like this:

# pkg_info -rx portupgrade 
Information for portupgrade-devel-2.4.3_1:


Depends on:
Dependency: ruby-1.8.6.111_1,1
Dependency: perl-5.8.8_1
Dependency: db44-4.4.20.4
Dependency: ruby18-bdb44-0.6.2
# pkg_delete -f portupgrade-devel-2.4.3_1 ruby18-bdb44-0.6.2 db44-4.4.20.4 
ruby-1.8.6.111_1,1
[...]
# cd /usr/ports/ports-mgmt/portupgrade-devel
# make install
[...]

Then you can proceed with 'portupgrade -fa'

(Substitute ports-mgmt/portupgrade if you don't want the development
version)

Either of the ports management tools can be made to install pre-built
packages given the appropriate command line arguments: this can save you
quite a lot of time at the cost of a certain amount of flexibility in
customising options.

Don't forget the 'make delete-old-libs' step at the end.  You can probably
deinstall compat6x similarly although there are some ports that will now
require it -- diablo-j{dk,re}15 for example.

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: building a distribution server

2008-04-05 Thread Matthew Seaman

Wojciech Puchar wrote:


the biggest slow down is the downloading of files.  just sitting watching
things i would say 70% of the time is downloading files.  is there a way
where i can build a distribution server that has everything i could 
possibly


make fetch-recursive in every port you wan'tto install


  portupgrade -FrRa

will fetch the vast majority of distfiles you'll need in one shot.
Probably all of them unless you start changing port OPTIONS or you're
using restricted download stuff like java/jdk16

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: cfg-update equivalent?

2008-04-05 Thread Matthew Seaman

Andy Christianson wrote:

In Gentoo, there is a program called cfg-update that will help to merge
new configuration options that come with a new version of software when
you do a system update from portage.



Does FreeBSD have any equivalent to this that ensures that configuration
files work after updating software with portupgrade?


Portage and ports work in vary different ways despite the similarity of
outcome.  In particular, the ports have the massive advantage of being
separated from the base system under FreeBSD.  This means that there are
great swathes of functionality that can simply be assumed, and need no
configuration knobs to deal with.  Also, dare I say it, FreeBSD developers
understand the principles of maintaining constant ABIs and APIs and
adhering to POLA rather better than what I've seen of Gentoo.

As for maintaining the configuration files used by installed ports, well
again, the philosophy is completely different here as well.  How a port is
configured is held to be no business at all of the port and entirely in the
control of the system administrator.

You don't get spoon-fed a pre-packaged configuration.  The disadvantage here
is that the system administrator has to think about what they are doing --
so it takes more time and effort to make things work right.  Of course, the
advantage here is that the system administrator has to think about what they
are doing -- so the system is going to be made to work right straight from
the beginning and the people maintaining it will have learned a lot more about
keeping it working right.

On installation, ports can suggest to the adminstrator what to do next; they
cannot prescribe such. Which means that if you want to set things up in a way
that the port maintainer, or indeed the software author, had never contemplated
even in their wildest dreams, well so you can.  And no necessity to unpick
someone else's idea of the right way to do it (which would inevitably be
reimposed after any updates) beforehand either.

In short, the answer to your question is "no."

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Source upgrade from 6.3-PRERELEASE to 7-STABLE

2008-04-05 Thread Joshua Isom
I've looked back at a lot of the emails about upgrading a system from 6 
to 7, but all seem to contain some caveat or other, generally ports.  I 
want a "clean" system, but don't want to deal with backing up, 
reformatting, and installing, not to mention reconfiguring everything.  
Since by now many people have done it, what's the best way to upgrade 
from 6.3 to 7.0 for the entire system, base and ports?


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


Re: openoffice.org-2.4.0_2 hanging

2008-04-05 Thread Matthias Apitz
El día Saturday, April 05, 2008 a las 01:41:36AM +0200, Volker Glatz escribió:

...

> It doesn't worked for me. Instead of en-US I use de-DE.
> 
> Thanks!
> Volker
> 
> box# pkg_info | grep openoffice
> de-openoffice.org-2.4.0_2 Office-Suite mit Textverarbeitung, 
> Tabellenkalkulation, Dat
> 
> box# uname -a
> FreeBSD box.here 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 
> 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386


$ echo $LANG
es_ES.ISO8859-1
$ uname -a
FreeBSD rebelion.Sisis.de 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 
19:59:52 UTC 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386
$ pkg_info | fgrep openoffice
openoffice.org-3.0.20080315 Integrated 
wordprocessor/dbase/spreadsheet/drawing/chart/br

i.e. /usr/ports/editors/openoffice.org-3-devel works fine for me;

/usr/ports/editors/openoffice.org-2.0 showed the mentioned problem (CPU
loop on open document);

HIH

matthias

-- 
Matthias Apitz
Manager Technical Support - OCLC GmbH
Gruenwalder Weg 28g - 82041 Oberhaching - Germany
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/
b http://gurucubano.blogspot.com/
Don't top-post, read RFC1855 http://www.faqs.org/rfcs/rfc1855.html
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on Usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: building a distribution server

2008-04-05 Thread Wojciech Puchar

update all their ports in one shot.  the problem is the down time.  im
wrapping up upgrading a 6.3 to 7 and its taken over 7 hours so far.  thats
way too long for our machines to be down.

the biggest slow down is the downloading of files.  just sitting watching
things i would say 70% of the time is downloading files.  is there a way
where i can build a distribution server that has everything i could possibly


make fetch-recursive in every port you wan'tto install


need to upgrade a machine from any 6.x to 7.0 and redo all the ports on that
machine and have a cron job keep everything up to date on that server and
when i upgrade a new machine, it simply goes to my internal distribution


why don't copy all /usr from first to others.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"