Slightly OT - steaming data server software?

2008-05-18 Thread John Pettitt




Slightly OT but since I'm going to run this on FreeBSD 7 I figured I'd 
ask here ..


I have an application where data arrives in what is effectively 
continuous stream (actually NMEA messages from an AIS receiver) and I'd 
like to have a server where an arbitrary number of clients can connect 
to a tcp port and receive a copy of the stream.I could probably 
write this in perl without too much work but somebody has to have done 
something similar already - does anybody know of code that does this? 
(and yes I know sending the messages as individual udp packets would be 
easier - I'm already doing that internally but it doesn't work for 
opening up the data stream to the public).


John.
P.S. for those who are interested AIS data contains info about large 
ships at sea - you can see live SF bay data on a map here 
http://hd-sf.com/livemap.html

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


mbmon type program that works with SuperMicro motherboards?

2008-04-12 Thread John Pettitt



I'm looking for a hardware monitor that will work with newer supermicro 
boards (mbmon / xmbmon doesn't)- any suggestions (I'm running RELENG_7)


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


Re: Cheaper backup mechnism for a server

2007-09-21 Thread John Pettitt

dhaneshk k wrote:

Hi ;

A general question pls excuse me

can any body suggest a backup mechanism for a server machine , which 
has a web portal , email server ,PgSQL database 4GB size , DNS server, 
Mailman , and a mediawiki applications running in a single machine .


Can you suggest good solutions , for the server Backup mechanismso 
that I can restore all the data just before the crashing moment .


pls share your expertise , it will help me lot  to secure my data in 
the server machine ..


Thanks in Advance
KK



Check out BackupPC - it will do rsync backups and store them very 
intelligently on a remote box - you can set it to backup as often as you 
like ...


It saved my ass when my FreeBSD co-lo server disk died - I had a backup 
up to date as of midnight that let me restore the machine (I back it up 
over a DSL line without problems)


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


Re: Low-cost dedicated FreeBSD server or non-jail VPS?

2007-02-07 Thread John Pettitt

Kelly Jones wrote:

I'm looking to rent a low-cost FreeBSD dedicated server or VPS with
root access. For a VPS, I realize this is really psuedo-root access.

I once rented a VPS on a FreeBSD box that was split into virtual boxes
using jail, but wasn't happy with it. So, if it's not a dedicated
box, I'm looking for something like Virtuozzo, Xen, vmware running
FreeBSD as a guest OS, etc.

The box doesn't have to be super-fast or have lots of disk space: just
looking for something that will let me play around with ports, pf, run
experiments, etc

Does anyone have any suggestions?

I have a box at sonic.net - their standard co-lo box is Linux but if you 
ask they will install FreeBSD for you on the understanding that they 
won't support OS problems.   See https://tools.sonic.net/signup/1u/   - 
the nice thing about sonic is you get to talk to real people if you have 
support issues - their CEO even answers questions in the sonic.* newsgroups.


John
I don't work for them - I'm just a happy customer

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


Re: Celeron-D SMP

2006-05-06 Thread John Pettitt
Bret Esquivel wrote:
 Hi,

  

 I just compiled my 6.0 kernel with SMP options, however it still is not
 recognizing the Celeron-D has 2 processors, nothing in dmesg shows any
 information about it. Anyone have this issue?

  

 Thanks,

  
The Celeron D is a single core non hyperthreading chip - see
http://www.intel.com/products/processor/celeron_d/prod_brief.pdf and
http://www.intel.com/products/processor/celeron_D/index.htm

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


rm: Operation not permitted

2006-05-05 Thread John Pettitt

I'm having trouble erasing some files - this on a 6.1RC system (built
from -STABLE) - I created a system image using his script:

#!/bin/sh
make buildworld KERNCONF=CLOCK
make buildkernel KERNCONF=CLOCK
mkdir -p /raid/diskless/clock
make installworld DESTDIR=/raid/diskless/clock
cd /usr/src/etc; make distribution DESTDIR=/raid/diskless/clock
cd /usr/src
make installkernel KERNCONF=CLOCK DESTDIR=/raid/diskless/clock

and now when I try to delete it  this happens ...

# rm -rf clock
rm: clock/bin/rcp: Operation not permitted
rm: clock/bin: Directory not empty
rm: clock/lib/libcrypt.so.3: Operation not permitted
rm: clock/lib/libc.so.6: Operation not permitted
rm: clock/lib: Directory not empty
rm: clock/libexec/ld-elf.so.1: Operation not permitted
rm: clock/libexec: Directory not empty
rm: clock/sbin/init: Operation not permitted
rm: clock/sbin: Directory not empty

and so on.

The system is running at securelevel -1 and the rm fails even in single
user mode - what am I missing?

John

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


Re: rm: Operation not permitted

2006-05-05 Thread John Pettitt
Kris Kennaway wrote:
 On Fri, May 05, 2006 at 07:54:07PM -0700, John Pettitt wrote:
   
 I'm having trouble erasing some files - this on a 6.1RC system (built
 from -STABLE) - I created a system image using his script:

 #!/bin/sh
 make buildworld KERNCONF=CLOCK
 make buildkernel KERNCONF=CLOCK
 mkdir -p /raid/diskless/clock
 make installworld DESTDIR=/raid/diskless/clock
 cd /usr/src/etc; make distribution DESTDIR=/raid/diskless/clock
 cd /usr/src
 make installkernel KERNCONF=CLOCK DESTDIR=/raid/diskless/clock

 and now when I try to delete it  this happens ...

 # rm -rf clock
 rm: clock/bin/rcp: Operation not permitted
 rm: clock/bin: Directory not empty
 rm: clock/lib/libcrypt.so.3: Operation not permitted
 rm: clock/lib/libc.so.6: Operation not permitted
 rm: clock/lib: Directory not empty
 rm: clock/libexec/ld-elf.so.1: Operation not permitted
 rm: clock/libexec: Directory not empty
 rm: clock/sbin/init: Operation not permitted
 rm: clock/sbin: Directory not empty

 and so on.

 The system is running at securelevel -1 and the rm fails even in single
 user mode - what am I missing?
 

 chflags -R noschg

 Kris
   
Thanks that did it.  Not enough caffeine today.

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


Re: pxeboot looping

2006-04-27 Thread John Pettitt
Erik Nørgaard wrote:
 John Pettitt wrote:
   
 Help!

 I'm trying to set up a machine to boot using pxe and have run into an
 odd problem.

 The box (a Soekris 4510) load pxeboot via TFTP prints a few lines of
 text then reboots - the last text I see is:

 
 Building the boot loader arguments
 Relocating the loader and the BTX
 Starting the BTX loader
   
 There is no further net traffic after the last tftp packet.

 I'm stumped - I thought it might be a cpu issue (the Soekris is a 486
 clone) so I rebuilt pxeboot with -march=i486 and it didn't make any
 difference.
 

 Do you see the pxeboot actually gets fetched? Check the logs on your
 server. My immediate idea is that it doesn't get as far as fetching the
 pxeboot loader.

 Erik
   
