Optimizing pam_ldap and nss_ldap

2011-04-06 Thread c0re
Hello freebsd users!

I've got Openldap 2.4.23 that used as authentication and authorization
server for about 40-50 servers.
OS - FreeBSD 8.1.

It's not heavy loaded.

openldap# top -SP
last pid: 45647;  load averages:  0.15,  0.15,  0.07

up 81+22:29:21  15:18:57
99 processes:  3 running, 80 sleeping, 16 waiting
CPU 0:  0.7% user,  0.0% nice,  0.0% system,  0.0% interrupt, 99.3% idle
CPU 1:  0.4% user,  0.0% nice,  0.7% system,  0.0% interrupt, 98.9% idle
Mem: 79M Active, 1402M Inact, 379M Wired, 84M Cache, 213M Buf, 31M Free
Swap: 4060M Total, 8K Used, 4060M Free

  PID USERNAME   THR PRI NICE   SIZERES STATE   C   TIME   WCPU COMMAND
   11 root 2 171 ki31 0K32K CPU00 3874.8 200.00% idle
 4773 ldap18  440   398M 53748K ucond   1  41.1H  0.00% slapd

But on my servers sometimes I see in logs something like

on FTP-server:
Mar 25 21:55:32 someftp ftpd: nss_ldap: could not search LDAP server -
Server is unavailable

Authentication works fine, no problems. But want to find out what can be
wrong.

To understand this problem I installed ldap-stats utility and made it run:

/var/log/debug.log - it's half day openldap server usage log.

openldap# ldap-stats -c 1000 /var/log/debug.log


Report Generated on Tue Apr  5 15:16:47 2011

Processed "/var/log/debug.log":  Apr  5 00:00:00 - Apr  5 15:17:33


Operation totals

Total operations  : 913845
Total connections : 101226
Total authentication failures : 2
Total binds   : 99700
Total unbinds : 99181
Total searches: 714964
Total compares: 7
Total modifications   : 0
Total modrdns : 0
Total additions   : 0
Total deletions   : 0
Unindexed attribute requests  : 0
Operations per connection : 9.03


# UsesFilter
-----
  615504  (&(objectClass=posixAccount)(uid=mailer-daemon))
  90699   (&(objectClass=posixGroup))
  6833(&(objectClass=posixAccount)(uid=root))
  2236(&(objectClass=posixAccount)(uid=hiddenuser1))
  669 (&(objectClass=posixGroup)(memberUid=root))
  318 (&(objectClass=posixAccount)(uid=testacc))
  87  (&(objectClass=posixGroup)(memberUid=postfix))
  87  (&(objectClass=posixAccount)(uid=postfix))
  81  (objectClass=posixAccount)
  68  (&(objectClass=posixAccount)(uid=debian-exim))
  68  (&(objectClass=posixGroup)(memberUid=Debian-exim))
  39  (&(objectClass=posixAccount)(uid=normaluser))
  34  (&(objectClass=posixAccount)(uidNumber=7333))
  30  (&(objectClass=posixGroup)(memberUid=hiddenuser1))
  29  (&(objectClass=posixGroup)(memberUid=chelovek))
  29  (&(objectClass=posixAccount)(uid=chelovek))
  27  (&(objectClass=posixAccount)(uid=user0))
  23  (&(objectClass=posixAccount)(uid=nobody))
  21  (&(objectClass=posixAccount)(uid=user1))
  18  (&(objectClass=posixAccount)(uid=user2))
  16  (&(objectClass=posixAccount)(uid=user3))
  15  (&(objectClass=posixAccount)(uid=user4))
  12  (&(objectClass=posixAccount)(uid=user5))
  11  (&(objectClass=posixAccount)(uidNumber=7330))
  10  (&(objectClass=posixAccount)(uid=user15))
  9   (&(objectClass=posixAccount)(uid=user16))
  8   (&(objectClass=posixAccount)(uidNumber=7333))
  6   (&(objectClass=posixAccount)(uid=user6))
  5   (&(objectClass=posixAccount)(uid=user7))
  5   (cn=defaults)
  4   (&(objectClass=posixAccount)(uidNumber=7228))
  4   (&(objectClass=shadowAccount)(uid=user1))
  4   (&(objectClass=posixAccount)(uid=user9))
  4   (&(objectClass=posixAccount)(uid=user10))
  4   (&(objectClass=posixAccount)(uid=user11))
  3   (&(objectClass=posixAccount)(uid=user12))
  3   (&(objectClass=posixAccount)(uid=user13))
  3   (&(objectClass=posixAccount)(uid=user14))
...
and MANY others that has 1 use in this stats.
I think this many queries from mail relay server.
* user1 and etc - users that relayed, like "us...@domain.com" in "rcpt to"
field in email at mail-relay.

What can I do to tune nss? Can you point me in a right direction? There's
too many not needed nss requests to ldap (when email recieved and then
relayed somewhere).
Do not know what to look at.
If you need any additional information, logs and etc - I'll provide it.

