Re: A20/keybord/no-keyboard

2004-11-24 Thread Danny Braniss
(if this is a repeat, then sorry, there seems to be a problem at 
hub.freebsd.org)
...
> 
> Ah, I've fixed the btx compile.  Seems some comment rototilling busted it.

that's what i saw.

btw, while we are at the bottom of the bleading edge, can this also be fixed:
in i386/boot/boot0/boot0.S:
-#ifdef SIO
+#if defined(SIO) && COMSPEED != 0
/*
 * Initialize the serial port.  bioscom preserves the driver number in DX.
 */
movw COMSPEED,%ax   # defined by Makefile
callw bioscom
#endif /* SIO */

since this only works for speeds upto 9600, and breaks things for speeds
above 9600.
(i know, this probably should be a PR :-)

danny


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


Re: HD Mirroring

2004-11-24 Thread Justin Hopper
On Wed, 2004-11-24 at 13:31, Charles Sprickman wrote:
> On Wed, 24 Nov 2004, Brian Reichert wrote:
> 
> > And, although I've not tested it, recent versions of MySQL can
> > outright support a cluster:
> >
> >  http://dev.mysql.com/doc/mysql/en/NDBCluster.html
> 
> I'm just curious if there's any other solution that will work on FreeBSD. 
> I have about 5 mysql servers (4 slaves, 1 master) and one application in 
> particular is not smart enough to try other servers if the configured 
> server does not answer.  Is there any type of local proxy that can 
> intelligently route requests to the "best" server?
> 
I too was curious about the MySQL Clustering support and its status on
FreeBSD, since it wasn't as a supported OS.  Over the last couple of
hours I was able to set up a cluster consisting of a management process
and data node running in one jail, and a MySQL server and another data
node running in a different jail.  Once everything was up and running,
the cluster seemed to be working excellent, data was synchronizing
flawlessly throughout the cluster.  Nuking either of the data node
processes did not affect access to the data in the cluster, so failover
seemed to be working as well.

The only problem that I ran into, and it may be user error on my part,
is that when the cluster is shut down (or all data node processes are
killed), the data contained in the node is lost when the cluster is
brought back online.  Perhaps there is some recovery step that is
required before the cluster can be used again.

If someone else has already tested MySQL's clustering ability with
FreeBSD, then please let us know the results so that I don't recreate
the wheel here.  If not, I'll continue seeing how far I can get with it,
as I would definitely like to implement this functionality on several of
the more critical databases that I manage.

-- 
Justin Hopper  <[EMAIL PROTECTED]>
UNIX Systems Engineer
BSDHosting.net
Hosting Division of Digital Oasys Inc.
http://www.bsdhosting.net

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


RE: Network monitoring

2004-11-24 Thread Haulmark, Chris
Someone broke the silence: 