It's fetching it - I just grabbed pxeboot from an iso image ant that one
gets a lot further so I suspect something in my build environment is not
right for the soekris box.  I'm still investigating.

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


pxeboot looping

2006-04-26 Thread John Pettitt
Help!

I'm trying to set up a machine to boot using pxe and have run into an
odd problem.

The box (a Soekris 4510) load pxeboot via TFTP prints a few lines of
text then reboots - the last text I see is:

 Building the boot loader arguments
 Relocating the loader and the BTX
 Starting the BTX loader
There is no further net traffic after the last tftp packet.

I'm stumped - I thought it might be a cpu issue (the Soekris is a 486
clone) so I rebuilt pxeboot with -march=i486 and it didn't make any
difference.

At this point I'm out of ideas 



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


Re: Suggestions for server hardware sub 800 dollars

2005-10-21 Thread John Pettitt


Ben Siemon wrote:

I need to make a server box that will serve web pages ( light ), do
light file storage for my home network and allow me ssh access when I
am away from the apartment. I have read a great deal about this on the
site and looked at the manufactures sites. I see a great deal of
potential there but I have more fun building it up myself. I would be
glad for any suggestions any of you have.
--
cheers

Ben Siemon

254 723 6937

cs.baylor.edu/~siemon
___

  

I used an e-machines PC (Celeron 2.9ghz, 512mb and an 80gb disk, dvd,
cd-burner, sound, network) - it was really hard to argue with a $350
price tag.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


remote, no single user, upgrade?

2005-10-17 Thread John Pettitt

As 6.0 is about to become a reality I'm wondering if anybody has thought
on upgrading 5.3 and 5.4 boxes *without access to the console* - I.E. no
single user mode,   Can it be done or do I have to go visit the machines?


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


Dump on large file systems

2005-08-14 Thread John Pettitt
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160
 

I tried to dump a 600gb file system a few days ago and it didn't
work.  dump went compute bound during phase III and never wrote any
data to the dump device (this on an up to date  RELENG_5 box).  - is
this a known problem? Are there any work arounds?

John
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (MingW32)
 
iD8DBQFC/1VpaVyA7PElsKkRAwnlAKCiqEJ5BLoKpHIRCOLMbcSjrpNBjgCgyyZp
nM+KOXrDZs96+nk7QV6hOCc=
=7Kv9
-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]


Re: RocketRaid 454 in FreeBSD 5.4?

2005-08-08 Thread John Pettitt
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160
 
I have a 454 running perfectly on a RELENG_5 box (basically 5.4 with
some extra patches).   I'm using the 5.3 HighPoint driver and have a
1G raid 5 array (5x WD 250 + 1 spare).Try cvsuping to RELENG_5.
Do you have any non-standard kernel options? What CPU?

John


Joachim Dagerot wrote:

My freeBSD 5.3 system supports HighPoint RocketRaid 454 flawless, using
Highpoints own driver.

The freeBSD 5.4 panics if I load Highpoints driver (marked for version
5.3) and without loading it it simply doesn't identify it as a single unit.

I can't find support for the RocketRaid 454 in the hardware notes for
freeBSD 5.4, is this device being left out?


//Joachim


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

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (MingW32)
 
iD8DBQFC+D10aVyA7PElsKkRA0imAJ985ZEKbNX3USRpBah0zgitM4ku5wCfWD5E
qVEpsv6Us6d5DkUYU9vltNs=
=VO+X
-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]


Time for a new SATA raid server ...

2005-06-08 Thread John Pettitt

I'm about to consign my old cobbled together file server and it's
collection of FireWire drives to that place servers go to die.

I need to build a file server with up to 2 TB of capacity - most of this
storage will be near-line storage for video and photo archives and so
will not have high performance needs.  It will need to be highly reliable.

My current thought is to go with a 3ware based SATA raid solution using
300 or 400gb sata drives (7 x 400's with 6 in a raid 5 array with a hot
spare).

Questions:  does anybody on the list have such a box running in production?

Any issues I need to watch for?

Does anybody build these pre-configured?

What other raid controllers should I consider? (must have real FreeBSD
support)

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


Re: 36.4GB drive formats out to 32.8GB? what am I missing please

2005-06-05 Thread John Pettitt


D. Goss wrote:

 I am adding some drives to an IBM xSeries 345.  I recently picked up 
 (via eBay) an IBM packaged Seagate drive, all with the proper IBM 
 part numbers as:

 U320 15k
 36.4GB formatted capacity
 (IBM part 06P5776 / 06P5778, with Seagate drive ST336753LC)

 Looking up both the IBM part numbers and the Seagate part numbers via 
 Google, I consistantly get that the drive's formatted capacity is 
 36.4GB.

 When partitioned either in safe or dd mode (via sysinstall) and 
 set to use the entire disk as one slice, once the drive is mounted I 
 show:

 # df -m
 /dev/da1s1  336170 30928 0%/misc

 # df -h
 /dev/da1s1  33G4.0K 30G 0%/misc

 I'm seeing approx. 30,600MB (32.8GB?) free -


I suspect three things are goping on

1) disk makers specify GB as 1,000,000,000 bytes but everybody else
specifies 1,073,741,824 bytes (1024*1024*1024) this will yeild 33.9 GB
from your 36.4 GB drive

2) formatting itself takes some space for superblocks etc

3) some psace is reserved (man newfs and tunefs for info)

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


Re: FreeBSD Co-location

2005-06-05 Thread John Pettitt


Vinicius Pavanelli Vianna wrote:

Hi,

I'm looking for FreeBSD co-located servers on united states or any other
country that have good internet connections, for a secondary backup of
data and web host for the company I work to, sorry for this OT message,
but could any of you send me good sites where i can find this? Is
difficult to judge well too outside of this market.


  

I use sonic.net - they default to Linux but will install FreeBSD if you
ask - they are competitive on price and have really good tech people
that you can actually talk to if you have a problem.
See http://www.sonic.net/sales/colo/1u/ and http://www.sonic.net/sales/colo/

John (no connection to sonic.net other than as a happy customer)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Weird ping times

2005-06-04 Thread John Pettitt


Karan Gupta wrote:

 Hi
   I have a router setup with fBSD
  uname output 
 FreeBSD aaa.xxx.com 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Wed May 25
 15:08:04 PDT 2005 root@:/usr/src/sys/i386/compile/EFKERNEL  i386

 When i ping this machine from different networks i get the following
 timings

 [snip]

 Alternate good and bad times!!! I rebooted the machine to no effect.
 The problem seems to go away on its own for a few hours  then comes
 back. I ran tcpdump  saw nothing different between the times this
 behaviour was seen  the times it wasnt.

 The machine is running IPFW, isc-dhcp server and nat.


 Any thoughts??