Thanks in advance!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Fuse > 2.7.4?

2011-04-06 Thread Joe Auty
Should I ask about this to the ports list? I'd really like to get an
up-to-date s3fs port installed on my FreeBSD machines...

>   Joe Auty 
> April 5, 2011 1:56 PM
>
>
> Hello,
>
> What is the status of the fusefs-libs port? I'd like to try the newer
> s3fs builds with FUSE, but they require 2.8.4 or higher. I was unable to
> get FUSE 2.8.5 to build with the current patches included in the port.
> Are these patches still necessary?
>
>
> 


-- 
Joe Auty, NetMusician
NetMusician helps musicians, bands and artists create beautiful,
professional, custom designed, career-essential websites that are easy
to maintain and to integrate with popular social networks.
www.netmusician.org 
j...@netmusician.org 

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


Re: Thunderbird segfaults if UID > 0

2011-04-06 Thread Bernt Hansson

2011-04-06 20:53, Kevin Kinsey:

On Wed, Apr 06, 2011 at 06:09:21PM +0200, Damien Fleuriot wrote:


Create a new user account, log in to it, run tbird ?


Would that be any different then moving ~/.mozilla
and trying to run it?  Because that was a total failure ;-)

KDK

P.S.  I'm thinking the answer is NO.  I can give it a
try after work tonight, I s'pose.


Try moving ~/.thunderbird to some other name like ~/thunderbird
and try again. ~/.mozilla is for firefox.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Script behavior I can't grasp

2011-04-06 Thread Yuri Pankov
On Wed, Apr 06, 2011 at 03:32:14PM -0700, Walt Pawley wrote:
> My IPv6 tunnel has a tendency to vanish from time to time. So I
> thought I might write a script to check that and attempt
> reconstituting it if needed. After some considerable messing
> about, I really thought this ...
> 
> #!/bin/sh
> if ifconfig en1|grep -q "inet6 2001" ; then exit;
> else
> if ps -ax | grep gw6c | grep -qv grep;
> then ps -ax | grep gw6c | grep -v grep | ( read x y; kill "$x" )
> fi
> cd /usr/local/gw6c/bin
> ./gw6c
> fi
> 
> ... should work. But I was wrong, as usual. In the case where
> the tunnel has vanished, the gw6c program often does not quit
> right away, and it is usually soaking up a lot of processor in
> that mode. Thus it was necessary to test for gw6c running and
> terminate it if it was. Curiously, even when it was not
> running. the test above would fail in the script. On the
> command line, it seemed, as near as I could tell, to work just
> fine.
> 
> Grasping at straws, I decided to try the following:
> 
> #!/bin/sh
> if ifconfig en1|grep -q "inet6 2001" ; then exit;
> else
> if $( ps -ax | grep gw6c | grep -qv grep );
> then ps -ax | grep gw6c | grep -v grep | ( read x y; kill "$x" )
> fi
> cd /usr/local/gw6c/bin
> ./gw6c
> fi
> 
> It worked just fine. I'd like to know why this disparity. It's
> probably something mind bogglingly simple but my researches
> have yet to unboogle me. Can you?

Not the answer you asked for, but... you should really take a look at
pkill(1) instead of that check.


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


Re: GEOM warning in dmesg

2011-04-06 Thread Jud
On Wed, 06 Apr 2011 18:36:06 -0400, Michael J. Kearney  
 wrote:


I really don't think i have much control over what other people think  
lol .cn


Jamie Paul Griffin  wrote:


On Wed, Apr 06, 2011 at 07:24:29PM +0100, Bruce Cran wrote:

On Wednesday 06 Apr 2011 17:58:21 Jamie Paul Griffin wrote:

> i'm sorry but that doesn't make any sense at all. could you explain a
> solution more clearly please?

There's no problem. Maybe MS-DOS or Windows 95 would have problems with  
such a

layout, but modern operating systems don't.


i am sure you're right but i simply didn't understand what he was trying  
to say and i really only wanted to understand what the warnings meant.


Which is exactly what he's trying to avoid (you understanding what he's  
saying).  He's spamming you for some reason, with vague-sounding stuff  
interspersed with country abbreviations like jp (Japan), cn (Canada) - in  
other words, nonsense.


Back on topic, you can and should ignore the warnings.  They won't cause  
any problems, which certainly can't be said about you fiddling with your  
partitions.


Jud

--
"I'd take the awe of understanding over the awe of ignorance any day." -  
Douglas Adams

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


Script behavior I can't grasp

2011-04-06 Thread Walt Pawley
My IPv6 tunnel has a tendency to vanish from time to time. So I
thought I might write a script to check that and attempt
reconstituting it if needed. After some considerable messing
about, I really thought this ...

