Re: sendmail: stat=Deferred: Connection reset by local

2009-05-26 Thread Roberto Nunnari

Thank you Wojciech and Tim.

Could not yet find the solution, but at least I got sendmail
back delivering mail by reinstalling security/cyrus-sasl2

Don't know why nor how, but obviously there is some
configuration left around that makes sendmail try to
use some of sasl..

When I find the solution, I'll post it here.

Best regards.
Robi


Roberto Nunnari ha scritto:

Wojciech Puchar ha scritto:

here it is:

divert(0)dnl
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.submit.mc,v 1.1 
2003/10/19 00:03:13 gshapiro Exp $')

define(`confCF_VERSION', `Submit')dnl
define(`__OSTYPE__',`')dnl dirty hack to keep proto.m4 from complaining
define(`_USE_DECNET_SYNTAX_', `1')dnl support DECnet
define(`confTIME_ZONE', `USE_TZ')dnl
define(`confDONT_INIT_GROUPS', `True')dnl
define(`confBIND_OPTS', `WorkAroundBroken')dnl
dnl
dnl If you use IPv6 only, change [127.0.0.1] to [IPv6:::1]
FEATURE(`msp', `[127.0.0.1]')dnl

  6
this line i wanted to check if it listens. looks fine, while your 
messages suggested that it's not.


so no more idea, you talked about that you upgraded things, maybe rm 
*.cf;make;make install;/etc/rc.d/sendmail restart


I did that.. but it doesn't help.. I also recompiled again sendmail from 
source.. but didn't help neighter..



?

but actually i don't have more ideas.


I also don't know what else to look for.. any more hints anybody?

Robi

___
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: sendmail: stat=Deferred: Connection reset by local

2009-05-26 Thread Roberto Nunnari

Wojciech Puchar ha scritto:

here it is:

divert(0)dnl
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.submit.mc,v 1.1 
2003/10/19 00:03:13 gshapiro Exp $')

define(`confCF_VERSION', `Submit')dnl
define(`__OSTYPE__',`')dnl dirty hack to keep proto.m4 from complaining
define(`_USE_DECNET_SYNTAX_', `1')dnl support DECnet
define(`confTIME_ZONE', `USE_TZ')dnl
define(`confDONT_INIT_GROUPS', `True')dnl
define(`confBIND_OPTS', `WorkAroundBroken')dnl
dnl
dnl If you use IPv6 only, change [127.0.0.1] to [IPv6:::1]
FEATURE(`msp', `[127.0.0.1]')dnl

  6
this line i wanted to check if it listens. looks fine, while your 
messages suggested that it's not.


so no more idea, you talked about that you upgraded things, maybe rm 
*.cf;make;make install;/etc/rc.d/sendmail restart


I did that.. but it doesn't help.. I also recompiled again sendmail from 
source.. but didn't help neighter..



?

but actually i don't have more ideas.


I also don't know what else to look for.. any more hints anybody?

Robi

___
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: sendmail: stat=Deferred: Connection reset by local

2009-05-26 Thread Roberto Nunnari

Tim Kellers ha scritto:

 From /usr/local/share/doc/cyrus-sasl2/Sendmail.README:

"5) Add the following before FEATURE(msp) in your submit.mc file:

  DAEMON_OPTIONS(`Name=NoMTA, Addr=127.0.0.1, M=EA')dnl

  This disables SMTP AUTH on the loopback interface."

Did you take that line out of your submit.mc file?


Hi never had that line..

Any more hints?




Tim


Roberto Nunnari wrote:

Wojciech Puchar ha scritto:


ps ax|grep sendmail


# ps ax|grep sendmail
12313  ??  Ss 0:00.04 sendmail: accepting connections (sendmail)
12314  ??  S  0:02.34 sendmail: ./n4QG4DDt012314 
mx1.eu.apache.org.: client DATA 354 (sendmail)
12315  ??  Is 0:00.00 sendmail: Queue run...@00:30:00 for 
/var/spool/clientmqueue (sendmail)


this looks fine.

now show me your /etc/mail/`hostname`*.mc

here it is:

divert(0)
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.29 2003/12/24 
21:15:09 gshapiro Exp $')

OSTYPE(freebsd6)
DOMAIN(generic)

dnl FEATURE(`dnsbl', `relays.ordb.org', `"550 Email rejected due to 
sending server misconfiguration - see 
http://www.ordb.org/faq/\#why_rejected";')dnl
FEATURE(`dnsbl', `sbl.spamhaus.org', `"550 Mail from " 
$`'&{client_addr} " refused - see http://www.spamhaus.org/sbl/";')
FEATURE(`dnsbl', `list.dsbl.org', `"550 Mail from " $`'&{client_addr} 
" refused - see http://dsbl.org/";')
FEATURE(`dnsbl', `bl.spamcop.net', `"450 Mail from " $`'&{client_addr} 
" refused - see http://spamcop.net/bl.shtml";')


FEATURE(access_db, `hash -o -T /etc/mail/access')
FEATURE(blacklist_recipients)
FEATURE(local_lmtp)
FEATURE(mailertable, `hash -o /etc/mail/mailertable')
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')
dnl FEATURE(genericstable, `hash -o /etc/mail/genericstable')
dnl GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')

INPUT_MAIL_FILTER(`spamassassin', 
`S=local:/var/run/spamass-milter.sock, F=, T=C:15m;S:4m;R:4m;E:10m')
define(`confMILTER_MACROS_CONNECT',`b, j, _, {daemon_name}, {if_name}, 
{if_addr}')dnl


define(`confCW_FILE', `-o /etc/mail/local-host-names')

dnl Enable for both IPv4 and IPv6 (optional)
DAEMON_OPTIONS(`Name=IPv4, Family=inet')
dnl DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Modifiers=O')

define(`confBIND_OPTS', `WorkAroundBroken')
define(`confNO_RCPT_ACTION', `add-to-undisclosed')
define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')
MAILER(local)
MAILER(smtp)

___
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"



--
Roberto Nunnari
Servizi Informatici SUPSI-DTI
SUPSI-DTI - Via Cantonale - 6928 Manno - Switzerland
email: mailto:roberto.nunn...@supsi.ch
tel: +41-58-561

___
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: sendmail: stat=Deferred: Connection reset by local

2009-05-26 Thread Roberto Nunnari

Wojciech Puchar ha scritto:


now show me your /etc/mail/`hostname`*.mc

here it is:


it's `hostname`.mc looks OK but how about `hostname`.submit.mc



here it is:

divert(0)dnl
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.submit.mc,v 1.1 2003/10/19 
00:03:13 gshapiro Exp $')

define(`confCF_VERSION', `Submit')dnl
define(`__OSTYPE__',`')dnl dirty hack to keep proto.m4 from complaining
define(`_USE_DECNET_SYNTAX_', `1')dnl support DECnet
define(`confTIME_ZONE', `USE_TZ')dnl
define(`confDONT_INIT_GROUPS', `True')dnl
define(`confBIND_OPTS', `WorkAroundBroken')dnl
dnl
dnl If you use IPv6 only, change [127.0.0.1] to [IPv6:::1]
FEATURE(`msp', `[127.0.0.1]')dnl

___
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: sendmail: stat=Deferred: Connection reset by local

2009-05-26 Thread Roberto Nunnari

Wojciech Puchar ha scritto:


ps ax|grep sendmail


# ps ax|grep sendmail
12313  ??  Ss 0:00.04 sendmail: accepting connections (sendmail)
12314  ??  S  0:02.34 sendmail: ./n4QG4DDt012314 
mx1.eu.apache.org.: client DATA 354 (sendmail)
12315  ??  Is 0:00.00 sendmail: Queue run...@00:30:00 for 
/var/spool/clientmqueue (sendmail)


this looks fine.

now show me your /etc/mail/`hostname`*.mc

here it is:

divert(0)
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.29 2003/12/24 
21:15:09 gshapiro Exp $')

OSTYPE(freebsd6)
DOMAIN(generic)

dnl FEATURE(`dnsbl', `relays.ordb.org', `"550 Email rejected due to 
sending server misconfiguration - see 
http://www.ordb.org/faq/\#why_rejected";')dnl
FEATURE(`dnsbl', `sbl.spamhaus.org', `"550 Mail from " $`'&{client_addr} 
" refused - see http://www.spamhaus.org/sbl/";')
FEATURE(`dnsbl', `list.dsbl.org', `"550 Mail from " $`'&{client_addr} " 
refused - see http://dsbl.org/";')
FEATURE(`dnsbl', `bl.spamcop.net', `"450 Mail from " $`'&{client_addr} " 
refused - see http://spamcop.net/bl.shtml";')


FEATURE(access_db, `hash -o -T /etc/mail/access')
FEATURE(blacklist_recipients)
FEATURE(local_lmtp)
FEATURE(mailertable, `hash -o /etc/mail/mailertable')
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')
dnl FEATURE(genericstable, `hash -o /etc/mail/genericstable')
dnl GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')

INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/spamass-milter.sock, 
F=, T=C:15m;S:4m;R:4m;E:10m')
define(`confMILTER_MACROS_CONNECT',`b, j, _, {daemon_name}, {if_name}, 
{if_addr}')dnl


define(`confCW_FILE', `-o /etc/mail/local-host-names')

dnl Enable for both IPv4 and IPv6 (optional)
DAEMON_OPTIONS(`Name=IPv4, Family=inet')
dnl DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Modifiers=O')

define(`confBIND_OPTS', `WorkAroundBroken')
define(`confNO_RCPT_ACTION', `add-to-undisclosed')
define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')
MAILER(local)
MAILER(smtp)

___
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: sendmail: stat=Deferred: Connection reset by local

2009-05-26 Thread Roberto Nunnari

Hi Tim.
Thank you for your time.


Tim Kellers ha scritto:
Was sendmail compiled with SASL?  Do you have anything in 


I can I find it out? Here's my /etc/make.conf

# cat /etc/make.conf
CFLAGS= -O -pipe
NO_PROFILE=1

# no X, solo alfanumerico
WITHOUT_X11=yes
NO_X11=yes

# come richiesto dal sistema di ports..
X11BASE=${LOCALBASE}

# per compilare ports che dipendono su apache e mod_perl
WITH_MODPERL2=1
WITH_APACHE2=1

# Begin portconf settings
# Do not touch these lines
.if !empty(.CURDIR:M/usr/ports*) && exists(/usr/local/libexec/portconf)
_PORTCONF!=/usr/local/libexec/portconf
.for i in ${_PORTCONF:S/|/ /g}
${i:S/%/ /g}
.endfor
.endif
# End portconf settings
# added by use.perl 2009-03-27 16:19:32
PERL_VERSION=5.8.9




/etc/mail/mailer.conf?


# cat /etc/mail/mailer.conf
# $FreeBSD: src/etc/mail/mailer.conf,v 1.3 2002/04/05 04:25:12 gshapiro 
Exp $

#
# Execute the "real" sendmail program, named /usr/libexec/sendmail/sendmail
#
sendmail/usr/libexec/sendmail/sendmail
send-mail   /usr/libexec/sendmail/sendmail
mailq   /usr/libexec/sendmail/sendmail
newaliases  /usr/libexec/sendmail/sendmail
hoststat/usr/libexec/sendmail/sendmail
purgestat   /usr/libexec/sendmail/sendmail




Roberto Nunnari wrote:
for completeness, the last lines of maillog if I send a mail from root 
to a local account (robi):


May 26 17:40:46 jupiter sendmail[10730]: n4QFeh7V010730: to=robi, 
ctladdr=root (0/0), delay=00:00:03, xdelay=00:00:03, mailer=relay, 
pri=30032, r=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent 
(n4QFeh2X010731 Message accepted for delivery)
May 26 17:40:46 jupiter sm-mta[10733]: n4QFeh2X010731: smtpquit: 
mailer local exited with exit value 1
May 26 17:40:46 jupiter sm-mta[10733]: n4QFeh2X010731: 
to=, ctladdr= (0/0), 
delay=00:00:03,lay=00:00:00, mailer=local, pri=30862, relay=local, 
dsn=4.4.2, stat=Deferred: Connection reset by local

May 26 17:40:47 jupiter spamd[4853]: prefork: child states: II

Please help!
Thank you!
Robi


Roberto Nunnari ha scritto:

Hi people.

Please help!

This morning I decided to go back to plain smtp without
authentication that I had enabled about one year ago
following the instructions in the handbook.

Now sendmail doesn't deliver any more local mail.
Here's part of a line from /var/log/maillog
stat=Deferred: Connection reset by local

and
# sendmail -bp
...
n4Q8Wf2u075903 1254 Tue May 26 10:32 
 (reply: read error from local)
 
Total requests: 118



So here's what I've done this morning:
# /usr/local/etc/rc.d/saslauthd stop

edit /etc/rc.conf to remove the following line:
saslauthd_enable="YES"

edit /etc/make.conf and remove the following lines:
SENDMAIL_CFLAGS=-I/usr/local/include/sasl -DSASL
SENDMAIL_LDFLAGS=-L/usr/local/lib
SENDMAIL_LDADD=-lsasl2

# cd /usr/ports/security/cyrus-sasl2-saslauthd
# make deinstall

# cd /usr/ports/security/cyrus-sasl2
# make deinstall
# pw userdel cyrus

# cd /usr/src/lib/libsmutil
# make cleandir && make obj && make
# cd /usr/src/lib/libsm
# make cleandir && make obj && make
# cd /usr/src/usr.sbin/sendmail
# make cleandir && make obj && make && make install

# cd /etc/mail

edit /etc/mail/myhost.mydomain.mc
Remove these lines from it:
dnl set SASL options
TRUST_AUTH_MECH(`GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl
define(`confAUTH_MECHANISMS', `GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl

# make
# make install restart

Thank you!

___
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"







___
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: sendmail: stat=Deferred: Connection reset by local

2009-05-26 Thread Roberto Nunnari

Hi Wojciech.
Thank you.
See my answer in context.


Wojciech Puchar ha scritto:
for completeness, the last lines of maillog if I send a mail from root 
to a local account (robi):


May 26 17:40:46 jupiter sendmail[10730]: n4QFeh7V010730: to=robi, 
ctladdr=root (0/0), delay=00:00:03, xdelay=00:00:03, mailer=relay, 
pri=30032, r=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent 
(n4QFeh2X010731 Message accepted for delivery)
May 26 17:40:46 jupiter sm-mta[10733]: n4QFeh2X010731: smtpquit: 
mailer local exited with exit value 1
May 26 17:40:46 jupiter sm-mta[10733]: n4QFeh2X010731: 
to=, ctladdr= (0/0), 
delay=00:00:03,lay=00:00:00, mailer=local, pri=30862, relay=local, 
dsn=4.4.2, stat=Deferred: Connection reset by local

May 26 17:40:47 jupiter spamd[4853]: prefork: child states: II

Please help!
Thank you!
Robi

please do

ps ax|grep sendmail


# ps ax|grep sendmail
12313  ??  Ss 0:00.04 sendmail: accepting connections (sendmail)
12314  ??  S  0:02.34 sendmail: ./n4QG4DDt012314 mx1.eu.apache.org.: 
client DATA 354 (sendmail)
12315  ??  Is 0:00.00 sendmail: Queue run...@00:30:00 for 
/var/spool/clientmqueue (sendmail)

12765  p1  S+ 0:00.01 grep sendmail







___
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: sendmail: stat=Deferred: Connection reset by local

2009-05-26 Thread Roberto Nunnari
for completeness, the last lines of maillog if I send a mail from root 
to a local account (robi):


May 26 17:40:46 jupiter sendmail[10730]: n4QFeh7V010730: to=robi, 
ctladdr=root (0/0), delay=00:00:03, xdelay=00:00:03, mailer=relay, 
pri=30032, r=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent 
(n4QFeh2X010731 Message accepted for delivery)
May 26 17:40:46 jupiter sm-mta[10733]: n4QFeh2X010731: smtpquit: mailer 
local exited with exit value 1
May 26 17:40:46 jupiter sm-mta[10733]: n4QFeh2X010731: 
to=, ctladdr= (0/0), 
delay=00:00:03,lay=00:00:00, mailer=local, pri=30862, relay=local, 
dsn=4.4.2, stat=Deferred: Connection reset by local

May 26 17:40:47 jupiter spamd[4853]: prefork: child states: II

Please help!
Thank you!
Robi


Roberto Nunnari ha scritto:

Hi people.

Please help!

This morning I decided to go back to plain smtp without
authentication that I had enabled about one year ago
following the instructions in the handbook.

Now sendmail doesn't deliver any more local mail.
Here's part of a line from /var/log/maillog
stat=Deferred: Connection reset by local

and
# sendmail -bp
...
n4Q8Wf2u075903 1254 Tue May 26 10:32 
 (reply: read error from local)
 
Total requests: 118



So here's what I've done this morning:
# /usr/local/etc/rc.d/saslauthd stop

edit /etc/rc.conf to remove the following line:
saslauthd_enable="YES"

edit /etc/make.conf and remove the following lines:
SENDMAIL_CFLAGS=-I/usr/local/include/sasl -DSASL
SENDMAIL_LDFLAGS=-L/usr/local/lib
SENDMAIL_LDADD=-lsasl2

# cd /usr/ports/security/cyrus-sasl2-saslauthd
# make deinstall

# cd /usr/ports/security/cyrus-sasl2
# make deinstall
# pw userdel cyrus

# cd /usr/src/lib/libsmutil
# make cleandir && make obj && make
# cd /usr/src/lib/libsm
# make cleandir && make obj && make
# cd /usr/src/usr.sbin/sendmail
# make cleandir && make obj && make && make install

# cd /etc/mail

edit /etc/mail/myhost.mydomain.mc
Remove these lines from it:
dnl set SASL options
TRUST_AUTH_MECH(`GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl
define(`confAUTH_MECHANISMS', `GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl

# make
# make install restart

Thank you!

___
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"


sendmail: stat=Deferred: Connection reset by local

2009-05-26 Thread Roberto Nunnari

Hi people.

Please help!

This morning I decided to go back to plain smtp without
authentication that I had enabled about one year ago
following the instructions in the handbook.

Now sendmail doesn't deliver any more local mail.
Here's part of a line from /var/log/maillog
stat=Deferred: Connection reset by local

and
# sendmail -bp
...
n4Q8Wf2u075903 1254 Tue May 26 10:32 
 (reply: read error from local)
 
Total requests: 118



So here's what I've done this morning:
# /usr/local/etc/rc.d/saslauthd stop

edit /etc/rc.conf to remove the following line:
saslauthd_enable="YES"

edit /etc/make.conf and remove the following lines:
SENDMAIL_CFLAGS=-I/usr/local/include/sasl -DSASL
SENDMAIL_LDFLAGS=-L/usr/local/lib
SENDMAIL_LDADD=-lsasl2

# cd /usr/ports/security/cyrus-sasl2-saslauthd
# make deinstall

# cd /usr/ports/security/cyrus-sasl2
# make deinstall
# pw userdel cyrus

# cd /usr/src/lib/libsmutil
# make cleandir && make obj && make
# cd /usr/src/lib/libsm
# make cleandir && make obj && make
# cd /usr/src/usr.sbin/sendmail
# make cleandir && make obj && make && make install

# cd /etc/mail

edit /etc/mail/myhost.mydomain.mc
Remove these lines from it:
dnl set SASL options
TRUST_AUTH_MECH(`GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl
define(`confAUTH_MECHANISMS', `GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl

# make
# make install restart

Thank you!

___
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: upgrade from 6.1-RELEASE to 6.3-RELEASE

2008-09-23 Thread Roberto Nunnari

Good! Thank you guys for your quick answer.

Best regards.
Robi


Matthew Seaman wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

Roberto Nunnari wrote:
| Hello list.
| | I'm about to upgrade from 6.1-RELEASE to 6.3-RELEASE
| from source and I'd like to ask a couple of questions.
| | 1) Do the system interface change? That is, will I have to
| recompile all ports after upgrading?

No -- the rule is this isn't necessary for updates within the same
major branch.  In the past, there have been occasional excursions from
that ideal but not AFAIR in any of the 5.x, 6.x or 7.x release series.

| 2) Any gotcha, hints or things to be aware of?

Nothing that I can recall -- this update worked very smoothly just by
cvsup'ing to the appropriate tag and going through the usual buildworld
cycle. 
| Of course, as usual I'll take full backups before beginning

| the upgrade..

Always wise.

Cheers,

Matthew

- -- Dr Matthew J Seaman MA, D.Phil.   Flat 3
~  7 Priory Courtyard
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
~  Kent, CT11 9PW, UK
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREDAAYFAkjYnMoACgkQ3jDkPpsZ+Va9IwCdEzv+32pELmxnVq9XTyyJdHeC
UN8AnRz0tH3yUDjiaYqZsNJ2BTg6ZmWd
=N2gP
-END PGP SIGNATURE-
___
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]"


upgrade from 6.1-RELEASE to 6.3-RELEASE

2008-09-22 Thread Roberto Nunnari

Hello list.

I'm about to upgrade from 6.1-RELEASE to 6.3-RELEASE
from source and I'd like to ask a couple of questions.

1) Do the system interface change? That is, will I have to
recompile all ports after upgrading?

2) Any gotcha, hints or things to be aware of?

Of course, as usual I'll take full backups before beginning
the upgrade..

Best regards.
Robi

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


Re: X11 tunnel over ssh and then rsh

2008-08-22 Thread Roberto Nunnari

Roberto Nunnari wrote:

Hello Nikos.

Thank you for your reply.
See my comments below.


Nikos Vassiliadis wrote:

On Thursday 21 August 2008 09:54:29 Roberto Nunnari wrote:

Anybody on this, please?

Roberto Nunnari wrote:

Hello list.

I have this scenario

1) host A with X server
2) host B with ssh server but without X server
3) host C with rsh server and X client programs but without X server
(on host C there's also an ssh server, but in our case, users
have to use rsh)


Why rsh? Isn't ssh a drop-in replacement for rsh?


The reason for using rsh instead of ssh is that
it's a computing cluster. Host B is the master node
and access point to the cluster, and host C is any
one of the computing nodes. The cluster resources are
managed by the Sun Grid Engine (SGE) and so users
obtain the computing resources using the SGE interface.
SGE under the cover uses rsh. I could search and see if it would
possible to configure SGE so that it uses ssh instead of rsh,
but then, you should take in accounting the cpu overhead of
using ssh (encryption/decryption), so unnecessarily using cpu
time, as the cluster is all in a private network.





now, I need to connect from host A to host B with:
A$ ssh -Y B (-Y or -X, to create a X tunnel)
and then from host B to host C with:
B$ rsh C
and on host C I need to run an X client like:
C$ xterm

Now, I would like the users not to have to set the
DISPLAY env var on host C, as they tend to forget
and also some user's X server don't accept plain
X connections..

Is there a way that I could configure host B to somehow
expose to host C the X tunnel to host A?


Automatically? No.
You can however use ssh to create generic TCP tunnels, using
-R and -L. But this is much more complicated than remembering
a DISPLAY variable.


Wait! I found a possible workaround.. it seams that setting
X11UseLocalhost = no
on sshd_config tell sshd to bind the X11 forwarding server
to the wildcard address..




Right. Also, it requires users to specify a port on host B,
and then the chosen port could already be taken, so returning
an error..
Too much hassle..




From host B I have access to the users' homes on host C and I could
place there some script to set the DISPLAY env var on user
login.

B$ echo $DISPLAY
on host B gives back something like localhost:16.0,
but if on host C I enter:
C$ export DISPLAY=B:16.0
C$ xterm
it doesn't work.. probably host C doesn't expose a
network socket but maybe a unix socket for the X tunnel..


This is probably because the listener (which proxies X11 to
host A) is bound to localhost(127.0.0.1) and not B(12.23.34.45).
You can overcome this, using manual forwarding(-R & -L).

HOST_A# ssh -R '*:6010:127.0.0.1:6000' HOST_B  # create a listener
on HOST_B listening on all interfaces and TCP port 6010
and tunnel everything from there to HOST_A's 127.0.0.1 6000


This is a possible solution, but as stated above, it requires the
user to specify the port number (6010 in the example above)..
Also, it requires GatewayPorts = yes in sshd_config..

Humm.. it's a pity that ssh -Y or -X will only listen on the
loopback interface, but for sure there are good reasons it
is done that way.

Thank you again and best regards.
Robi



Then every host which can connect to HOST_B can connect to HOST_A
X11 server. Using generic TCP port forwarding through ssh to forward
X11 has an other minus. You have to handle yourself the X11 
authorization(xauth, XAUTHORITY and friends)


You can of course use a second ssh session from HOST_B to HOST_C
to expose HOST_B's 127.0.0.1:6010 to HOST_C's 127.0.0.1:6010.
So, connecting from HOST_C to 127.0.0.1:6010 will be tunneled
to HOST_B's 127.0.0.1:6010, which will be tunneled to HOST_A's
127.0.0.1:6000 were your X11 display lives.

It's rather complicated, though...
___
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]"


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


Re: X11 tunnel over ssh and then rsh

2008-08-22 Thread Roberto Nunnari

Hello Nikos.

Thank you for your reply.
See my comments below.


Nikos Vassiliadis wrote:

On Thursday 21 August 2008 09:54:29 Roberto Nunnari wrote:

Anybody on this, please?

Roberto Nunnari wrote:

Hello list.

I have this scenario

1) host A with X server
2) host B with ssh server but without X server
3) host C with rsh server and X client programs but without X server
(on host C there's also an ssh server, but in our case, users
have to use rsh)


Why rsh? Isn't ssh a drop-in replacement for rsh?


The reason for using rsh instead of ssh is that
it's a computing cluster. Host B is the master node
and access point to the cluster, and host C is any
one of the computing nodes. The cluster resources are
managed by the Sun Grid Engine (SGE) and so users
obtain the computing resources using the SGE interface.
SGE under the cover uses rsh. I could search and see if it would
possible to configure SGE so that it uses ssh instead of rsh,
but then, you should take in accounting the cpu overhead of
using ssh (encryption/decryption), so unnecessarily using cpu
time, as the cluster is all in a private network.





now, I need to connect from host A to host B with:
A$ ssh -Y B (-Y or -X, to create a X tunnel)
and then from host B to host C with:
B$ rsh C
and on host C I need to run an X client like:
C$ xterm

Now, I would like the users not to have to set the
DISPLAY env var on host C, as they tend to forget
and also some user's X server don't accept plain
X connections..

Is there a way that I could configure host B to somehow
expose to host C the X tunnel to host A?


Automatically? No.
You can however use ssh to create generic TCP tunnels, using
-R and -L. But this is much more complicated than remembering
a DISPLAY variable.


Right. Also, it requires users to specify a port on host B,
and then the chosen port could already be taken, so returning
an error..
Too much hassle..



From host 
B I have access to the users' homes on host C and I could

place there some script to set the DISPLAY env var on user
login.

B$ echo $DISPLAY
on host B gives back something like localhost:16.0,
but if on host C I enter:
C$ export DISPLAY=B:16.0
C$ xterm
it doesn't work.. probably host C doesn't expose a
network socket but maybe a unix socket for the X tunnel..


This is probably because the listener (which proxies X11 to
host A) is bound to localhost(127.0.0.1) and not B(12.23.34.45).
You can overcome this, using manual forwarding(-R & -L).

HOST_A# ssh -R '*:6010:127.0.0.1:6000' HOST_B  # create a listener
on HOST_B listening on all interfaces and TCP port 6010
and tunnel everything from there to HOST_A's 127.0.0.1 6000


This is a possible solution, but as stated above, it requires the
user to specify the port number (6010 in the example above)..
Also, it requires GatewayPorts = yes in sshd_config..

Humm.. it's a pity that ssh -Y or -X will only listen on the
loopback interface, but for sure there are good reasons it
is done that way.

Thank you again and best regards.
Robi



Then every host which can connect to HOST_B can connect to HOST_A
X11 server. Using generic TCP port forwarding through ssh to forward
X11 has an other minus. You have to handle yourself the X11 
authorization(xauth, XAUTHORITY and friends)


You can of course use a second ssh session from HOST_B to HOST_C
to expose HOST_B's 127.0.0.1:6010 to HOST_C's 127.0.0.1:6010.
So, connecting from HOST_C to 127.0.0.1:6010 will be tunneled
to HOST_B's 127.0.0.1:6010, which will be tunneled to HOST_A's
127.0.0.1:6000 were your X11 display lives.

It's rather complicated, though...
___
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: X11 tunnel over ssh and then rsh

2008-08-21 Thread Roberto Nunnari

Hi Oliver.

The reason for using rsh instead of ssh is that
it's a computing cluster. Host B is the master node
and access point to the cluster, and host C is any
one of the computing nodes. The cluster resources are
managed by the Sun Grid Engine (SGE) and so users
obtain the computing resources using the SGE interface.
SGE under the cover uses rsh. I could search and see if it would
possible to configure SGE so that it uses ssh instead of rsh,
but then, you should take in accounting the cpu overhead of
using ssh (encryption/decryption), so unnecessarily using cpu
time, as the cluster is all in a private network.

Thanks for the suggestion. I'll try that right away.

Robi


Oliver Fromme wrote:

Roberto Nunnari wrote:
 > 1) host A with X server
 > 2) host B with ssh server but without X server
 > 3) host C with rsh server and X client programs but without X server
 > (on host C there's also an ssh server, but in our case, users
 > have to use rsh)
 > 
 > now, I need to connect from host A to host B with:

 > A$ ssh -Y B (-Y or -X, to create a X tunnel)
 > and then from host B to host C with:
 > B$ rsh C
 > and on host C I need to run an X client like:
 > C$ xterm
 > 
 > Now, I would like the users not to have to set the

 > DISPLAY env var on host C, as they tend to forget
 > and also some user's X server don't accept plain
 > X connections..
 > 
 > Is there a way that I could configure host B to somehow

 > expose to host C the X tunnel to host A? From host
 > B I have access to the users' homes on host C and I could
 > place there some script to set the DISPLAY env var on user
 > login.
 > 
 > B$ echo $DISPLAY

 > on host B gives back something like localhost:16.0,
 > but if on host C I enter:
 > C$ export DISPLAY=B:16.0
 > C$ xterm
 > it doesn't work.. probably host C doesn't expose a
 > network socket but maybe a unix socket for the X tunnel..

There are several problems.  First, rsh does not support
connection forwarding.  Second, for security reasons, the
X forwarding feature of ssh binds only to localhost on
the client side (B), so you can't use it from C.

The easiest solution would be to allow users to use ssh
to connect to C (what's the reason for not allowing it?).
Then you can use the X forwarding feature of ssh.

Other solutions require much more work.  For example, you
can use ssh's generic connection forwarding feature which
allows using a remote network socket (not just localhost).
That is, on host A type something like this:

ssh -R 6001:localhost:6000 B

then on host B simply type "rsh C", and on host C you
have to set the DISPLAY environment variable to "B:1.0".
You also have to use xauth(1) or xhost(1) to allow X
clients to access the server (ssh's X forwarding feature
does that automatically, but when using the generic
connection forwarding you have to do it yourself).

WARNING:  The X connection between hosts B and C will
be unencrypted.  Everybody who has access to the network
will be able to sniff the connection and be able to
watch everything you do, including every character you
type (passwords etc.), and even intercept, modify and
take over the connection.  Furthermore, since the X
connection socket on host B listens on the network
(not just localhost), everybody can connect to it from
other machines and access your X server, provided it
can authenticate with it (which is trivial, especially
if you use xhost(1)).

I'm curious, why can't you use ssh between hosts B and C?
Using ssh would solve all of the problems at once.

Best regards
   Oliver




--
Roberto Nunnari
Servizi Informatici SUPSI-DTI
SUPSI-DTI - Via Cantonale - 6928 Manno - Switzerland
email: mailto:[EMAIL PROTECTED]
tel: +41-58-561

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


Re: X11 tunnel over ssh and then rsh

2008-08-20 Thread Roberto Nunnari

Anybody on this, please?


Roberto Nunnari wrote:

Hello list.

I have this scenario

1) host A with X server
2) host B with ssh server but without X server
3) host C with rsh server and X client programs but without X server
(on host C there's also an ssh server, but in our case, users
have to use rsh)

now, I need to connect from host A to host B with:
A$ ssh -Y B (-Y or -X, to create a X tunnel)
and then from host B to host C with:
B$ rsh C
and on host C I need to run an X client like:
C$ xterm

Now, I would like the users not to have to set the
DISPLAY env var on host C, as they tend to forget
and also some user's X server don't accept plain
X connections..

Is there a way that I could configure host B to somehow
expose to host C the X tunnel to host A? From host
B I have access to the users' homes on host C and I could
place there some script to set the DISPLAY env var on user
login.

B$ echo $DISPLAY
on host B gives back something like localhost:16.0,
but if on host C I enter:
C$ export DISPLAY=B:16.0
C$ xterm
it doesn't work.. probably host C doesn't expose a
network socket but maybe a unix socket for the X tunnel..

Any help/hint greatly appreciated.

Best regards.
Robi

___
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]"


X11 tunnel over ssh and then rsh

2008-08-19 Thread Roberto Nunnari

Hello list.

I have this scenario

1) host A with X server
2) host B with ssh server but without X server
3) host C with rsh server and X client programs but without X server
(on host C there's also an ssh server, but in our case, users
have to use rsh)

now, I need to connect from host A to host B with:
A$ ssh -Y B (-Y or -X, to create a X tunnel)
and then from host B to host C with:
B$ rsh C
and on host C I need to run an X client like:
C$ xterm

Now, I would like the users not to have to set the
DISPLAY env var on host C, as they tend to forget
and also some user's X server don't accept plain
X connections..

Is there a way that I could configure host B to somehow
expose to host C the X tunnel to host A? From host
B I have access to the users' homes on host C and I could
place there some script to set the DISPLAY env var on user
login.

B$ echo $DISPLAY
on host B gives back something like localhost:16.0,
but if on host C I enter:
C$ export DISPLAY=B:16.0
C$ xterm
it doesn't work.. probably host C doesn't expose a
network socket but maybe a unix socket for the X tunnel..

Any help/hint greatly appreciated.

Best regards.
Robi

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


Re: Install Linux in FreeBSD

2008-07-11 Thread Roberto Nunnari

I believe the OP question is:
How to run a Full blown linux OS on a Virtual Machine on FreeBSD,

and not
how to run linux binaries on FreeBSD via emulation..

As for myself, I went the other way round, as I needed to run
FreeBSD and windows on the same hardware.

Best regards.
Robi


Jonathan McKeown wrote:

On Friday 11 July 2008 05:29, Ruel Luchavez wrote:

[running Linux in a VM on FreeBSD]


Did you read section 10 of the Handbook - Linux Binary Compatibility?

Yes I read it Jonathan, Im newbie in BSD...regarding on my post is it
possible?
or Do you have any link so that i could much understand it aside from
freebsd handbook?


I haven't played with it at all - others (who have) may be able to help you 
more than I can: I'm just going by the documentation.


As I understand it, FreeBSD will run most Linux binaries natively, as long as 
you install a suitable Linux environment (libraries etc).


The easiest way to do this is to install a Linux version from ports (probably 
emulators/linux_base-f8 which will install a basic Fedora 8) which will 
create /compat/linux.


You then install your Linux software in the usual way.

I suspect you'll receive better offers of help if you start this process and 
then let the list know where you break down.


Jonathan
___
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: perl WITH_THREADS= yes or no?

2008-06-19 Thread Roberto Nunnari

Hi Anton.

I'm no expert here, but I found that installing perl
without threads works for the vast majority of ports.

In one occasion I needed to recompile perl with thread
because another port required so.

Also, I remember that using WITH_THREADS=yes came together
with a warning that it could break other applications
requiring perl.

So, if not a requirement, I'd stick with perl without threads.

Best regards.

--
Robi


Anton Shterenlikht wrote:

Should I build ports/lang/perl5.8 WITH_THREADS=yes ?

I run FreeBSD-7.0-stable on old compaq armada1700 laptop.
I don't use perl myself much, but many ports I use rely on it.

How will this affect performance of perl on my laptop?

More to the point, are there any ports which require perl with threads?
For example, can ImageMagick post-build test failures (using PerlMagick,
perl5.8.8 exited on signal 11) be related to the fact that perl is installed
with no threaded support?

many thanks
anton
 




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


Re: how to check status of ida disks?

2008-06-11 Thread Roberto Nunnari

Anybody on this, please?

--
Robi


Roberto Nunnari wrote:

Hello.

I'm running FreeBSD 6.1 on an old compac server.

The server has a RAID SCSI controller (if I'm not wrong is
the Compaq SMART 3200 Controller) that at times I'd like
to check if the status is still ok or somehow degraded.

The OS is accessing it using the ida driver.

Do anybody know how to achive it?

Thank you in advance.




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


Re: how to check status of ida disks?

2008-06-10 Thread Roberto Nunnari

Sorry.. I meant *RAID* SCSI controller.. and the raid
I'd like to check is RAID 1.

--
Robi



Roberto Nunnari wrote:

Hello.

I'm running FreeBSD 6.1 on an old compac server.

The server has a SCSI controller (if I'm not wrong is
the Compaq SMART 3200 Controller) that at times I'd like
to check if the status is still ok or somehow degraded.

The OS is accessing it using the ida driver.

Do anybody know how to achive it?

Thank you in advance.




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


how to check status of ida disks?

2008-06-10 Thread Roberto Nunnari

Hello.

I'm running FreeBSD 6.1 on an old compac server.

The server has a SCSI controller (if I'm not wrong is
the Compaq SMART 3200 Controller) that at times I'd like
to check if the status is still ok or somehow degraded.

The OS is accessing it using the ida driver.

Do anybody know how to achive it?

Thank you in advance.

--
Robi

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


Re: FreeBSD 7 on Windows 2008 (Hyper-V)

2008-06-09 Thread Roberto Nunnari

Same here.

--
Robi



Outback Dingo wrote:

Ok heres the best solution, Im not even a big linux fan but install Ubuntu
Server KVM,
then install windows and FreeBSD 6, 7 or 8 Linux KVM just works, ive had 0
issues
with FreeBSD under KVM with bridged networking.

On Mon, Jun 9, 2008 at 6:59 PM, Nejc Škoberne <[EMAIL PROTECTED]> wrote:


Hello,

I am also (very) interested in running FreeBSD under HyperV since HyperV
will
liberate itself from Windows Server soon after the final release (it will
not depend
on an preliminary Windows Server installation but will be "standalone" and
practically free of charge, which makes it (for me) a very interesting
solution).


 Im trying to set up a FreeBSD VM under Hyper-V but i the instalation

do not start. i try x86 and x64 boot disk only (for a net install).
The error i got is "cant load kernel".

Im a novice on FreeBSD but i have set up a few small server with it. Any
idea?


You didn't say which version of FreeBSD you are trying.

Please try a snapshot of 8-CURRENT (from
ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/) to see if anything
changes. There have been improvements to the boot loader recently.


I've heard that it works (at least boots) with 8-CURRENT. Are there plans
to
include support for FreeBSD 7.x branch too? That would be really cool. Yes,
I
know, patches are welcome.

Thanks,
Nejc

___
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]"


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


Re: Server crashing, no explanations

2008-05-20 Thread Roberto Nunnari

Then, if crash dumps are enabled, it could be a HW failure..
Once I had a server crashing with no dumps, and I found out
it was I power supply problem.

Best regards.
Robi


Alan Gilmour wrote:

Hi Roberto,

There's nothing in /var/crash

Any other ideas?

Cheers

Alan

On 20/05/2008, Roberto Nunnari <[EMAIL PROTECTED]> wrote:

Crash dumps should help.


Alan Gilmour wrote:

Hey all,

We have recently been getting a lot of traffic to one of our sites.
The CPU is consistently during busy periods using 100% utilisation.
When this happens we have approx 150 apache threads, and the loads
goes way above 15.

However recently the server has been auto-restarting (when under heavy
load) with no explanation in any logs. I've checked the console log,
messages, db logs e.t.c. but no mention of anything wrong.

Brief server summary :

FreeBSD 6.3-STABLE #0:
CPU: Intel(R) Xeon(TM) CPU 2.80GHz (2800.11-MHz 686-class CPU)
 Logical CPUs per core: 2
real memory  = 17716740096 (16896 MB)
avail memory = 16837763072 (16057 MB)
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs

We tried installing mbmon and lmmon and healthd, but none seem to work.

Anyone got any suggestions for other things we can try to detect why
the server is failing? or other ways to check things like CPU temp and
memory status?

Cheers

Alan
___
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: Server crashing, no explanations

2008-05-20 Thread Roberto Nunnari

Crash dumps should help.


Alan Gilmour wrote:

Hey all,

We have recently been getting a lot of traffic to one of our sites.
The CPU is consistently during busy periods using 100% utilisation.
When this happens we have approx 150 apache threads, and the loads
goes way above 15.

However recently the server has been auto-restarting (when under heavy
load) with no explanation in any logs. I've checked the console log,
messages, db logs e.t.c. but no mention of anything wrong.

Brief server summary :

FreeBSD 6.3-STABLE #0:
CPU: Intel(R) Xeon(TM) CPU 2.80GHz (2800.11-MHz 686-class CPU)
 Logical CPUs per core: 2
real memory  = 17716740096 (16896 MB)
avail memory = 16837763072 (16057 MB)
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs

We tried installing mbmon and lmmon and healthd, but none seem to work.

Anyone got any suggestions for other things we can try to detect why
the server is failing? or other ways to check things like CPU temp and
memory status?

Cheers

Alan
___
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: raid1 + degraded (take out one disk) + fatal trap 12 on next reboot

2008-05-03 Thread Roberto Nunnari

Hi Ted.

Thank you for replying to my post.

see my comments below.


Ted Mittelstaedt wrote:

Roberto,

  You can't simulate a disk drive failure that way.  If
you really want to know what's going on, the issue is that
your pointing the swap to ar0.  If you must get this
booted again you can try booting into single user mode
and editing /etc/fstab and pointing the partitions to
/dev/ad0 instead of /dev/ar0 and booting.  But this is
an emergency action and is not recommended.


It doesn't even get to that point.. it panics before giving
me the shell for single user mode.. I even made a few tests
trying to comment out the swap in fstab, but that didn't help.

but it doesn't matter.. I solved the problem by removing
and then readding the disk from the raid in the bios.
One up again had to rebuild the raid in the OS.. and
that was it..




  If you want to simulate a drive failure, WHILE THE
SYSTEM IS RUNNING pull the SATA connector on one drive.


For sure that makes for a real test.. but..
Are you sure that that will not fry up the mainboard or the drive?




  The system should NOT trap, it should simply print a
error to the console and show it's gone into degraded mode.

  If you then reboot, the system may or may not come back up.

  You have to understand the approach of RAID mirroring.  Basically
this is poor-man's data protection.  The idea is that a disk 
usually fails in the middle of the day during the worst possible

time.  When it does you do NOT want the server to stop or
crash.  You want it to keep running until the evening when you
can spend a couple hours getting the disk replaced.  (or until
the next day when you can buy a replacement drive)

  When you have the replacement disk ready to plug into the
system, you are supposed to run a full backup of your data
on the degraded array just in case the reinsertion goes badly.

  I have found the safest is to leave the server alone and
get the replacement disk ready.  Wiping it in another system
with dd if=/dev/zero of=/dev/ad1 bs=50k is the best policy
before reinsertion.


Thank you very much for these instructions. Luckly I'm not familiar
with failing drives! :)




  Follow the steps in the man page for reinsertion.  Keep in


What man page?


Again Thank you very much.

Best regards.
Robi



mind that they don't always work.  If they don't then you will
have to wipe both disks and regenerate the array and reinstall
the OS.  That is why you make a backup first when the system is
off-duty.

Ted


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Roberto Nunnari
Sent: Tuesday, April 29, 2008 12:35 PM
To: freebsd-questions@freebsd.org
Subject: Re: raid1 + degraded (take out one disk) + fatal trap 12 on
next reboot


Nobody on this, please? :)


Roberto Nunnari wrote:

Hi all!

I'm playing with new HW and FreeBSD 6.3 and 7.0.

I set up raid 1 on two sata disks (fakeraid on ICH9R)
and as long as I can see, it seams to work very well.

Now I'm trying to simulate 1 disk failure (I just take
out a disk and boot again). Doesn't matter which of the
two disks I take out, the bios correctly shows the raid
as degraded and bootable, loads the FreeBSD loader, who
loads the kernel and starts the boot.
But when the kernel comes to the drives (or the swap?)
it fatal traps 12. The trap descriptions sais that
current process is 0 (swapper).

Reading that I commented out the swap partition from fstab,
but that doesn't help.

How can I get the system to finish the boot?

Thank you and best regards.


___
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]"



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


Re: raid and dump/restore after the disaster

2008-04-30 Thread Roberto Nunnari

Hi!

Anybody on this, plase? :)

Am I missing something basilar, or it's a FreeBSD bug?
Incomplete support for the ICH9R?

I cannot attach the boot log, because the boot process
panics just before mounting the disks and nothing is
logged on /var/log/

Anyways, booting in verbose mode shows that the last
activities before it panics are on the disks and fakeraid..
it finds one of the disks and then the last output before
the panic is about the Intel MatrixRAID.

Any thoughts on this, please?

Best regards
Robi


Roberto Nunnari wrote:

Hi all!

I'm playing with new HW and FreeBSD 6.3 and 7.0.

I set up raid 1 on two sata disks (fakeraid on ICH9R)
and as long as I can see, it seams to work very well.

Now I'm trying to simulate 1 disk failure (I just take
out a disk and boot again). Doesn't matter which of the
two disks I take out, the bios correctly shows the raid
as degraded and bootable, loads the FreeBSD loader, who
loads the kernel and starts the boot.
But when the kernel comes to the drives (or the swap?)
it fatal traps 12. The trap descriptions sais that
current process is 0 (swapper).

Reading that I commented out the swap partition from fstab,
but that doesn't help.

How can I get the system to finish the boot?

Thank you and best regards.




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


Re: raid1 + degraded (take out one disk) + fatal trap 12 on next reboot

2008-04-29 Thread Roberto Nunnari

Nobody on this, please? :)


Roberto Nunnari wrote:

Hi all!

I'm playing with new HW and FreeBSD 6.3 and 7.0.

I set up raid 1 on two sata disks (fakeraid on ICH9R)
and as long as I can see, it seams to work very well.

Now I'm trying to simulate 1 disk failure (I just take
out a disk and boot again). Doesn't matter which of the
two disks I take out, the bios correctly shows the raid
as degraded and bootable, loads the FreeBSD loader, who
loads the kernel and starts the boot.
But when the kernel comes to the drives (or the swap?)
it fatal traps 12. The trap descriptions sais that
current process is 0 (swapper).

Reading that I commented out the swap partition from fstab,
but that doesn't help.

How can I get the system to finish the boot?

Thank you and best regards.



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


Re: is this hardware supported?

2008-04-29 Thread Roberto Nunnari

Hi.

Here I'm back with a very short report on installing
FreeBSD 6.3/7.0 and others on this mainboard:
http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ClassValue=Motherboard&ProductID=2534&ProductName=GA-G33M-DS2R

It's a Gigabyte (model GA-G33M-DS2R) mainboard based on
the Intel G33 + ICH9R Chipset and Intel E8200 processor.

I tried to install FreeBSD 6.3 and 7.0, xen 4.1 and CentOS 5.1

The results are all in favour of FreeBSD :)

FreeBSD:
It installs without any problem both using MB SATA fakeraid
or plain SATA disk. All HW is correctly recognized and in no
more than 5 minutes FreeBSD is fully installed, configured
and up and running on network. No tests on graphics, though.

xen:
Installation fails as it says the system doesn't have a NIC.
After providing the NIC driver during installation, linux
doesn't see the SATA fakeraid, but only the bare disks.

CentOS:
Installation gets to the end and lets a bootable system, but
the system doesn't recognice the NIC nor the SATA fakeraid.
Graphics is correctly configured and Gnome starts up correctly.

Best regards.


Roberto Nunnari wrote:

Roland,

Thank you for your support. I'll post here the result of
installing FreeBSD on that HW.

Best regards.
Robi.


Roland Smith wrote:

On Sat, Apr 19, 2008 at 06:45:40PM +0200, Roberto Nunnari wrote:

Hi!

Ok. So what about this?
http://de.asus.com/products.aspx?modelmenu=2&model=1178&l1=3&l2=11&l3=307 



Has anybody been using it?
With what success?
Can anybody use the embedded RAID controller to make a HW RAID 1
with two SATA disks?


According to ata(4), the ICH8 chipset is supported. According to
ataraid(4) the jmicron is supported.

But if it doesn't work, you can always use gmirror(8).


Is the NIC supported and working well?


Hard to say. The spec page you provided doesn't list the type of Realtek
chip used. Again, if it doesn't work get a cheap Realtek 8139 card.


Again, I couldn't find any of its chipsets in the 6.3 supported
HW list, so that's why I ask the list.


It is better to check the manual pages of drivers.
 

But in this case I'm a bit muc more confident that FreeBSD 6.3
can run on this HW


I recently booted FreeBSD on a system with a intel motherboard with a
ICH9 chipset. Everything seemed to work OK.

Roland


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



--
Robi

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


raid and dump/restore after the disaster

2008-04-28 Thread Roberto Nunnari

Hi all!

I'm playing with new HW and FreeBSD 6.3 and 7.0.

I set up raid 1 on two sata disks (fakeraid on ICH9R)
and as long as I can see, it seams to work very well.

Now I'm trying to simulate 1 disk failure (I just take
out a disk and boot again). Doesn't matter which of the
two disks I take out, the bios correctly shows the raid
as degraded and bootable, loads the FreeBSD loader, who
loads the kernel and starts the boot.
But when the kernel comes to the drives (or the swap?)
it fatal traps 12. The trap descriptions sais that
current process is 0 (swapper).

Reading that I commented out the swap partition from fstab,
but that doesn't help.

How can I get the system to finish the boot?

Thank you and best regards.

--
Robi

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


FreeBSD on xen?

2008-04-24 Thread Roberto Nunnari

Hi!

Is anybody successfully running FreeBSD on xen?

xen docs doesn't talk about support for FreeBSD..
Only Linux and Windows! The doc says the Guest
operating system must be aware on running virtualized!
Does FreeBSD supports it?

What if the HW supports Intel's VT / AMD's AMD-V ?
Will this make it possible to have FreeBDS as a Guest OS?

Any comment welcome.
Thank you.

Best regards.

--
Robi

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


Re: is this hardware supported?

2008-04-22 Thread Roberto Nunnari

Roland,

Thank you for your support. I'll post here the result of
installing FreeBSD on that HW.

Best regards.
Robi.


Roland Smith wrote:

On Sat, Apr 19, 2008 at 06:45:40PM +0200, Roberto Nunnari wrote:

Hi!

Ok. So what about this?
http://de.asus.com/products.aspx?modelmenu=2&model=1178&l1=3&l2=11&l3=307

Has anybody been using it?
With what success?
Can anybody use the embedded RAID controller to make a HW RAID 1
with two SATA disks?


According to ata(4), the ICH8 chipset is supported. According to
ataraid(4) the jmicron is supported.

But if it doesn't work, you can always use gmirror(8).


Is the NIC supported and working well?


Hard to say. The spec page you provided doesn't list the type of Realtek
chip used. Again, if it doesn't work get a cheap Realtek 8139 card.


Again, I couldn't find any of its chipsets in the 6.3 supported
HW list, so that's why I ask the list.


It is better to check the manual pages of drivers.
 

But in this case I'm a bit muc more confident that FreeBSD 6.3
can run on this HW


I recently booted FreeBSD on a system with a intel motherboard with a
ICH9 chipset. Everything seemed to work OK.

Roland


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


Re: is this hardware supported?

2008-04-19 Thread Roberto Nunnari

Hi!

Ok. So what about this?
http://de.asus.com/products.aspx?modelmenu=2&model=1178&l1=3&l2=11&l3=307

Has anybody been using it?
With what success?
Can anybody use the embedded RAID controller to make a HW RAID 1
with two SATA disks?
Is the NIC supported and working well?

Again, I couldn't find any of its chipsets in the 6.3 supported
HW list, so that's why I ask the list.

But in this case I'm a bit muc more confident that FreeBSD 6.3
can run on this HW

It's a Asus P5B, with intel P965 / ICH8 chipset

With that MB I would like to build a small FreeBSD 6.3 home server with:
- 1 cpu Intel CORE2DUO E4600
- 2 GB DDR2-RAM Patriot DDR2 2GB Kit, PC6400
- 2 sata drives (HW RAID 1)

Any comment/hint welcome.
Thank you.

Best regards.

--
Robi


Roland Smith wrote:

On Sat, Apr 19, 2008 at 02:12:28AM +0200, Roberto Nunnari wrote:

Hi!

I would like to buy the following motherboard but
I couldn't find its chipsets in the 6.3 supported HW list:

So, I thought to ask the list for comments.

http://www.gigabyte.de/Products/Motherboard/Products_Spec.aspx?ClassValue=Motherboard&ProductID=2613&ProductName=GA-73PVM-S2H

It's a GigaByte GA-73PVM-S2H

What I'm worring about is expecially the sata disk controller:
GeForce 7100/nForce 630i chipset

and the network interface:
RTL 8211B chip


I would avoid Nvidia chipsets. For Athlon processors, I've had the best
results with motherboards with a AMD or VIA chipset. For Intel processors,
VIA or intel chipsets are fine.

Roland


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


is this hardware supported?

2008-04-18 Thread Roberto Nunnari

Hi!

I would like to buy the following motherboard but
I couldn't find its chipsets in the 6.3 supported HW list:

So, I thought to ask the list for comments.

http://www.gigabyte.de/Products/Motherboard/Products_Spec.aspx?ClassValue=Motherboard&ProductID=2613&ProductName=GA-73PVM-S2H

It's a GigaByte GA-73PVM-S2H

What I'm worring about is expecially the sata disk controller:
GeForce 7100/nForce 630i chipset

and the network interface:
RTL 8211B chip

With that HW I would like to build a small FreeBSD 6.3 server with
- 1 cpu Intel CORE2DUO E4600
- 2 GB DDR2-RAM Patriot DDR2 2GB Kit, PC6400
- 2 sata drives (HW RAID 1)

Any comment/hint welcome.
Thank you.

Best regards.

--
Robi

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


Re: Best way to achive email hosting for several domains

2008-03-20 Thread Roberto Nunnari

Hi Norberto.


Norberto Meijome wrote:

On Tue, 18 Mar 2008 15:29:29 +0100
Roberto Nunnari <[EMAIL PROTECTED]> wrote:


Now, everything works fine, but I'm a bit concerned with the
webmail login.. I'd like [EMAIL PROTECTED] to login with a
username equal to the email, but as the authentication in
horde is handled by imp, I'm not sure how to proceed with that..


Hi Roberto,
I try to avoid that beast of horde...but most webmail products that I've seen
(including Horde, if memory doesn't fail me), simply make an imap connection to
your server and pass on whatever auth you give to it IOW, whatever works
for imap works with webmail.


Yes.. That's how it works now.. horde simply delegates to imp that
does the authentication to the imap server.. what I mean is that
as users unix accounts are named like aaa01, aaa02, aab01, but
they are mapped to email addresses like [EMAIL PROTECTED], 
[EMAIL PROTECTED] and [EMAIL PROTECTED], I'd like to let

the user authenticate to the webmail using the email address,
and then have some piece of software map the email address to
the local unix account before attempting the auth process..
I found out that imp provides hook points to do this kind
of things and maybe I'll go that direction, but I just
would like to hear what other people are doing.. maybe
have aliases in /etc/passwd (ie different usernames, same UID/GID)?

Best regards.
Robi.




anyway, it wouldn't be too hard to test, right?

B
_
{Beto|Norberto|Numard} Meijome

"Unix is very simple, but it takes a genius to understand the simplicity."
   Dennis Ritchie

I speak for myself, not my employer. Contents may be hot. Slippery when wet.
Reading disclaimers makes you go blind. Writing them is worse. You have been
Warned.
___
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: Best way to achive email hosting for several domains

2008-03-20 Thread Roberto Nunnari

Please, any thoughts here?

Best regards.
Robi.


Roberto Nunnari wrote:

Hi.

I'd like to know what are the best practices for implementing
email hosting for several domains. The service is accessible
via pop/imap/webmail

Apart from that, I'd like to ask for comments on the
actual comfiguration..

The system is already configured and running as follows:

# uname -rms
FreeBSD 6.1-RELEASE-p23 i386

MTA:sendmail
imap/pop:mail/imap-uw
webmail:horde from ports

Every mailbox as a local unix account, ie:
[EMAIL PROTECTED] --> a1
[EMAIL PROTECTED] --> a2
[EMAIL PROTECTED] --> b1
[EMAIL PROTECTED] --> b2
etc..

Now, everything works fine, but I'm a bit concerned with the
webmail login.. I'd like [EMAIL PROTECTED] to login with a
username equal to the email, but as the authentication in
horde is handled by imp, I'm not sure how to proceed with that..

Any hints/suggestions are welcome.

Thank you and best regards.
Robi.


___
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]"


Best way to achive email hosting for several domains

2008-03-18 Thread Roberto Nunnari

Hi.

I'd like to know what are the best practices for implementing
email hosting for several domains. The service is accessible
via pop/imap/webmail

Apart from that, I'd like to ask for comments on the
actual comfiguration..

The system is already configured and running as follows:

# uname -rms
FreeBSD 6.1-RELEASE-p23 i386

MTA:sendmail
imap/pop:   mail/imap-uw
webmail:horde from ports

Every mailbox as a local unix account, ie:
[EMAIL PROTECTED] --> a1
[EMAIL PROTECTED] --> a2
[EMAIL PROTECTED] --> b1
[EMAIL PROTECTED] --> b2
etc..

Now, everything works fine, but I'm a bit concerned with the
webmail login.. I'd like [EMAIL PROTECTED] to login with a
username equal to the email, but as the authentication in
horde is handled by imp, I'm not sure how to proceed with that..

Any hints/suggestions are welcome.

Thank you and best regards.
Robi.


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


Re: [SOLVED] sendmail: from virtual address changed to maindomain

2008-03-17 Thread Roberto Nunnari

hehe.. as usual.. the computer is always right!

my fault.. seeing that 'make all' generates hostname.cf
thought that was enough and never typed make install..

ahh...

Best regards.
Robi


Roberto Nunnari wrote:

Hello Matthew.
Thank you for your reply.

please see my comments below.


Matthew Seaman wrote:

Roberto Nunnari wrote:

yes. here it is.

Thank you.
Robi.


Wojciech Puchar wrote:


entries in hostname.mc
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')
FEATURE(genericstable, `hash -o /etc/mail/genericstable')
GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')

MX hostnames are all A records.

well, as long as the users receive/send emails from/to external 
domains

everything works just fine, but when:

[EMAIL PROTECTED] sends to [EMAIL PROTECTED] or viceversa

the message gets to the right user, but the from header is
changed to [EMAIL PROTECTED], mailbox that doesn't exists!


could you please show whole hostname.mc



I assume that you've commented out all of the MASQUERADE and GENERICS 
stuff
as part of your attempt to debug the problem and that you ultimately 
intend

to enable those capabilities.


Not sure.. I had masquerading enabled long ago.. but then I took
it out and it was working just fine, because the host is already
in the right domain.. but now that I need to add virtualdomains
I think I may need it.. right?




Hmmm... not entirely certain, but I believe the part you are missing is:

FEATURE(limited_masquerade)dnl


Tried that, but doesn't help.. but.. one thing that looks odd
to me is this:
# sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter  
 > /map generics a
Map named "generics" not found
 >
 > /map virtuser a
map_lookup: virtuser (a) no match (0)


see? it says that it doesn't know about the generics map!

Any more thoughts on this, please?

Best regards.
Robi




This causes sendmail to only apply masquerading to the domains listed in
class {M} -- ie. what is listed in /etc/mail/generics-domains.  Without
that sendmail will also masquerade for any host in class {w} which 
includes

any contents of /etc/mail/local-host-names,  all the interfaces of your
server by IP and any names those interfaces resolve into as well.  You
can see what the resulting lists are on your system by running

  sendmail -bt

and then typing $=w or $=M at the prompt.

Cheers,

Matthew



___
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: sendmail: from virtual address changed to maindomain

2008-03-15 Thread Roberto Nunnari

Hello Matthew.
Thank you for your reply.

please see my comments below.


Matthew Seaman wrote:

Roberto Nunnari wrote:

yes. here it is.

Thank you.
Robi.


Wojciech Puchar wrote:


entries in hostname.mc
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')
FEATURE(genericstable, `hash -o /etc/mail/genericstable')
GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')

MX hostnames are all A records.

well, as long as the users receive/send emails from/to external domains
everything works just fine, but when:

[EMAIL PROTECTED] sends to [EMAIL PROTECTED] or viceversa

the message gets to the right user, but the from header is
changed to [EMAIL PROTECTED], mailbox that doesn't exists!


could you please show whole hostname.mc



I assume that you've commented out all of the MASQUERADE and GENERICS stuff
as part of your attempt to debug the problem and that you ultimately intend
to enable those capabilities.


Not sure.. I had masquerading enabled long ago.. but then I took
it out and it was working just fine, because the host is already
in the right domain.. but now that I need to add virtualdomains
I think I may need it.. right?




Hmmm... not entirely certain, but I believe the part you are missing is:

FEATURE(limited_masquerade)dnl


Tried that, but doesn't help.. but.. one thing that looks odd
to me is this:
# sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter  
> /map generics a
Map named "generics" not found
>
> /map virtuser a
map_lookup: virtuser (a) no match (0)


see? it says that it doesn't know about the generics map!

Any more thoughts on this, please?

Best regards.
Robi




This causes sendmail to only apply masquerading to the domains listed in
class {M} -- ie. what is listed in /etc/mail/generics-domains.  Without
that sendmail will also masquerade for any host in class {w} which includes
any contents of /etc/mail/local-host-names,  all the interfaces of your
server by IP and any names those interfaces resolve into as well.  You
can see what the resulting lists are on your system by running

  sendmail -bt

and then typing $=w or $=M at the prompt.

Cheers,

Matthew



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


Re: sendmail: from virtual address changed to maindomain

2008-03-15 Thread Roberto Nunnari

yes. here it is.

Thank you.
Robi.


Wojciech Puchar wrote:


entries in hostname.mc
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')
FEATURE(genericstable, `hash -o /etc/mail/genericstable')
GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')

MX hostnames are all A records.

well, as long as the users receive/send emails from/to external domains
everything works just fine, but when:

[EMAIL PROTECTED] sends to [EMAIL PROTECTED] or viceversa

the message gets to the right user, but the from header is
changed to [EMAIL PROTECTED], mailbox that doesn't exists!


could you please show whole hostname.mc
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"
divert(-1)
#
# Copyright (c) 1983 Eric P. Allman
# Copyright (c) 1988, 1993
#   The Regents of the University of California.  All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#notice, this list of conditions and the following disclaimer in the
#documentation and/or other materials provided with the distribution.
# 3. All advertising materials mentioning features or use of this software
#must display the following acknowledgement:
#   This product includes software developed by the University of
#   California, Berkeley and its contributors.
# 4. Neither the name of the University nor the names of its contributors
#may be used to endorse or promote products derived from this software
#without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#

#
#  This is a generic configuration file for FreeBSD 5.X and later systems.
#  If you want to customize it, copy it to a name appropriate for your
#  environment and do the modifications there.
#
#  The best documentation for this .mc file is:
#  /usr/share/sendmail/cf/README or
#  /usr/src/contrib/sendmail/cf/README
#

divert(0)
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.29 2003/12/24 21:15:09 
gshapiro Exp $')
OSTYPE(freebsd6)
DOMAIN(generic)

FEATURE(access_db, `hash -o -T /etc/mail/access')
FEATURE(blacklist_recipients)
FEATURE(local_lmtp)
FEATURE(mailertable, `hash -o /etc/mail/mailertable')
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')
FEATURE(genericstable, `hash -o /etc/mail/genericstable')
dnl FEATURE(`stikyhost')
dnl FEATURE(always_add_domain)
dnl FEATURE(`always_add_domain')
dnl FEATURE(`generics_entire_domain')
dnl FEATURE(`virtuser_entire_domain')

FEATURE(`dnsbl', `relays.ordb.org', `"550 Email rejected due to sending server 
misconfiguration - see http://www.ordb.org/faq/\#why_rejected";')dnl
FEATURE(`dnsbl', `sbl.spamhaus.org', `"550 Mail from " $`'&{client_addr} " 
refused - see http://www.spamhaus.org/sbl/";')
FEATURE(`dnsbl', `list.dsbl.org', `"550 Mail from " $`'&{client_addr} " refused 
- see http://dsbl.org/";')
FEATURE(`dnsbl', `bl.spamcop.net', `"450 Mail from " $`'&{client_addr} " 
refused - see http://spamcop.net/bl.shtml";')
dnl FEATURE(`genericstable')
GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')

INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/spamass-milter.sock, F=, 
T=C:15m;S:4m;R:4m;E:10m')
define(`confMILTER_MACROS_CONNECT',`b, j, _, {daemon_name}, {if_name}, 
{if_addr}')dnl

define(`confCW_FILE', `-o /etc/mail/local-host-names')

dnl Enable for both IPv4 and IPv6 (optional)
DAEMON_OPTIONS(`Name=IPv4, Family=inet')
#DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Modifiers=O')

define(`confBIND_OPTS', `WorkAroundBroken')
define(`confNO_RCPT_ACTION', `add-to-undisclosed')
define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')
dnl define(`confDOMAIN_NAME', `jupiter.nunnisoft.ch')
dnl MASQUERADE_AS(`maindomain.com')
dnl MASQUERADE_DOMAIN_FILE(`/etc/mail/masquerade-domains')
MAILER(local)
MAILER(smtp)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd

sendmail: from virtual address changed to maindomain

2008-03-14 Thread Roberto Nunnari

Hi all.

This is driving me mad.. I hope a kind soul can help me out..
This is the relevant environment:

# uname -rms
FreeBSD 6.1-RELEASE-p23 i386

# hostname
jupiter.maindomain.com

# cat /etc/mail/local-host-names
maindomain.com
mydomain1.com

# cat /etc/mail/generics-domains
mydomain1.com

# cat /etc/mail/genericstable
md101[EMAIL PROTECTED]
md102[EMAIL PROTECTED]

# cat /etc/mail/virtusertable
[EMAIL PROTECTED]md101
[EMAIL PROTECTED]md102

entries in hostname.mc
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')
FEATURE(genericstable, `hash -o /etc/mail/genericstable')
GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')

MX hostnames are all A records.

well, as long as the users receive/send emails from/to external domains
everything works just fine, but when:

[EMAIL PROTECTED] sends to [EMAIL PROTECTED] or viceversa

the message gets to the right user, but the from header is
changed to [EMAIL PROTECTED], mailbox that doesn't exists!

Any hints/suggestions?

Please, help!

Thank you.
Robi


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


Re: users cannot login anymore

2007-08-30 Thread Roberto Nunnari

Yes! Thank you all!
The problem was permissions on /

it was:
ls -la /
total 79
drwxr-x---  23 rootwheel1024 Aug 30 09:07 .

and changing it to:
# chmod o=rx /

solved the problem.

But how comes it was changed? have to check better..

Thank you again guys!

Best regards.


Wojciech Puchar wrote:

check / and /lib and /libexec


On Thu, 30 Aug 2007, Roberto Nunnari wrote:


Hi Bahman.

see below my answer.


Bahman M. wrote:

# su - robi
su: /bin/csh: Permission denied

also,

# /usr/local/etc/rc.d/tomcat6 start
Starting tomcat60.
su: /usr/local/bin/bash: Permission denied

# uname -rms
FreeBSD 6.1-RELEASE-p19 i386

What's the output of
# ls -l /usr/local/bin/bash
# ls -l /bin/csh
?


# ls -l /usr/local/bin/bash /bin/csh /bin/sh
-r-xr-xr-x  2 root  wheel  298556 Aug  6 18:37 /bin/csh
-r-xr-xr-x  1 root  wheel  107380 Aug  6 18:37 /bin/sh
-rwxr-xr-x  1 root  wheel  611268 Jul  2 12:15 /usr/local/bin/bash

# cat /etc/shells
/bin/sh
/bin/csh
/bin/tcsh
/usr/local/bin/bash
/usr/local/bin/rbash



Bahman



--
Robi

___
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]"



--
Robi

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


Re: users cannot login anymore

2007-08-30 Thread Roberto Nunnari
in effect, trying to login as a unprivileged user gives an additional 
line.. but it doesn't give me hints..


# ssh [EMAIL PROTECTED]
Password:
Last login: Thu Aug 30 12:12:12 2007 from 
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
The Regents of the University of California.  All rights reserved.

Could not chdir to home directory /usr/home/robi: Permission denied
/usr/local/bin/bash: Permission denied
Connection to localhost closed.

Please help!


Bahman M. wrote:

see below my answer.


Bahman M. wrote:

# su - robi
su: /bin/csh: Permission denied

also,

# /usr/local/etc/rc.d/tomcat6 start
Starting tomcat60.
su: /usr/local/bin/bash: Permission denied

# uname -rms
FreeBSD 6.1-RELEASE-p19 i386

What's the output of
# ls -l /usr/local/bin/bash
# ls -l /bin/csh
?

# ls -l /usr/local/bin/bash /bin/csh /bin/sh
-r-xr-xr-x  2 root  wheel  298556 Aug  6 18:37 /bin/csh
-r-xr-xr-x  1 root  wheel  107380 Aug  6 18:37 /bin/sh
-rwxr-xr-x  1 root  wheel  611268 Jul  2 12:15 /usr/local/bin/bash

# cat /etc/shells
/bin/sh
/bin/csh
/bin/tcsh
/usr/local/bin/bash
/usr/local/bin/rbash


Read man 1 tcsh/bash startup section and see if users other than root
have access to all files and directories mentioned out there.
Also try logging in as robi (on a login shell). It might give you a clue.

Bahman



--
Robi

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


Re: users cannot login anymore

2007-08-30 Thread Roberto Nunnari

Hi Bahman.

see below my answer.


Bahman M. wrote:

# su - robi
su: /bin/csh: Permission denied

also,

# /usr/local/etc/rc.d/tomcat6 start
Starting tomcat60.
su: /usr/local/bin/bash: Permission denied

# uname -rms
FreeBSD 6.1-RELEASE-p19 i386

What's the output of
# ls -l /usr/local/bin/bash
# ls -l /bin/csh
?


# ls -l /usr/local/bin/bash /bin/csh /bin/sh
-r-xr-xr-x  2 root  wheel  298556 Aug  6 18:37 /bin/csh
-r-xr-xr-x  1 root  wheel  107380 Aug  6 18:37 /bin/sh
-rwxr-xr-x  1 root  wheel  611268 Jul  2 12:15 /usr/local/bin/bash

# cat /etc/shells
/bin/sh
/bin/csh
/bin/tcsh
/usr/local/bin/bash
/usr/local/bin/rbash



Bahman



--
Robi

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


users cannot login anymore

2007-08-30 Thread Roberto Nunnari

Hi.

This morning I got a problem on one of my FreeBSD servers.

In practice:

# su - robi
su: /bin/csh: Permission denied

also,

# /usr/local/etc/rc.d/tomcat6 start
Starting tomcat60.
su: /usr/local/bin/bash: Permission denied

# uname -rms
FreeBSD 6.1-RELEASE-p19 i386

Any hints?


--
Robi

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


Re: em0 net interface Link state changed to UP too late at boot time

2007-06-29 Thread Roberto Nunnari

Hi Kevin.

Ok. I'll try that.

Thank you.

--
Robi


Kevin Downey wrote:

On 6/28/07, Roberto Nunnari <[EMAIL PROTECTED]> wrote:

Hi Kevin.

No DHCP. The box gets a static address. From rc.conf:

ifconfig_em0="inet aaa.bbb.ccc.ddd  netmask 255.255.252.0 media 
1000baseTX"


as you see, I also tried to use a fixed speed (both on the server
NIC and the switch port) instead of autoconfiguration, but it
doesn't help.




Kevin Downey wrote:
> On 6/28/07, Roberto Nunnari <[EMAIL PROTECTED]> wrote:
>> Thank you Gilbert.
>>
>> I think I will give that a try.
>>
>> But it seams to me that is not the solution.. it may
>> be a workaround but not a solution.. It seams to me
>> that early_late_divider is in case you mount a FS
>> like /usr/local where there are startup scripts executed
>> at the late stages of the boot process.. and that's
>> not my case.. my case is that the em0 interface, somehow
>> gets ready too late.. it doesn't react in a responsive
>> way to the up command.. I have other boxes with different
>> NICs, mounting that FS without problem and without
>> the early_late_divider option.
>>
>> Can anybody tell why this strange behaviour started
>> after upgrading from 5.3-RELEASE to 6.1-RELEASE (that
>> was last summer or early fall). May it be related with
>> the problems of the em driver? Is there a solution?
>>
>> is there a way to tell the boot system to wait until
>> ifconfig_em0 is be up?
>>
>> or a way to have em0 responde up before in the boot stage?
>>
>> Thank you again.
>> Best regards.
>>
>> --
>> Robi
>>
>>
>> Lowell Gilbert wrote:
>> > Roberto Nunnari <[EMAIL PROTECTED]> writes:
>> >
>> >> ..but on the other box (the em0 one that at the second
>> >> retry will succed to mount the NFS FS) is there since
>> >> I upgraded it from 5.3-RELEASE to 6.1-RELEASE
>> >>
>> >> Again.. any hints?
>> >
>> > I think you're looking for the early_late_divider as described in 
the

>> > manual for rc.conf(5).
>> >
>
> if you are using dhcp there is an option to run dhcp in the
> background, which means the system doesn't stop and wait for dhcp to
> configure the address. So if you are using dhcp take a look at the
> dhcp variables in the rc.conf manpage
>




try adding an "up" in there.
ifconfig_em0="up inet aaa.bbb.ccc.ddd  netmask 255.255.252.0 media 
1000baseTX"




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


Re: em0 net interface Link state changed to UP too late at boot time

2007-06-28 Thread Roberto Nunnari

Thank you Gilbert.

I think I will give that a try.

But it seams to me that is not the solution.. it may
be a workaround but not a solution.. It seams to me
that early_late_divider is in case you mount a FS
like /usr/local where there are startup scripts executed
at the late stages of the boot process.. and that's
not my case.. my case is that the em0 interface, somehow
gets ready too late.. it doesn't react in a responsive
way to the up command.. I have other boxes with different
NICs, mounting that FS without problem and without
the early_late_divider option.

Can anybody tell why this strange behaviour started
after upgrading from 5.3-RELEASE to 6.1-RELEASE (that
was last summer or early fall). May it be related with
the problems of the em driver? Is there a solution?

is there a way to tell the boot system to wait until
ifconfig_em0 is be up?

or a way to have em0 responde up before in the boot stage?

Thank you again.
Best regards.

--
Robi


Lowell Gilbert wrote:

Roberto Nunnari <[EMAIL PROTECTED]> writes:


..but on the other box (the em0 one that at the second
retry will succed to mount the NFS FS) is there since
I upgraded it from 5.3-RELEASE to 6.1-RELEASE

Again.. any hints?


I think you're looking for the early_late_divider as described in the
manual for rc.conf(5).
___
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]"


net interface Link state changed to UP too late at boot time

2007-06-28 Thread Roberto Nunnari

Hello list.

I have a couple of FreeBSD boxes here that when booting
the network interface Link state is changed to UP too late.

.. as the systems mount at boot time a NFS FS, it hangs there
and after that I get the following kernel message:

xl0: Link state changed to UP
or (depending on the box booting)
em0: Link state changed to UP


Any hints?
Is there a way to tune it by some sysctl?

Thanks in advance and best regards

--
Robi

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


Re: net interface Link state changed to UP too late at boot time

2007-06-28 Thread Roberto Nunnari

On one of the boxes the problem is solved.. it was
a mistake of mine..

..but on the other box (the em0 one that at the second
retry will succed to mount the NFS FS) is there since
I upgraded it from 5.3-RELEASE to 6.1-RELEASE

Again.. any hints?


Roberto Nunnari wrote:

Hello list.

Sorry to post again.. I just realized I was not subscribed
(now I am) and also forgot to tell the OS version:

# uname -rms
FreeBSD 6.1-RELEASE-p15 i386

I have a couple of FreeBSD boxes here that when booting,
the network interface Link state is changed to UP too late.

.. as the systems mounts at boot time a NFS FS, it hangs there
and after that I get the following kernel message:

xl0: Link state changed to UP
or (depending on the box booting)
em0: Link state changed to UP

on one box, after a timeout, at the next retry,
the FS will be mounted. on the second box, even after
the timeout, the FS will not be mounted as the interface
will not be configured at all. I'll have to go through
ifconfig manually and then every thing will be ok.


Any hints?
Is there a way to tune it by some sysctl?

Thanks in advance and best regards



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


net interface Link state changed to UP too late at boot time

2007-06-28 Thread Roberto Nunnari

Hello list.

Sorry to post again.. I just realized I was not subscribed
(now I am) and also forgot to tell the OS version:

# uname -rms
FreeBSD 6.1-RELEASE-p15 i386

I have a couple of FreeBSD boxes here that when booting,
the network interface Link state is changed to UP too late.

.. as the systems mounts at boot time a NFS FS, it hangs there
and after that I get the following kernel message:

xl0: Link state changed to UP
or (depending on the box booting)
em0: Link state changed to UP

on one box, after a timeout, at the next retry,
the FS will be mounted. on the second box, even after
the timeout, the FS will not be mounted as the interface
will not be configured at all. I'll have to go through
ifconfig manually and then every thing will be ok.


Any hints?
Is there a way to tune it by some sysctl?

Thanks in advance and best regards

--
Robi

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


Re: top: what processes use the CPU?

2006-08-10 Thread Roberto Nunnari

Chuck Swiger wrote:

Roberto Nunnari wrote:

Stefan Bethke wrote:

[ ... ]
Because the cc processes are too short lived to consistently show up 
when top is scanning the process table?


Ok.. but as idle CPU shows 0.0%, there should be a way of getting
the processes that finished already living but caused that 0.0% idle..

What if your users are running lot of short lived processes?
How can you find them out?


You could set up process accounting as documented here:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/security-accounting.html 





Thank you. I'll take a look at that.

--
Robi

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


Re: top: what processes use the CPU?

2006-08-10 Thread Roberto Nunnari

Stefan Bethke wrote:

Am 10.08.2006 um 11:09 schrieb Roberto Nunnari:


Stefan Bethke wrote:

Am 10.08.2006 um 08:38 schrieb Roberto Nunnari:

Hello everybody.

Just a short question: Why top doesn't any more show what
processes use the CPU? I mean.. 0.0% idle and the sum of the
processes CPU doesn't reach 1.0%..

as an example, while make buildkernel top shows:
Because the cc processes are too short lived to consistently show up 
when top is scanning the process table?


Ok.. but as idle CPU shows 0.0%, there should be a way of getting
the processes that finished already living but caused that 0.0% idle..

What if your users are running lot of short lived processes?
How can you find them out?


You can't with current FreeBSD tools.

Efforts are underway to port DTrace from Solaris, which allows gathering 
information like this, among many other interesting things.



Stefan

--Stefan Bethke <[EMAIL PROTECTED]>   Fon +49 170 346 0140




Ok. Thank you Stefan.

Best regards.
--
Robi

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


Re: top: what processes use the CPU?

2006-08-10 Thread Roberto Nunnari

Stefan Bethke wrote:


Am 10.08.2006 um 08:38 schrieb Roberto Nunnari:


Hello everybody.

Just a short question: Why top doesn't any more show what
processes use the CPU? I mean.. 0.0% idle and the sum of the
processes CPU doesn't reach 1.0%..

as an example, while make buildkernel top shows:


Because the cc processes are too short lived to consistently show up 
when top is scanning the process table?


Ok.. but as idle CPU shows 0.0%, there should be a way of getting
the processes that finished already living but caused that 0.0% idle..

What if your users are running lot of short lived processes?
How can you find them out?

Thank you.
--
Robi

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


top: what processes use the CPU?

2006-08-09 Thread Roberto Nunnari

Hello everybody.

Just a short question: Why top doesn't any more show what
processes use the CPU? I mean.. 0.0% idle and the sum of the
processes CPU doesn't reach 1.0%..

as an example, while make buildkernel top shows:

104 processes: 2 running, 97 sleeping, 5 zombie
CPU states: 88.3% user,  0.0% nice, 10.9% system,  0.8% interrupt,  0.0% 
idle

Mem: 521M Active, 239M Inact, 195M Wired, 5048K Cache, 112M Buf, 40M Free
Swap: 2027M Total, 68M Used, 1959M Free, 3% Inuse

  PID USERNAMEPRI NICE   SIZERES STATETIME   WCPUCPU 
COMMAND

62670 www  200   221M 29928K kserel 168:48  0.00%  0.00% java
74645 mailman   80  9408K  3208K nanslp  22:59  0.00%  0.00% python
74644 mailman   80 11412K  4436K na..

75160 root1200  9880K  8904K RUN  0:00  0.00%  0.00% cc1
63370 root 960  2668K  1808K RUN  0:00  0.00%  0.00% top
74398 root  80  3892K  3740K wait 0:00  0.00%  0.00% make


# uname -srp
FreeBSD 5.3-RELEASE-p31 i386

Please reply also to my mailbox, as I'm not on the list.

Thank you!
--
      Roberto Nunnari -software engineer-
   mailto:[EMAIL PROTECTED]
 Scuola Universitaria Professionale della Svizzera Italiana
 Dipartimento Tecnologie Innovative
  http://www.dti.supsi.ch
 SUPSI-DTI
 Via Cantonaletel: +41-91-6108561
 6928 Manno """   fax: +41-91-6108570
 Switzerland   (o o)
===oOO==(_)==OOo

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


Re: max number of groups a user can be member of

2006-07-25 Thread Roberto Nunnari

Sorry.. In my previous mail, I forgot to say to send
replies to my mailbox as well, as I'm not on the list.

Thank you.


Hi.

Dan Nelson wrote:

In the last episode (Jul 24), Roberto Nunnari said:

Hi everybody.

Could anybody tell me the reason why by default FreeBSD
limits the number of groups a user can be member of to 16?


Compatibility with the NFS protocol.  A google search on "nfs 16
groups" returned a lot of hits.

http://www.sunmanagers.org/archives/1998/1328.html
http://nfsworld.blogspot.com/2005/03/whats-deal-on-16-group-id-limitation.html

You can raise the limit, but you need to make sure that you raise it on
all servers that share NFS mounts.  If you don't you may end up with
remote file access either failing or not passing the full group
membership list to the remote server, which could cause incorrect
"permission denied" errors.




The FreeBSD box act as a NFS/NIS client to a linux box.

How can I get to know what the limit is on the linux box?

FreeBSD box:
# uname -srp
FreeBSD 6.1-RELEASE-p3 i386

Linx box
# uname -s -o -r
Linux 2.4.21-47.ELsmp GNU/Linux

Thank you a lot.

--
  Roberto Nunnari -software engineer-
   mailto:[EMAIL PROTECTED]
 Scuola Universitaria Professionale della Svizzera Italiana
 Dipartimento Tecnologie Innovative
  http://www.dti.supsi.ch
 SUPSI-DTI
 Via Cantonaletel: +41-91-6108561
 6928 Manno """   fax: +41-91-6108570
 Switzerland   (o o)
===oOO==(_)==OOo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: max number of groups a user can be member of

2006-07-25 Thread Roberto Nunnari

Hi.

Dan Nelson wrote:

In the last episode (Jul 24), Roberto Nunnari said:

Hi everybody.

Could anybody tell me the reason why by default FreeBSD
limits the number of groups a user can be member of to 16?


Compatibility with the NFS protocol.  A google search on "nfs 16
groups" returned a lot of hits.

http://www.sunmanagers.org/archives/1998/1328.html
http://nfsworld.blogspot.com/2005/03/whats-deal-on-16-group-id-limitation.html

You can raise the limit, but you need to make sure that you raise it on
all servers that share NFS mounts.  If you don't you may end up with
remote file access either failing or not passing the full group
membership list to the remote server, which could cause incorrect
"permission denied" errors.




The FreeBSD box act as a NFS/NIS client to a linux box.

How can I get to know what the limit is on the linux box?

FreeBSD box:
# uname -srp
FreeBSD 6.1-RELEASE-p3 i386

Linx box
# uname -s -o -r
Linux 2.4.21-47.ELsmp GNU/Linux

Thank you a lot.
--
  Roberto Nunnari -software engineer-
   mailto:[EMAIL PROTECTED]
 Scuola Universitaria Professionale della Svizzera Italiana
 Dipartimento Tecnologie Innovative
  http://www.dti.supsi.ch
 SUPSI-DTI
 Via Cantonaletel: +41-91-6108561
 6928 Manno """   fax: +41-91-6108570
 Switzerland   (o o)
===oOO==(_)==OOo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: max number of groups a user can be member of

2006-07-24 Thread Roberto Nunnari

Thank you Dan.

I'll set up a test machine and try a kernel with the limit
set to 256.

Do you know if that change requires a build world or
a buildkernel is enough?

Best regards.


Dan Nelson wrote:

In the last episode (Jul 24), Roberto Nunnari said:

Hi everybody.

Could anybody tell me the reason why by default FreeBSD
limits the number of groups a user can be member of to 16?


Compatibility with the NFS protocol.  A google search on "nfs 16
groups" returned a lot of hits.

http://www.sunmanagers.org/archives/1998/1328.html
http://nfsworld.blogspot.com/2005/03/whats-deal-on-16-group-id-limitation.html

You can raise the limit, but you need to make sure that you raise it on
all servers that share NFS mounts.  If you don't you may end up with
remote file access either failing or not passing the full group
membership list to the remote server, which could cause incorrect
"permission denied" errors.




--
  Roberto Nunnari -software engineer-
   mailto:[EMAIL PROTECTED]
 Scuola Universitaria Professionale della Svizzera Italiana
 Dipartimento Tecnologie Innovative
  http://www.dti.supsi.ch
 SUPSI-DTI
 Via Cantonaletel: +41-91-6108561
 6928 Manno """   fax: +41-91-6108570
 Switzerland   (o o)
===oOO==(_)==OOo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


max number of groups a user can be member of

2006-07-24 Thread Roberto Nunnari

Hi everybody.

Could anybody tell me the reason why by default FreeBSD
limits the number of groups a user can be member of to 16?

Not all servers have 5000k users and today memory is not an
issue. Indeed, some servers used just for services have
no users apart a few staff users and users to run the services..

Once you reach the limit on an existing server, apart from
modifying NGROUPS_MAX and rebuilding a new kernel, you also
need to rebuild/reinstall all applications.. That's not nice.

Also, modifying NGROUPS_MAX in /usr/src/sys/sys/syslimits.h
means that every time you update your sources, you must reedit
the file..

Please correct me if I'm wrong and cast some light on
this issue.

Please also reply to my mailbox as I'm not on the list.

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


Re: {Spam?} Re: {Spam?} Re: patches and uname -a

2006-01-12 Thread Roberto Nunnari

Ceri Davies wrote:


On Thu, Jan 12, 2006 at 09:04:07PM +0100, Roberto Nunnari wrote:


I checked the patches (cpio.patch ee.patch texindex5x.patch) and none
of them tries to change src/sys/conf/newvers.sh nor src/UPDATING



There is an ipfw one as well.

Cheers,

Ceri


Thank you Ceri, but I believe that's only for FreeBSD 6.0

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


Re: {Spam?} Re: patches and uname -a

2006-01-12 Thread Roberto Nunnari

Ceri Davies wrote:

On Thu, Jan 12, 2006 at 03:26:22PM +0100, Roberto Nunnari wrote:


Ceri Davies wrote:


On 12 Jan 2006, at 12:32, Roberto Nunnari wrote:



Hello.

Please also answer to my mailbox as I'm not on the list.

After upgrading by sources and build world, uname correctly
reports the current version of the system

Today for the first time I applied all the relevant patches
instead and all went well. The box was 5.3-RELEASE-p23.

The applied patches should correspond to 5.3-RELEASE-p24, but:

# uname -r
5.3-RELEASE-p23

and:

# sysctl kern.version
kern.version: FreeBSD 5.3-RELEASE-p23 #0: Tue Jan  3 15:40:08 CET 2006
...

I'd like to be able to see the correct version using
'uname -r'..

Does anybody know how can you make uname report the
real version? What if you recompile the kernel after
patching the system? Would that do the trick?



Recompiling the kernel is the correct way to change the output of  
uname(1), but before you do so, you should be aware that that patch  
number is taken from the BRANCH variable in src/sys/conf/newvers.sh.   
Check that it says "5.3-RELEASE-p24" before you waste time  recompiling 
the kernel.


Ceri


Thank you Ceri and Jaap for your time.

Ceri, edit src/sys/conf/newvers.sh and replace

BRANCH="RELEASE-p23"
with
BRANCH="RELEASE-p24"

would be enough??



That would work, but if you don't already have that string then there is
a possibility that you don't have all the patches, so please only change
it if you are %100 sure that you have.  I cannot stress that enough.

Ceri



Answering to myself..
Probably the best thing to do is to use anoncvs to checkout the
two files (UPDATING and newvers.sh) and put them in their place
before making the new kernel..

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


Re: {Spam?} Re: patches and uname -a

2006-01-12 Thread Roberto Nunnari

Ceri Davies wrote:

On Thu, Jan 12, 2006 at 03:26:22PM +0100, Roberto Nunnari wrote:


Ceri Davies wrote:


On 12 Jan 2006, at 12:32, Roberto Nunnari wrote:



Hello.

Please also answer to my mailbox as I'm not on the list.

After upgrading by sources and build world, uname correctly
reports the current version of the system

Today for the first time I applied all the relevant patches
instead and all went well. The box was 5.3-RELEASE-p23.

The applied patches should correspond to 5.3-RELEASE-p24, but:

# uname -r
5.3-RELEASE-p23

and:

# sysctl kern.version
kern.version: FreeBSD 5.3-RELEASE-p23 #0: Tue Jan  3 15:40:08 CET 2006
...

I'd like to be able to see the correct version using
'uname -r'..

Does anybody know how can you make uname report the
real version? What if you recompile the kernel after
patching the system? Would that do the trick?



Recompiling the kernel is the correct way to change the output of  
uname(1), but before you do so, you should be aware that that patch  
number is taken from the BRANCH variable in src/sys/conf/newvers.sh.   
Check that it says "5.3-RELEASE-p24" before you waste time  recompiling 
the kernel.


Ceri


Thank you Ceri and Jaap for your time.

Ceri, edit src/sys/conf/newvers.sh and replace

BRANCH="RELEASE-p23"
with
BRANCH="RELEASE-p24"

would be enough??



That would work, but if you don't already have that string then there is
a possibility that you don't have all the patches, so please only change
it if you are %100 sure that you have.  I cannot stress that enough.

Ceri


I checked the patches (cpio.patch ee.patch texindex5x.patch) and none
of them tries to change src/sys/conf/newvers.sh nor src/UPDATING

Also, I checked the output while applying the patches and there
were no errors.

So.. as I didn't find any other patches that are post p23, I edited
newvers.sh, build a new kernel and rebooted. uname -r is now happy.

Thank you again.

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


Re: patches and uname -a

2006-01-12 Thread Roberto Nunnari

Thank you Ceri and Jaap for your time.

Ceri, edit src/sys/conf/newvers.sh and replace

BRANCH="RELEASE-p23"
with
BRANCH="RELEASE-p24"

would be enough??

Best regards.


Ceri Davies wrote:


On 12 Jan 2006, at 12:32, Roberto Nunnari wrote:


Hello.

Please also answer to my mailbox as I'm not on the list.

After upgrading by sources and build world, uname correctly
reports the current version of the system

Today for the first time I applied all the relevant patches
instead and all went well. The box was 5.3-RELEASE-p23.

The applied patches should correspond to 5.3-RELEASE-p24, but:

# uname -r
5.3-RELEASE-p23

and:

# sysctl kern.version
kern.version: FreeBSD 5.3-RELEASE-p23 #0: Tue Jan  3 15:40:08 CET 2006
...

I'd like to be able to see the correct version using
'uname -r'..

Does anybody know how can you make uname report the
real version? What if you recompile the kernel after
patching the system? Would that do the trick?



Recompiling the kernel is the correct way to change the output of  
uname(1), but before you do so, you should be aware that that patch  
number is taken from the BRANCH variable in src/sys/conf/newvers.sh.   
Check that it says "5.3-RELEASE-p24" before you waste time  recompiling 
the kernel.


Ceri

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


patches and uname -a

2006-01-12 Thread Roberto Nunnari

Hello.

Please also answer to my mailbox as I'm not on the list.

After upgrading by sources and build world, uname correctly
reports the current version of the system

Today for the first time I applied all the relevant patches
instead and all went well. The box was 5.3-RELEASE-p23.

The applied patches should correspond to 5.3-RELEASE-p24, but:

# uname -r
5.3-RELEASE-p23

and:

# sysctl kern.version
kern.version: FreeBSD 5.3-RELEASE-p23 #0: Tue Jan  3 15:40:08 CET 2006
...

I'd like to be able to see the correct version using
'uname -r'..

Does anybody know how can you make uname report the
real version? What if you recompile the kernel after
patching the system? Would that do the trick?


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


Re: grub doesn't know ufs filesystem

2005-12-15 Thread Roberto Nunnari

One more note.. let's call 'bad' the pc that grub doesn't
like and ok the others.. and note that the two pc have
identical disk drives.. so..

bad# fdisk
*** Working on device /dev/ad0 ***
parameters extracted from in-core disklabel are:
cylinders=29777 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=29777 heads=16 sectors/track=63 (1008 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 63, size 30009357 (14653 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 1023/ head 254/ sector 63
The data for partition 2 is:

The data for partition 3 is:

The data for partition 4 is:



ok# fdisk
*** Working on device /dev/ad0 ***
parameters extracted from in-core disklabel are:
cylinders=29777 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=29777 heads=16 sectors/track=63 (1008 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 63, size 30009357 (14653 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 1023/ head 3/ sector 63
The data for partition 2 is:

The data for partition 3 is:

The data for partition 4 is:



as you can see, there's a difference in the end head..
bad says end head is 254, while ok says end head is 3
Could that be a source of trouble?


bad# disklabel ad0s1
# /dev/ad0s1:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  a:   52428804.2BSD 2048 16384 32776
  b:  1048576   524288  swap
  c: 300093570unused0 0 # "raw" part, 
don't edit

  d:   524288  15728644.2BSD 2048 16384 32776
  e:   524288  20971524.2BSD 2048 16384 32776
  f: 27387917  26214404.2BSD 2048 16384 28552


ok# disklabel ad0s1
# /dev/ad0s1:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  a:   52428804.2BSD 2048 16384 32776
  b:   996992   524288  swap
  c: 300093570unused0 0 # "raw" part, 
don't edit

  d:   524288  15212804.2BSD 2048 16384 32776
  e:   524288  20455684.2BSD 2048 16384 32776
  f: 27387917  25698564.2BSD 2048 16384 28552


the disklabel is essentialy the same.. apart from the
size of the swap and consequently the offset of the
rest of the internal partitions..

Again.. any ideas?
--
Robi

Harley D. Eades III wrote:

On Wed, 2005-12-14 at 08:36 -0800, Micah wrote:


Roberto Nunnari wrote:


Hello list.

Please also reply to my mailbox, as I'm not on the list.
Thank you.

I have a old grub floppy that I use time to time to
boot/recover pc with different OS.. Today I wanted to
boot a freebsd 5.3-RELEASE-p23 box, but to my surprise
grub reported:

Filesystem type unknown, partition type 0xa5

and thus cannot mount /boot/loader

So I thought I'd make a grub floppy with a recent version,
but even with version 0.97 things won't change..

# cd /usr/ports/sysutils/grub
# make install
# grub
[ Minimal BASH-like line editing is supported.  For the first word, TAB
  lists possible command completions.  Anywhere else TAB lists the 
possible

  completions of a device/filename. ]

grub> root (hd0,0,a)
Filesystem type unknown, partition type 0xa5

grub> kernel /boot/loader

Error 17: Cannot mount selected partition

grub> root (hd0, 
Possible partitions are:
  Partition num: 0, [BSD sub-partitions immediately follow]
BSD Partition num: 'a',  Filesystem type unknown, partition type 0xa5
BSD Partition num: 'b',  Filesystem type unknown, partition type 0xa5
BSD Partition num: 'd',  Filesystem type unknown, partition type 0xa5
BSD Partition num: 'e',  Filesystem type unknown, partition type 0xa5
BSD Partition num: 'f',  Filesystem type unknown, partition type 0xa5

grub> quit

# mount
/dev/ad0s1a on / (ufs, local, soft-updates)
devfs on /dev (devfs, local)
/dev/ad0s1e on /tmp (ufs, local, soft-updates)
/dev/ad0s1f on /usr (ufs, local, soft-updates)
/dev/ad0s1d on /var (ufs, local, soft-updates)
linprocfs on /usr/compat/linux/proc (linprocfs, local)
devfs on /var/named/dev (devfs, local)

Any hint/thought/advice?

Best regards.


I just installed grub from ports and duplicated your test and it works 
fine.  I'd start by checking your installation and making sure you don't 
have any other grubs in your path.  Some of the grubs that ship with 
Linux distros do not suppor

Re: grub doesn't know ufs filesystem

2005-12-15 Thread Roberto Nunnari

Hi Micah and Harley,

Thanks for your answer.

Humm.. I don't have any other grub on my path, and running
which returns:
# which grub
/usr/local/sbin/grub

The ports were updated quite recently.. in occasion of
last update world.

I did some more testing.. the strange thing is that I use
the same grub boot floppy and the results are ok on the
newly installed freebsd boxes, while on the two that
are already installed the results are bad..


test 1:
===
- made a grub floppy
- boot the existing FreeBSD boxes (2 boxes) from grub floppy
result --> grub doesn't know the ufs filesystem

test 2:
===
- installed a brand new FreeBSD 5-3-RELEASE with default
  partitioning on the whole disk on a separate pc
- boot with grub floppy
result --> grub recognizes the ufs filesystem

test 3:
===
- same as test2, but / root has now soft-updates option
- boot with grub floppy
result --> grub recognizes the ufs filesystem

test 4:
===
- same as test2, but partitioning done with partition magic
  as was done on the computers of test1
- boot with grub floppy
result --> grub recognizes the ufs filesystem

All that seams to point out that there's something wrong
with the existing FreeBSD boxes.. but What? I must say
that both boxes had all filesystem dumped and restored
after repartitioning for permitting the use of dumping
software such as ghost (that didn't like the partitioning
done by freebsd during installation..)

Any more ideas?


Harley D. Eades III wrote:

On Wed, 2005-12-14 at 08:36 -0800, Micah wrote:


Roberto Nunnari wrote:


Hello list.

Please also reply to my mailbox, as I'm not on the list.
Thank you.

I have a old grub floppy that I use time to time to
boot/recover pc with different OS.. Today I wanted to
boot a freebsd 5.3-RELEASE-p23 box, but to my surprise
grub reported:

Filesystem type unknown, partition type 0xa5

and thus cannot mount /boot/loader

So I thought I'd make a grub floppy with a recent version,
but even with version 0.97 things won't change..

# cd /usr/ports/sysutils/grub
# make install
# grub
[ Minimal BASH-like line editing is supported.  For the first word, TAB
  lists possible command completions.  Anywhere else TAB lists the 
possible

  completions of a device/filename. ]

grub> root (hd0,0,a)
Filesystem type unknown, partition type 0xa5

grub> kernel /boot/loader

Error 17: Cannot mount selected partition

grub> root (hd0, 
Possible partitions are:
  Partition num: 0, [BSD sub-partitions immediately follow]
BSD Partition num: 'a',  Filesystem type unknown, partition type 0xa5
BSD Partition num: 'b',  Filesystem type unknown, partition type 0xa5
BSD Partition num: 'd',  Filesystem type unknown, partition type 0xa5
BSD Partition num: 'e',  Filesystem type unknown, partition type 0xa5
BSD Partition num: 'f',  Filesystem type unknown, partition type 0xa5

grub> quit

# mount
/dev/ad0s1a on / (ufs, local, soft-updates)
devfs on /dev (devfs, local)
/dev/ad0s1e on /tmp (ufs, local, soft-updates)
/dev/ad0s1f on /usr (ufs, local, soft-updates)
/dev/ad0s1d on /var (ufs, local, soft-updates)
linprocfs on /usr/compat/linux/proc (linprocfs, local)
devfs on /var/named/dev (devfs, local)

Any hint/thought/advice?

Best regards.


I just installed grub from ports and duplicated your test and it works 
fine.  I'd start by checking your installation and making sure you don't 
have any other grubs in your path.  Some of the grubs that ship with 
Linux distros do not support ufs.  Do a find/locate on grub to see what 
turns up.  Do a which grub, you should get /usr/local/sbin/grub.  If 
not, issue /usr/local/sbin/grub from a command prompt and duplicate your 
test.  If that's broken, make sure your ports tree is up to date, make 
sure /usr/ports/devel/autoconf259 /usr/ports/devel/automake19 
/usr/ports/devel/gmake are up to date (grub's build dependancies) then

deinstall, clean, and reintsall the grub port.


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



I can second this, I use grub all the time, as well as test grub2 on
FreeBSD and both work great for me.

--Harley 
-BEGIN GEEK CODE BLOCK-

G: GCS-- d- a? C B- E+++ W+++ N++ w--- X+++ b++ G e* r x+ z+
--END GEEK CODE BLOCK--



--
  Roberto Nunnari -software engineer-
   mailto:[EMAIL PROTECTED]
 Scuola Universitaria Professionale della Svizzera Italiana
 Dipartimento Tecnologie Innovative
  http://www.dti.supsi.ch
 SUPSI-DTI
 Via Cantonaletel: +41-91-6108561
 6928 Manno """   fax: +41-91-6108570
 Switzerland   (o o)
===oOO==(_)==OOo===

grub doesn't know ufs filesystem

2005-12-14 Thread Roberto Nunnari

Hello list.

Please also reply to my mailbox, as I'm not on the list.
Thank you.

I have a old grub floppy that I use time to time to
boot/recover pc with different OS.. Today I wanted to
boot a freebsd 5.3-RELEASE-p23 box, but to my surprise
grub reported:

Filesystem type unknown, partition type 0xa5

and thus cannot mount /boot/loader

So I thought I'd make a grub floppy with a recent version,
but even with version 0.97 things won't change..

# cd /usr/ports/sysutils/grub
# make install
# grub
 [ Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the 
possible

   completions of a device/filename. ]

grub> root (hd0,0,a)
 Filesystem type unknown, partition type 0xa5

grub> kernel /boot/loader

Error 17: Cannot mount selected partition

grub> root (hd0, 
 Possible partitions are:
   Partition num: 0, [BSD sub-partitions immediately follow]
 BSD Partition num: 'a',  Filesystem type unknown, partition type 0xa5
 BSD Partition num: 'b',  Filesystem type unknown, partition type 0xa5
 BSD Partition num: 'd',  Filesystem type unknown, partition type 0xa5
 BSD Partition num: 'e',  Filesystem type unknown, partition type 0xa5
 BSD Partition num: 'f',  Filesystem type unknown, partition type 0xa5

grub> quit

# mount
/dev/ad0s1a on / (ufs, local, soft-updates)
devfs on /dev (devfs, local)
/dev/ad0s1e on /tmp (ufs, local, soft-updates)
/dev/ad0s1f on /usr (ufs, local, soft-updates)
/dev/ad0s1d on /var (ufs, local, soft-updates)
linprocfs on /usr/compat/linux/proc (linprocfs, local)
devfs on /var/named/dev (devfs, local)

Any hint/thought/advice?

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


ata0-master: FAILURE - ATA_IDENTIFY time out

2005-11-15 Thread Roberto Nunnari

ok ok.. fixed it!

Don't know why, but boot_modules was set to /boot/modules
.. set that to /boot/kernel and the system was up again.

Sorry for the noise!

Best regards.

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


ata0-master: FAILURE - ATA_IDENTIFY time out

2005-11-15 Thread Roberto Nunnari

Hi.

Could any kind soul help me out, please?

Please, also reply to my mailbox as I'm not on the list.

I just upgrade a i386 FreeBSD box from REL-5.3.p15 to
REL-5.3.p23.

after installkernel I could reboot to single usermode
and did installworld, but after that I can no longer
reboot.. rebooting with the old kernel doesn't help.

I believe I did something wrong with mergemaster..
maybe I broke something in /boot/devices.hints..

the error messages:
unknown:  can't assign resources (port)
unknown:  can't assign resources (port)
unknown:  can't assign resources (port)
unknown:  can't assign resources (port)
unknown:  can't assign resources (port)
unknown:  can't assign resources (irq)
ata0-master: FAILURE - ATA_IDENTIFY timed out

I could just make a dump of the various filesystems,
reinstall and restore my data.. but if I could just
fix the problem without reinstalling would be much better.

What happen if I just remove or cut -s0 /boot/devices.hints ?
..or.. what else?

Thank you!

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


Re: access oracle from php (mod_php4)

2005-03-01 Thread Roberto Nunnari
Hi Al.
It wasn't me who wrote that.. but Alex.
My solution was much easier:
use the ports: databases/php4-oracle
it is not the new oci8 but the old oracle API.. but that's
enough for my needs.
Best regards.
Al Arzaga wrote:
Roberto,
Can you elaborate on how you were able to do this?  Where exactly were you
able to find the Oracle drivers?  I  contacted EasySoft's support guys to
try and get this working and as much as they tried, they ultimately gave up.
But at no time did we ever go find Oracle libraries from their website.  I'm
very curious to know in more detail how you ran the install.
On Thu, Feb 03, 2005 at 09:31:14PM +0100, Roberto Nunnari wrote:

I'm using a client app to access an oracle 8i database myself.  I'm
using unixODBC on freebsd which the oracle 9i libraries from the oracle
website and the oracle driver from www.easysoft.com which allows
unixodbc apps to use the oracle driver.  I'm not using mod_php4, but I'm
pretty sure it can use unixodbc once that's setup.  There is allow a
native oracle driver for php, but I don't know anything about it.

My app -> unixODBC -> EasySoft Oracle driver -> Oracle libs -> Oracle
server


--
  Roberto Nunnari -software engineer-
   mailto:[EMAIL PROTECTED]
 Scuola Universitaria Professionale della Svizzera Italiana
 Dipartimento Tecnologie Innovative
  http://www.dti.supsi.ch
 SUPSI-DTI
 Via Cantonaletel: +41-91-6108561
 6928 Manno """   fax: +41-91-6108570
 Switzerland   (o o)
===oOO==(_)==OOo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: upgrading to a specified version?

2005-02-17 Thread Roberto Nunnari
windlamf wrote:
> Hi all ! 
> The version of my current system is 4.7, and I want to upgrade the system to 
> 4.11.From the description of "UPDATING" in /usr/src, I know that I have 
> alternatives among severval stable versions. But how can I specify the right 
> version which I want the system upgraded to?
> If I want my fb upgraded to 4.10, what can I do?

put this to your supfile:
*default tag=RELENG_4_10

then run
# cvsup supfile


> As far as I know, the handbook does not mention things like this. So I turn 
> to you guys for help.
>  
> Thanks
> Andy
> 
> 
> 
> -
> Do You Yahoo!?
> 注册世界一流品质的雅虎免费电邮
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"


-- 
  Roberto Nunnari -software engineer-
   mailto:[EMAIL PROTECTED]
 Scuola Universitaria Professionale della Svizzera Italiana
 Dipartimento Tecnologie Innovative
  http://www.dti.supsi.ch
 SUPSI-DTI
 Via Cantonaletel: +41-91-6108561
 6928 Manno """   fax: +41-91-6108570
 Switzerland   (o o)
===oOO==(_)==OOo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: talk command help

2005-02-17 Thread Roberto Nunnari
Ruben de Groot wrote:
On Wed, Feb 16, 2005 at 10:07:43PM -0800, monchis typed:
I Am new to unix so I am learning how to use it, but i want to know how to talk to someone. I already used the man pages but i just don't get it. can you show me an example of how to talk to someone hat is logged in. thanks

You'll have to enable the talk daemon in /etc/inetd.conf like so:
$ grep ntalk /etc/inetd.conf
# ntalk is required for the 'talk' utility to work correctly
ntalk dgram udp wait tty:tty /usr/libexec/ntalkd ntalkd
$
Then, # /etc/rc.d/inetd restart
and you're ready to use the talk utility.
enable inetd in /etc/rc.conf with the line:
inetd_enable="YES"
so that upon every reboot inetd will be run.
Best regards.

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

--
  Roberto Nunnari -software engineer-
   mailto:[EMAIL PROTECTED]
 Scuola Universitaria Professionale della Svizzera Italiana
 Dipartimento Tecnologie Innovative
  http://www.dti.supsi.ch
 SUPSI-DTI
 Via Cantonaletel: +41-91-6108561
 6928 Manno """   fax: +41-91-6108570
 Switzerland   (o o)
===oOO==(_)==OOo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


no crash dump generated

2005-02-16 Thread Roberto Nunnari
Hi.
A couple of days ago I upgrades the system and a few ports on
a 5.3 box and since then I'm often getting crashes.
-bash-2.05b# uname -a
FreeBSD jupiter.noonlights.net 5.3-RELEASE-p5 FreeBSD 5.3-RELEASE-p5 #0: 
Sun Feb 13 22:56:47 CET 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/JUPITER  i386

I'd like to get a crash dump and so
I added the following lines to /etc/rc.conf
dumpdev="/dev/ad0s1b"
dumpdir="/usr/crash"
-bash-2.05b# ls -ld /usr/crash/
drwx--  2 root  wheel  512 Feb 16 11:17 /usr/crash/
but I'm not getting any dump! /usr/crash is always empty.
..and the machine crashes quite often:
-bash-2.05b# last|grep reboot
reboot   ~ Wed Feb 16 20:04
reboot   ~ Wed Feb 16 19:17
reboot   ~ Wed Feb 16 18:40
reboot   ~ Wed Feb 16 17:26
reboot   ~ Wed Feb 16 14:07
reboot   ~ Wed Feb 16 12:39
reboot   ~ Wed Feb 16 11:30
reboot   ~ Wed Feb 16 10:27
reboot   ~ Wed Feb 16 09:31
reboot   ~ Wed Feb 16 09:16
What do I miss? Do I need some kernel option?
Best regards.
--
  Roberto Nunnari -software engineer-
   mailto:[EMAIL PROTECTED]
 Scuola Universitaria Professionale della Svizzera Italiana
 Dipartimento Tecnologie Innovative
  http://www.dti.supsi.ch
 SUPSI-DTI
 Via Cantonaletel: +41-91-6108561
 6928 Manno """   fax: +41-91-6108570
 Switzerland   (o o)
===oOO==(_)==OOo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


access oracle from php (mod_php4)

2005-02-03 Thread Roberto Nunnari
Hi.
I need to access a oracle 9i database installed on a remote
machine from a php script (www/mod_php4)
I already can access mysql databases.. but not oracle..
web.dti.supsi.ch# uname -a
FreeBSD web.dti.supsi.ch 5.3-RELEASE-p5 FreeBSD 5.3-RELEASE-p5 #0: Wed 
Feb  2 16:33:24 CET 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/WEB  i386

Could any kind soul help me?
Thank you!
--
  Roberto Nunnari -software engineer-
   mailto:[EMAIL PROTECTED]
 Scuola Universitaria Professionale della Svizzera Italiana
 Dipartimento Tecnologie Innovative
  http://www.dti.supsi.ch
 SUPSI-DTI
 Via Cantonaletel: +41-91-6108561
 6928 Manno """   fax: +41-91-6108570
 Switzerland   (o o)
===oOO==(_)==OOo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


ipfw not working any more after upgrade to 5.3

2005-01-29 Thread Roberto Nunnari
Hello.
I just upgraded my FreeBSD box to 5.3-RELEASE-p5
from 5.2.1-RELEASE-p9 and now I can no longer use
ipfw to fwd from one port to another:
# ipfw add fwd 192.168.1.5,8180 tcp from any to 192.168.1.5 80
ipfw: getsockopt(IP_FW_ADD): Invalid argument
What's wrong?
Please send replies also to my mailbox, as I'm not on the list.
Thank you.
Best regards.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: /etc/make.conf

2004-08-12 Thread Roberto Nunnari
As announced yesterday..
..today I finished the upgrade process and all went just fine.
...have you had the chance to find out whether perl is needed at
all in 5.2.1?
Best regards.
Lowell Gilbert wrote:
Henrik W Lund <[EMAIL PROTECTED]> writes:

Roberto Nunnari wrote:

Thank you all for your answers.
one more questions...
What is the preferred/advised version for buildWorld and co?
Without knowing for sure, I'd say the base version of perl is the best
one to use for the whole build* and install* process.

He said he was running 5.2.1, where perl is not present in the base
system.  I thought it wasn't needed for buildworld et. al., but I
can't check at the moment because I can't access my 5.x machine...

--
      Roberto Nunnari -software engineer-
   mailto:[EMAIL PROTECTED]
 Scuola Universitaria Professionale della Svizzera Italiana
 Dipartimento Tecnologie Innovative
  http://www.dti.supsi.ch
 SUPSI-DTI
 Via Cantonaletel: +41-91-6108561
 6928 Manno """   fax: +41-91-6108570
 Switzerland   (o o)
===oOO==(_)==OOo
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: /etc/make.conf

2004-08-11 Thread Roberto Nunnari
I just did:
# use.perl system
# make buildworld
on yesterday's RELENG_5_2 and it seems it has finished
successfully the build..
tomorrow I'll try buildkernel + install and I'll report
the results here. To be true, though, I have no idea
if perl is used or not during the build process..
Best regards.
Lowell Gilbert wrote:
Henrik W Lund <[EMAIL PROTECTED]> writes:

Roberto Nunnari wrote:

Thank you all for your answers.
one more questions...
What is the preferred/advised version for buildWorld and co?
Without knowing for sure, I'd say the base version of perl is the best
one to use for the whole build* and install* process.

He said he was running 5.2.1, where perl is not present in the base
system.  I thought it wasn't needed for buildworld et. al., but I
can't check at the moment because I can't access my 5.x machine...

--
  Roberto Nunnari -software engineer-
   mailto:[EMAIL PROTECTED]
 Scuola Universitaria Professionale della Svizzera Italiana
 Dipartimento Tecnologie Innovative
  http://www.dti.supsi.ch
 SUPSI-DTI
 Via Cantonaletel: +41-91-6108561
 6928 Manno """   fax: +41-91-6108570
 Switzerland   (o o)
===oOO==(_)==OOo
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: /etc/make.conf

2004-08-11 Thread Roberto Nunnari
Thank you all for your answers.
one more questions...
What is the preferred/advised version for buildWorld and co?
Henrik W Lund wrote:
Roberto Nunnari wrote:
Hi all.
Please also reply to my mailbox, as I'm not on the list.
Thank you!
Can anybody tell me about /etc/make.conf in FreeBSD-5.2.1 ??
Yesterday I moved away /etc/make.conf that looked like this:
pcm2028.dti.supsi.ch# cat /etc/make.conf.back
# -- use.perl generated deltas -- #
# Created: Thu Nov 13 18:49:33 2003
# Setting to use base perl from ports:
PERL_VER=5.6.1
PERL_VERSION=5.6.1
PERL_ARCH=mach
NOPERL=yo
NO_PERL=yo
NO_PERL_WRAPPER=yo
then I went on on upgrading my ports system as described in
/usr/ports/UPDATING..
# portupgrade -o lang/perl5.8 -f perl-5.6.1_15
# portupgrade -f p5-\*
and all the rest till
# portupgrade -rf textproc/expat2
today, I went on to do make buildworld and checked /etc/make.conf
and guess what? It is again there:
pcm2028.dti.supsi.ch# cat /etc/make.conf
# -- use.perl generated deltas -- #
# Created: Tue Aug 10 16:35:06 2004
# Setting to use base perl from ports:
PERL_VER=5.6.1
PERL_VERSION=5.6.1
PERL_ARCH=mach
NOPERL=yo
NO_PERL=yo
NO_PERL_WRAPPER=yo
so.. I just upgraded perl to 5.8, but somehow in /etc/make.conf
it says to use version 5.6.1..
why?
pcm2028.dti.supsi.ch# which perl
/usr/bin/perl
pcm2028.dti.supsi.ch# perl --version
This is perl, v5.6.1 built for i386-freebsd
pcm2028.dti.supsi.ch# pkg_info|grep perl
p5-DBI-1.41 The perl5 Database Interface.  Required for DBD::* 
modules
p5-Test-Harness-2.40 Run perl standard test scripts with statistics
p5-Test-Simple-0.47_1 Basic utilities for writing tests in perl
p5-Time-HiRes-1.55,1 A perl5 module implementing High resolution time, 
sleep, an
perl-5.6.1_15   Practical Extraction and Report Language
perl-5.8.2_5Practical Extraction and Report Language

Thank you.

This is because perl 5.6.1 is the one used by default. You can switch 
betwenn using the perl that came with the base system (5.6.1) and the 
most recent perl that's in the ports by doing

`use.perl system'
and
`use.perl port'
respectively (the argument to the top one might be "base" instead of 
"system", I'm not sure).

If you do this alot, /etc/make.conf will fill up with sections starting 
with # -- use.perl generated deltas -- #, so I usually clean up every 
now and then, leaving only one copy of them in.

Hopte this helps!
-Henrik W Lund

--
  Roberto Nunnari -software engineer-
   mailto:[EMAIL PROTECTED]
 Scuola Universitaria Professionale della Svizzera Italiana
 Dipartimento Tecnologie Innovative
  http://www.dti.supsi.ch
 SUPSI-DTI
 Via Cantonaletel: +41-91-6108561
 6928 Manno """   fax: +41-91-6108570
 Switzerland   (o o)
===oOO==(_)==OOo
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


/etc/make.conf

2004-08-11 Thread Roberto Nunnari
Hi all.
Please also reply to my mailbox, as I'm not on the list.
Thank you!
Can anybody tell me about /etc/make.conf in FreeBSD-5.2.1 ??
Yesterday I moved away /etc/make.conf that looked like this:
pcm2028.dti.supsi.ch# cat /etc/make.conf.back
# -- use.perl generated deltas -- #
# Created: Thu Nov 13 18:49:33 2003
# Setting to use base perl from ports:
PERL_VER=5.6.1
PERL_VERSION=5.6.1
PERL_ARCH=mach
NOPERL=yo
NO_PERL=yo
NO_PERL_WRAPPER=yo
then I went on on upgrading my ports system as described in
/usr/ports/UPDATING..
# portupgrade -o lang/perl5.8 -f perl-5.6.1_15
# portupgrade -f p5-\*
and all the rest till
# portupgrade -rf textproc/expat2
today, I went on to do make buildworld and checked /etc/make.conf
and guess what? It is again there:
pcm2028.dti.supsi.ch# cat /etc/make.conf
# -- use.perl generated deltas -- #
# Created: Tue Aug 10 16:35:06 2004
# Setting to use base perl from ports:
PERL_VER=5.6.1
PERL_VERSION=5.6.1
PERL_ARCH=mach
NOPERL=yo
NO_PERL=yo
NO_PERL_WRAPPER=yo
so.. I just upgraded perl to 5.8, but somehow in /etc/make.conf
it says to use version 5.6.1..
why?
pcm2028.dti.supsi.ch# which perl
/usr/bin/perl
pcm2028.dti.supsi.ch# perl --version
This is perl, v5.6.1 built for i386-freebsd
pcm2028.dti.supsi.ch# pkg_info|grep perl
p5-DBI-1.41 The perl5 Database Interface.  Required for DBD::* 
modules
p5-Test-Harness-2.40 Run perl standard test scripts with statistics
p5-Test-Simple-0.47_1 Basic utilities for writing tests in perl
p5-Time-HiRes-1.55,1 A perl5 module implementing High resolution time, 
sleep, an
perl-5.6.1_15   Practical Extraction and Report Language
perl-5.8.2_5Practical Extraction and Report Language

Thank you.
--
  Roberto Nunnari -software engineer-
   mailto:[EMAIL PROTECTED]
 Scuola Universitaria Professionale della Svizzera Italiana
 Dipartimento Tecnologie Innovative
  http://www.dti.supsi.ch
 SUPSI-DTI
 Via Cantonaletel: +41-91-6108561
 6928 Manno """   fax: +41-91-6108570
 Switzerland   (o o)
===oOO==(_)==OOo
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: strange kernel messages..

2004-08-04 Thread Roberto Nunnari
Thank you Simon.
Simon Barner wrote:
Roberto Nunnari wrote:
Hello.
Please send replies also to my mailbox, as I'm not on this list.
Can anybody tell me what are these messages about? Are them
just informational or do I have to worry?
Aug  2 18:23:59 web kernel: lock order reversal
Aug  2 18:23:59 web kernel: 1st 0xc07066e0 UMA lock (UMA lock) @ 
/usr/src/sys/vm/uma_core.c:1200
Aug  2 18:23:59 web kernel: 2nd 0xc0c31100 system map (system map) @ 
/usr/src/sys/vm/vm_map.c:2210
Aug  2 19:12:21 web kernel: lock order reversal
Aug  2 19:12:21 web kernel: 1st 0xc8c1c39c vm object (vm object) @ 
/usr/src/sys/vm/swap_pager.c:1323
Aug  2 19:12:21 web kernel: 2nd 0xc0705b80 swap_pager swhash (swap_pager 
swhash) @ /usr/src/sys/vm/swap_pager.c:1838
Aug  2 19:12:21 web kernel: 3rd 0xc6853108 vm object (vm object) @ 
/usr/src/sys/vm/uma_core.c:873

This is a so-called lock order reversal (LOR). To learn more about LORs
in general and specifically about the one you are seeing, please see
here:
http://sources.zabbadoz.net/freebsd/lor.html --> # 007
Simon

--
      Roberto Nunnari -software engineer-
   mailto:[EMAIL PROTECTED]
 Scuola Universitaria Professionale della Svizzera Italiana
 Dipartimento Tecnologie Innovative
  http://www.dti.supsi.ch
 SUPSI-DTI
 Via Cantonaletel: +41-91-6108561
 6928 Manno """   fax: +41-91-6108570
 Switzerland   (o o)
===oOO==(_)==OOo
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


strange kernel messages..

2004-08-04 Thread Roberto Nunnari
Hello.
Please send replies also to my mailbox, as I'm not on this list.
Can anybody tell me what are these messages about? Are them
just informational or do I have to worry?
Aug  2 18:23:59 web kernel: lock order reversal
Aug  2 18:23:59 web kernel: 1st 0xc07066e0 UMA lock (UMA lock) @ 
/usr/src/sys/vm/uma_core.c:1200
Aug  2 18:23:59 web kernel: 2nd 0xc0c31100 system map (system map) @ 
/usr/src/sys/vm/vm_map.c:2210
Aug  2 19:12:21 web kernel: lock order reversal
Aug  2 19:12:21 web kernel: 1st 0xc8c1c39c vm object (vm object) @ 
/usr/src/sys/vm/swap_pager.c:1323
Aug  2 19:12:21 web kernel: 2nd 0xc0705b80 swap_pager swhash (swap_pager 
swhash) @ /usr/src/sys/vm/swap_pager.c:1838
Aug  2 19:12:21 web kernel: 3rd 0xc6853108 vm object (vm object) @ 
/usr/src/sys/vm/uma_core.c:873

They started showing up after last world upgrade
web.dti.supsi.ch# uname -a
FreeBSD web.dti.supsi.ch 5.2.1-RELEASE-p9 FreeBSD 5.2.1-RELEASE-p9 #2: 
Fri Jul 30 17:35:55 CEST 2004 root@:/usr/obj/usr/src/sys/WEB  i386

Thank you.
--
  Roberto Nunnari -software engineer-
   mailto:[EMAIL PROTECTED]
 Scuola Universitaria Professionale della Svizzera Italiana
 Dipartimento Tecnologie Innovative
  http://www.dti.supsi.ch
 SUPSI-DTI
 Via Cantonaletel: +41-91-6108561
 6928 Manno """   fax: +41-91-6108570
 Switzerland   (o o)
===oOO==(_)==OOo
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


# bsdlabel -w /dev/amrd1 auto

2004-03-30 Thread Roberto Nunnari
hello.

What does the auto argument mean?

# bsdlabel -w /dev/amrd1 auto

Is it possible that the command above configures amrd1
as the default boot partition and modifies amrd0 not the
be the active? And even modifies the partition table on
amrd0 so that it starts at sect 0 instead of sect 63 as before?
Thank you.
--
  Roberto Nunnari -software engineer-
   mailto:[EMAIL PROTECTED]
 Scuola Universitaria Professionale della Svizzera Italiana
 Dipartimento Tecnologie Innovative
  http://www.dti.supsi.ch
 SUPSI-DTI
 Via Cantonaletel: +41-91-6108561
 6928 Manno """   fax: +41-91-6108570
 Switzerland   (o o)
===oOO==(_)==OOo
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


broken partition table

2004-03-29 Thread Roberto Nunnari
Hi all.

Please also reply to my mailbox as I'm not on the list.
Thank you.
I was installing a new drive on my 5.2.1-p3 and I believe
I made some mistake while using fdisk and bsdlabel.. in
fact the partition table for my bootable disk has changed.
this was my fdisk amrd0 before:

web.dti.supsi.ch# cat fdisk.amrd0
*** Working on device /dev/amrd0 ***
parameters extracted from in-core disklabel are:
cylinders=4420 heads=255 sectors/track=63 (16065 blks/cyl)
Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=4420 heads=255 sectors/track=63 (16065 blks/cyl)
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 63, size 71007237 (34671 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 1023/ head 254/ sector 63
The data for partition 2 is:

The data for partition 3 is:

The data for partition 4 is:

and this is how it looks now..

web.dti.supsi.ch# fdisk amrd0
*** Working on device /dev/amrd0 ***
parameters extracted from in-core disklabel are:
cylinders=4420 heads=255 sectors/track=63 (16065 blks/cyl)
Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=4420 heads=255 sectors/track=63 (16065 blks/cyl)
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 0, size 70766325 (34553 Meg), flag 0
beg: cyl 0/ head 0/ sector 1;
end: cyl 308/ head 254/ sector 63
The data for partition 2 is:

The data for partition 3 is:

The data for partition 4 is:

as you can see, it is no longer bootable, and it doesn't
start at sect 63 like before but at 0
How can I fix it? I was about to give the following command
but thought I'd better ask first here...
web.dti.supsi.ch# fdisk -B -f fdisk.conf.amrd0

I expect the above to reinstall the boot code and to correct
the partition table.. I expect I'll be able to give that
command while the system and running and so the filesystem
mounted.
also.. with the -t option the results are almost identical
to the original state, but end cyl is different.. See..
is that important?
web.dti.supsi.ch# fdisk -t -B -f fdisk.conf.amrd0
*** Working on device /dev/amrd0 ***
fdisk: WARNING line 2: number of cylinders (4420) may be out-of-range
(must be within 1-1024 for normal BIOS operation, unless the entire 
disk
is dedicated to FreeBSD)
parameters extracted from in-core disklabel are:
cylinders=4420 heads=255 sectors/track=63 (16065 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=4420 heads=255 sectors/track=63 (16065 blks/cyl)
Information from DOS bootblock is:
1: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 63, size 71007237 (34671 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 323/ head 254/ sector 63
2: 
3: 
4: 
and here is the fdisk.conf.amrd0 file
web.dti.supsi.ch# cat fdisk.conf.amrd0
# values extacted from old fdisk.amrd0
g   c4420   h255s63
p   1   165 63  71007237
p   2   0   0   0
p   3   0   0   0
p   4   0   0   0
a   1
--
  Roberto Nunnari -software engineer-
   mailto:[EMAIL PROTECTED]
 Scuola Universitaria Professionale della Svizzera Italiana
 Dipartimento Tecnologie Innovative
  http://www.dti.supsi.ch
 SUPSI-DTI
 Via Cantonaletel: +41-91-6108561
 6928 Manno """   fax: +41-91-6108570
 Switzerland   (o o)
===oOO==(_)==OOo
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: cannot resolve localhost

2003-05-29 Thread Roberto Nunnari
I have nsswitch.conf in place

-bash-2.05b# cat /etc/nsswitch.conf
hosts:  files dns
and removed host.conf and rebooted the
machine. rc.network recreated correctly host.conf from nsswitch.conf
as:
-bash-2.05b# cat /etc/host.conf
# Auto-generated from nsswitch.conf, do not edit
hosts
bind
but the problem is still there... any ideas?

Ruben de Groot wrote:
On Wed, May 28, 2003 at 12:37:30PM +0200, Roberto Nunnari typed:

Hi there.


Hi,

5.0-RELEASE != current, you would better have asked this on -questions.
To answer your question:
man nsswitch.conf

cheers,
Ruben

it seems that my 5.0-Release box,
when trying to resolve a name to the associated IP it only
tries the DNSs listed in resolv.conf, and never tries /etc/hosts
Also.. where is /etc/host.conf gone? I tried to create one, but it
doesn't help.
Here is some more info on my configuration:
(I rebuilt the kernel but this behaviour was present in GENERIC, too)
-bash-2.05b# uname -a
FreeBSD jupiter.noonlights.net 5.0-RELEASE FreeBSD 5.0-RELEASE #0: Wed May 
28 11:50:07 CEST 2003 
[EMAIL PROTECTED]:/usr/src/sys/i386/compile/JUPITER01  i386

-bash-2.05b# cat /etc/rc.conf
keymap="swissgerman.iso.acc"
moused_enable="YES"
saver="warp"
defaultrouter="192.168.1.1"
hostname="jupiter.noonlights.net"
ifconfig_rl0="inet 192.168.1.5  netmask 255.255.255.0"
sendmail_enable="YES"
sshd_enable="YES"
linux_enable="YES"
-bash-2.05b# cat /etc/hosts
127.0.0.1   localhost.noonlights.net localhost
192.168.1.5 jupiter.noonlights.net jupiter
192.168.1.5 jupiter.noonlights.net.
-bash-2.05b# cat /etc/resolv.conf
domain  noonlights.net
nameserver  195.190.166.166
nameserver  195.190.166.167
-bash-2.05b# cat /etc/host.conf
hosts
bind
-bash-2.05b# host localhost
Host not found.
-bash-2.05b# host localhost.noonlights.net
Host not found.
-bash-2.05b# nslookup localhost
Server:  ns1.ticino.com
Address:  195.190.166.166
Non-authoritative answer:
Name:localhost
Address:  127.0.0.1
-bash-2.05b# host jupiter
Host not found.
-bash-2.05b# host jupiter.noonlights.net
Host not found.
What's wrong?

Thank you.

--
  Roberto Nunnari -software engineer-
mailto:[EMAIL PROTECTED]
 Scuola Universitaria Professionale della Svizzera Italiana
   Dipartimento di Informatica e Elettronica
  http://www.die.supsi.ch
 SUPSI-DIE
 Via Cantonaletel: +41-91-6108561
 6928 Manno """   fax: +41-91-6108570
 Switzerland   (o o)
===oOO==(_)==OOo
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"