does traceroute yield anything interesting? (from either end?) - ping
times over a second sounds like a routing problem maybe outside the machine.

I've also seen weird results with machines hat have USB serial ports on
them where the machine dies for up to 16 seconds then comes back and all
the ping packets come back at once with delays from a few ms to 16
seconds in one second steps.

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


Firewire 800 to IDE?

2005-05-19 Thread John Pettitt

I've got four  of WD250 GB drives that I want to hook to a FreeBSD 5.4
box that happens to have a Firewire 800 card in it (it's already got
three FW 400 disks attached).  I have some FW-IDE boards that don't
work with BSD (it sees the device but never detects the drive)  - so I'm
looking for info on Firewire 800 boards that are known to work - if you
have a Firewire 800 to IDE board that is currently working with FreeBSD
please let me know what make/model and if possible where you got it (if
in the US).

Thanks

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


Re: silencing the boot beep

2005-05-15 Thread John Pettitt


Eric Schuele wrote:

 Allan Bowhill wrote:

 Does anyone know how to turn off the annoying beep when BSD partition
 selector comes up? 


 Wish I knew... I could use this as well.


If I recall correctly the beep comes from the PC BIOS and indicates the
POST passed.My suggestion - unplug the speaker.

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


Re: Mailinglist privacy: MY NAME ALL OVER GOOGLE!

2005-05-07 Thread John Pettitt


Chris wrote:

Nobody can reply to, reproduce, referance, show, etc. this email without
written consent be my.
  

The courts, wisely, have declined to say quoting a set amount is ok or
define any other bright line test. 

Since there is no bright line test for fair use it comes down to is is
reasonable to quote for one of the reasons supported by the fair use
doctrine.In this case criticism.  There are plenty of decisions
supporting taking a small part of a work and quoting it for critical
purposes - in trying to negate that right you are fighting an uphill
battle that has little probability of prevailing in court.   Further in
asking that your post not be referenced you are trying to impose private
censorship - there is no provision of copyright law (or any other law)
that prohibits referencing another work (as my satirical post yesterday
pointed out).  Lastly by trying to prohibit people from showing your
post you are trying to invoke a trade secret relationship where no
contractual basis exists.

In other words your post is basically BS and wouldn't stand up to a
first year law student on a bad day.

John

 

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


Re: Mailinglist privacy: MY NAME ALL OVER GOOGLE!

2005-05-06 Thread John Pettitt
This news just in:

Fafa Hafiz Krantz a research designer at Barbershop in Norway (
http://www.home.no/barbershop ) has asked that his posts be removed for
all the archives of several public email lists.The request sparked a
heated debate over the issue of copyright on email lists and raised
interesting questions about specifically opting in to having posts
archived.  As is typical in such debates few of the participants cited
any real evidence backing up their views and almost no attention was
paid to the jurisdictional issues created by international lists.

There was speculation that the request for deletion was prompted by the
posters political views as referenced in his email signature which
points to an article about middle east politics
http://www.home.no/barbershop/smart/sharon.pdf

With the debate he started Mr Krantz seems to have had ensured that his
name will live in archives for the foreseeable future, referenced in
articles such as this one which he has no copyright to and no control
over.   In the end the best strategy seems to be: if you don't want to
be quoted don't say anything.

--END--


This news item may be archived and reposted in any medium without
limitation including on search engines.




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


Re: A beautiful dmesg! Maybe one day?

2005-05-06 Thread John Pettitt


Fafa Hafiz Krantz wrote:
[another message]

Dude, you asked for your posts to be deleted why are you posting more
stuff you know is going to get archived?



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


Re: Clock running fast

2005-05-04 Thread John Pettitt


Tomas Quintero wrote:

On 5/4/05, Ryan Winograd [EMAIL PROTECTED] wrote:
  

Hi all,
I recently noticed that the system clock on a machine i recently set up
is running very quickly, about 2x realtime by my measuring. What can i
do to solve/investigate this problem? What information would be helpful?

Thanks,
Ryan



Have you considered running an ntp service on the box? I run OpenNTPd
on a few of my systems and it seems to work quite well.

  

ntp isn't going to fix a 2x clock problem which is probably hardware
related.

The OP didn't say what hardware or version of FreeBSD so it's kinda hard
to figure out the actual problem.

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


Re: /etc/issue problem

2005-05-02 Thread John Pettitt


Simon Striker wrote:

 Hello again!

 So far I have noticed that text in /etc/issue shows up ONLY when user
 logs on from console.

 Now I wonder If there exists something like /etc/issue.net (like in
 Linux), where I could put the text for telnet pre-login message?

 Best regards,
 Simon


man telnetd says (in part)

  By default telnetd will read the he, hn, and im capabilities from
  /etc/gettytab and use that information (if present) to determine
 what to
  display before the login: prompt. You can also use a System V style
  /etc/issue file by using the if capability, which will override
 im.  The
  information specified in either im or if will be displayed to
 both con-
  sole and remote logins.



sshd needs Banner /etc/issue in it's config to do the same thing.

John.*

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


Re: blocking MAC address with ipfw ?

2005-05-02 Thread John Pettitt
faisal gillani wrote:

 faisal gillani wrote:

how can i block a MAC address with ipfw ?
can you share the syntax please ?


thanks

man ipfw reveals ...

{ MAC | mac } dst-mac src-mac
 Match packets with a given dst-mac and src-mac addresses,
speci-
 fied as the any keyword (matching any MAC address), or six
groups
 of hex digits separated by colons, and optionally followed by a
 mask indicating the significant bits.  The mask may be
specified
 using either of the following methods:

 1.  A slash (/) followed by the number of significant bits.
 For example, an address with 33 significant bits
could be
 specified as:

   MAC 10:20:30:40:50:60/33 any

 2.  An ampersand () followed by a bitmask specified as six
 groups of hex digits separated by colons.  For example,
 an address in which the last 16 bits are significant
 could be specified as:

   MAC 10:20:30:40:50:6000:00:00:00:ff:ff any

 Note that the ampersand character has a special meaning
 in many shells and should generally be escaped.

 Note that the order of MAC addresses (destination first, source
 second) is the same as on the wire, but the opposite of the one
 used for IP addresses.



So

 ipfw add 999 deny MAC any 10:20:30:40:50:60/33

would be a valid rule.



*º¤., ¸¸,.¤º*¨¨¨*¤ Allah-hu-Akber*º¤., ¸¸,.¤º*¨¨*¤
God is the Greatest



   
__ 
Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more. 
http://info.mail.yahoo.com/mail_250
___
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: USB2.0 External IDE connections

2005-04-22 Thread John Pettitt


scott renna wrote:

Has anyone had any luck in using external USB2.0
enclosures on FreeBSD 5.3?  I've picked up 2 of them
with different chipsets and have 2 USB2.0 to IDE
converter cables.  My kernel has support for ehci so
that's not an issue, but every time i plug one of
these devices it, it's detected as da0 and a umass
device, and I'm told data transfer is limited to
1Mb/s.  attempting to mount da0 doesn't work.

has anyone had any experience in using these types of
devices?

thanks

scott


  

They basically work (at least with 5.4) but there are some open bugs for
failure under high load - I too switched to firewire in the end.  The
1Mb/s think seems to be more a displya issue than a perfomance one
becasue gstat shows about 12mb/sec for the drives I have. If the hangup
under load problems get fixed I think USB will be quite usable.

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


IGMP proxy?

2005-04-19 Thread John Pettitt
I'm being told by my ISP that I need an IGMP proxy to get my FreeBSD
firwall to handle multicast info from their network (actually BBC radio
content) - I can't find such a proxy for FreeBSD - is there one?


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


Multicast and security

2005-04-18 Thread John Pettitt
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 

My ISP ( sonic.net - a *great* ISP)  just added support for the BBC
multicast trial (  see http://support.bbc.co.uk/multicast/streams.html ).

I'm looking at adding MROUTING to my gateway/firewall box (Soekris
4801 running 5.4 RC2).  However having not played with multicast
before I'm looking for pointers on the security issues (I don't want
to create a gaping hole in my FW).