#!/bin/sh
if ifconfig en1|grep -q "inet6 2001" ; then exit;
else
if ps -ax | grep gw6c | grep -qv grep;
then ps -ax | grep gw6c | grep -v grep | ( read x y; kill "$x" )
fi
cd /usr/local/gw6c/bin
./gw6c
fi

... should work. But I was wrong, as usual. In the case where
the tunnel has vanished, the gw6c program often does not quit
right away, and it is usually soaking up a lot of processor in
that mode. Thus it was necessary to test for gw6c running and
terminate it if it was. Curiously, even when it was not
running. the test above would fail in the script. On the
command line, it seemed, as near as I could tell, to work just
fine.

Grasping at straws, I decided to try the following:

#!/bin/sh
if ifconfig en1|grep -q "inet6 2001" ; then exit;
else
if $( ps -ax | grep gw6c | grep -qv grep );
then ps -ax | grep gw6c | grep -v grep | ( read x y; kill "$x" )
fi
cd /usr/local/gw6c/bin
./gw6c
fi

It worked just fine. I'd like to know why this disparity. It's
probably something mind bogglingly simple but my researches
have yet to unboogle me. Can you?
-- 

Walter M. Pawley 
Wump Research & Company
676 River Bend Road, Roseburg, OR 97471
 541-672-8975
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: GEOM warning in dmesg

2011-04-06 Thread Michael J. Kearney
I really don't think i have much control over what other people think lol .cn

Jamie Paul Griffin  wrote:


On Wed, Apr 06, 2011 at 07:24:29PM +0100, Bruce Cran wrote:
> On Wednesday 06 Apr 2011 17:58:21 Jamie Paul Griffin wrote:
>
> > i'm sorry but that doesn't make any sense at all. could you explain a
> > solution more clearly please?
>
> There's no problem. Maybe MS-DOS or Windows 95 would have problems with such a
> layout, but modern operating systems don't.

i am sure you're right but i simply didn't understand what he was trying to say 
and i really only wanted to understand what the warnings meant.

jamie
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: GEOM warning in dmesg

2011-04-06 Thread Jamie Paul Griffin
On Wed, Apr 06, 2011 at 07:24:29PM +0100, Bruce Cran wrote:
> On Wednesday 06 Apr 2011 17:58:21 Jamie Paul Griffin wrote:
> 
> > i'm sorry but that doesn't make any sense at all. could you explain a
> > solution more clearly please?
> 
> There's no problem. Maybe MS-DOS or Windows 95 would have problems with such 
> a 
> layout, but modern operating systems don't.

i am sure you're right but i simply didn't understand what he was trying to say 
and i really only wanted to understand what the warnings meant. 

jamie
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: graphical representation of `du`

2011-04-06 Thread Jerry McAllister
On Wed, Apr 06, 2011 at 08:34:42PM +0100, Chris Rees wrote:

> 2011/4/6 Peter Vereshagin :
> >
> > Again, why don't you guys just use perl to provide a graphical du? I believe
> > perl is just present on every freebsd machine where graphical du is needed.
> >
> 
> Why on Earth would you use Perl when a simple awk script will do???

Why on earth would you cloud things up with AWK when a simple Perl
script would do it?!

jerry


> 
> Chris
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: graphical representation of `du`

2011-04-06 Thread Peter Vereshagin
Nobody knows that you're in for that, freebsd-questions!
2011/04/06 20:34:42 +0100 Chris Rees  => To Peter Vereshagin 
:

CR> > Again, why don't you guys just use perl to provide a graphical du? I 
believe
CR> > perl is just present on every freebsd machine where graphical du is 
needed.
CR> Why on Earth would you use Perl when a simple awk script will do???

Me?
I personally find Perl more usable.

73! Peter pgp: A0E26627 (4A42 6841 2871 5EA7 52AB  12F8 0CE1 4AAC A0E2 6627)
--
http://vereshagin.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: graphical representation of `du`

2011-04-06 Thread Chris Rees
2011/4/6 Peter Vereshagin :
>
> Again, why don't you guys just use perl to provide a graphical du? I believe
> perl is just present on every freebsd machine where graphical du is needed.
>

Why on Earth would you use Perl when a simple awk script will do???

Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Thunderbird segfaults if UID > 0

2011-04-06 Thread Kevin Kinsey
On Wed, Apr 06, 2011 at 06:09:21PM +0200, Damien Fleuriot wrote:
> 
> Create a new user account, log in to it, run tbird ?

Would that be any different then moving ~/.mozilla
and trying to run it?  Because that was a total failure ;-)

KDK

P.S.  I'm thinking the answer is NO.  I can give it a
try after work tonight, I s'pose.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: graphical representation of `du`

2011-04-06 Thread Chuck Swiger
On Apr 6, 2011, at 11:34 AM, Peter Vereshagin wrote:
> Again, why don't you guys just use perl to provide a graphical du? I believe
> perl is just present on every freebsd machine where graphical du is needed.