> On Thu, 2004-11-25 at 08:27, Haulmark, Chris wrote:
>> Someone broke the silence:
>> 
>>> I apologize that this probably isn't the most relevant
>>> list to ask this on. Suggestions for better lists will be welcome.
>>> 
>>> I'm trying to monitor traffice on a 100BaseT ethernet
>>> network link. I split the line, put a "hub" in and am
>>> trying to run tcpdump on a box off the side of the
>>> hub.
>>> 
>>> Unfortunately, it turns out the hub isn't a hub, it's
>>> a "switching hub" (what's not a switch about this? I
>>> don't get it). Consequently, all I see are arp
>>> packets, bootp packets, and the odd broadcast. I went
>>> to a local store to buy a hub, and guess what, they
>>> sold me another switching hub, so that has to be
>>> returned :(
>>> 
>>> So, the question is, can anyone tell me the
>>> manufacturer and product name of a real (dumb) hub? I
>>> could use 10baseT instead if necessary, I just need
>>> something cheap that is a simple repeater. Of course,
>>> nobody advertizes "our hub really is a totally dumb
>>> hub, not like those fancy switching hubs the
>>> competition sells" ;>
>>> 
>>> Any suggestions?
>>> 
>> 
>> I ran into the similar problem.  I just looked elsewhere
> for a cheap hub. Ebay was the favorite place for me.  For
> you, just swing by a Pop/Mom/Family kind of computer stores.
> They might sell few old hubs that doesn't have switching
> capabilities at a low price.
>> 
>> Chris Haulmark
>> 
>>> Thanks
>>> Simon
>>> 
>>> 
> Would this work for you
> 
> 1 - install a second NIC in the BSD box
> 2 - configure it as a bridge with no IP numbers on the NICs
>  (Ahm jist sittin' 'ere, passin' stuff thru!)
> 3 - tcpdump -i fxp0  or  tcpdump -i fxp1
>  as appropriate
> 
> A NIC is easier to get than a dumb hub these days ...

This is a reasonable answer for a home based network or a less critical 
network. Ethernet tap would be what I would recommend for an enterprise 
environment.  A dumb hub can be pretty decent if you're a small business 
employee with a T1 connection.  If you were to do bridging, should and would 
you risk having to come in middle of the night because of a hardware failure on 
the bridge machine?

For the time being, I am currently using an IDS machine hooked up to the hub 
while the t1 router is hooked up to the hub along with the main switch hooked 
up to the hub.

For our colocation facility, I've ordered an ethernet tap and might cancel it 
because I just realized that the current switch is a cisco and there's high 
possiblity that it will support SPAN (port mirroring?).

Chris Haulmark

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


Re: resolving routes externally

2004-11-24 Thread Joerg Sonnenberger
On Tue, Nov 23, 2004 at 06:24:48PM +0200, Martin Eugen wrote:
> > Or alternatively use an internal queue of limited size to keep track of
> > those packages.
> 
> This is probably the only solution I can think of right now, but I
> think poking a queue at regular, short intervals seems to me quite
> expensive, isn't it? Or perhaps there could be a netgraph node that
> handles the queue and connects to the userland daemon... but this
> could make things much more complicated... ?

Do you want to keep the whole name lookup in userland or query a
cache like ARP is doing and fallback to the userland daemon if no
entry exists in the cache? In the later case, you could just reinsert
the package into the global queue after adding the cache entry.

The cache handling itself could be done via normal routing messages
or other communication means like polling a special device.

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


RE: Network monitoring

2004-11-24 Thread Murray Taylor
On Thu, 2004-11-25 at 08:27, Haulmark, Chris wrote:
> Someone broke the silence: 
> 
> > I apologize that this probably isn't the most relevant
> > list to ask this on. Suggestions for better lists will be welcome.
> > 
> > I'm trying to monitor traffice on a 100BaseT ethernet
> > network link. I split the line, put a "hub" in and am
> > trying to run tcpdump on a box off the side of the
> > hub.
> > 
> > Unfortunately, it turns out the hub isn't a hub, it's
> > a "switching hub" (what's not a switch about this? I
> > don't get it). Consequently, all I see are arp
> > packets, bootp packets, and the odd broadcast. I went
> > to a local store to buy a hub, and guess what, they
> > sold me another switching hub, so that has to be
> > returned :(
> > 
> > So, the question is, can anyone tell me the
> > manufacturer and product name of a real (dumb) hub? I
> > could use 10baseT instead if necessary, I just need
> > something cheap that is a simple repeater. Of course,
> > nobody advertizes "our hub really is a totally dumb
> > hub, not like those fancy switching hubs the
> > competition sells" ;>
> > 
> > Any suggestions?
> > 
> 
> I ran into the similar problem.  I just looked elsewhere for a cheap hub. 
> Ebay was the favorite place for me.  For you, just swing by a Pop/Mom/Family 
> kind of computer stores.  They might sell few old hubs that doesn't have 
> switching capabilities at a low price.
> 
> Chris Haulmark
> 
> > Thanks
> > Simon
> > 
> > 
Would this work for you

1 - install a second NIC in the BSD box
2 - configure it as a bridge with no IP numbers on the NICs
 (Ahm jist sittin' 'ere, passin' stuff thru!)
3 - tcpdump -i fxp0  or  tcpdump -i fxp1 
 as appropriate

A NIC is easier to get than a dumb hub these days ...


-- 
Murray Taylor
Special Projects Engineer
-
Bytecraft Systems & Entertainment
P: +61 3 8710 2555
F: +61 3 8710 2599
D: +61 3 9238 4275
M: +61 417 319 256
E: [EMAIL PROTECTED]
or visit us on the web
http://www.bytecraftsystems.com
http://www.bytecraftentertainment.com



---
The information transmitted in this e-mail is for the exclusive
use of the intended addressee and may contain confidential
and/or privileged material. Any review, re-transmission,
dissemination or other use of it, or the taking of any action
in reliance upon this information by persons and/or entities
other than the intended recipient is prohibited. If you
received this in error, please inform the sender and/or
addressee immediately and delete the material. 

E-mails may not be secure, may contain computer viruses and
may be corrupted in transmission. Please carefully check this
e-mail (and any attachment) accordingly. No warranties are
given and no liability is accepted for any loss or damage
caused by such matters.
---


This Email has been scanned for Viruses by MailMarshal.

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


Re: HD Mirroring

2004-11-24 Thread Simon 'corecode' Schubert
On Wednesday, 24. November 2004 22:31, Charles Sprickman wrote:
> On Wed, 24 Nov 2004, Brian Reichert wrote:
> > And, although I've not tested it, recent versions of MySQL can
> > outright support a cluster:
> >
> >  http://dev.mysql.com/doc/mysql/en/NDBCluster.html
> I'm just curious if there's any other solution that will work on FreeBSD.
> I have about 5 mysql servers (4 slaves, 1 master) and one application in
> particular is not smart enough to try other servers if the configured
> server does not answer.  Is there any type of local proxy that can
> intelligently route requests to the "best" server?

maybe use CARP for that?

cheers
  simon

-- 
/"\
\ /
 \ ASCII Ribbon Campaign
/ \  Against HTML Mail and News


pgp3qrXgKV7fX.pgp
Description: PGP signature


Re: HD Mirroring

2004-11-24 Thread Charles Sprickman
On Wed, 24 Nov 2004, Brian Reichert wrote:
And, although I've not tested it, recent versions of MySQL can
outright support a cluster:
 http://dev.mysql.com/doc/mysql/en/NDBCluster.html
I'm just curious if there's any other solution that will work on FreeBSD. 
I have about 5 mysql servers (4 slaves, 1 master) and one application in 
particular is not smart enough to try other servers if the configured 
server does not answer.  Is there any type of local proxy that can 
intelligently route requests to the "best" server?

Thanks,
Charles
Thanks before-hand for any info,
--
   //|  //||
  // | // ||
-//--//---|| ARIO LOBO
//  //||
-
[EMAIL PROTECTED]
http://www.ipad.com.br
--
Brian Reichert  <[EMAIL PROTECTED]>
37 Crystal Ave. #303Daytime number: (603) 434-6842
Derry NH 03038-1713 USA BSD admin/developer at large
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


gmirror bugs, how many?

2004-11-24 Thread João Carlos Mendes Luís
Hi,
I am blindly testing gmirror, just for fun.  I got an old 8G drive 
and did some tests.  Maybe I did find a bug in gmirror.  This is a long 
message, but please read it to the end if you are a gmirror or GEOM hacker.

First, I partioned (fdisk) for a full FreeBSD system, with 
sysinstall, which got me this:

*** Working on device /dev/ad1 ***
parameters extracted from in-core disklabel are:
cylinders=16368 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=16368 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 16498881 (8056 Meg), flag 80 (active)
   beg: cyl 0/ head 1/ sector 1;
   end: cyl 1023/ head 15/ sector 63
The data for partition 2 is:

The data for partition 3 is:

The data for partition 4 is:

Then I tried to compose a single disk gmirror with the whole ad1 disk:
sigesc::root jcmendes [531] gmirror list
sigesc::root jcmendes [532] gmirror label -b load -v vol0 ad1
Metadata value stored on ad1.
Done.
sigesc::root jcmendes [533] gmirror list
Geom name: vol0
State: COMPLETE
Components: 1
Balance: load
Slice: 4096
Flags: NONE
SyncID: 1
ID: 1397575407
Providers:
1. Name: mirror/vol0
   Mediasize: 8447458816 (7.9G)
   Sectorsize: 512
   Mode: r0w0e0
Consumers:
1. Name: ad1
   Mediasize: 8447459328 (7.9G)
   Sectorsize: 512
   Mode: r0w0e0
   State: ACTIVE
   Priority: 0
   Flags: NONE
   SyncID: 1
   ID: 3966559351
Geom name: vol0.sync
sigesc::root jcmendes [534] ls -l /dev/mirror/
total 1
dr-xr-xr-x  2 root  wheel  512 Nov 24 18:45 .
dr-xr-xr-x  5 root  wheel  512 Nov 24 18:45 ..
crw-r-  1 root  operator4,  50 Nov 24 18:45 vol0
crw-r-  1 root  operator4,  51 Nov 24 18:45 vol0s1
crw-r-  1 root  operator4,  52 Nov 24 18:45 vol0s1a
crw-r-  1 root  operator4,  53 Nov 24 18:45 vol0s1b
crw-r-  1 root  operator4,  54 Nov 24 18:45 vol0s1c
crw-r-  1 root  operator4,  55 Nov 24 18:45 vol0s1d
sigesc::root jcmendes [535] fdisk /dev/mirror/vol0
*** Working on device /dev/mirror/vol0 ***
parameters extracted from in-core disklabel are:
cylinders=1027 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=1027 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 16498881 (8056 Meg), flag 80 (active)
   beg: cyl 0/ head 1/ sector 1;
   end: cyl 1023/ head 15/ sector 63
The data for partition 2 is:

The data for partition 3 is:

The data for partition 4 is:

sigesc::root jcmendes [536]
Aparently, everything is fine until here.  But now:
sigesc::root jcmendes [536] disklabel /dev/mirror/vol0s1
# /dev/mirror/vol0s1:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  a:  1048576   634.2BSD 2048 16384 8
  b:  1048576  1048639  swap
  c: 16498881   63unused0 0 # "raw" part, 
don't edit
  d: 14401729  20972154.2BSD 2048 16384 28552
partition c: partition extends past end of unit
disklabel: partition c doesn't start at 0!
disklabel: An incorrect partition c may cause problems for standard 
system utilities
partition d: partition extends past end of unit
sigesc::root jcmendes [537]

Obviously, this must not be correct.
I try to check the base disk, but:
sigesc::root jcmendes [542] disklabel /dev/ad1s1
disklabel: /dev/ad1s1: No such file or directory
sigesc::root jcmendes [543] ls -l /dev/ad1*
crw-r-  1 root  operator4,  16 Nov 24 18:58 /dev/ad1
sigesc::root jcmendes [544]
Hey, where are the base partition slices?
Now, lets reboot.  I could not unload geom_mirror, since it was 
preloaded during boot, is this expected?  The device could not be 
unloaded, but the volume disapeared (gmirror list, ls /dev/mirror). 
This is surely not good. Thats why I did reboot.  Bug #1.

After the reboot, the device is back (gmirror list).  And, 
surprise, the disklabel is magically corrected:

sigesc::root jcmendes [504] disklabel mirror/vol0s1
# /dev/mirror/vol0s1:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  a:  104857604.2BSD 2048 16384 8
  b:  1048576  1048576  swap
  c: 164988810unused0 0 # "raw" part, 
don't edit
  d: 14401729  20971524.2BSD 2048 16384 28552
sigesc::root jcmendes [505]

Ok, now let's try something diferent.  Let's suppose that I only 
want one slice mirrored.  Maybe the other slices could be standalone, or 
striped, this is not im

RE: Network monitoring

2004-11-24 Thread Haulmark, Chris
Someone broke the silence: 

> I apologize that this probably isn't the most relevant
> list to ask this on. Suggestions for better lists will be welcome.
> 
> I'm trying to monitor traffice on a 100BaseT ethernet
> network link. I split the line, put a "hub" in and am
> trying to run tcpdump on a box off the side of the
> hub.
> 
> Unfortunately, it turns out the hub isn't a hub, it's
> a "switching hub" (what's not a switch about this? I
> don't get it). Consequently, all I see are arp
> packets, bootp packets, and the odd broadcast. I went
> to a local store to buy a hub, and guess what, they
> sold me another switching hub, so that has to be
> returned :(
> 
> So, the question is, can anyone tell me the
> manufacturer and product name of a real (dumb) hub? I
> could use 10baseT instead if necessary, I just need
> something cheap that is a simple repeater. Of course,
> nobody advertizes "our hub really is a totally dumb
> hub, not like those fancy switching hubs the
> competition sells" ;>
> 
> Any suggestions?
> 

I ran into the similar problem.  I just looked elsewhere for a cheap hub. Ebay 
was the favorite place for me.  For you, just swing by a Pop/Mom/Family kind of 
computer stores.  They might sell few old hubs that doesn't have switching 
capabilities at a low price.

Chris Haulmark

> Thanks
> Simon
> 
> 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! Mail - Helps protect you from nasty viruses.
> http://promotions.yahoo.com/new_mail
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"


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


Re: HD Mirroring

2004-11-24 Thread mario . lobo
Ok Brian;

I read about NDBClusters but the info I found said it would only run on linux 
and solaris. No
FreeBSD.

I didn´t know of mysql replication ! I´ll check into it too, but what i´ve been 
reading about vinum
so far has impressed me a lot, specially in terms of not only mirroring the 
database but most
anything you want.

Maybe I´ll try to replicate the database on vinum volumes to get the best 
service performance from
mysql, with the "failsafetyness" of vinum mirrors.

Thanks for your help,

On 24 Nov 2004 at 12:13, Brian Reichert wrote:

> On Wed, Nov 24, 2004 at 10:52:11AM -0300, [EMAIL PROTECTED] wrote:
> > I have a mysql server that I need to mirror its data on a 2nd HD, either on 
> > the same machine or on
> > a remote one, but it has to be in real time. Has it been or can it be done 
> > at all?
>
> Is MySQL's replication not fast enough?  I can see why it wouldn't
> be in all cases, but I wanted to make sure you were aware of it:
>
>   http://dev.mysql.com/doc/mysql/en/Replication.html
>
> And, although I've not tested it, recent versions of MySQL can
> outright support a cluster:
>
>   http://dev.mysql.com/doc/mysql/en/NDBCluster.html
>
> > Thanks before-hand for any info,
> --
> Brian Reichert<[EMAIL PROTECTED]>
> 37 Crystal Ave. #303  Daytime number: (603) 434-6842
> Derry NH 03038-1713 USA   BSD admin/developer at large

--
   //|  //||
  // | // ||
-//--//---|| ARIO LOBO
//  //||
-
[EMAIL PROTECTED]
http://www.ipad.com.br

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


Re: HD Mirroring

2004-11-24 Thread Brian Reichert
On Wed, Nov 24, 2004 at 10:52:11AM -0300, [EMAIL PROTECTED] wrote:
> I have a mysql server that I need to mirror its data on a 2nd HD, either on 
> the same machine or on
> a remote one, but it has to be in real time. Has it been or can it be done at 
> all?

Is MySQL's replication not fast enough?  I can see why it wouldn't
be in all cases, but I wanted to make sure you were aware of it:

  http://dev.mysql.com/doc/mysql/en/Replication.html

And, although I've not tested it, recent versions of MySQL can
outright support a cluster:

  http://dev.mysql.com/doc/mysql/en/NDBCluster.html

> Thanks before-hand for any info,
> 
> --
>//|  //||
>   // | // ||
> -//--//---|| ARIO LOBO
> //  //||
> -
> [EMAIL PROTECTED]
> http://www.ipad.com.br

-- 
Brian Reichert  <[EMAIL PROTECTED]>
37 Crystal Ave. #303Daytime number: (603) 434-6842
Derry NH 03038-1713 USA BSD admin/developer at large
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


restore hangs system creating directories.

2004-11-24 Thread David Gilbert
Consistently, I can hang my system with restore.  The archive is an
uncompressed 75 gig file.  I run restore -rvf  in a new empty
directory and restore's first chore is to create the directory tree.

restore hangs the machine.  It hangs the machine when there's othere
read/write going on or by itself.  The machine is an athlon-750 with
ata-66 disk interfaces and 384 meg of RAM.  The disk in question is a
250 gig disk formated with -b 65536 and -f 8192

Now... I can get this to work if I run

while true; do sync; sleep 1; done

in another shell.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: A20/keybord/no-keyboard

2004-11-24 Thread Danny Braniss
...
> 
> Ah, I've fixed the btx compile.  Seems some comment rototilling busted it.

that's what i saw.

btw, while we are at the bottom of the bleading edge, can this also be fixed:
in i386/boot/boot0/boot0.S:
-#ifdef SIO
+#if defined(SIO) && COMSPEED != 0
/*
 * Initialize the serial port.  bioscom preserves the driver number in DX.
 */
movw COMSPEED,%ax   # defined by Makefile
callw bioscom
#endif /* SIO */

since this only works for speeds upto 9600, and breaks things for speeds
above 9600.
(i know, this probably should be a PR :-)

danny


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


Re: setting promisc mode kills vlans on devices with hwtagging (em, re ...)

2004-11-24 Thread Iasen Kostov
Robert Watson wrote:
On Tue, 23 Nov 2004, Robert Watson wrote:
 

On Tue, 23 Nov 2004, Iasen Kostov wrote:
   

if you setup a vlan devices with parent one of emX or reX (this what I
have at the moment)  which has hardware vlan tagging just try to run
tcpdump (without -p) and the vlans will die :). That doesn't happen with
parent devices not supporting hwtagging. And this totally excludes
possibility to run a bridge over vlans with parent device which support
hwtaggs.  And something else was observed with re driver - it is
impossible to disable hwtaggs by -vlanhwtag neither you can disable vlan
mtu :).
 

I recently fixed this bug in if_em in HEAD, and will be merging that
back to RELENG_5 shortly.  We plan to also merge the change to
RELENG_5_3 as an errata patch fix.  It does not surprise me that if_re
has a similar bug;  I'll look at abstracting the solution in the next
few days. 
   

I've now merged the fix to RELENG_5 from HEAD:
 Checking in if_em.c;
 /home/ncvs/src/sys/dev/em/if_em.c,v  <--  if_em.c
 new revision: 1.44.2.4; previous revision: 1.44.2.3
 done
 Checking in if_em.h;
 /home/ncvs/src/sys/dev/em/if_em.h,v  <--  if_em.h
 new revision: 1.25.2.2; previous revision: 1.25.2.1
 done
I'll take a look at if_re shortly.
Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
[EMAIL PROTECTED]  Principal Research Scientist, McAfee Research

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

   Thanks a lot. This will save me from lots of problems and now I can 
remove aliases like 'alias tcpdump="tcpdump -p"' :).
Thanks again.

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


Re: A20/keybord/no-keyboard

2004-11-24 Thread Danny Braniss
> 
> On Nov 24, 2004, at 2:47 AM, Danny Braniss wrote:
> 
> >> If the VGA driver is present, the system will assume you want to use a
> >> VGA console, unless you force one of the serial ports to become the
> >> system console by setting the appropriate hint in device.hints or
> >> loader.conf as documented in the sio(4) man page.  For instance:
> >>
> >> hint.sio.0.flags="0x30"
> >>
> >> forces sio0 to become the system console regardless of the presence of
> >> a display adapter.
> >>
> >> You may also have to tell the boot code and loader to use the serial
> >> console; see their respective manual pages.
> >>
> >
> > im using hint.sio.0.flags="0x20", and still, only after i removed the 
> > vga
> > from the config file did i get the console output on the serial line.
> >
> > i'm using boot0sio, so the boot is also talking via the serial, but 
> > the BTX
> > is still using the vga, compiling it to use the serial gave errors.
> 
> BTX_SERIAL will not work with boot2 (hard drive boot blocks) due to 
> space
> constraints.  It does work for /boot/loader and pxeboot however.  Note 
> that
> it only outputs meaningful text if it crashes anyway, so I wouldn't 
> worry
> about it.

well, the host was not booting ...

with BTX_SERIAL, btx does not compile, and for 'completness' it would be nice
to have all console output, anyways my problem was not btx related.

danny


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


Re: HD Mirroring

2004-11-24 Thread mario . lobo
Thanks Peter and Ciprian for the directions !!

following through right now !!

Best regards,
-- 
   //|  //||
  // | // ||
-//--//---|| ARIO LOBO
//  //||
-
[EMAIL PROTECTED]
http://www.ipad.com.br

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


Re: HD Mirroring

2004-11-24 Thread Peter Pentchev
On Wed, Nov 24, 2004 at 10:52:11AM -0300, [EMAIL PROTECTED] wrote:
> Hi;
> 
> Don?t know if this is the proper list to ask. If not, please forgive me.
> 
> Does anybody has any hints on where to go for info about HD real time
> mirroring in FreeBSD?
> 
> I have a mysql server that I need to mirror its data on a 2nd HD,
> either on the same machine or on a remote one, but it has to be in
> real time. Has it been or can it be done at all?

Actually, it has been done, and it has been working for quite some time,
in several different versions even :)  Take a look at the FreeBSD
Handbook:

http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/

Look at chapter 16, "Storage", and especially 16.5, "RAID".  After that,
look at chapter 17, "The Vinum Volume Manager".  Those will probably
contain most of the information that you need :)

There is also an excellent separate article about Vinum at

http://www.FreeBSD.org/doc/en_US.ISO8859-1/articles/vinum/

Hope that helps!

G'luck,
Peter

-- 
Peter Pentchev  [EMAIL PROTECTED][EMAIL PROTECTED][EMAIL PROTECTED]
PGP key:http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
Hey, out there - is it *you* reading me, or is it someone else?


pgpPb4IyFgkeY.pgp
Description: PGP signature


HD Mirroring

2004-11-24 Thread mario . lobo
Hi;

Don´t know if this is the proper list to ask. If not, please forgive me.

Does anybody has any hints on where to go for info about HD real time mirroring 
in FreeBSD?

I have a mysql server that I need to mirror its data on a 2nd HD, either on the 
same machine or on
a remote one, but it has to be in real time. Has it been or can it be done at 
all?

Thanks before-hand for any info,

--
   //|  //||
  // | // ||
-//--//---|| ARIO LOBO
//  //||
-
[EMAIL PROTECTED]
http://www.ipad.com.br

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


Re: A20/keybord/no-keyboard

2004-11-24 Thread John Baldwin
On Nov 24, 2004, at 2:47 AM, Danny Braniss wrote:
If the VGA driver is present, the system will assume you want to use a
VGA console, unless you force one of the serial ports to become the
system console by setting the appropriate hint in device.hints or
loader.conf as documented in the sio(4) man page.  For instance:
hint.sio.0.flags="0x30"
forces sio0 to become the system console regardless of the presence of
a display adapter.
You may also have to tell the boot code and loader to use the serial
console; see their respective manual pages.
im using hint.sio.0.flags="0x20", and still, only after i removed the 
vga
from the config file did i get the console output on the serial line.

i'm using boot0sio, so the boot is also talking via the serial, but 
the BTX
is still using the vga, compiling it to use the serial gave errors.
BTX_SERIAL will not work with boot2 (hard drive boot blocks) due to 
space
constraints.  It does work for /boot/loader and pxeboot however.  Note 
that
it only outputs meaningful text if it crashes anyway, so I wouldn't 
worry
about it.

--
John Baldwin <[EMAIL PROTECTED]>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: resolving routes externally

2004-11-24 Thread James
On Tue, Nov 23, 2004 at 08:49:19PM -0500, James wrote:
> On Tue, Nov 23, 2004 at 10:36:46AM -0800, Bruce M Simpson wrote:
> [ snip ]
> > 
> > If I understand correctly, you want the kernel to queue packets until
> > layer 2 address resolution is complete. Right now we don't do this. If
> > there is no route to a destination, packets will be dropped.
> 
> The KAME ipv6 code does this for v6 neighbor discovery (which is not
> arp yes..). Martin, nd6_output() in netinet6/nd6.c should be helpful
> if you want to look. RFC requires routers to queue packets up during
> layer 2 resolution process (which is why in IPv6 when destination
> host is down you see !A with huge latency -- i.e. 3400ms due to
> queueing by the router[1]).

Err my bad. I meant 'latest packet' (like in arp resolution)

-J

-- 
James JunTowardEX Technologies, Inc.
Technical Lead  Boston IPv4/IPv6 Web Hosting, Colocation and
[EMAIL PROTECTED]Network design/consulting & configuration services
cell: 1(978)-394-2867   web: http://www.towardex.com , noc: www.twdx.net
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: resolving routes externally

2004-11-24 Thread James
On Tue, Nov 23, 2004 at 10:36:46AM -0800, Bruce M Simpson wrote:
[ snip ]
> 
> If I understand correctly, you want the kernel to queue packets until
> layer 2 address resolution is complete. Right now we don't do this. If
> there is no route to a destination, packets will be dropped.

The KAME ipv6 code does this for v6 neighbor discovery (which is not
arp yes..). Martin, nd6_output() in netinet6/nd6.c should be helpful
if you want to look. RFC requires routers to queue packets up during
layer 2 resolution process (which is why in IPv6 when destination
host is down you see !A with huge latency -- i.e. 3400ms due to
queueing by the router[1]).

If you are queueing however, make sure you use locking or check for
any safety mechanisms as you may corrupt mbuf's that are flooding
inbound.

BTW Martin,, what is the purpose of this intent? Just curiousity of
mine.


[1]: Some hardware/ASIC based routers violate the RFC unfortunately.
It's a little harder to implement there (see J vendor)

-J

-- 
James JunTowardEX Technologies, Inc.
Technical Lead  Boston IPv4/IPv6 Web Hosting, Colocation and
[EMAIL PROTECTED]Network design/consulting & configuration services
cell: 1(978)-394-2867   web: http://www.towardex.com , noc: www.twdx.net
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: resolving routes externally

2004-11-24 Thread Martin Eugen
On Tue, 23 Nov 2004 14:52:36 +0100, Joerg Sonnenberger
<[EMAIL PROTECTED]> wrote:
> On Tue, Nov 23, 2004 at 11:42:39AM -0200, Jo?o Carlos Mendes Lu?s wrote:
> > >So I started to look at the ARP
> > >code, but it of course lacks the kernel - userland communication
> > >interface. I would appreciate any ideas about what would be the easier
> > >way to implement such a thing where the kernel could wait (up to some
> > >reasonable time-out) a userland daemon to install a new route.
> >
> > Why don't you simply discard the packet and wait for the next retry?
>

Because the network is not like the internet, packet error correction
and so on is done at lower layers, I mean... if there are some packets
that are equivalent to the TCP SYNs, the 'SYN' timeout in our case is
in minutes (because it is believed the host or a link is down or
something else that could take longer time to resolve). This is bad,
because connections will be established within some minutes...
 
> Or alternatively use an internal queue of limited size to keep track of
> those packages.

This is probably the only solution I can think of right now, but I
think poking a queue at regular, short intervals seems to me quite
expensive, isn't it? Or perhaps there could be a netgraph node that
handles the queue and connects to the userland daemon... but this
could make things much more complicated... ?

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


Re: A20/keybord/no-keyboard

2004-11-24 Thread Dag-Erling Smørgrav
Danny Braniss <[EMAIL PROTECTED]> writes:
> im using hint.sio.0.flags="0x20", and still, only after i removed
> the vga from the config file did i get the console output on the
> serial line.

0x20 (COM_FORCECONSOLE) isn't enough, you have to use 0x30
(COM_FORCECONSOLE | COM_CONSOLE).  COM_FORCECONSOLE is ignored if
COM_CONSOLE isn't set.

> i'm using boot0sio, so the boot is also talking via the serial, but
> the BTX is still using the vga, compiling it to use the serial gave
> errors.

There's no need to recompile anything; the third-stage loader will
automatically use the serial console if the second-stage loader does
(i.e. /boot.config contains -h).  The reason why there are two
versions of the first-stage loader is that space constraints preclude
supporting both VGA and serial in the same code.  The second- and
third-stage loaders have no such constraints.

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