I'm using ipfw for my normal FW stuff and I assume I need to add rules
for 224.0.0.0/4 to let mrouted do it's job but what (if anything) do I
need to do to make sure this can't be abused from the outside?

John


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (MingW32)
 
iD8DBQFCZD+TaVyA7PElsKkRAh/IAJ9H22H0QJUrt9xuO44NZrdP1jQpRwCgnV3y
mxRoeFr9HTcut7AA9/OOgQs=
=/EH4
-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]


Re: syslogd will be removed from freebsd???

2005-04-13 Thread John Pettitt


perikillo wrote:

 I found this info on www.syslog.org http://www.syslog.org -- 
http://www.syslog.org/Article28.phtml

Saying that Linux and BSD variants are going to remove syslog in the next 
months.

This is true for Freebsd?

I normally read my syslog file, but if it's true, you are going change for 
something new?
___

  

look at the date on the article.


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


Re: iSCSI (revisited?)

2005-04-04 Thread John Pettitt


Justin Bennett wrote:

 All,

 I was wondering what people thought of iSCSI and FreeBSD. Is it a
 viable option for creating SANs?

 I want to move away from tape backups, and have numerous production
 FreeBSD machines that I need to back up data from.

 Any other ideas for a disk to disk backup solution that people have used?

 Thanks,

 Justin

For disk-to-disk backup take a look at BackupPC (don't let the name fool
you it supports *nix clients).   The nice thing about BackupPC is it
does file pooling which saves *a lot* of space.

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


Re: HZ=1000 ?

2005-04-04 Thread John Pettitt


[EMAIL PROTECTED] wrote:


Interestingly, HZ=100 has remained constant for decades (!), despite
CPUs getting faster all the time. This is an excellent value for most
typical usage patterns. Cranking it up should only be required for
special cases. Anyway, the HZ knob is there. Experiment with it until
you get optimal performance.

  


  

In the dim and distant past (like 1983) some systems used HZ=50 or HZ=60
depending on where in the world they were.   I used an MP/M based box
that took it's clock tick from the power line (no good RTC hardware
available but the power company keeps pretty good time).

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


Re: syslog/postfix question

2005-03-30 Thread John Pettitt


Kurt Buff wrote:

 I've been perusing man syslog and man syslog.conf, and haven't gotten
 my mind quite wrapped around it yet.

 I have 4 FBSD 5.3 servers on my network, each running postfix 2.x. One
 is a mail gateway to our Exchange server, the others are just using
 postifx for mailing out the daily/weekly/monthly/security logs, while
 they perform their other duties.

 I want to have the normal logging (in this case /var/log/messages and
 /var/log/maillog) happen both locally and sent to a remote syslog server.

 I haven't yet modified syslog.conf on any of these machines.

 Am I correct in believing that all I have to do to make this happen is
 uncomment the line that says:

 #*.*@loghost

 and change @loghost to match my syslog server? That is, along with
 making sure that name resolution works correctly, of course.


On the sending end that's it.  On the receiving host you need to make
sure syslogd has the correct setting to receive the log packets.   There
are security upsides and downside to doing what you propose.

Upside: logs are on a different box - hopefully a secure one - so you
have a record of attacks against the other boxes.

Downside: log packets are unencrypted UDP so a black hat may be able to
sniff them and learn about system configuration.

In the end I think the upside wins.

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


Re: hyper threading.

2005-03-29 Thread John Pettitt


[EMAIL PROTECTED] wrote:


 The principles of modern controllers are surprisingly similar to those
 of old controllers.  The biggest change is that the PC world is only
 now discovering what mainframe designers knew 40 years ago.


PC Designers knew it 20 years ago.  When I designed the Specialix SI
serial boards (for 286/386 Xenix boxes) they had interrupt throttling
built in (circa 1986/7).  

John

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


How do I kill the console? (or how to make nullconsole work)

2005-03-29 Thread John Pettitt

I'm running 5.4 BETA1 on a soekris 4801 board.  The unit emulates a
console on a serial port.  I want to use the serial port for my GPS so I
want the console messages from BSD to go away - an in particular I want
BSD to ignore inbound data during the boot process.

So far:

I've used the regular mbr so that I don't get the disk prompt
I've added boot to loader.rc before the beastie call so that it
doesn't display the menu

Both these change work

However if I add boot.config with -n -m the system doesn't boot (and I
can't tell why because I have no messages!)
If I set console=nullconsole the system doesn't boot and again I can't
see why.

Does anybody have any wisdom on how to get nullconsole to work?

John



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


Re: openntpd UTC problem

2005-03-28 Thread John Pettitt


markzero wrote:

Has anybody had any luck with getting OpenNTPD (net/openntpd) to work
with anything other than UTC? I'm on GMT and recently we moved into
daylight savings. As OpenNTPD has decided that I'm on UTC, I'm now
an hour out (which is causing a few problems, as you can probably
guess).

Any help would be appreciated,
Mark
  


ntp (open and otherwise) only deals in UTC - the time the system shows
when you you type 'date' is a function of UTC and the timezone setting
for the system.  run sysinstall then select configure and timezone to
set the correct timezone from the menu. 

On another note openntp is not particularly accurate (if you can live
with +/- 100ms then fine otherwise use ntpd)


John


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