Although it is a common addition, Perl isn't part of the FreeBSD base system.

Regards,
-- 
-Chuck

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


Re: graphical representation of `du`

2011-04-06 Thread Peter Vereshagin
Nobody knows that you're in for that, freebsd-questions!
2011/04/05 04:12:40 +0400 Австин Ким  => To 
freebsd-questions@freebsd.org :
> Sun, 3 Apr 2011 20:57:24 +0100 письмо от Chris Rees :
> 
> > On 3 April 2011 20:26, Австин Ким  wrote:
> > > Sun, 03 Apr 2011 12:01:24 +0200 письмо от David Demelier
> > :
> > >
> > >> On 02/04/2011 19:30, Chris Rees wrote:
> > >> > On 2 April 2011 18:22, Chris Rees  wrote:
> > >> >> On 2 April 2011 18:07, Mike Jeays  wrote:
> > >> >>> On Sat, 2 Apr 2011 17:15:04 +0100
> > >> >>> Chris Rees  wrote:
> > >> >>>
> > >>  du -h . | awk '{a[i++]=$0} END {for (j=i-1; j>=0;) print a[j--] }' |
> > >>  awk '{print($2" ["$1"]");}' | sed -e 's,[^-][^/]*/,--,g' -e 's,^,|,'
> > >> >>>
> > >> >>>
> > >> >>> I confess to being impressed...
> > >> >>>
> > >> >>
> > >> >> Yeah, but perhaps I should have used sed instead of the second awk;
> > >> >> fewer processes:
> > >> >>
> > >> >> du -h | awk '{a[i++]=$0} END {for (j=i-1; j>=0;) print a[j--] }' | sed
> > >> >> -e 
> > >> >> 's,^[^1-9]*\([^___CTRL-V+TAB__]*\)CTRL-V+TAB_*\(.*\)$,\2
> > >> >> \[\1\],;s,[^-][^/]*/,--,g;s,^,|,'
> > >> >>
> > >> >> That does exactly the same --  where I've put CTRL-V+TAB__ you
> > >> >> have to type Ctrl-V, then a literal [::tab::] key; BSD sed doesn't do
> > >> >> \t.
> > >> >>
> > >> >> Chris
> > >> >>
> > >> >
> > >> > Final version:
> > >> >
> > >> > http://www.bayofrum.net/~crees/graphical_du.sh
> > >> >
> > >> > Maybe I should port it...
> > >> >
> > >>
> > >> Thanks! This rocks! :-)
> > >>
> > >
> > > What a fun thread :)
> > >
> > > Here's my two cents, written as an sh(1) function that you can tack on to
> > the end of your .profile or .shrc:
> > > (Caveats:  I'm writing this on a Mac OS X machine, not on a FreeBSD 
> > > machine,
> > at the moment, but hopefully this'll still work.
> > > Also, the following will mess up if you have directories whose names begin
> > with "|".)
> > >
> > > # dg:  `du--graphical'
> > > # Usage:  dg [dir ...]
> > > # Based on script by Chris Rees
> > > # 1459 Sunday, 3 April 2011
> > >
> > > dg ( ) {
> > >  du -h "$@" |
> > >    awk '{FS="\t"; print $2"\t["$1"]"}' |
> > >    sort |
> > >    sed -e 's:[^/]*/:| :g' -e 's:\(^\(| \)*\)| \([^|].*\):\1+-\3:'
> > >  return
> > >  }
> > 
> > I used the awk a[i++]=$0} END {for (j=i-1; j>=0;) print a[j--]  etc to
> > reverse the order, rather than alphabetise it because it's quicker:
> > 
> > $ du -h . | time sort >/dev/null 2>time
> > $ cat time
> > 8.17 real 0.03 user 0.00 sys
> > $ du -h . | time awk '{a[i++]=$2} END { for (j=i-1; j>=0;) print
> > a[j--] }' >/dev/null 2>time2
> > $ cat time2
> > 7.77 real 0.14 user 0.00 sys
> > 
> > YMMV of course!
> > 
> > Chris
> 
> I can't argue with that.  If you're a sysadmin and are managing a large 
> system,
> the sort could take some time.  On the other hand, there are times when a sort
> might be useful.  Then again, you could always just comment that line out :)
> 
> Which reminds me, my sort line above may not sort intuitively in the case 
> where
> directory names contain characters that precede / in the ASCII character set;
> for example, "mydir-old" sorts before "mydir/" in ASCII.  A quick kludge is to
> translate slashes into, oh I don't know, say carriage returns before the sort,
> and then translate them back after the sort, as is done below.  An inelegant
> and inefficient solution, but it works.  However, I'm going out on a limb by
> assuming users won't be running this script under MS-DOS, where this kludge
> wouldn't work.
> 
> Another problem with my script above is that in some cases, if you run it on
> multiple arguments, e. g., "dg dir1/subdir dir2/subdir," you can't tell from
> the output to which parent directory the subdirectory refers; to deal with
> this problem, the revised version below runs du on each argument one at a 
> time.
> However, I ended up having to duplicate the main command in the script (once
> for "dg" with arguments, and once without), 'cause I'm not clever enough to
> figure out a way to combine the two cases into one in time to post this.
> 
> I also had a redundant [^|] in the sed expression which I took out; it
> shouldn't be necessary, although the script will still mess up if any 
> directory
> names start with "| ".
> 
> Finally, the revised version is repackaged as a proper sh(1) script like your
> original script rather than as a function, to make it independent of a user's
> particular shell.  Obviously further variations and improvements could be 
> made.
> 
> Again I'm away from my FreeBSD machine and am writing this on a Mac OS X
> machine; hopefully I didn't break anything.
> 
> #!/bin/sh
> #
> # dg:  `du--graphical'
> # Usage:  dg [dir ...]
> #
> # Based on script by Chris Rees
> # 1459 Sunday, 3 April 2011
> #
> # Modified:  1900 Monday, 4 April 2011
> 
> if [ "$1" ]
>then for i in "$@"
> do if [ "$2" ]
>   then echo
> 