Re: ot: FWIW meaning? [Was: Re: FreeBSD 5.4-PRERELEASE: panic in ffs_valloc]

2005-03-26 Thread John Pettitt


Emanuel Strobl wrote:

Am Samstag, 26. März 2005 23:19 schrieb Gary Kline:
  

On Sat, Mar 26, 2005 at 10:16:57PM +, Gary Kline wrote:


[...]
  

Yours,
--
 Ed Schouten [EMAIL PROTECTED]
  

  This is a FWIW, but the same thing is happening with DMA



While I see this on questions@ - What does FWIW mean?

I think it's like for your information but I have never heard the real 
meaning.

Thanks,

-Harry
  

FWIW == For What It's Worth
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: hyper threading.

2005-03-26 Thread John Pettitt


Paul A. Hoadley wrote:

On Sat, Mar 26, 2005 at 11:45:21PM +0100, Anthony Atkielski wrote:

  

Where can I see the measurements?



Here are some measurements.  A few weeks ago I ran Unixbench 4.1.0
(/usr/ports/benchmarks/unixbench) on a P4 2.8GHz with and without
hyperthreading enabled.  I note a slight difference in the 10 minute
load average in favour of the uniprocessor run (0.00 vs 0.10 in the
hyperthreading run), though I doubt this alone could account for a 15%
difference in total score.


Uniprocessor run:
-
  BYTE UNIX Benchmarks (Version 4.1.0)
  System -- bigbird.logicsquad.net
  Start Benchmark Run: Sun Feb 20 08:23:08 CST 2005
   14 interactive users.
   8:23AM  up 3 days, 14:37, 14 users, load averages: 0.00, 0.00, 0.00
 [snip]
 =
 FINAL SCORE 270.4


Hyperthreading run:
---
  BYTE UNIX Benchmarks (Version 4.1.0)
  System -- bigbird.logicsquad.net
  Start Benchmark Run: Sun Feb 20 17:22:33 CST 2005
   2 interactive users.
   5:22PM  up 2 mins, 2 users, load averages: 0.31, 0.23, 0.10
 [snip]
 =
 FINAL SCORE 228.9
  

Notice the HT run had load on the box (0.31) when it started.  If you're
going to run benchmarks you need to start with a clean reboot before
each run and make sure all the background daemons have been killed and
and  the load is zero.

However even then this is not a good test of HT - the point of HT is to
improve throughput in multi thread workloads and the benchmark suite is
basically single thread.What would be more interesting would be to
run a test with a constant background load also running.In theory
the HT should do a better job of balancing the load between the
benchmark and the background than the BSD scheduler can on it's own.   I
don't have an HT box here or I'd try it but I'd love to know how it
comes out if somebody is up for it.



  

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


Re: hyper threading.

2005-03-26 Thread John Pettitt
Well you've proven than if you pick your benchmark you can get the
result you want.

So what that says it that the kernel network code doesn't get any
benefit from HT - given that HT is supposed to benefit diverse user
tasks  and no multiple copies of the same code this is not big news -
since you have a HT box how about running a less system code intensive
and more diverse  test?

John


[EMAIL PROTECTED] wrote:

 You can argue the technical theory all you want, but the
 measurements say otherwise.


 You guys have done it once again. Baited me into firing up a
 test that I already know the results of:

 Setup: Bridging em0 to em1
 Load: 500Kpps, 60 bytes
 3.4Ghz P4 1MB Cache

 FreeBSD 4.9 - Load: 38% (I put this in for fun :-)

 Freebsd 5.4-Pre UP (no HT) - Load: high 55-60% range

 FreeBSD 5.4-Pre SMP/HT - Load:  70-80% (much more jumping around)

 The bottom line is that if you don't test things to get real
 world results, you don't know crap.

 If that were true, then it would be equally true of systems with actual
 multiple physical processors.  In practice, multiple processors provide
 an obvious performance gain, and hyperthreading does, too, although 

 it's

 much more modest than the gain obtained from physically independent
 processors.


 this shows that you really are a bit foggy. Did you miss the part
 where with 2 processors you actually do have 2 processors?

 I can make an argument that networking with 1 processor on 5.4 is
 better than with 2. For example, with a test similar to the above, with
 2 phyiscal processors FreeBSD 5.4 will start dropping packets way before
 it hits 500Kpps unless you increase the interrrupts/second, which of
 course increases the system load. And even with the dropped packets
 (which should reduce the load because it doesnt have to receive
 and transmit the packet), the load is still higher than for 4.x with
 a single processor.

 You and many others regulary say things like SMP is obviously faster,
 or Opterons are noticably faster, but those statements are only true
 for certain applications. I've tested an Opteron 2.0Ghz against a 3.4Ghz
 P4, and the results are pretty interesting. For raw performance, ie
 interrupts/second handling, the P4 wins easily. The P4 wins out of the
 cache.  But once you grow out of the cache and get more memory
 intensive, the Opteron beats it handily.  So which is really faster? You
 could argue both depending on what benchmark you use. You
 have to test it in the environment where you plan to use it. Because
 the answer is almost never black and white.



 -Original Message-
 From: Anthony Atkielski [EMAIL PROTECTED]
 To: freebsd-questions@freebsd.org
 Sent: Sat, 26 Mar 2005 23:45:21 +0100
 Subject: Re: hyper threading.

 [EMAIL PROTECTED] writes:

 Yes, the theory is very nice; you've done a nice
 job reading Intel's marketing garb.


 I haven't read their marketing materials.  I'm simply going by the
 technical descriptions I've read of the architecture.

 However if you don't have a specific hyperthreading-aware scheduler
 and particularly well-written, threaded applications, you'll lose more
 than you'll gain.


 If that were true, then it would be equally true of systems with actual
 multiple physical processors.  In practice, multiple processors provide
 an obvious performance gain, and hyperthreading does, too, although it's
 much more modest than the gain obtained from physically independent
 processors.

 Since FreeBSDs network stack isn't particularly well threaded, nor is
 the scheduler optimized for hyperthreading, you get a big mess at the
 kernel level.


 Nothing needs to be specially optimized for hyperthreading.  All you
 need is at least two threads available for dispatch, with reasonably
 heterogenous instruction mixes that can use different parts of the
 processor hardware at the same time.  Real-world instruction mixes are
 often in this category in general-purpose operating systems.

 So if you have a nice application that does a lot of threaded math
 operations, you might think you've achieved something,


 Heavily math-oriented applications (or any group of applications that
 contains similar instruction mixes) are among the least likely to
 benefit from hyperthreading, because they will tend to use the same
 processor logic at the same time, effectively rendering hyperthreading
 moot.

 But what you've missed is that the overhead to manage
 the better utilization of the dual-pipelines created
 by HT costs more than it gains.


 Unless FreeBSD is very poorly written indeed, the gain from
 hyperthreading should still exceed the slight increase in overhead
 incurred by multiprocessing logic.

 Hence, the loss of performance.


 Where can I see this loss of performance documented?

 The poblem is not at the application level, but at the kernel level.
 The SMP overhead is so substantial, and the OS is working thinking it
 has 2 processors, that process switching and interrupt handling slow
 down 

Re: hyper threading.

2005-03-26 Thread John Pettitt
Hmm on my boxes the combined sys and intr cpu rarely goes over 20% -
most of the load is user space.   I'd venture that most people running
user space appllications will see similar numbers.  I agree tat a box
running as a router is not a good candidate for HT - that wasn't the
question.

John

[EMAIL PROTECTED] wrote:

 When you get your machine running without a kernel
 let me know. The kernel is the key to the O/S. If you
 don't need networking and don't have many interrupts,
 then it probably doesnt matter that much.



 -Original Message-
 From: John Pettitt [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Cc: freebsd-questions@freebsd.org
 Sent: Sat, 26 Mar 2005 17:23:40 -0800
 Subject: Re: hyper threading.

 Well you've proven than if you pick your benchmark you can get the
 result you want.

 So what that says it that the kernel network code doesn't get any
 benefit from HT - given that HT is supposed to benefit diverse user
 tasks  and no multiple copies of the same code this is not big news -
 since you have a HT box how about running a less system code intensive
 and more diverse  test?

 John


 [EMAIL PROTECTED] wrote:

 You can argue the technical theory all you want, but the
 measurements say otherwise.


 You guys have done it once again. Baited me into firing up a
 test that I already know the results of:

 Setup: Bridging em0 to em1
 Load: 500Kpps, 60 bytes
 3.4Ghz P4 1MB Cache

 FreeBSD 4.9 - Load: 38% (I put this in for fun :-)

 Freebsd 5.4-Pre UP (no HT) - Load: high 55-60% range

 FreeBSD 5.4-Pre SMP/HT - Load:  70-80% (much more jumping around)

 The bottom line is that if you don't test things to get real
 world results, you don't know crap.

 If that were true, then it would be equally true of systems with 

 actual

 multiple physical processors.  In practice, multiple processors 

 provide

 an obvious performance gain, and hyperthreading does, too, although


 it's

 much more modest than the gain obtained from physically independent
 processors.



 this shows that you really are a bit foggy. Did you miss the part
 where with 2 processors you actually do have 2 processors?

 I can make an argument that networking with 1 processor on 5.4 is
 better than with 2. For example, with a test similar to the above, 

 with

 2 phyiscal processors FreeBSD 5.4 will start dropping packets way 

 before

 it hits 500Kpps unless you increase the interrrupts/second, which of
 course increases the system load. And even with the dropped packets
 (which should reduce the load because it doesnt have to receive
 and transmit the packet), the load is still higher than for 4.x with
 a single processor.

 You and many others regulary say things like SMP is obviously 

 faster,

 or Opterons are noticably faster, but those statements are only true
 for certain applications. I've tested an Opteron 2.0Ghz against a 

 3.4Ghz

 P4, and the results are pretty interesting. For raw performance, ie
 interrupts/second handling, the P4 wins easily. The P4 wins out of the
 cache.  But once you grow out of the cache and get more memory
 intensive, the Opteron beats it handily.  So which is really faster? 

 You

 could argue both depending on what benchmark you use. You
 have to test it in the environment where you plan to use it. Because
 the answer is almost never black and white.



 -Original Message-
 From: Anthony Atkielski [EMAIL PROTECTED]
 To: freebsd-questions@freebsd.org
 Sent: Sat, 26 Mar 2005 23:45:21 +0100
 Subject: Re: hyper threading.

 [EMAIL PROTECTED] writes:

 Yes, the theory is very nice; you've done a nice
 job reading Intel's marketing garb.



 I haven't read their marketing materials.  I'm simply going by the
 technical descriptions I've read of the architecture.

 However if you don't have a specific hyperthreading-aware scheduler
 and particularly well-written, threaded applications, you'll lose 

 more

 than you'll gain.



 If that were true, then it would be equally true of systems with 

 actual

 multiple physical processors.  In practice, multiple processors 

 provide

 an obvious performance gain, and hyperthreading does, too, although 

 it's

 much more modest than the gain obtained from physically independent
 processors.

 Since FreeBSDs network stack isn't particularly well threaded, nor is
 the scheduler optimized for hyperthreading, you get a big mess at the
 kernel level.



 Nothing needs to be specially optimized for hyperthreading.  All you
 need is at least two threads available for dispatch, with reasonably
 heterogenous instruction mixes that can use different parts of the
 processor hardware at the same time.  Real-world instruction mixes are
 often in this category in general-purpose operating systems.

 So if you have a nice application that does a lot of threaded math
 operations, you might think you've achieved something,



 Heavily math-oriented applications (or any group of applications that
 contains similar instruction mixes) are among

Re: ifconfig

2005-03-22 Thread John Pettitt


Gert Cuykens wrote:

On Wed, 23 Mar 2005 02:27:02 +0200, Giorgos Keramidas
[EMAIL PROTECTED] wrote:
  

On 2005-03-23 01:07, Gert Cuykens [EMAIL PROTECTED] wrote:


How do you tell a device for example nv0 to be dhcp without using rc.conf ?
  

By manually calling the dhclient(8) utility.



Also how do you do a ipconfig /renew in freebsd ?
  

I don't know what an `ipconfig /renew' does, so no idea about this one.




thx dhclient works :) I now have inet 0.0.0.0

How do you tell nv0 to release and renew its dhcp adress ?
___

  


man dhclient

   The  client  normally  doesn't  release  the current lease as it
is not
   required by the DHCP protocol.  Some cable ISPs require  their 
clients
   to  notify  the  server if they wish to release an assigned IP
address.
   The -r flag explicitly releases the current lease, and once  the 
lease
   has been released, the client exits.

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


USB disk hang - 5.4PRE - gstripe

2005-03-18 Thread John Pettitt

I just upgraded a box to 5.4PRE and started experiencing regular system
hangs at exactly 1AM - I traced it to BackupPC which was starting it's
run at that time backing up to a gstripe set made from two 300GB USB disks.

The first thing I assumed was that something in Samba or perl didn't
like the 5.4 upgrade so I rebuilt my entire ports tree (portupgrade -fa)
to be sure I had no old libs.  It still fails.

Next I moved the two drives out of their USB housings and put them on
the IDE controller (disconnecting the CD burner to make space).  It's
working fine like that (all be it with disks hanging out the side of the
machine).

So it looks like USB is the culprit.  A few data points:

1) It worked fine on 5.3
2) Motherboard is an Intel D845GVSR with a Celeron D 2.9Ghz and 512Mb Ram
3) USB disk interfaces are from a couple of WD external drives (although
the drives are in fact Maxtor because I upgraded them WD boxes)
4) A single WD250GB disk also on USB seems to work fine  it's only the
stripe set that has a problem
5) When it fails the entire disk system locks (including IDE) but the
machines keeps running until each process locks as it needs to talk to
the disk
6) No meaningful syslog log entries

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


Re: FreeBSD 5.3+ Vinum or Gvinum

2005-03-16 Thread John Pettitt


Nick Pavlica wrote:

Andrea,
  I have started testing with gstripe and have had good results to
this point.  I'm still a little unclear about how to make my stripe
persistent after a reboot?  My server consists of three drives.  A
40GB drive that has the operating system and two 200Gb drives that I'm
using for the raid 0 volume.  I was also curious about a couple of
other things.
  

If you made the stripe using something like

gstripe label -v -s somenumber data /dev/mumble1 /dev/mumble2

then it will be persistent subject to gstripe being loaded in the kernel
- use gstripe load or build a kernel with options GEOM_STRIPE 

You see something like

GEOM_STRIPE: Device data2 created (id=889964967).
GEOM_STRIPE: Disk da0 attached to data2.
GEOM_LABEL: Label for provider da1 is ufs/data.
GEOM_STRIPE: Disk da2 attached to data2.
GEOM_STRIPE: Device data2 activated.

In the boot messages (device names will vary - I'm using two 300GB USB
drives)

- There is a .snap directory on the volume.  Is this used by gstripe?  
  

Nope that's a ufs2 thing

- I used newfs -O 2 to create a UFS2 file system on the volume.  Is
this treated like any other UFS2 volume that can utilize fsck, etc?
  

Yes - although you might want to specify a block size as the defaults
tend to assume lots of small files which is not always the case for very
large stripe sets.

- How resiliant is this volume if the system were to crash?
  

The same as any other volume except that you have twice the chance of a
hard drive failure which would be fatal to the volume.

--Thanks!
Nick

  


On Tue, 15 Mar 2005 23:48:39 +0100, Andrea Venturoli [EMAIL PROTECTED] wrote:
  

Nick Pavlica wrote:


All,
  I would like to set up a raid 0 volume on my 5.3 server using two
identical SATA drives.After reading through a number of documents
I noticed that there are two related utilities to do this, Vinum and
Gvinum.  Which utility should be used?  It's my understanding that
Gvinum is the most current and should be used on 5.3+?  Does the
hadbook refer to Vinum, Gvinum or both?
  

I'd reccomend you none of them; look here for detailed reasons:
http://people.freebsd.org/~rse/mirror/.
In brief, I've experienced severe panics with vinum after an upgrade
from 5.2.1 to 5.3 and gvinum is marked as alpha software and poorly
documented.
I'm quite happy with gmirror now, which the tutorial above describes.
You would use gstripe instead.

  bye
av.



___
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: Cutting down on ssh breakin attempts

2005-03-14 Thread John Pettitt


Kyle Jensen wrote:

Hi,

I run a webmail server for a small company, which
is (of course) running FreeBSD 5-stable.  I get about
50-100 failed loging attempts via ssh on a daily basis.

Occasionally, these show up in my daily security digest
with messages like:

reverse mapping checking getaddrinfo for h169-210-68-8.a
dcast.com.tw failed - POSSIBLE BREAKIN ATTEMPT!

But mostly it's stuff like

Illegal user postgres from 210.68.8.169

What's the best way to cut down on these attempts?
I thought about adding a blacklist to my pf.conf rules
for the pf firewall.

Any thoughts would be greatly appreciated!
Kyle

  

Four suggestions:
1) If you know where your valid ssh logins are going to come from filter
out everything else.
2) If you haven't already done so switch to public key authentication on
ssh and disable password logins (doesn't stop the attempts but gives
peace of mind that they are not going to work)
3) Move your sshd to a non standard port (will stop the scripts and
scanners but won't make any difference to a good blackhat)
4) Implement a port knocking strategy (to much hassle in my view but YMMV)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Backup of hd using DD.

2005-03-09 Thread John Pettitt


[EMAIL PROTECTED] wrote:

On Wed, Mar 09, 2005 at 05:13:30PM +, Thordur I. Bjornsson wrote:
  

Hello list.

I had an idea about using a tool similar to dd(1) take backup's of
entire disks. 

Here's my situation:
My father has an old PII running Win98 (Don't ask don't tell... he's
using very old financial software ;). Needless to say the thing keeps
getting borked and reinstall of his entire setup is quite frustrating.

Now I was wondering if I could simply set the thing up with all the
programs that he needs + drivers + anti viral c but minus the financial
software ofcourse and the rip the disk out of the machine put in my
workstation make an image of it and keep it safe and when the machine
goes borked I could simply rip the disk out again put it in my machine
and dd the image back onto the disk and restoring the good-image setup
(then I would restore his financial stuff with the most recent backup
(wich he keeps on a zip disk).

Now my questions are:
1) When I dd the image back onto the disk:
  What about the 'free' hd space ?
  What about the bootloader for Win98 ?
  The registry c ... ?



The bootloader, registry and all that are on the hard disk, so if you make an
image of the whole thing it'll all be preserved.  The only thing I can think
of that you won't be backing up is your BIOS configuration, but that's
probably OK.

As for free space... if you've got an 80GB hard disk and you image the whole
disk, you'll get an 80GB image, no matter how much free space was on it.  If
you want a more efficient way of doing things, I suppose you could put the
base system on a separate small slice, and just backup that slice...
but then you have to be careful to include the bootloader as well, which might
not be stored inside any slice.
  

If you zero the disk before you do the initial install of Win 98 (dd
if=/dev/zero of=/dev/(disk to zero) then all the freespace will be zero
blocks which will compress really well.

  

2) How do I make an image of the entire disk using dd(1) ?
  Or should I use some other software ?



dd if=/dev/{disk to backup} of=/path/to/new/image/file

where {disk to backup} is something like /dev/ad0 (for full disk) or
/dev/ad0s1 for slice 1, and /path/to/new/image/file is where you want to put
the image.

Use the option bs={some big number} to dd to make it a faster (man dd for
more info).
  


Make sure you use the raw disk device (/dev/adX) not a partition (/dev/adXsY) 
so that you get the bootloader.


John

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


Re: feedback on a good DNS server

2005-03-09 Thread John Pettitt