Re: GEOM warning in dmesg

2011-04-06 Thread Bruce Cran
On Wednesday 06 Apr 2011 17:58:21 Jamie Paul Griffin wrote:

> i'm sorry but that doesn't make any sense at all. could you explain a
> solution more clearly please?

There's no problem. Maybe MS-DOS or Windows 95 would have problems with such a 
layout, but modern operating systems don't.

-- 
Bruce Cran
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: GEOM warning in dmesg

2011-04-06 Thread Jamie Paul Griffin
On Wed, Apr 06, 2011 at 01:55:17PM -0400, Jerry wrote:
> On Wed, 6 Apr 2011 19:09:22 +0200
> Polytropon  articulated:
> 
> > The message indicates that there is a discrepancy between
> > reported values (BIOS vs. disk) about the disk geometry.
> > 
> > Using some google, there are the following things you could
> > read:
> > 
> > http://forums.freebsd.org/showthread.php?t=9105
> > 
> > http://forums.freebsd.org/showthread.php?t=9524
> > 
> > http://lists.freebsd.org/pipermail/freebsd-current/2009-March/004830.html
> > 
> > http://koitsu.wordpress.com/2009/10/12/testing-out-freebsd-8-0-rc1/
> > 
> > There are explainations and solutions. I hope it will help.
> > But as I said, I'm quite sure you can ignore the messages
> > as they do not affect the system.
> 
> I had a disk two years ago that caused FBSD to spew the same nonsense.
> I downloaded FreeDOS , created a CD then
> proceeded to removed all of the partition information from the disk. I
> then recreated the partition format I wanted, rebooted and formatted
> the drive. Now, when I installed FBSD there were no error messages. I
> don't know if that will help you or not.

thanks to you both. it seems it's nothing to worry about so i'm happy to just 
ignore the warnings, i was just worried it might cause problems in some way 
later on.

jamie
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: GEOM warning in dmesg

2011-04-06 Thread Jerry
On Wed, 6 Apr 2011 19:09:22 +0200
Polytropon  articulated:

> On Wed, 6 Apr 2011 15:46:48 +0100, Jamie Paul Griffin
>  wrote:
> > Hi everyone
> > 
> > I have just installed FreeBSD 8.2 RELEASE amd64 onto my new
> > Lenovo ThinkCentre and i'm dual-booting FreeBSD with Windows
> > & which was preinstalled.
> > 
> > When the system boots i see the message shown below in dmesg
> > which relates to the partitions on the FreeBSD slice. So far
> > i have not experienced any problems with using the system and
> > it does boot into the OS ok. but i don't know if there's a
> > problem here that i need to fix or if it's a warning i can
> > ignore because i don't know what it means. i am hoping someone
> > can help me and explain what it is.
> 
> The message indicates that there is a discrepancy between
> reported values (BIOS vs. disk) about the disk geometry.
> 
> 
> 
> > Here is the text:
> > 
> > GEOM: ad8: partition 4 does not start on a track boundary.
> > GEOM: ad8: partition 4 does not end on a track boundary.
> > GEOM: ad8: partition 3 does not start on a track boundary.
> > GEOM: ad8: partition 3 does not end on a track boundary.
> > GEOM: ad8: partition 2 does not start on a track boundary.
> > GEOM: ad8: partition 2 does not end on a track boundary.
> > GEOM: ad8: partition 1 does not start on a track boundary.
> > GEOM: ad8: partition 1 does not end on a track boundary.
> 
> Using some google, there are the following things you could
> read:
> 
> http://forums.freebsd.org/showthread.php?t=9105
> 
> http://forums.freebsd.org/showthread.php?t=9524
> 
> http://lists.freebsd.org/pipermail/freebsd-current/2009-March/004830.html
> 
> http://koitsu.wordpress.com/2009/10/12/testing-out-freebsd-8-0-rc1/
> 
> There are explainations and solutions. I hope it will help.
> But as I said, I'm quite sure you can ignore the messages
> as they do not affect the system.

I had a disk two years ago that caused FBSD to spew the same nonsense.
I downloaded FreeDOS , created a CD then
proceeded to removed all of the partition information from the disk. I
then recreated the partition format I wanted, rebooted and formatted
the drive. Now, when I installed FBSD there were no error messages. I
don't know if that will help you or not.

-- 
Jerry ✌
freebsd.u...@seibercom.net

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__
Give me enough medals, and I'll win any war.


Napoleon
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: GEOM warning in dmesg

2011-04-06 Thread Michael J. Kearney
Likely. ... i suppose that it makes little sense to poke around with it. 
Although i don't agree with polytropon, i can't very well diagnose the problem 
with an Android phone. .uk

I am speaking from experience when i say it's related to freebsd..

If you attempt this on your own,  start looking through google starting with 
the keyphrase "freebsd partition". I don't see any shame in that..


Jamie Paul Griffin  wrote:


On Wed, Apr 06, 2011 at 12:41:17PM -0400, Michael J. Kearney wrote:
> I'm texting .it ... try the windows software. .ru I'm sick of myself ... .fr
>
> Yeaah.. create it initally. .cn with windows software then fbsd bootloader. 
> .jp the error is closely related to fbsd with out complicating things..

i'm sorry but that doesn't make any sense at all. could you explain a solution 
more clearly please?

jamie
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: GEOM warning in dmesg

2011-04-06 Thread Polytropon
On Wed, 6 Apr 2011 15:46:48 +0100, Jamie Paul Griffin  wrote:
> Hi everyone
> 
> I have just installed FreeBSD 8.2 RELEASE amd64 onto my new
> Lenovo ThinkCentre and i'm dual-booting FreeBSD with Windows
> & which was preinstalled.
> 
> When the system boots i see the message shown below in dmesg
> which relates to the partitions on the FreeBSD slice. So far
> i have not experienced any problems with using the system and
> it does boot into the OS ok. but i don't know if there's a
> problem here that i need to fix or if it's a warning i can
> ignore because i don't know what it means. i am hoping someone
> can help me and explain what it is.

The message indicates that there is a discrepancy between
reported values (BIOS vs. disk) about the disk geometry.



> Here is the text:
> 
> GEOM: ad8: partition 4 does not start on a track boundary.
> GEOM: ad8: partition 4 does not end on a track boundary.
> GEOM: ad8: partition 3 does not start on a track boundary.
> GEOM: ad8: partition 3 does not end on a track boundary.
> GEOM: ad8: partition 2 does not start on a track boundary.
> GEOM: ad8: partition 2 does not end on a track boundary.
> GEOM: ad8: partition 1 does not start on a track boundary.
> GEOM: ad8: partition 1 does not end on a track boundary.

Using some google, there are the following things you could
read:

http://forums.freebsd.org/showthread.php?t=9105

http://forums.freebsd.org/showthread.php?t=9524

http://lists.freebsd.org/pipermail/freebsd-current/2009-March/004830.html

http://koitsu.wordpress.com/2009/10/12/testing-out-freebsd-8-0-rc1/

There are explainations and solutions. I hope it will help.
But as I said, I'm quite sure you can ignore the messages
as they do not affect the system.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: using gpart(8) to slice a disk

2011-04-06 Thread Matthias Apitz
El día Monday, February 28, 2011 a las 02:40:37PM +, Bruce Cran escribió:

> On Mon, 28 Feb 2011 14:52:44 +0100
> Matthias Apitz  wrote:
> 
> > I've read the man page of gpart(8) but do not see clearly what I did
> > wrong with the above sequence and esp. what would have set the missing
> > boot flag?
> 
> gpart set -a active -i 1 ad4

I did again an installation (9-CURRENT), but even the above command did
not made the disk boot-able; the fdisk part of sysinstall(8) did not
show the 'A' flag; setting it with fdisk made the system booting fine;

any idea? thanks

matthias

-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e  - w http://www.unixarea.de/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: GEOM warning in dmesg

2011-04-06 Thread Jamie Paul Griffin
On Wed, Apr 06, 2011 at 12:41:17PM -0400, Michael J. Kearney wrote:
> I'm texting .it ... try the windows software. .ru I'm sick of myself ... .fr
> 
> Yeaah.. create it initally. .cn with windows software then fbsd bootloader. 
> .jp the error is closely related to fbsd with out complicating things..

i'm sorry but that doesn't make any sense at all. could you explain a solution 
more clearly please?

jamie
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: GEOM warning in dmesg

2011-04-06 Thread Michael J. Kearney
I'm texting .it ... try the windows software. .ru I'm sick of myself ... .fr