Paul Schmehl wrote:

 --On Wednesday, March 09, 2005 04:42:46 PM -0500 Ean Kingston
 [EMAIL PROTECTED] wrote:


 I am looking into setting up a DNS server on our network using an
 existing FreeBSD box. I have been looking around and reading comments
 on different DNS servers out their but everyone has mixed feelings. I
 know someone who uses BIND and is happy with it .. is their any reason
 why BIND wouldn't be a good choice? All i need is to have DNS running
 on a webserver so we can host our site internally...any feedback on
 this setup and/or DNS server is appreciated


 I belive Bind is still included with the base FreeBSD OS. I've used
 it in
 the past and never had any problems with it. As always, YMMV.


 If you're concerned about security, BIND has had a large number of
 security problems.  DJBDNS is in /usr/ports/dns/ and it's very easy to
 setup and very easy to use.  More responsive than BIND as well, and
 you don't have to figure out the esoteric syntax that BIND requires.

Has had being the operative phrase - that would be bind 4 and bind 8 -
bind 9 which is a rewrite has a pretty solid record - also in the ports
tree.

The argument against DJBDNS comes down to a) DJB annoys a lot of people
and b) some of those people thinkg DJBDNS is not standards compliant.   
This argument is about as accurate as the bind not secure argument -
they both may have a grain of truth in the past.

The DNS discussion is a lot like the Linux vs BSD discussion - it's a
religious issue (strongly held views not always supported by facts)

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


Re: Regarding Network Performance

2005-03-09 Thread John Pettitt


Bhaban Singh wrote:

I test the network performance in two system using iperf and netperf i
Gigabit LAN.
my system configuration is

node A : Intel Xeon Dual Processor (2.8 GHz) with 2 GB RAM
node B : Intel Pentium III Dual Processor (1.2 GHz) with 1 GB RAM

i get only 

552 Mbps (before implementing IPsec)
45.5 Mbps (after implementing IPSEC)

why the throughput is so low. please suggest me.

regards
bhaban
___

  

There could be a lot of reasons but I'd start with node B - what bus
does it have?  If you have your LAN card on a 32bit PCI bus it's going
to max at a theoretical 133MB/sec but in practice if you get half that
you're doing well (66MB/sec == 528Mbps).

Ditto on the ipsec- run 'systat -vmstat 1' on both boxes while you run
the test - I suspect your P box is totally swamped by the load of
encryption.

Also if you enable ipsec you lose the mpsafe network stack (at least on
5.3 release) so you take a performance hit there too.

John

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


Re: Size of FreeBSD

2005-03-08 Thread John Pettitt


Mark Goodell wrote:

Could you please tell me how big FreeBSD is, in terms
of both (1) the bare minimum needed to run
applications and (2) the typical installation.  How
many 1.44MB diskettes, for example.  

The point of my interest has to do with an old concern
about how the OS's (Microsoft's especially) have
become gargantuan in size.  

Thank you!

Mark Goodell, Richmond, VA.

  

Part of the answer to your question relates to the definition of
operating system  FreeBSD will boot from 2 floppies - thats how the
install works and if you were building an embedded  system without all
the normal utilities and user interface you could do so from a flash
card with ease.  If you want a real computer - with compilers, tools
UI and the like then you'll need a bigger box.   Some real world examples:

m0n0wall runs a bare bones FreeBSD from an 8MB flash card but suggests
64MB of RAM..

I have an old PIII/200 with a 4G disk and 64MB memory running FreeBSD
that runs my solar power system - it's total overkill the cpuload runs
about 2%.  However to compile some of the tools I wanted to use 64MB was
too small - the compiler was paging it it took forever.   If I wanted to
just run the solar power application I could probably run the whole
thing on a 486 class machine with 32mb ram and boot from a 32mb flash
card (but why buy a new box when you've got a 'free' old one?)

My home server / router / stratum one time server / firewall / fax
server / and every thing else server runs on a $350 eMachines box with a
2.9GHz Celeron and 512MB memory (oh and 2TB of disks :)

It comes down to what do you want to do, what application do you want to
run.   As they say - YMMV.

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


Re: Adding a 2nd disk without messing with the 1st

2005-03-08 Thread John Pettitt


Chris wrote:

I have a 5.3 system that has an 80 gig drive. I wish to add another to
it. What's the best (easiest) way to expand this with little to no
effect on the current drive.
  

shutdown machine, plug in disk, switch machine on. (if it's a USB disk
you can skip the on off part)

Seriously adding another drive should make no difference at all to your
existing drive.  Once the new drive is in you'll need to partition it
(man fdisk), label it (man bsdlabel) and decide where to mount it (man
mount). 

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


gmirror / gstripe

2005-03-06 Thread John Pettitt

I'm considering making a raid0+1 array out of 4 x 250GB USB drives using
gmirror and gstripe on a FreeBSD 5.3 box.

Questions:

1) Has anybody done this?  What should I watch our for?
2) Stripe then mirror right? (or mirror then stripe? Does it matter?)

(I already have a 600gb stripe set on this machine made out of two 300gb
drives)

John


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


Re: gmirror / gstripe

2005-03-06 Thread John Pettitt


Ean Kingston wrote:


 On Sunday, March 6, 2005, at 04:55  PM, John Pettitt wrote:


 I'm considering making a raid0+1 array out of 4 x 250GB USB drives using
 gmirror and gstripe on a FreeBSD 5.3 box.

 Questions:

 1) Has anybody done this?  What should I watch our for?


 I haven't done this on FreeBSD or with USB drives (but have on Solaris
 with SCSI). Make sure all your USB drives always show up as the same
 device (in /dev) or you may wind up corrupting your system.

geom labels take care of this - I already have three usb drives on this
box and they change device names if I re-plug them and gstripe copes
just fine.

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


Stable device names for USB disks?

2005-03-02 Thread John Pettitt

I seem to recall there was a neat trick involving GEOM to allow USB
disks to be mounted in the same place every time the system boots but I
can't find it.   Right now my system (5.3 RELEASE) seems to being a
random da? device for each drive that changes with every reboot -
clearly not a good situation.

Does anybody have a fix for this?


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


Re: Stable device names for USB disks?

2005-03-02 Thread John Pettitt


Dan Nelson wrote:

In the last episode (Mar 02), John Pettitt said:
  

I seem to recall there was a neat trick involving GEOM to allow USB
disks to be mounted in the same place every time the system boots but I
can't find it.   Right now my system (5.3 RELEASE) seems to being a
random da? device for each drive that changes with every reboot -
clearly not a good situation.

Does anybody have a fix for this?



Two options:  

- Wire your devices down (man scsi) so that your usb controller is
  always, say, scbus1, and target 0 off scbus1 is da1.  You may also
  have to wire down your boot controller and disk.

- Use geom_label, label your FAT32 or ufs filesystems, and always mount
  /dev/msdosfs/blah or /dev/ufs/blah
  


Very cool - I built a stripe set whihc is showing up fine a
/dev/stripe/data2 but I can't get a single volume to show up

I did tunefs -L data /dev/da1s1d - added GEOM_LABEL to the kernel
config, rebuilt and rebooted but no /dev/ufs appears - what am I missing?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]