Yeaah.. create it initally. .cn with windows software then fbsd bootloader. .jp 
the error is closely related to fbsd with out complicating things..

Jamie Paul Griffin  wrote:


On Wed, Apr 06, 2011 at 12:11:58PM -0400, Michael J. Kearney wrote:
> Press "a" at the partitioning program during install. .. i think you can fix 
> that post install too **-*
>
thanks for your reply but could you be more specific?

jamie
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Thunderbird segfaults if UID > 0

2011-04-06 Thread Damien Fleuriot


On 4/6/11 4:00 AM, Kevin Kinsey wrote:
> Hello,
> 
> I've had trouble since upgrading mail/thunderbird from 2.X
> to 3.1.9 --- as a non-root user, it segfaults.
> 
> As root, I have no issues.
> 
> I've tried:
> 
> 1. Googling
> 2. "mv .mozilla .mozilla-old && thunderbird"
> 3.  sudo chmod 777 /dev/null && thunderbird
> (and similar stuff with /dev/fd/* and
> the symlinks stdin, stdout and stderr.
> 
> I'm kind of stumped at this point.  Here's the
> last part of a ktrace:
> 
>  54137 sh   RET   read 872/0x368
>  54137 sh   CALL  stat(0x283034d0,0xbfbfe638)
>  54137 sh   NAMI  "/usr/local/lib/thunderbird/run-mozilla.sh"
>  54137 sh   STRU  struct stat {dev=87, ino=6053072, mode=-rwxrwxrwx 
> , nlink=1, uid=0, gid=0, rdev=24241760, atime=1302052597, 
> stime=1301719584, ctime=1302044479, birthtime=1301719584, size=10461, 
> blksize=4096, blocks=24, flags=0x0 }
>  54137 sh   RET   stat 0
>  54137 sh   CALL  eaccess(0x283034d0,X_OK)
>  54137 sh   NAMI  "/usr/local/lib/thunderbird/run-mozilla.sh"
>  54137 sh   RET   eaccess 0
>  54137 sh   CALL  geteuid
>  54137 sh   RET   geteuid 1001/0x3e9
>  54137 sh   CALL  fork
>  54137 sh   RET   fork 54141/0xd37d
>  54137 sh   CALL  getpgrp
>  54137 sh   RET   getpgrp 54137/0xd379
>  54137 sh   CALL  wait4(0x,0xbfbfe778,WUNTRACED,0)
>  54137 sh   RET   wait4 54141/0xd37d
>  54137 sh   CALL  exit(0x8b)
>   
> 
> Anyone got a clue what I've done?
> 
> Thanks,
> 
> Kevin Kinsey
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Create a new user account, log in to it, run tbird ?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: GEOM warning in dmesg

2011-04-06 Thread Jamie Paul Griffin
On Wed, Apr 06, 2011 at 12:11:58PM -0400, Michael J. Kearney wrote:
> Press "a" at the partitioning program during install. .. i think you can fix 
> that post install too **-*
> 
thanks for your reply but could you be more specific? 

jamie
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: GEOM warning in dmesg

2011-04-06 Thread Michael J. Kearney
Press "a" at the partitioning program during install. .. i think you can fix 
that post install too **-*

Jamie Paul Griffin  wrote:


Hi everyone

I have just installed FreeBSD 8.2 RELEASE amd64 onto my new Lenovo ThinkCentre 
and i'm dual-booting FreeBSD with Windows & which was preinstalled.

When the system boots i see the message shown below in dmesg which relates to 
the partitions on the FreeBSD slice. So far i have not experienced any problems 
with using the system and it does boot into the OS ok. but i don't know if 
there's a problem here that i need to fix or if it's a warning i can ignore 
because i don't know what it means. i am hoping someone can help me and explain 
what it is.

Here is the text:

GEOM: ad8: partition 4 does not start on a track boundary.
GEOM: ad8: partition 4 does not end on a track boundary.
GEOM: ad8: partition 3 does not start on a track boundary.
GEOM: ad8: partition 3 does not end on a track boundary.
GEOM: ad8: partition 2 does not start on a track boundary.
GEOM: ad8: partition 2 does not end on a track boundary.
GEOM: ad8: partition 1 does not start on a track boundary.
GEOM: ad8: partition 1 does not end on a track boundary.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


GEOM warning in dmesg

2011-04-06 Thread Jamie Paul Griffin
Hi everyone

I have just installed FreeBSD 8.2 RELEASE amd64 onto my new Lenovo ThinkCentre 
and i'm dual-booting FreeBSD with Windows & which was preinstalled.

When the system boots i see the message shown below in dmesg which relates to 
the partitions on the FreeBSD slice. So far i have not experienced any problems 
with using the system and it does boot into the OS ok. but i don't know if 
there's a problem here that i need to fix or if it's a warning i can ignore 
because i don't know what it means. i am hoping someone can help me and explain 
what it is.

Here is the text:

GEOM: ad8: partition 4 does not start on a track boundary.
GEOM: ad8: partition 4 does not end on a track boundary.
GEOM: ad8: partition 3 does not start on a track boundary.
GEOM: ad8: partition 3 does not end on a track boundary.
GEOM: ad8: partition 2 does not start on a track boundary.
GEOM: ad8: partition 2 does not end on a track boundary.
GEOM: ad8: partition 1 does not start on a track boundary.
GEOM: ad8: partition 1 does not end on a track boundary.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: dhcpd in vmware

2011-04-06 Thread Kevin Wilcox
On Wed, Apr 6, 2011 at 04:12,   wrote:

> Kevin Wilcox  wrote:
>
>> If you're just using the 192.168.4.129 - 254 addresses
>> I would change it to
>>
>> subnet 192.168.4.0 netmask 255.255.255.0
>
> Shouldn't that be netmask 255.255.255.128?

That's what I thought at first as well.

Then I saw the router at 192.168.4.1, so it looks like they're using
the entire /24 but only assigning addresses via DHCPd to the top half.

kmw
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: remaining goal.. .

2011-04-06 Thread Arthur Chance

On 04/06/11 02:37, Gary Kline wrote:

On Tue, Apr 05, 2011 at 07:21:13PM -0400, Daniel Staal wrote:

--As of April 5, 2011 11:05:19 AM -0700, Gary Kline is alleged to have said:


It is a Alix 601 board with 1G of CF flash.  But according to my
hardware friend, it will take a CF burner of some kind.


--As for the rest, it is mine.

I'm going to assume you mean the Alix 6e1, which is the closest I
can find in their numbering system.



6E1, yes.  Sorry; it was last December.  My friend was going to drop
by , but cancelled and was back in school before he remembered.



It's got a standard CF adaptor.  (*All* the Alix's do.)  If there's
a card in it, pull it off and insert into any CF reader, and it
should work fine. (USB-based ones typically sell for $20, including
SD, XD, MMC, Memorystick, and probably a few others as well.  Check
Best Buy, or your local computer hardware store, or possibly a
camera store.)  Then follow Arthur's advice. The CF card may be a
little awkward to pull off.

If the card that's in there is some special card that needs some
exotic burner...  When you are at the computer store spend another
$5 or so and get yourself a new card.




I asked the pfSense forum if I had enough memory and they said
yes.  Wghat I've got should be fine assuming that everything is
put together correctly.  My physical disabilities limit what i
can do myself--that's the catch; it is why I have to ask favors.

I'll save your mail just in case my friend gets off-track for
some reason.  Shouldn't.  It is how he is putting himself thru
college this time.  ---What I want is to be drawing as few watts
as _possible_.  Especially since I have two tower cases going
24*7.  Plus the firewall Beast.  :: be nice to get down to some
min footprint and get that much further into the green-zone!


Alix boards are quite sufficient for home use. My 2d3 shows a memory 
usage of 28% and CPU usage usually in the range 2-20% depending on 
what's going through it at the time. I put a power meter on it and it 
takes 5W - some of my network switches take more than that.


Just make sure you get an image that's the right size for your CF card, 
uncompress it and dd it onto the CF card. If your case for the Alix is 
like mine, make sure you put the CF card into the adaptor *before* you 
put the motherboard into the case, because you won't get it in afterwards.


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


Re: dhcpd in vmware

2011-04-06 Thread perryh
Kevin Wilcox  wrote:

> If you're just using the 192.168.4.129 - 254 addresses
> I would change it to
>
> subnet 192.168.4.0 netmask 255.255.255.0

Shouldn't that be netmask 255.255.255.128?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: npviewer and ELF binary type 0 not known

2011-04-06 Thread David Demelier

On 06/04/2011 08:44, David Demelier wrote:

Hello,

I had a power failure and a lot of fsck issues after. I don't know if my
system is having corrupt files but I can't use flash player anymore :

markand@Groseille ~ $ nspluginwrapper -v -a -i
Auto-install plugins from /home/markand/.mozilla/plugins
Looking for plugins in /home/markand/.mozilla/plugins
ELF binary type "0" not known.
/usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin: 1: Syntax error:
"(" unexpected

markand@Groseille ~ $ nspluginwrapper -v -i
/usr/local/lib/npapi/linux-f10-flashplugin/libflashplayer.so
ELF binary type "0" not known.
/usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin: 1: Syntax error:
"(" unexpected
nspluginwrapper: no appropriate viewer found for
/usr/local/lib/npapi/linux-f10-flashplugin/libflashplayer.so

Even reinstalling nspluginwrapper or linux-10-flashplugin does not solve ..

Cheers,



Sorry it's my fault, the linux_enable="YES" was removed in my rc.conf. 
Solved.


Cheers.

--
David Demelier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"