Re: IPMI SOL setup on FreeBSD 9.1 amd64 supermicro X9SCM-F/X9CL-F

2013-01-24 Thread Derek Ragona

At 09:07 AM 1/23/2013, Anton Yuzhaninov wrote:

On Mon, 21 Jan 2013 22:52:17, Derek Ragona wrote:
DR I have a couple servers that are built using the supermicro 
X9SCM-F/X9CL-F

DR motherboards, and I can't quite get IPMI SOL working right.
DR
DR These motherboards have 3 NIC's.  One NIC is for a dedicated IPMI 
interface.

DR
DR I have both servers configured to use the dedicated IPMI NIC and these
DR NIC's are plugged into a separate unmanaged switch.
DR
DR Both systems boards are set to redirect com1.  I changed /etc/ttys to 
run a

DR getty on /dev/ttyu0.  I have com1 configured to 115,200 baud, 8, n, 1, no
DR flowcontrol in the BIOS.  I in have /etc/ttys:
DR ttyu0   /usr/libexec/getty std.115200 vt100   on secure

/etc/ttys:
ttyu1   /usr/libexec/getty std.115200 vt100   on  secure

/boot/loader.conf:
hint.uart.0.flags=0
hint.uart.1.flags=0x10
boot_serial=YES
boot_multicons=YES
comconsole_speed=115200
console=comconsole vidconsole


Anton,

Thanks for answering.

I thought:

/etc/ttys:
ttyu1   /usr/libexec/getty std.115200 vt100   on  secure


is for com2?

I also thought:
hint.uart.1.flags=0x10

Is for com2?

you said:
hint.uart.1.flags=0x10

Is that for for a serial only console?  I read in some posts, to use:
hint.uart.1.flags=0x30

for both a local console with a serial console.  I could not find much 
documentation on the uart or sio flags.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Fresh installation 9.1

2013-01-23 Thread Derek Ragona

At 08:30 AM 1/23/2013, Polytropon wrote:

On Wed, 23 Jan 2013 19:49:13 +0530, Hrisikesh sahu wrote:
 Hi All,
 I am facing a strange issue..
 I installed 9.1 release and installation went successful
  After boot up  i got this error -


 File system had an unexpected inconsistency.
  ufs : /dev/ada0s1d (/var)
 unknown error ; ! Help
 Error - Aborting Boot

 Going to single user mode.

 #


 Please help me if i need to do anything else.

It seems that the /var partition has not been unmounted
properly. Perform a manual file system check and retry.

The command

# fsck -yf /dev/ada0s1d

should be applied in single user mode, with /var being
unmounted.

To make sure file systems are clean _prior_ to booting
the system, put

background_fsck=NO

into /etc/rc.conf; this may lead to longer startup times
when something is strange regarding file systems, but
it will prevent you from booting into a possibly damaged
environment (which could cause more trouble and maybe even
data loss, which justifies the longer boot time in my
opinion).



I setup a number of servers with 9.1 and had the same issue.  I'm not sure 
why, all of the installation went with no errors.


I ended up with this in rc.conf:
fsck_y_enable=YES
background_fsck=NO
force_fsck=YES

After a few reboots I was able to take it out.

Also if you have this in /etc/rc.conf:
dumpdev=YES

It always does a dump even on reboot, which also marks the filesystems as 
dirty.



-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


IPMI SOL setup on FreeBSD 9.1 amd64 supermicro X9SCM-F/X9CL-F

2013-01-21 Thread Derek Ragona
I have a couple servers that are built using the supermicro X9SCM-F/X9CL-F 
motherboards, and I can't quite get IPMI SOL working right.


These motherboards have 3 NIC's.  One NIC is for a dedicated IPMI interface.

I have both servers configured to use the dedicated IPMI NIC and these 
NIC's are plugged into a separate unmanaged switch.


Both systems boards are set to redirect com1.  I changed /etc/ttys to run a 
getty on /dev/ttyu0.  I have com1 configured to 115,200 baud, 8, n, 1, no 
flowcontrol in the BIOS.  I in have /etc/ttys:

ttyu0   /usr/libexec/getty std.115200 vt100   on secure

Using one server, I start an IPMI SOL session to the other server.  But all 
I get is the IPMI SOL output, no login prompt.
If I reboot the server I am SOL connected to, I do see the BIOS boot 
messages, and even the initial FreeBSD boot prompt.  I can even make boot 
prompt changes from the SOL session.  Once boot starts the SOL gets no more 
output.


I looked at both servers and the one I am using to initiate the SOL has 
/dev/ipmi0 and ipmitool working fine.  On the server I am trying to connect 
to has /dev/ipmi1 and ipmitool errors:
Could not open device at /dev/ipmi0 or /dev/ipmi/0 or /dev/ipmidev/0: No 
such file or directory


These are identical motherboards.

I suspect that because the one system creates /dev/ipmi1 instead of 
/dev/ipmi0 may be why the SOL output stops right after the boot starts.


If I do:
ln -s /dev/ipmi1 /dev/ipmi0

ipmitool works fine, until the next reboot.

How can I get the one system to make /dev/ipmi0 instead of /dev/ipmi1?

In FreeBSD 9.1 do I use hint.uart instead of hint.sio in /boot/loader.conf?

Any help would be appreciated.


-Derek
derek at computinginnovations.com



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Virtualbox

2012-10-07 Thread Derek Ragona

At 10:49 PM 10/6/2012, Bernt Hansson wrote:

Hello list!

When I try to start a virtual os in virtualbox i get an error.

kldload vboxdrv.ko
kldload: can't load vboxdrv.ko: Exec format error

Rebuilt VB and still this error

8.2-STABLE FreeBSD 8.2-STABLE #0: Thu Jan 12 15:13:06 CET 2012
GENERIC amd64



Check /boot/loader.conf or use kldload to load the module manually.

kldstat will list the loaded modules.

-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: FreeBSD9 fails to install on HP Proliant (crash)

2012-06-03 Thread Derek Ragona

At 08:41 AM 5/31/2012, Ewald Jenisch wrote:


Hi,

I'm trying to install FreeBSD9 (64bit) on a HP Proliant server
(ProLiant DL385 G1). Installation is done via remote-management
(iLO) basically by mounting the Installation-ISO.

However a couple of seconds after booting the box crashes.

Here's what I tried already:

o) Re-download the installation ISO - same checksum - same result

o) Instead of booting directly I issued the following two commands
on the loader prompt:

set kern.eventtimer.periodic=1
set kern.eventtimer.timer=LAPIC

followed by boot

Neither of these helped.

To cross-check I tried booting of a FreeBSD 8 installation media - no
problems at all (besides that the machine is running FreeBSD8
currently without problems)


Any clue what could be wrong here and what I can do in order to make
this box boot from the installation media?

Thanks much in advance for your help,
-ewald




You can try the boot options on the boot menu to try with ACPI disabled.

I have experienced some crashes and some hangs when trying to boot 
different hardware via an ISO virtually mounted and also booting via USB key.


I believe the issues come down to timing issues, where in the boot process 
the kernel expects to have some required /tmp space on physical disk.  You 
may need to create a RAID volume you plan to use for the filesystems 
first.  Also check compatibility with your hardware.


While it can be a pain, to debug something like this, I have booted systems 
at data centers where I have a console connected and using a CD or DVD 
drive (external USB if no internal device is installed.)


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Firewall, blocking POP3

2012-06-03 Thread Derek Ragona

At 07:18 PM 5/30/2012, Robert Bonomi wrote:

 From jbiq...@intranet.com.mx  Wed May 30 13:48:05 2012
 Date: Wed, 30 May 2012 13:47:34 -0500
 To: Robert Bonomi bon...@mail.r-bonomi.com
 From: Jorge Biquez jbiq...@intranet.com.mx
 Subject: Re: Firewall, blocking POP3
 Cc: freebsd-questions@freebsd.org

 Hello.

 Thanks a lot!. Simple an elegant solution.

 I just did that and of course it worked I just was wondering...
 what if I need to have the service working BUT want to block those
 break attemps? IN this and other services. ?
 My guess is that it is a never ending process? I mean, block one,
 block another, another, etc?

If one knows the address-blocks that legitimate customers will be using,
one can block off access from 'everywhere else'.

 What the people who has big servers running for hosting services are
 doing? Or you just have a policy of strng passworrds, server
 up-todate and let the attemps to try forever?

There are tools like 'fail2ban' that can be used to lock out persistant
doorknob-rattlers.

Also, one can do things like allow mail access (POP, IMAP, 'whatever')
only via a port that is 'tunneled' through an SSH/SSL connection.

This eliminates almost all doorknob rattling on the mail access ports,
but gets lots of attempts on the SSH port.  Which is generally not a
problem, since the SSH keyspace is vastly larger, and more evenly
distributed, than that for plaintext passwords.

To eliminate virtually all the 'noise' from SSH doorknob-rattling, run
it on a non-standard port.  This does =not= increase the actual security
of the system, but it does greatly reduce the 'noise' in the logs -- so
any actual attack attempt is much more obvious.



You can use /etc/hosts.allow to list your friendly IP's allowed by 
protocol.  This provides an easy way to block all foreign users.  You can 
use wildcards in this file, so if you need to allow users in for POP access 
from an ISP, you can do that.


Also, if you do have wide array of addresses you need to let in, you may 
want to put the email services in a jail.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Swap files and panics

2012-05-30 Thread Derek Ragona

At 10:54 AM 5/29/2012, Warren Block wrote:
Recently I rearranged partitions on an SSD.  The swap partition was 
eliminated in favor of a swap file on /usr.  This works, allows TRIM 
support on the swap space, and is easier to resize than a partition.


However, sometimes the system panics on shutdown.  It happens after 
syncing disks, so the filesystems are fine, but it's disconcerting.


I suspect but haven't yet managed to prove that it's only when swap is not 
empty.  A race condition involving when the filesystems are unmounted?  Or 
should there be some code in /etc/rc.d/addswap to run swapoff before shutdown?


This is on a very recent 9-STABLE amd64, i5 2500K.

rc.conf:
swapfile=/usr/swap/swap



Did you remove the old swap file entry from /etc/fstab?

-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Cloud software ?

2012-05-25 Thread Derek Ragona

At 03:11 AM 5/25/2012, Frank Bonnet wrote:

Hello

I'm searching for a cloud software :-)

More precisely we would like to offer to our students and professors
a kind of private cloud to access/manipulate  their personnal data
from almost anywhere and with almost any devices ...
( Personnal PC, Mac, smartphones   and tablets ... etc )

Anyone could help ?
Thank you



Take a look at OpenStack
http://openstack.org/

The latest release which is Essex, includes a web based dashboard.  This is 
OpenSource, and definitely a work in progress but the Essex release should 
provide most of the cloud functionality.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: question about milter software

2012-05-25 Thread Derek Ragona

At 08:21 AM 5/25/2012, Wojciech Puchar wrote:
Does anyone know milter software (or maybe anything else) to add to 
sendmail that can rewrite outgoing mail and add HTML footer automatically?


Please do not tell me about how stupid HTML mail is at all - i know it, it 
is not my idea.


thanks



I have used milter with sendmail.  You can add an outgoing email footer. If 
you need more information, email me directly.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Cloud software ?

2012-05-25 Thread Derek Ragona

At 06:15 AM 5/25/2012, Frank Bonnet wrote:

On 05/25/2012 12:10 PM, Dennis Glatting wrote:

On Fri, 2012-05-25 at 10:11 +0200, Frank Bonnet wrote:

Hello

I'm searching for a cloud software :-)

More precisely we would like to offer to our students and professors
a kind of private cloud to access/manipulate  their personnal data
from almost anywhere and with almost any devices ...
( Personnal PC, Mac, smartphones   and tablets ... etc )

There is a couple of cheap ways of doing this. First, download the free
version of VMWare ESXi and partition your hardware. Another is to
install VirtualBox, a Type-2 HyperVisor.

Depending on what you consider a cloud, take a look at Hadoop. Hadoop
isn't partitioning hardware but Hadoop and the applications that run on
top of Hadoop can give you an interesting view of these technologies and
how they can be applied to cloudy data.

As for how to get data into/out-of the cloud, let me know how that
works. :)





Hi Dennis

Thank you for that info !
gonna investigate the hadoop way.





I have built and managed a couple large hadoop clusters.  Contact me 
directly for more information.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: problems with networking and route command

2012-05-19 Thread Derek Ragona

At 07:07 AM 5/18/2012, David Banning wrote:
  It is machines that connect and receive via DHCP 192.168.1.2 and 
above that

  can't connect to the internet though the server.  I don't know a whole
  lot about route - I have been attempting a variation of route commands
  without success.

 You need to implement NAT on this box, since 192.168.0.0/16 is an 
RFC-1918 unrouteable private network range.


I previously connected to the internet using ppp with the -nat option
and now my connection has changed - so that makes sense.

So I implemented natd.

Unfortunately natd does not work as yet.  I followed the setup as laid
out in man natd and also used the layout in;

http://www.freebsddiary.org/ipfw.php

Here is my natd setup

1. Compiled IPFIREWALL  IPDIVERT into my kernel - went fine.

Here is my rc.conf network related entries;

natd_enable=YES
natd_interface=rl0
natd_flags=-f /etc/natd.conf
gateway_enable=YES
ifconfig_rl0=inet 64.40.244.36 netmask 255.255.255.240
defaultrouter=64.40.244.33
ifconfig_vr0=DHCP
ifconfig_vr0=up
ifconfig_vr0=inet 192.168.1.1
network_interfaces=rl0 vr0 lo0
ifconfig_lo0=inet 127.0.0.1
firewall_enable=YES
firewall_script=/etc/firewall.rules
firewall_type=simple
firewall_logging=YES
dhcpd_ifaces=vr0
dhcpd_enable=YES

My firewall rules;

ipfw add 64000 allow ip from any to any
ipfw add divert natd all from any to any via rl0
ipfw add allow tcp from any to 192.168.2.1 139
ipfw add allow tcp from any to 192.168.1.1 139
ipfw add 6000 deny tcp from any to 64.40.244.36 139
ipfw add 6010 deny tcp from any to 64.40.244.36 445
ipfw add deny tcp from any to any 139

My /etc/natd.conf;

interface rl0
use_sockets yes
same_ports yes

My /etc/services includes the line;

natd 8668/divert  # Network Address Translation socket

Output of ifconfig;

# ifconfig
fwe0: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500
ether 02:11:d8:b3:0e:43
ch 1 dma -1
vr0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
inet 192.168.1.1 netmask 0xff00 broadcast 192.168.1.255
inet6 fe80::16d6:4dff:fe47:88ae%vr0 prefixlen 64 scopeid 0x2
ether 14:d6:4d:47:88:ae
media: Ethernet autoselect (100baseTX full-duplex)
status: active
rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
inet 64.40.244.36 netmask 0xfff0 broadcast 64.40.244.47
inet6 fe80::211:95ff:fe66:7162%rl0 prefixlen 64 scopeid 0x3
ether 00:11:95:66:71:62
media: Ethernet autoselect (100baseTX full-duplex)
status: active
lp0: flags=8810POINTOPOINT,SIMPLEX,MULTICAST mtu 1500
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
inet 127.0.0.1 netmask 0xff00
ppp0: flags=8010POINTOPOINT,MULTICAST mtu 1500
sl0: flags=c010POINTOPOINT,LINK2,MULTICAST mtu 552
faith0: flags=8002BROADCAST,MULTICAST mtu 1500

From my initial communication I have swapped the uses of the two network
cards - which explains the reversal of entries for devices vr0 and rl0.
Still I have server connection to the internet on rl0 and server
connection to the network on vr0 - but the network cannot connect
to the internet via rl0.

If there are any commands that would help collect information leading
to the answer I would appreciate any feedback.




Try using the examples here:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls-ipfw.html

That freebsddiary article is very old, and many versions ago.  Essentially 
you need to forward the packets from your NAT'd private interface over to 
the interface on the internet.


You can try this using an open firewall, sending all packets to test the 
setup.  Then add rules to lock it down to only the ports you want to allow.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: need help on installing bsd in virtual box

2012-04-27 Thread Derek Ragona

At 05:01 PM 4/27/2012, dhillon sandeep wrote:

Hi,
   I am struggling in installing the bsd in virtualbox
i am totally new to unix, but have previously installed
Ubuntu linux in my virtual box, i have dounloaded both the images bootonly 
and release iso, after creating the new virtual machine and starting it 
for first time and by selecting the iso image nothing is happening or 
getting installed in the virtual machine. I downloaded the iso images from 
your BSD website. Please let me know what i am doing wrong or what do i 
need to do to install bsd.



Thanks
Sandeep.



You need to be specific on which version of virtualbox you are using and 
which version of FreeBSD.  I have had no problem install FreeBSD in 
virtualbox, and in other virtual environments.  I use the disk1 iso and 
boot that which brings up the FreeBSD installer.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Hardware booting problem

2011-09-15 Thread Derek Ragona

At 03:34 AM 9/15/2011, Doug Hardie wrote:
I encountered a situation today that I do not understand.  This is a very 
old i386 PC that does not have a usable CD drive.  The existing drive uses 
a very funky SCSI connector that I have nothing for.  The system disk is 
SCSI and there was one additional PATA drive used for additional 
storage.  The PATA drive failed.  It won't even stick around in /dev for 
more than a couple minutes after boot and there are lots of messages about 
bad sectors.  The data is completely backed up and the that drive is over 
5 years old.


I removed the old drive and installed a new one.  System will not 
boot.  It hangs in the BIOS.  Never gets around to installing the SCSI 
BIOS.  My first guess was there was no boot sector on the SCSI 
drive.  That seems unusual since my other systems boot off the SCSI drives 
just fine.  This one used to also before I added the PATA drive.  However, 
if I put the dead drive back in along with the new one, then it 
boots.  This also implies that the boot sector was only on the PATA 
drive.  But the PATA drive is for all intents and purposes dead.  So how 
is it booting?  Is there any way to look into the SCSI drive and see if 
there is a boot sector there?


This is more a curiosity item as there are additional failures starting to 
occur in that computer.  We are going to replace it.  Its around 10 years old.


Depending on your SCSI card BIOS, some allow you to set which LUN it 
boots.  You may want to explore the SCSI settings, and try to set the new 
drive as the first boot device, then try removing the old drive.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: FreeBSD 8.0 retires into itself

2009-12-03 Thread Derek Ragona

At 04:28 AM 12/3/2009, Igor V. Ruzanov wrote:

Hello!

I have updated FreeBSD 8.0 sources via cvsup and compiled system. uname -a 
shows:


FreeBSD localhost 8.0-RELEASE FreeBSD 8.0-RELEASE #2: Mon Nov 30 20:15:12 
MSD 2009  r...@localhost:/usr/src/sys/i386/compile/HOME-PAE  i386


Machine has 3 physical interfaces:
- em0 (PCI/Intel PWLA 8390 MT)
- em1 (PCI/Intel PWLA 8390 MT)
- fxp0 (PCI/Intel EtherExpress PRO/100)

and 2 VLANs: vlan317 and vlan320.

Also there is one interface built in motherboard:
- ale0 (PCI-E/Atheros AR8121)

One physical interface (em0) is in trunk mode (802.1Q) to configure these 
two VLANs (vlan317 and vlan320) interfaces. Machine acts as BGP router. It 
has 3 uplinks:

- vlan317
- vlan320
- fxp0

and one backbone interface:
- em1.

Next, i recompiled all userland and made all necessary configurations 
after which the machine became as production BGP router installed in 
server room. So issue looks like the following:


After 20-30 minutes of stable work, the system starts to retire into 
itself: any user processes (bgpd, zebra, named) don't respond, For 
example a can't telnet to bgpd control terminal, telnet just dies showing:

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'

I even tried to login into system from local console. But when i pressed 
Enter after username was typed, the console just hang. Power button also 
doesn't respond (in usual case pressing on Power button gives the machine 
is going to power off). One interesting thing: after system was booted, 
top command shows:


system eats about 28-30% of CPU time
interrupts eat about only 6-7% of CPU time
all user processes eat less than 0-1% of CPU time

On another working machine (same BGP router, but system is FreeBSD 
7.0-STABLE p4) the picture seems to be different:


system etas 9-10% of CPU time
interrupts eat 15-16% of CPU time

So my question is the REASONS that cause such system behavior. I read 
UPDATING, so kernel in FreeBSD 8.0 RELEASE was largely reworked, in 
particular - SMPng in order to remove all non-MPSAFE driver's locks 
(netperf project). Are there new specific kernel config options to get 
better perfomance of network subsystem? Or should i set some sysctl variables?


My hardware:
- Motherboard: ASUS P5P43TD (with built in Gigabit LAN Atheros AR8121)
- Core 2 Quad CPU
- 4G RAM (2x2048)

kernel compiled with PAE support, ULE-scheduler, with PREEMPTION option.
If you need whole kernel config, please let me know, i will post it ASAP.


Thanks in advance!

+---+
! CANMOS ISP Network!
+---+
! Best regards  !
! Igor V. Ruzanov, network operational staff!
! e-Mail: ig...@canmos.ru   !
+---+



You need to check your network setups:
ifconfig -a

You can really only have one NIC on a single network.  With multiple NICs 
if they are on the same network, you will have arp issues causing routing 
issues.  You can easily check the arp table before and after you see this 
behavior doing:

arp -a
after a reboot, then after the system becomes unresponsive after 30-40 minutes.

Multiple NICs are necessary if you are using this system as a firewall or 
packet filter.


To narrow down your problem you may want to disable any NICs that are not 
necessary and see if the problem persists.


Hope this helps.

-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: FreeBSD 8.0 retires into itself

2009-12-03 Thread Derek Ragona

At 06:48 AM 12/3/2009, Igor V. Ruzanov wrote:

On Thu, 3 Dec 2009, Derek Ragona wrote:

|At 04:28 AM 12/3/2009, Igor V. Ruzanov wrote:
| Hello!
|
| I have updated FreeBSD 8.0 sources via cvsup and compiled system. uname -a
| shows:
|
| FreeBSD localhost 8.0-RELEASE FreeBSD 8.0-RELEASE #2: Mon Nov 30 
20:15:12 MSD

| 2009  r...@localhost:/usr/src/sys/i386/compile/HOME-PAE  i386
|
| Machine has 3 physical interfaces:
| - em0 (PCI/Intel PWLA 8390 MT)
| - em1 (PCI/Intel PWLA 8390 MT)
| - fxp0 (PCI/Intel EtherExpress PRO/100)
|
| and 2 VLANs: vlan317 and vlan320.
|
| Also there is one interface built in motherboard:
| - ale0 (PCI-E/Atheros AR8121)
|
| One physical interface (em0) is in trunk mode (802.1Q) to configure 
these two
| VLANs (vlan317 and vlan320) interfaces. Machine acts as BGP router. It 
has 3

| uplinks:
| - vlan317
| - vlan320
| - fxp0
|
| and one backbone interface:
| - em1.
|
| Next, i recompiled all userland and made all necessary configurations after
| which the machine became as production BGP router installed in server room.
| So issue looks like the following:
|
| After 20-30 minutes of stable work, the system starts to retire into
| itself: any user processes (bgpd, zebra, named) don't respond, For 
example a

| can't telnet to bgpd control terminal, telnet just dies showing:
| Trying 127.0.0.1...
| Connected to localhost.
| Escape character is '^]'
|
| I even tried to login into system from local console. But when i pressed
| Enter after username was typed, the console just hang. Power button also
| doesn't respond (in usual case pressing on Power button gives the 
machine is

| going to power off). One interesting thing: after system was booted, top
| command shows:
|
| system eats about 28-30% of CPU time
| interrupts eat about only 6-7% of CPU time
| all user processes eat less than 0-1% of CPU time
|
| On another working machine (same BGP router, but system is FreeBSD 
7.0-STABLE

| p4) the picture seems to be different:
|
| system etas 9-10% of CPU time
| interrupts eat 15-16% of CPU time
|
| So my question is the REASONS that cause such system behavior. I read
| UPDATING, so kernel in FreeBSD 8.0 RELEASE was largely reworked, in
| particular - SMPng in order to remove all non-MPSAFE driver's locks 
(netperf

| project). Are there new specific kernel config options to get better
| perfomance of network subsystem? Or should i set some sysctl variables?
|
| My hardware:
| - Motherboard: ASUS P5P43TD (with built in Gigabit LAN Atheros AR8121)
| - Core 2 Quad CPU
| - 4G RAM (2x2048)
|
| kernel compiled with PAE support, ULE-scheduler, with PREEMPTION option.
| If you need whole kernel config, please let me know, i will post it ASAP.
|
|

|You need to check your network setups:
|ifconfig -a
|
|You can really only have one NIC on a single network.  With multiple NICs if
|they are on the same network, you will have arp issues causing routing 
issues.

|You can easily check the arp table before and after you see this behavior
|doing:
|arp -a
|after a reboot, then after the system becomes unresponsive after 30-40 
minutes.

|
|Multiple NICs are necessary if you are using this system as a firewall or
|packet filter.
|
|To narrow down your problem you may want to disable any NICs that are not
|necessary and see if the problem persists.
|

Thank you for reply, Derek!

I have different non-overlapped subnets on used network interfaces.
Actually, my machine acts as a border rather than just a router. And it
needs several network interface cards (NICs) - one of them looks in my
network (my Autonomous System with my internal routing), and another ones
look to different ISPs with their own ASs. It gives possibility to make a
choice of more cheap route to any Internet resource.

By the way, when i tested just installed system under traffic load
generated with iperf tool, the system worked fine during several days.
Configuration was the same except only one NIC was under traffic load. And
similar tests with each NIC installed in my machine yielded the same good
results.


Since it seems tied to load, which NIC is causing the trouble?  I'd suspect 
the motherboard NIC.  I have used many Intel NICs without problems.  In 
multi-NIC servers I setup, I usually add a quad-port Intel card and don't 
use the motherboard NICs.


You may want to try using a different NIC in place of the onboard and see 
if the problem persists.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


how to remove HAL dependencies in gnome2

2009-12-01 Thread Derek Ragona
I source upgraded a server from 7.2 release to 8.0 release.  In trying to 
rebuild all the ports, HAL is broken and won't compile.  If I try to make 
config on most of those ports there is no HAL in the config.  How do I get 
rid of these dependencies so I can get the last of the ports 
rebuilt?  These ports all seem to be part of gnome2.





-Derek
derek at computinginnovations.com



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: how to remove HAL dependencies in gnome2

2009-12-01 Thread Derek Ragona

At 02:01 PM 12/1/2009, Mark Kane wrote:

On Tue, Dec 01, 2009, at 12:41:07 -0600, Derek Ragona wrote:
 I source upgraded a server from 7.2 release to 8.0 release.  In
 trying to rebuild all the ports, HAL is broken and won't compile.  If
 I try to make config on most of those ports there is no HAL in the
 config.  How do I get rid of these dependencies so I can get the last
 of the ports rebuilt?  These ports all seem to be part of gnome2.

Hi.

I'm not sure why it wasn't more clearly announced as being required
for the 8.0 upgrade specifically, however following the 20090309 entry
in /usr/ports/UPDATING (mainly removing the libusb port) should allow
HAL to build again.

Hope that helps,

-Mark



Thanks Mark for pointing this out.  I had read UPDATING and missed this 
reference.  I even searched through UPDATING for hal and hald 
references.  I'm glad it was something simple, as I have all the ports 
updated now.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: What does one call name server registration?

2009-07-16 Thread Derek Ragona

At 04:52 AM 7/15/2009, Michael David Crawford wrote:

Hi,

I'm having a problem making myself clear to my domain name registrar's 
tech support.


I have set up djbdns on a couple of my own servers, and want them 
registered AS name servers with whoever handles such registration.


Most registrars allow one to just enter their hostnames and IPs and they 
take care of it automagically.


But my once-beloved registrar HJ Linnen just outsourced all their 
registration services to NameScout, and they haven't got a clue.


When I looked into it in my account page at NameScout, they said to email 
tech support, so I did.


And tech support replied with the end-user instructions for assigning name 
servers to the domains one has registered with them.  That's not what I want.


What I have are two pairs in the following format:

  1.2.3.4 a.ns.example.com
  5.6.7.8 b.ns.example.com

I would like a domain to be able to set its name servers to be 
a.ns.example.com and b.ns.example.com, and then when that domain is 
resolved the lookup is delegated to either 1.2.3.4 or 5.6.7.8.


What is the process called, of registering such name servers?  If I can 
tell NameScout support to do that for me, possibly they can get themselves 
a clue on my behalf.


Thanks!

Mike
--
Michael David Crawford
m...@prgmr.com

   prgmr.com - We Don't Assume You Are Stupid.

  Xen-Powered Virtual Private Servers: http://prgmr.com/xen


Nameservers are designated PER domain.  You tell the registrar for a 
particular domain that your authoritative nameservers are at whatever fully 
qualified domain name and IP address.


Prior to doing this with your registrar you should have the domain zone 
file properly setup on those nameservers.


Hope this helps.

-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: FreeBSD on VMware ESXi

2009-05-09 Thread Derek Ragona

At 05:44 AM 5/6/2009, Daniels Vanags wrote:

We moved Hard Disk Drives from HP ProLiant DL 385 G2 with 4GB RAM, AMD
Opteron processor to HP ProLiant DL 380 G5, 4GB RAM, Intel Xeon
processor.

Disks contain FreeBSD Virtual Machines running in VMware ESXi Server.
When trying to boot, getting error: BTX halted.

Please explain, how to start FreeBSD on different hardware.

Thanks,











Daniel Vanags

Information Technology  Department

IT infrastructure system engineer


I'm not sure what exactly you've done from your posting above.  I have 
FreeBSD running in VM's under ESXi.  I have moved the FreeBSD VM's from 
physical server to server without much trouble.  The devices presented to 
the FreeBSD VM are dependent the VM configuration, so I would check there 
first.  You may have selected a different SCSI host adapter in the VM 
settings for instance.


I believe the problem you are experiencing is more to do with your ESXi/VM 
configuration than FreeBSD.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Snapshots

2009-05-08 Thread Derek Ragona

At 04:00 AM 5/5/2009, Johan Hendriks wrote:

Are there no more snapshots of current?
The last is from 02-2009


Regards,
Johan


I downloaded one from this month a couple days ago.  You should see a May 
snapshot available.


-Derek


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: isc-dhcpd server, HOSTNAME

2009-05-08 Thread Derek Ragona

At 09:42 AM 5/7/2009, Pieter Donche wrote:

FreeBSD7 with isc-dhcp30-server.
It hands out an IP address, OK,
but the BASH environment variable HOSTNAME is not set. Why?

(A DNS server is active on the network and can succesfully be queried from 
a FreeBSD bash command (nslookup or host) to see the hostname associated 
with the IP-address)


I have a later version of dhcpd running on FreeBSD without problems.  If 
your DHCP scope is setup correctly and your DHCP clients are getting 
settings that work, I'm not sure what is the problem you are 
experiencing.  You hostname variable can be set in the startup bash (or any 
other shell's startup scripts) scripts on login.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


cannot get FreeBSD 7.X to load on HP z400

2009-04-28 Thread Derek Ragona
I cannot get FreeBSD 7.X to load on an HP z400.  I have tried 7.1 i386 
release, 7.1 amd64 release, 7.2 amd64 RC2, 8.0 amd64 current.


In all versions the loader stops just after the message:
Trying to mount root from ufs:/dev/md0

I have tried to simplify the setup of this unit to a single SATA drive, and 
a single SATA CD/DVD drive.


I have tried various BIOS settings, turning on and off cores in the CPU, 
changing other IO setting, but still the install hangs.


The z400 has the IntelĀ® X58 Express chipset and a 4 core W3520 Xeon 
CPU.  This particular unit has 4GB RAM.  If I can get the amd64 version to 
load on it, I'd like to run it with more RAM.  But obviously the first 
hurdle is getting the OS to boot to sysinstall.


Any help would be appreciated.



-Derek
derek at computinginnovations.com


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Freebsd Built-in vacation program does not auto reply

2009-04-21 Thread Derek Ragona

At 08:16 PM 4/19/2009, lyd mc wrote:


Hi derek,

Correction on step 4, it should be:

\alydio.mc, |/usr/bin/vacation alydio.mc

thanks,

alyd


--- On Mon, 4/20/09, lyd mc alydi...@yahoo.com wrote:
From: lyd mc alydi...@yahoo.com
Subject: Re: Freebsd Built-in vacation program does not auto reply
To: Derek Ragona de...@computinginnovations.com
Cc: freebsd-questions@freebsd.org
Date: Monday, April 20, 2009, 9:07 AM

hi derek,

It is not also working on my sendmail.

May be I overlooked some steps?

step 1. login to user
# su alydio.mc

step 2. initialize vacation db
$ vacation -i

step 3. create .vacation.msg

 From: alydio...@mydomain.com
 Subject: I am on vacation
 Delivered-By-The-Graces-Of: The Vacation program
 Precedence: bulk

 I am on vacation until...

step 4. create .forward

\klyren, |/usr/bin/vacation klyren


sendmail log

Apr 20 08:21:08 MAIL sm-mta[18102]: n3K0L2Jl018092: to=|/usr/bin/vacation 
alydio.mc, ctladdr=alydio...@mydomain (1001/0), delay=00:00:05, 
xdelay=00:00:00, mailer=prog, pri=62458, dsn=2.0.0, stat=Sent


...nothing follows...

thanks
alydiomc


In the log entry above, I see:
ctladdr=alydio...@mydomain
I suspect this is NOT a deliverable address but that depends on how you 
have mydomain resolving.


Also you might want to try using a user account without a period in the 
name.  The period may be causing a silent parsing problem for sendmail and 
vacation.


-Derek




--- On Fri, 4/17/09, Derek Ragona
 de...@computinginnovations.com wrote:
From: Derek Ragona de...@computinginnovations.com
Subject: Re: Freebsd Built-in vacation program does not auto reply
To: alydi...@yahoo.com, Odhiambo Washington odhia...@gmail.com
Cc: Steve Bertrand st...@ibctech.ca, freebsd-questions@freebsd.org
Date: Friday, April 17, 2009, 9:51 PM



At 07:27 AM 4/17/2009, lyd mc wrote:

Thanks Odhiambo for your
time.


Actually i have a working vacation program  from freebsd ports
(/usr/ports/mail/vacation).


I only wondering why the freebsd base vacation behave differently



I still want freebsd base vacation... the one from ports is obsolete (as
per its maintainer website) and sometime i need to edit its makefile for
it to compile


Thanks again.






I think the base system vacation is the one that is part of
sendmail.  So using it with postfix as the MTA may be the
issue.  I have use the base vacation version flawlessly with
sendmail.


  -Derek










--- On Fri, 4/17/09,
Odhiambo Washington odhia...@gmail.com wrote:

From: Odhiambo Washington odhia...@gmail.com

Subject: Re: Freebsd Built-in vacation program does not auto reply

To: alydi...@yahoo.com

Cc: Steve Bertrand st...@ibctech.ca,
freebsd-questions@freebsd.org

Date: Friday, April 17, 2009, 8:10 PM





On Fri, Apr 17, 2009 at 2:47 PM, lyd mc alydi...@yahoo.com
wrote:




hi,


I don't know how to run it in debug mode


I already try this one.


#/usr/bin/vacation -d alydio.mc


but nothing happened... no logs in /var/log/message and /var/log/maillog
pertaining to vacation.




Okay. I think you need to look again at your MTA logs. Not being an
expert with Postfix, I am not sure I can help with it anyway.




--

Best regards,


Odhiambo WASHINGTON,

Nairobi,KE

+254733744121/+254722743223

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Clothes make the man.  Naked people have little or no
influence on society.


-- Mark Twain










___

freebsd-questions@freebsd.org mailing list

http://lists.freebsd.org/mailman/listinfo/freebsd-questions

To unsubscribe, send any mail to
freebsd-questions-unsubscr...@freebsd.org


--

This message has been scanned for viruses and

dangerous content by MailScanner, and is

believed to be clean.

--

This message has been scanned for viruses and

dangerous content by
MailScanner, and is

believed to be clean.







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

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: MailScanner sendmail

2009-04-17 Thread Derek Ragona

At 03:15 PM 4/15/2009, Bob Willcox wrote:

I asked this question in freebsd-ports (in a different way as I thought
maybe I could clarify the situation some by rewording it) the other day
and didn't receive any reply so I thought I try here this time.

I have a 7.2-prelease system that I am trying to get sendmail and
MailScanner running on and for some reason sendmail isn't listening on
*.smtp, though it is listening on localhost.smtp.

If I remove MailScanner from the mix and run sendmail in the
conventional way (with sendmail_enable=YES specified in /etc/rc.conf)
then things work as expected (except no MailScanner, of course).

I currently have a running 6.4-stable system that this new 7.2 system
is scheduled to replace that is using the same MailScanner and sendmail
configuration files and it is working ok (and has been for a long time).

I suspect that I'm simply missing some configuration option here that
I've overlooked or that may have changed between 6.4 and 7.2, but don't
really know where to look.

Any help or tips on things to do/check would be greatly appreciated.

Thanks,
Bob

--
Bob Willcox  The trouble with doing something right the first
b...@immure.com   time is that nobody appreciates how difficult it was.
Austin, TX -- unknown


Bob,


I have sendmail with mailscanner running on 7.1 release with no 
problems.  Do you have:

mta_type=sendmail
mailscanner_enable=YES
in your /etc/rc.conf?

I also have:
spamd_enable=YES
in my /etc/rc.conf

-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Freebsd Built-in vacation program does not auto reply

2009-04-17 Thread Derek Ragona

At 07:27 AM 4/17/2009, lyd mc wrote:

Thanks Odhiambo for your time.

Actually i have a working vacation program  from freebsd ports 
(/usr/ports/mail/vacation).


I only wondering why the freebsd base vacation behave differently

I still want freebsd base vacation... the one from ports is obsolete (as 
per its maintainer website) and sometime i need to edit its makefile for 
it to compile


Thanks again.




I think the base system vacation is the one that is part of sendmail.  So 
using it with postfix as the MTA may be the issue.  I have use the base 
vacation version flawlessly with sendmail.


-Derek







--- On Fri, 4/17/09, Odhiambo Washington odhia...@gmail.com wrote:
From: Odhiambo Washington odhia...@gmail.com
Subject: Re: Freebsd Built-in vacation program does not auto reply
To: alydi...@yahoo.com
Cc: Steve Bertrand st...@ibctech.ca, freebsd-questions@freebsd.org
Date: Friday, April 17, 2009, 8:10 PM



On Fri, Apr 17, 2009 at 2:47 PM, lyd mc alydi...@yahoo.com wrote:


hi,

I don't know how to run it in debug mode

I already try this one.

#/usr/bin/vacation -d alydio.mc

but nothing happened... no logs in /var/log/message and /var/log/maillog 
pertaining to vacation.



Okay. I think you need to look again at your MTA logs. Not being an expert 
with Postfix, I am not sure I can help with it anyway.



--
Best regards,

Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Clothes make the man.  Naked people have little or no influence on society.
   -- Mark Twain






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

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Advise on PCIX dual network card

2009-03-16 Thread Derek Ragona

At 03:28 AM 3/16/2009, Olivier Nicole wrote:

Hi,

I need to buy a PCI eXtended dual network card, any advise on what
brand is supported and work reliabily?

TIA,

Olivier


I use the intel PCI-X cards with multiple OS's.  They have 2 and 4 port 
versions.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Odd problem with DNS and IP change.

2009-03-01 Thread Derek Ragona

At 09:40 AM 2/28/2009, Andrei Brezan wrote:

Hello list,

I have a strange problem and I don't know what to relate it to. 
My ISP

changed my IP from (eg) 10.1.1.1 to 15.1.1.1. I have changed my zone
files to reflect that change.

dig -t mx domain.com results in mail.domain.com 3600 IN A 15.1.1.1
(the new ip). However when i try:

ping mail.domain.com it tries to get to 10.1.1.1 the old ip and gets
time to live exceeded fro an ip along the route. When i try to ping
domain.com it gets all ok as it pings the new ip. I've also tried dig
@(forwarders in named.conf) and they to got the correct mx dns entry for
domain.com.
In rc.conf i have hostname=mail.domain.com (eg), i haven't changed
it, i'm thinking it's something related to hostid or hostuid but i don't
know where to search for this topic.
If anyone has a clue what to try or where to look upon this behavior
please shed some light.

Thank you.



Check /etc/hosts which is used before DNS.

-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: two ethernet cards

2009-01-03 Thread Derek Ragona

At 06:21 PM 1/2/2009, Stefan Miklosovic wrote:

hi

i have two ethernet cards on my box

uname -a
FreeBSD dexter 7.0-RELEASE Freebsd 7.0-RELEASE #5: Fri Jan   2 21:25:21 CET
2009  r...@dexter:/usr/obj/usr/src/sys/DEXTER   i386

ifconfig
rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
options=8VLAN_MTU
ether XX:XX:XX:XX:XX:XX
inet 192.168.0.177 netmask 0xff00 broadcast 192.168.0.255
media: Ethernet 100baseTX
status: active
sk0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
options=bRXCSUM,TXCSUM,VLAN_MTU
ether XX:XX:XX:XX:XX:XX
inet 192.168.0.176 netmask 0xff00 broadcast 192.168.0.255
media: Ethernet 100baseTX (100baseTX full-duplex)
status: active
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff00

when I want to ping sk0 from eth0 on linux box, ping is ok, but this message
appears to me in freebsd console

Jan 3 01:07:39 dexter kernel: arp: 192.168.0.2 is on rl0 but got reply from
XX:XX:XX:XX:XX:XX on sk0

linux command
ping -I eth0 192.168.0.176

linux ifconfig

eth0  Link encap:Ethernet  HWaddr XX:XX:XX:XX:XX
  inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0
  inet6 addr: fe80::20a:e4ff:fef3:abb6/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:3 errors:0 dropped:0 overruns:0 frame:0
  TX packets:88 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:180 (180.0 B)  TX bytes:11542 (11.2 KB)
  Interrupt:22 Base address:0x3000

loLink encap:Local Loopback
  inet addr:127.0.0.1  Mask:255.0.0.0
  inet6 addr: ::1/128 Scope:Host
  UP LOOPBACK RUNNING  MTU:16436  Metric:1
  RX packets:416 errors:0 dropped:0 overruns:0 frame:0
  TX packets:416 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:25130 (24.5 KB)  TX bytes:25130 (24.5 KB)

wlan0 Link encap:Ethernet  HWaddr XX:XX:XX:XX:XX:XX
  inet addr:192.168.0.173  Bcast:192.168.0.255  Mask:255.255.255.0
  inet6 addr: fe80::214:a4ff:fe79:3cbc/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:30030 errors:0 dropped:0 overruns:0 frame:0
  TX packets:25399 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:32882410 (31.3 MB)  TX bytes:3522346 (3.3 MB)

mac adres from eth0 on linux machine is same as from the error output on bsd



thank you a lot

stewe


With two NIC's in the same system they need to be on separate and discrete 
subnets.  If these are put into a dumb switch, you will still get arp 
errors.  You need to connect each NIC to a separate network or VLAN.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: strange fsck results

2008-12-29 Thread Derek Ragona

At 06:08 AM 12/28/2008, re...@adeptscience.com wrote:

I am running VMware Server 2.0 but see the same results with
VMware Server 1.0.  The virtual machines are copies that I
made by transferring the vmware files for it from another server.
As far as I know it did not have any fsck problems on that machine
but I don't have access to it any more.  I have noticed that there
are a lot of failures (corrupted files) when moving VMware appliances with 
the

use of USB memory sticks so I do test them right on the memory
stick before I disconnect from the PC.

All the host OSs are Windows XP Professional using IDE ATA drives, current
hardware is an HP dx2450 AMD Phenom. but I saw the same errors on an Acer.

The files systems are:

# DeviceMountpoint  FStype  Options DumpPass#
/dev/ad0s1b noneswapsw  0   0
/dev/ad0s1a /   ufs rw  1   1
/dev/ad0s1e /usrufs rw  2   2
/dev/ad0s1d /varufs rw  2   2
/dev/acd0   /cdrom  cd9660  ro,noauto   0   0

Here is a bit from fsck of /var

hueysan_vm: {10} fsck /var
** /dev/ad0s1d (NO WRITE)
** Last Mounted on /var
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
UNREF FILE  I=190413  OWNER=root MODE=100644
SIZE=235 MTIME=Dec 27 12:23 2008
RECONNECT? no


CLEAR? no
...

I get about a dozen similar UNREF errors.


I am only worried about the errors if they might cause a problem
with the use of the virtual server as a development server.  I have
installed and have running apache, mysql, sendmail, samba,
rsync, etc and they all seem to work fine.  I am planning on
distributing copies of the virtual server to some others who are
working on a project with me so I really only need to be
fairly sure that no hidden gotchas are going to plague
our efforts.  Having the virtual server setup is a BIG plus
when collaborating with people who only have Windows
PCs, before I had a central FreeBSD server for testing
etc but that is so much slower then have a local development
server.  Being able to just send off a memory stick with the
VMserver and instructions is fantastic.


Thanks to all,
Charlie Reese


Charlie,

I have a number of FreeBSD servers 7.0 running under ESX server 3.5.  With 
FreeBSD 7, it has the background fsck.  I checked my servers and did see 
one  with an issue from fsck, but later the background fsck had it fixed.


The only issue I've had running the i386 version of FreeBSD, and other OS's 
under ESX is to be sure to use the vmware tools to copy the VM's once they 
are properly powered off.


You might want to try upgrading one of your VM FreeBSD servers to 7.0 and 
see if the issue persists.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: strange fsck results

2008-12-27 Thread Derek Ragona

At 12:37 PM 12/26/2008, re...@adeptscience.com wrote:

I am running FreeBSD 6.3 as a VMware virtual server and am getting some
strange results when I run fsck.  When I run it in multi-user mode I get
quite a few UNREF FILE errors but when I switch to single user mode
fsck does not find any errors.  Is this something I need to worry about
and if it is how might I try to get fsck to repair them?


TIA
Charlie Reese


You need to give a bit more information:  Are you running your VM under esx 
server or workstation?  What is your filesystem layout under freebsd.  What 
is the underlying server and disks you are running vmware on?


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: what script is whacking root's files

2008-12-08 Thread Derek Ragona

At 11:33 AM 12/4/2008, Giorgos Keramidas wrote:
On Thu, 04 Dec 2008 06:30:13 -0600, Derek Ragona 
[EMAIL PROTECTED] wrote:

 /root is on /dev/da0s1a

 This particular server is running in a VM on a vmware esx 3.5 server.
 The server runs fine, but every so often the dot files disappear for
 root.  I have not found the behavior to follow a reboot, but some period
 of time.  Hence my suspicions it was a periodic script.

Check your crontab jobs then.

  * Do you have any local changes to the system crontab in
`/etc/crontab'?  If yes, what are those changes, and what do the
scripts or other commands they run look like?

  * Do you have a user-specific crontab file for `root' in
`/var/cron/tabs/root'?  If yes what does it contain?

___


Thank you to everyone who made great suggestions.  I found the errant 
script, and it was running out of a cron entry to clean up old mailscanner 
files.  It seems if the directories in the script didn't all exist, and a 
cd failed, it left the script running in /root.  I have since corrected the 
script to test for the directories existence first.


But this was a case of can't see the forest for the trees and I do 
appreciate all the help and suggestions.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: what script is whacking root's files

2008-12-04 Thread Derek Ragona

At 01:11 AM 12/4/2008, Tim Judd wrote:

On Wed, Dec 3, 2008 at 7:44 PM, Kris Kennaway [EMAIL PROTECTED] wrote:

 Derek Ragona wrote:

 I have a freshly installed 7.0 release server.  The configuration files
 (all dot files including .ssh  etc.) in /root keep getting deleted.  I
 assume this is from a script running from periodic and can be set NOT to
 delete these files.  Can someone point me where I need to make this 
change.

  I have already combed through the handbook and mailing list archives.


 There is no such standard script in FreeBSD.

 Kris

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



I'd make sure there's not something like a tmpfs/mfs filesystem that /root
is being used on.  If / is on a ramdisk image of any kind, on each reboot,
it should disappear.

Perhaps you should paste your fstab and current mounted filesystems as an
aid to debug.


I didn't think it would be from the way the filesystems are mounted, so 
here's that information:


cat /etc/fstab
# DeviceMountpoint  FStype  Options DumpPass#
/dev/da0s1b noneswapsw  0   0
/dev/da0s1a /   ufs rw  1   1
/dev/da0s1d /usrufs rw  2   2
/dev/acd0   /cdrom  cd9660  ro,noauto   0   0

 mount
/dev/da0s1a on / (ufs, local)
devfs on /dev (devfs, local)
/dev/da0s1d on /usr (ufs, local, soft-updates)

/root is on /dev/da0s1a

This particular server is running in a VM on a vmware esx 3.5 server.  The 
server runs fine, but every so often the dot files disappear for root.  I 
have not found the behavior to follow a reboot, but some period of 
time.  Hence my suspicions it was a periodic script.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


what script is whacking root's files

2008-12-03 Thread Derek Ragona
I have a freshly installed 7.0 release server.  The configuration files 
(all dot files including .ssh  etc.) in /root keep getting deleted.  I 
assume this is from a script running from periodic and can be set NOT to 
delete these files.  Can someone point me where I need to make this 
change.  I have already combed through the handbook and mailing list archives.


Thanks,



-Derek
derek at computinginnovations.com



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: FreeBSD in VMWare box

2008-11-22 Thread Derek Ragona

At 06:57 AM 11/22/2008, Pieter Donche wrote:

If one installs FreeBSD 7.0 in a VMWare box, the answer/choicde for
'install boot manager' is this: Standard MBR ?

The PC with WMware is connect to internet. Should one configure
Ethernet then. If yes, what static IP parameters must one enter??


You need to be more specific.  Are you using ESX server or workstation?

As for the boot manager you can use it, or not.  Both work.

You can have the FreeBSD just use DHCP to get network settings.

-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Kernel SMB performance

2008-11-22 Thread Derek Ragona

At 09:08 AM 11/21/2008, Ansar Mohammed wrote:

Hello all

We are considering using an application that uses FreeBSD web servers in
front of Windows file servers. How reliable/scalable is the kernel SMB
module?


You may want to use FreeNAS which is made for NAS using FreeBSD.

-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: smbfs 2 GB file size limit

2008-11-22 Thread Derek Ragona

At 09:21 AM 11/20/2008, David Horn wrote:

On Thu, Nov 20, 2008 at 7:07 AM, Derek Ragona
[EMAIL PROTECTED] wrote:
 At 12:50 PM 11/18/2008, David Horn wrote:

 On Tue, Nov 18, 2008 at 7:06 AM, Derek Ragona
 [EMAIL PROTECTED] wrote:
 At 12:23 AM 11/18/2008, David Horn wrote:

 On Mon, Nov 17, 2008 at 8:36 PM, Derek Ragona
 [EMAIL PROTECTED] wrote:
 I have FreeBSD 7.0 Release and if I mount_smbfs  a network NTFS share I
 have
 a 2 GB size limit on files.  I checked the handbook and list archives but
 have not found a solution.

 I just ran a quick test, and was not able to reproduce this issue with
 the mount_smbfs from FreeBSD 7.0.  I tried against a Windows 2003
 Server SP2, Windows XP SP3, and Samba 3.0 {on FreeBSD 7} with a 3.5GB
 file.

 Was your issue with reading from or writing to a SMB share ?

 It was writing to a smb share.


 What is the server software and OS version ?
 (if Microsoft Windows, please include Service Pack number as well, as
 it might make a difference)

 Windows 2003 server 32bit.

 How much disk space is left on your server volume ?

 Over a terabyte free

 Are there disk quotas enabled on the server ?

 None

 What error message are you getting from your FreeBSD client (if any) ?

 No error message, it just stopped writing at 1 Gb.  I was doing this using
 scp.

 Whoa, hopefully you just made a few typos here, or we are going down
 the wrong path of investigation.

 Did you really mean to say scp or cp ?
  scp(1)   - secure copy (remote file copy program)
  cp(1)- copy files

 If you really meant scp, then the problem is not mount_smbfs, but
 instead likely a buggy scp client or server (which does not use smb
 for transport, but ssh)

 What is the exact byte count that your write stops at ?  You
 originally stated 2GB, then 1GB.


 Can you check the smb server logs and see if you are getting any error
 messages there ?

 Well I'm just mounting the volume to FreeBSD from the Windows server so
 not
 sure I'll find much in the logs besides the system log, but I will look.

 You may want to get a Wireshark trace and see if you can capture the
 SMB error message/error code.

 I have heard of people running into similar problems when running
 against older server software (NT 4.0/old samba) when the SMB session
 did not negotiate large file/large write support (a function of the
 SMB server capabilities session negotiation)

 I saw posts to that effect and that you needed samba 3.x to support large
 files sizes, and the lfs option.  But the mount_smbfs doesn't offer any
 large file option.


 Only bother with this next bit if you are morbidly curious as to how
 things work rather than just want to solve your problem, as it gets
 into the nitty gritty details of smb:

 mount_smbfs will allow for lfs (CAP_LARGE_FILE) automatically by
 specifying it's dialect capabilities in the smb negotiation.

 If you umount your smb share, then start a tcpdump you can capture the
 smb negotiation Capabilities bitmask to see if CAP_LARGE_FILE is
 being negotiated - the server specifies this capability.  The client
 just sends the dialects of smb supported.For example:

 tcpdump -vvv -s 1500 -i em0 host server.example.com | grep Capabilities

 {  where em0 is the network interface in use on FreeBSD and
 server.example.com is the hostname/ip address of your smb server  }

 Then do a mount of the smb share (while tcpdump is running) and you
 should capture the Capabilities negotiated.

 For example:

 Capabilities=0x1F3FD

 If you decode the bitmask by using this reference :
 http://msdn.microsoft.com/en-us/library/aa302230.aspx {hint:  only
 look at the last four bytes of the Capabilities line (e.g. F3FD in my
 example)} Or if you have kernel source installed, you can look in
 /usr/src/sys/netsmb/smb.h for the details.

- Capabilities: 0x0001F3FD
   RawMode:(...1) Supports
 SMB_COM_READ_RAW and SMB_COM_WRITE_RAW (CAP_RAW_MODE)
   MpxMode:(..0.) No
 Support for SMB_COM_READ_MPX or SMB_COM_WRITE_MPX (CAP_MPX_MODE)
   Unicode:(.1..) Supports
 Unicode Strings (CAP_UNICODE)
   LargeFiles: (1...) Supports
 large files with 64-bit offsets (CAP_LARGE_FILES)
   NTSMBs: (...1) Supports
 SMB NTLM 0.12 dialect commands (implies CAP_NT_FIND) (CAP_NT_SMBS)
   RPCRemoteAPIs:  (..1.) Supports
 remote API requests using RPC over named pipe connections
 (CAP_RPC_REMOTE_APIS)
   NTStatus:   (.1..) Can
 respond with 32-bit NT status codes in Status (CAP_NT_STATUS)
   LevelIIOplocks: (1...) Supports
 Level II oplocks ( CAP_LEVEL_II_OPLOCKS)
   LockAndRead:(...1) Supports
 SMB_COM_LOCK_AND_READ

Re: smbfs 2 GB file size limit

2008-11-21 Thread Derek Ragona

At 02:05 PM 11/20/2008, Chris Pratt wrote:


On Nov 20, 2008, at 7:21 AM, David Horn wrote:


On Thu, Nov 20, 2008 at 7:07 AM, Derek Ragona


No error message, it just stopped writing at 1 Gb.  I was doing
this using
scp.


Whoa, hopefully you just made a few typos here, or we are going down
the wrong path of investigation.

Did you really mean to say scp or cp ?
 scp(1)   - secure copy (remote file copy
program)
 cp(1)- copy files

...

What ssh version is running on both of these other systems ?
What OS are both of these other systems ?



So it looks to me like there is some issue with the scp that is
within
FreeBSD i386 7.


As per my previous message, I still suggest running single variable
tests to make sure that you know what is causing the failure, but if
you just want to jump to a possible solution, you can try updating ssh
to the latest in the ports tree (5.0p1).

If you have the FreeBSD ports collection installed and updated using
portsnap(8) or csup(1) , just do:

cd /usr/ports/security/openssh-portable
make install

Otherwise, install / update your ports collection using portsnap(8)
(fetch update or fetch extract) first, then install openssh-portable.

Good Luck.

---Dave


I apologize in advance if this has nothing to do with this. I'd ignored
this thread completely since it had SMB in the subject. Today I
noticed the comments shown above that it was apparently actually
related to ssh (scp). The fired a synapse of a recent session failure
I was having after updating a server to 7.0 that normally accrues
about a gig of changes a day. My backup server was running 5.5
and rsyncing the diffs each day. After the upgrade of the application
server, the 5.5 client began to hang it's rsync session every day. I
updated
the 5.5 server to 7.0 (which OBTW replaced the ssh suite) and the
problem disappeared. I didn't see in the thread what the actual ssh
client OS or rev was but perhaps the client is downrev and there is an
issue there. I did no research to figure out why, having my backup
server so far downrevved made it's upgrade my first potshot and it
worked.


Chris,

Thanks for the additional input.  I am going to try updating openssh from 
the ports as this appears to be an issue with scp.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: smbfs 2 GB file size limit

2008-11-20 Thread Derek Ragona

At 12:50 PM 11/18/2008, David Horn wrote:

On Tue, Nov 18, 2008 at 7:06 AM, Derek Ragona
[EMAIL PROTECTED] wrote:
 At 12:23 AM 11/18/2008, David Horn wrote:

 On Mon, Nov 17, 2008 at 8:36 PM, Derek Ragona
 [EMAIL PROTECTED] wrote:
 I have FreeBSD 7.0 Release and if I mount_smbfs  a network NTFS share I
 have
 a 2 GB size limit on files.  I checked the handbook and list archives but
 have not found a solution.

 I just ran a quick test, and was not able to reproduce this issue with
 the mount_smbfs from FreeBSD 7.0.  I tried against a Windows 2003
 Server SP2, Windows XP SP3, and Samba 3.0 {on FreeBSD 7} with a 3.5GB
 file.

 Was your issue with reading from or writing to a SMB share ?

 It was writing to a smb share.


 What is the server software and OS version ?
 (if Microsoft Windows, please include Service Pack number as well, as
 it might make a difference)

 Windows 2003 server 32bit.

 How much disk space is left on your server volume ?

 Over a terabyte free

 Are there disk quotas enabled on the server ?

 None

 What error message are you getting from your FreeBSD client (if any) ?

 No error message, it just stopped writing at 1 Gb.  I was doing this using
 scp.

Whoa, hopefully you just made a few typos here, or we are going down
the wrong path of investigation.

Did you really mean to say scp or cp ?
 scp(1)   - secure copy (remote file copy program)
 cp(1)- copy files

If you really meant scp, then the problem is not mount_smbfs, but
instead likely a buggy scp client or server (which does not use smb
for transport, but ssh)

What is the exact byte count that your write stops at ?  You
originally stated 2GB, then 1GB.


 Can you check the smb server logs and see if you are getting any error
 messages there ?

 Well I'm just mounting the volume to FreeBSD from the Windows server so not
 sure I'll find much in the logs besides the system log, but I will look.

 You may want to get a Wireshark trace and see if you can capture the
 SMB error message/error code.

 I have heard of people running into similar problems when running
 against older server software (NT 4.0/old samba) when the SMB session
 did not negotiate large file/large write support (a function of the
 SMB server capabilities session negotiation)

 I saw posts to that effect and that you needed samba 3.x to support large
 files sizes, and the lfs option.  But the mount_smbfs doesn't offer any
 large file option.


Only bother with this next bit if you are morbidly curious as to how
things work rather than just want to solve your problem, as it gets
into the nitty gritty details of smb:

mount_smbfs will allow for lfs (CAP_LARGE_FILE) automatically by
specifying it's dialect capabilities in the smb negotiation.

If you umount your smb share, then start a tcpdump you can capture the
smb negotiation Capabilities bitmask to see if CAP_LARGE_FILE is
being negotiated - the server specifies this capability.  The client
just sends the dialects of smb supported.For example:

tcpdump -vvv -s 1500 -i em0 host server.example.com | grep Capabilities

{  where em0 is the network interface in use on FreeBSD and
server.example.com is the hostname/ip address of your smb server  }

Then do a mount of the smb share (while tcpdump is running) and you
should capture the Capabilities negotiated.

For example:

Capabilities=0x1F3FD

If you decode the bitmask by using this reference :
http://msdn.microsoft.com/en-us/library/aa302230.aspx {hint:  only
look at the last four bytes of the Capabilities line (e.g. F3FD in my
example)} Or if you have kernel source installed, you can look in
/usr/src/sys/netsmb/smb.h for the details.

   - Capabilities: 0x0001F3FD
  RawMode:(...1) Supports
SMB_COM_READ_RAW and SMB_COM_WRITE_RAW (CAP_RAW_MODE)
  MpxMode:(..0.) No
Support for SMB_COM_READ_MPX or SMB_COM_WRITE_MPX (CAP_MPX_MODE)
  Unicode:(.1..) Supports
Unicode Strings (CAP_UNICODE)
  LargeFiles: (1...) Supports
large files with 64-bit offsets (CAP_LARGE_FILES)
  NTSMBs: (...1) Supports
SMB NTLM 0.12 dialect commands (implies CAP_NT_FIND) (CAP_NT_SMBS)
  RPCRemoteAPIs:  (..1.) Supports
remote API requests using RPC over named pipe connections
(CAP_RPC_REMOTE_APIS)
  NTStatus:   (.1..) Can
respond with 32-bit NT status codes in Status (CAP_NT_STATUS)
  LevelIIOplocks: (1...) Supports
Level II oplocks ( CAP_LEVEL_II_OPLOCKS)
  LockAndRead:(...1) Supports
SMB_COM_LOCK_AND_READ and SMB_COM_WRITE_AND_UNLOCK (CAP_LOCK_AND_READ)
  NtFind: (..1.) Supports
Windows NT information level requests (SMB_QUERY_?, SMB_SET_

Re: smbfs 2 GB file size limit

2008-11-19 Thread Derek Ragona

At 12:50 PM 11/18/2008, David Horn wrote:

On Tue, Nov 18, 2008 at 7:06 AM, Derek Ragona
[EMAIL PROTECTED] wrote:
 At 12:23 AM 11/18/2008, David Horn wrote:

 On Mon, Nov 17, 2008 at 8:36 PM, Derek Ragona
 [EMAIL PROTECTED] wrote:
 I have FreeBSD 7.0 Release and if I mount_smbfs  a network NTFS share I
 have
 a 2 GB size limit on files.  I checked the handbook and list archives but
 have not found a solution.

 I just ran a quick test, and was not able to reproduce this issue with
 the mount_smbfs from FreeBSD 7.0.  I tried against a Windows 2003
 Server SP2, Windows XP SP3, and Samba 3.0 {on FreeBSD 7} with a 3.5GB
 file.

 Was your issue with reading from or writing to a SMB share ?

 It was writing to a smb share.


 What is the server software and OS version ?
 (if Microsoft Windows, please include Service Pack number as well, as
 it might make a difference)

 Windows 2003 server 32bit.

 How much disk space is left on your server volume ?

 Over a terabyte free

 Are there disk quotas enabled on the server ?

 None

 What error message are you getting from your FreeBSD client (if any) ?

 No error message, it just stopped writing at 1 Gb.  I was doing this using
 scp.

Whoa, hopefully you just made a few typos here, or we are going down
the wrong path of investigation.

Did you really mean to say scp or cp ?
 scp(1)   - secure copy (remote file copy program)
 cp(1)- copy files

If you really meant scp, then the problem is not mount_smbfs, but
instead likely a buggy scp client or server (which does not use smb
for transport, but ssh)

What is the exact byte count that your write stops at ?  You
originally stated 2GB, then 1GB.


This problem occurs under the following scenario:

I have a windows share mounted on a FreeBSD 7.0 release (i386) using 
mount_smbfs.


I was trying to scp from another server on the LAN to this share a 30GB 
file.  The scp only copied 2 GB of that 30 GB file.   This was using the 
scp on FreeBSD 7.0.


I will try another scp application to determine if it is the scp, or 
mount_smbfs.


I know the server I was coping from via SCP is not an issue.  I was able to 
transfer that 30 GB file from that source server to another *nix server on 
the LAN.






 Can you check the smb server logs and see if you are getting any error
 messages there ?

 Well I'm just mounting the volume to FreeBSD from the Windows server so not
 sure I'll find much in the logs besides the system log, but I will look.

 You may want to get a Wireshark trace and see if you can capture the
 SMB error message/error code.

 I have heard of people running into similar problems when running
 against older server software (NT 4.0/old samba) when the SMB session
 did not negotiate large file/large write support (a function of the
 SMB server capabilities session negotiation)

 I saw posts to that effect and that you needed samba 3.x to support large
 files sizes, and the lfs option.  But the mount_smbfs doesn't offer any
 large file option.


Only bother with this next bit if you are morbidly curious as to how
things work rather than just want to solve your problem, as it gets
into the nitty gritty details of smb:

mount_smbfs will allow for lfs (CAP_LARGE_FILE) automatically by
specifying it's dialect capabilities in the smb negotiation.

If you umount your smb share, then start a tcpdump you can capture the
smb negotiation Capabilities bitmask to see if CAP_LARGE_FILE is
being negotiated - the server specifies this capability.  The client
just sends the dialects of smb supported.For example:

tcpdump -vvv -s 1500 -i em0 host server.example.com | grep Capabilities

{  where em0 is the network interface in use on FreeBSD and
server.example.com is the hostname/ip address of your smb server  }

Then do a mount of the smb share (while tcpdump is running) and you
should capture the Capabilities negotiated.

For example:

Capabilities=0x1F3FD

If you decode the bitmask by using this reference :
http://msdn.microsoft.com/en-us/library/aa302230.aspx {hint:  only
look at the last four bytes of the Capabilities line (e.g. F3FD in my
example)} Or if you have kernel source installed, you can look in
/usr/src/sys/netsmb/smb.h for the details.

   - Capabilities: 0x0001F3FD
  RawMode:(...1) Supports
SMB_COM_READ_RAW and SMB_COM_WRITE_RAW (CAP_RAW_MODE)
  MpxMode:(..0.) No
Support for SMB_COM_READ_MPX or SMB_COM_WRITE_MPX (CAP_MPX_MODE)
  Unicode:(.1..) Supports
Unicode Strings (CAP_UNICODE)
  LargeFiles: (1...) Supports
large files with 64-bit offsets (CAP_LARGE_FILES)
  NTSMBs: (...1) Supports
SMB NTLM 0.12 dialect commands (implies CAP_NT_FIND) (CAP_NT_SMBS)
  RPCRemoteAPIs:  (..1.) Supports
remote API requests using RPC over

Re: smbfs 2 GB file size limit

2008-11-18 Thread Derek Ragona

At 12:23 AM 11/18/2008, David Horn wrote:

On Mon, Nov 17, 2008 at 8:36 PM, Derek Ragona
[EMAIL PROTECTED] wrote:
 I have FreeBSD 7.0 Release and if I mount_smbfs  a network NTFS share I 
have

 a 2 GB size limit on files.  I checked the handbook and list archives but
 have not found a solution.

I just ran a quick test, and was not able to reproduce this issue with
the mount_smbfs from FreeBSD 7.0.  I tried against a Windows 2003
Server SP2, Windows XP SP3, and Samba 3.0 {on FreeBSD 7} with a 3.5GB
file.

Was your issue with reading from or writing to a SMB share ?


It was writing to a smb share.



What is the server software and OS version ?
(if Microsoft Windows, please include Service Pack number as well, as
it might make a difference)


Windows 2003 server 32bit.


How much disk space is left on your server volume ?


Over a terabyte free


Are there disk quotas enabled on the server ?


None


What error message are you getting from your FreeBSD client (if any) ?


No error message, it just stopped writing at 1 Gb.  I was doing this using scp.


Can you check the smb server logs and see if you are getting any error
messages there ?


Well I'm just mounting the volume to FreeBSD from the Windows server so not 
sure I'll find much in the logs besides the system log, but I will look.



You may want to get a Wireshark trace and see if you can capture the
SMB error message/error code.

I have heard of people running into similar problems when running
against older server software (NT 4.0/old samba) when the SMB session
did not negotiate large file/large write support (a function of the
SMB server capabilities session negotiation)


I saw posts to that effect and that you needed samba 3.x to support large 
files sizes, and the lfs option.  But the mount_smbfs doesn't offer any 
large file option.




  Supposedly there is an smbmount as part of the
 standard samba, but that doesn't seem to install from any of the samba
 ports.

smbmount is not included in the FreeBSD port of samba, as it is Linux
kernel specific.  mount_smbfs(8) is the correct userland app.

You could always try the samba smbclient(1) to access SMB shares using
an FTP-like environment.


I saw that as an option.  I may try that to test this issue.




 Any help would be appreciated.

Sorry I do not have a good solution for you.  Perhaps someone else
will give you better advice.


Thanks for the help!

-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


smbfs 2 GB file size limit

2008-11-17 Thread Derek Ragona
I have FreeBSD 7.0 Release and if I mount_smbfs  a network NTFS share I 
have a 2 GB size limit on files.  I checked the handbook and list archives 
but have not found a solution.  Supposedly there is an smbmount as part of 
the standard samba, but that doesn't seem to install from any of the samba 
ports.


Any help would be appreciated.


-Derek
derek at computinginnovations.com



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: High load - lost network

2008-11-10 Thread Derek Ragona

At 06:45 AM 11/10/2008, Christer Solskogen wrote:

I have a server with a em interface. Whenever the server has a high load
(compiling world for instance) the network connectivity is lost.

dmesg tells me this:
em0: link state changed to DOWN
em0: link state changed to UP
em0: link state changed to DOWN
em0: link state changed to UP
em0: link state changed to DOWN
em0: link state changed to UP
em0: link state changed to DOWN
em0: link state changed to UP
em0: link state changed to DOWN
em0: link state changed to UP

Do anyone have a tips for how to workaround this or is the server just junk?

The server is running FreeBSD 7.0 (i386) with latest patches from
freebsd-update.

--
chs


Check your switch and the wiring.  I use em drivers and hardware without 
issues.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Shutting down help

2008-10-24 Thread Derek Ragona

At 02:48 PM 10/23/2008, Juan Ortega wrote:

I'm using FreeBSD amd64  8-0-Current

I set up window maker to start by startx command,
but when I exit the window maker the screen just turns
black nothing works so I'm force to unplug the power each
time. This happens sometimes other times the terminal
shows up and I can shutdown manually. Since I'm using
a snapshot version of FreeBSD is this a bug?

I'm not sure what logs to copy and paste here for more information.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


Use:
ctrl+alt+backspace to kill your x server.  I suspect you have the wrong 
program starting in your startx.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Apache aliased directory invisible

2008-10-21 Thread Derek Ragona

At 10:16 PM 10/20/2008, David Karapetyan wrote:

FreeBSD office19.resnet.nd.edu 7.0-RELEASE-p5 FreeBSD 7.0-RELEASE-p5 #0:
Wed Oct  1 10:10:12 UTC 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386

Hello all. I would like to make aliased directories in apache visible
from the directory root. An example: When I visit http://myserver.com/,
I would like to see the 'icons' folder (suppose that in my document root
I have directories 'bobo' and 'gogo', but that /icons is actually an
alias for /usr/local/share/icons). Bobo and gogo show up in the
directoroy listing when I access http://myserver.com, but not /icons.
How can I remedy this?


add a symbolic link:

ln -s /usr/local/share/icons [path to your doc root]/icons

typically for apache22 this would be:

ln -s /usr/local/share/icons /usr/local/www/apache22/data/icons

-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: FreeBSD 7 and ESXi

2008-10-13 Thread Derek Ragona

At 10:54 PM 10/13/2008, [EMAIL PROTECTED] wrote:

Hi all,

I'm facing some problems trying to install a FreeBSD
7.0-RELEASE-amd64, on a Dell PE 2950III, dual Xeon Quad core, 8GB RAM.
After (FBSD) boot menu count down, it shows a dump of the CPU
registers and a message: BTX Halted. No matter what is changed in VM
setup.
It does not happen with i386 version.
Which is the best release to install in this box? Should I go
ahead with i386?

Thank you,

- Marcelo


I have multiple VM's running the i386 version under ESXi.  I think you need 
to examine what purpose you are running the FreeBSD VM, and then choose 
what version to run.  The amd64 64-bit version can address more resources, 
but if you are not going to dedicate those resources in excess of 32-bit to 
the VM, you don't need to run the 64-bit version.  Also there are a lot 
less ports in the 64-bit version.


-Derek




On Wed, 10 Sep 2008, Todor Genov wrote:

|I have ran FreeBSD 6.3 and 7.0 in ESXi and haven't bumped into any
|problems so far.
|
| When they say supported they are referring to service level
|agreements and technical support should something go wrong, so if you
|plan to use this in a production environment you need to do some prior
|testing on your own.
|
|Regards,
|
|Todor Genov
|Systems Operations
|
|Verizon Business South Africa (Pty) Ltd
|
|[EMAIL PROTECTED]
|Tel: +27 11 235 6500
|Fax: 086 692 0543
|
|
|
|[EMAIL PROTECTED] wrote:
| HI all,
|
| I'm planning to virtualize a FreeBSD server on a Dell PowerEdge with
| embedded hipervisor VMware ESXi 3.5.
| Fbsd isn't listed as supported as guest OS for ESX(i), since version
| 4.x.
| Is there any report about problems or impossibility doing that?
|
|
| - Marcelo
|
| ___
| 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]
|


- Marcelo

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

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Multiple NICs routing question

2008-10-09 Thread Derek Ragona

At 06:26 AM 10/9/2008, Konrad Heuer wrote:


Hello,

I've a server box with four NICs addressing different subnets:

NIC1:   one class c subnet of same class b network
NIC2:   another class c subnet of same class b network
NIC3:   local unrouted network
NIC4:   local unrouted network

In the current configuration I use a default gateway (and no routing 
daemon) in the subnet addressed by NIC1. Now of course, if a client in an 
arbitrary different class c subnet contacts the server using the ip 
address of NIC2, it gets a reply from NIC1.


How can I cange this? I'd like the server to answer via the interface the 
client uses when connecting.


Maybe that's a silly question, but thanks for any reply!

Best regards

Konrad Heuer
GWDG, Am Fassberg, 37077 Goettingen, Germany, [EMAIL PROTECTED]


You can have only one default gateway, that should be to where all other 
traffic should go.  Add static routes to your specific subnets, public or 
private for the routing of that traffic.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Running cron jobs as nobody

2008-10-03 Thread Derek Ragona

At 10:11 AM 10/2/2008, DAve wrote:

Good morning all,

We have a cronjob we need to run as nobody from /etc/crontab and it seems 
to be not working. The job runs, but not as user nobody.


I noticed two things,

1) the job to update the locate DB runs as nobody, because the script uses 
su to become nobody.

echo /usr/libexec/locate.updatedb | nice -5 su -fm nobody || rc=3

2) nobody, as expected, has no shell or home dir in /etc/password.

I searched around for an answer but didn't see anything concerning this 
other than a patch to cron to check if setuid fails.


Is setting the user to nobody in /etc/crontab not possible?

Thanks,

DAve


I've done this two different ways:
One is to use sudo and have your script su -  to nobody.  You will need to 
test your script first before trying it through cron.


Create a cronjob for nobody using:
crontab -e -u nobody

Hope this helps.

-Derek 
--

This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: PXE real life use

2008-10-01 Thread Derek Ragona

At 03:03 AM 10/1/2008, Chris Papageorgiou wrote:


Hello all,
I'd like to point a subject on PXE server usage on a daily basis such as a
service department.
Im thinking of developing such system to load OS's(not strictly *NIX)
installations through LAN than using a CD each time.
What would be the cons,pros to such system and what are the limits?

Looking forward for your replies.

Best regards,
Chris Papageorgiou


Chris,

Have you read the handbook on diskless clients?  That will give you some 
good background on the subject.


The reason to use diskless clients is simplified support, where you only 
need to update the diskless client boot to update all the clients that use 
that boot.


As for issues, bandwidth can be problematic, depending on the number of 
clients, and if they all boot at the same time.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: PXE real life use

2008-10-01 Thread Derek Ragona

At 02:04 PM 10/1/2008, Chris Papageorgiou wrote:


Dear Derek,
First Id like to thank you for your reply.
Yes I've read the handbook and lots of other technical articles on this
particular subject,
what concerns me is the overall 'worth' of this technique just to install
OS's on customer's computers through PXE and not by the traditional way.

Best Regards,
Chris


Chris,

This is best used  as a way to boot a client into an OS.  You can then 
control the OS used for these clients, AND have just one place to worry 
about updates.  It also gives you control on what applications you make 
available to the users.


While you can use PXE,, bootp, or tftp to provide a boot and then load an 
OS to a local drive, that is usually more trouble than it is worth.


-Derek





Derek Ragona wrote:

 At 03:03 AM 10/1/2008, Chris Papageorgiou wrote:

Hello all,
I'd like to point a subject on PXE server usage on a daily basis such as a
service department.
Im thinking of developing such system to load OS's(not strictly *NIX)
installations through LAN than using a CD each time.
What would be the cons,pros to such system and what are the limits?

Looking forward for your replies.

Best regards,
Chris Papageorgiou

 Chris,

 Have you read the handbook on diskless clients?  That will give you some
 good background on the subject.

 The reason to use diskless clients is simplified support, where you only
 need to update the diskless client boot to update all the clients that use
 that boot.

 As for issues, bandwidth can be problematic, depending on the number of
 clients, and if they all boot at the same time.

  -Derek

 --
 This message has been scanned for viruses and
 dangerous content by MailScanner, and is
 believed to be clean.

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



--
View this message in context: 
http://www.nabble.com/PXE-real-life-use-tp19756184p19767056.html

Sent from the freebsd-questions mailing list archive at Nabble.com.

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


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Who is anyone using for consulting or support?

2008-09-18 Thread Derek Ragona
I am working with a firm here in the Chicago area and they are interested 
in using FreeBSD, but would like to know of other outside support resources.


I have checked the links on the FreeBSD.org website but have not gotten 
much response from firms on that list, which seems to be out of date.


So if you know of a firm that offers support and consulting on FreeBSD in 
the continental US, please post back.


Thanks.


-Derek
[EMAIL PROTECTED]



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


problem using multiple monitors with gnome on FreeBSD 7

2008-09-10 Thread Derek Ragona
I did a new install of 7.0 on a system equipped with an nvidia 4 video port 
card with just two monitors attached.


Xorg --configure worked fine, and setup xorg.conf correctly for both 
monitors.


When I bring up X with gnome as root, both screens get used just 
fine.  However when I bring up X with gnome as a regular user only one 
screen is used.  So the problem appears permission related but I'm sure 
could be a configuration error as well.


So if anyone has any advise on how to fix this, or where to look, I'd 
appreciate any guidance.


Thanks,


-Derek
[EMAIL PROTECTED]



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Configure 2 gateways on a freebsd box for 2 interfaces

2008-09-10 Thread Derek Ragona

At 12:05 PM 9/10/2008, The Noob wrote:

Hello all,

I have a small question.
I have two interface in two vlans.
The first interface 192.168.0.1 255.255.255.0
The second interface: 10.228.44.1 255.255.255.0
The gateway for the first interface must be 192.168.0.254 and the second
interface must be 10.228.44.254
How can I configure them? In rc.conf we have just defaultrouter but we can't
specify the interface.
Thanks for your help
Best Regads
TheNoob


You can only have one default gateway by definition. You will need a static 
route to pass traffic from interface/subnet to the other.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Virtual machines hosted on FreeBSD 7

2008-09-09 Thread Derek Ragona

At 04:17 AM 9/9/2008, Albert Shih wrote:

 Le 08/09/2008 Ć  23:37:38-0400, Michael a Ć©crit


 Derek Ragona wrote:
  I have a FreeBSD 7 release I wanted to use as a host for virtual
  machines.  What software is anyone else using to host virtual machines
  under FreeBSD?
 
  I'd just like to here what has worked, or what has not worked.  I find
  it easier to find a solution asking for real world experiences.
 
  Thanks for your help.
 
 
 
  -Derek
  [EMAIL PROTECTED]
 
 
 
   In my honest opinion, there aren't many good ways of doing what I
 think you're wanting.
 VMware is a no go for now, or probably any time soon. I don't think
 virtualbox is running on freebsd yet. You could use jails, for just
 other freebsd installs, not really a VM so to speak.

Well, depend what's you going to do with virtual machine, but jail is
something very fine for apache/php server, databases etc... because you
don't slow down the I/O (like vmware did).

 bochs is crap for this purpose, simics doesn't run on it worth a crap
 either. If I were you, I would use something else. say a hypervisor
 running on bare hardware, ie: VMware ESX, or similar. I would say xen if
 it was ready, but I don't think it is.

And just for information VMware ESX is free now.


I  thought that the VMware ESX  is just a trial version that quits running 
after a few weeks.  But if I am wrong about that, let me know.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Virtual machines hosted on FreeBSD 7

2008-09-09 Thread Derek Ragona

At 12:27 AM 9/9/2008, Alain G. Fabry wrote:

On Mon, Sep 08, 2008 at 10:21:56PM -0500, Derek Ragona wrote:
 I have a FreeBSD 7 release I wanted to use as a host for virtual
 machines.  What software is anyone else using to host virtual machines
 under FreeBSD?


I use Qemu and run XP, Solaris, Gentoo, and FreeBSD as guests.
Speed is not super, but workable for me since it is just to play with.


Did you install qemu just from the ports?

-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Virtual machines hosted on FreeBSD 7

2008-09-08 Thread Derek Ragona
I have a FreeBSD 7 release I wanted to use as a host for virtual 
machines.  What software is anyone else using to host virtual machines 
under FreeBSD?


I'd just like to here what has worked, or what has not worked.  I find it 
easier to find a solution asking for real world experiences.


Thanks for your help.



-Derek
[EMAIL PROTECTED]



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: {Spam?} Re: Virtual machines hosted on FreeBSD 7

2008-09-08 Thread Derek Ragona

At 10:37 PM 9/8/2008, Michael wrote:



Derek Ragona wrote:
I have a FreeBSD 7 release I wanted to use as a host for virtual 
machines.  What software is anyone else using to host virtual machines 
under FreeBSD?


I'd just like to here what has worked, or what has not worked.  I find it 
easier to find a solution asking for real world experiences.


Thanks for your help.



-Derek
[EMAIL PROTECTED]


 In my honest opinion, there aren't many good ways of doing what I 
think you're wanting.
VMware is a no go for now, or probably any time soon. I don't think 
virtualbox is running on freebsd yet. You could use jails, for just other 
freebsd installs, not really a VM so to speak.
bochs is crap for this purpose, simics doesn't run on it worth a crap 
either. If I were you, I would use something else. say a hypervisor 
running on bare hardware, ie: VMware ESX, or similar. I would say xen if 
it was ready, but I don't think it is.


Cheers Mate,

Mike


Mike,

Thanks for the quick response.  I had seen that there are a lot of 
non-working virtual machine implementations.  It seems a shame that as well 
as FreeBSD runs there are no ways to run a VM on it.


-Derek


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Cron Question

2008-09-03 Thread Derek Ragona

At 10:45 AM 9/2/2008, ElihuJ wrote:


Hi all. I have a question about cron jobs that seem to be running to long or
with multiple copies of itself. For example, I have a backup script that I
run that seems to make multiple copies of itself. If I view the running
processes I see numerous instances of the same cron job. Is there something
I can do to limit this from happening? When it does, it drains my CPU and
some of my other processes are non responsive. Any help would be
appreciated. Thank you.
--
View this message in context: 
http://www.nabble.com/Cron-Question-tp19272656p19272656.html

Sent from the freebsd-questions mailing list archive at Nabble.com.


For longer running jobs I do a couple things.  I use a file to be sure only 
one instance is running, but I also add signal handling.  The following is 
written for ksh, but can be adapted to sh if needed:


=
#!/usr/local/bin/ksh
# uncomment the following line for debugging
#set -x


RUNNING_FILE=RUNNING_FILE=/tmp/my_cronjob_running
LOGFILE=LOGFILE=/tmp/my_cronjob.log
[EMAIL PROTECTED]
MAIL=/usr/bin/mail
TOUCH=/usr/bin/touch
RM=/bin/rm


# Print an epilog string and clear the RUNNING_FILE
function epilog {
  echo We are all done scanning.  $LOGFILE
$MAIL -s MyCronjob Report $SENDTO  $LOGFILE
if [ -f $RUNNING_FILE ]; then
$RM $RUNNING_FILE;
fi
}

function got_signal {
  echo Got a signal  $LOGFILE
  epilog
  exit
}


# Here pointers to signal handling subroutines are set
trap got_signal TERM HUP INT QUIT

if [ -f $RUNNING_FILE ]; then
echo mycronjob is already running
else
$TOUCH $RUNNING_FILE
$RM $LOGFILE
$TOUCH $LOGFILE
#   add your job to be done here . . .
#
epilog
fi

=


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

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: /etc/hosts

2008-09-02 Thread Derek Ragona

At 08:53 PM 9/1/2008, Tom Marchand wrote:

I am trying to resolve the 192.168.2.3 address.

::1 localhost.local localhost
127.0.0.1   localhost.local localhost
72.15.233.132   host.local host
72.15.233.132   host.local.
192.168.2.3 test

On Sep 1, 2008, at 8:10 PM, Glenn Sieb wrote:


Tom Marchand said the following on 9/1/08 7:52 PM:

Hi,

I've got an issue where hosts defined in my /etc/hosts are not being
resolved.  I've looked at resolv.conf, host.conf and nsswitch.conf
and
everything looks ok.  It's my understanding that with the below
configurations, /etc/hosts should be used first then DNS.  Correct?
This is a 6.1 system.


Can we see your /etc/hosts file?

Best,
--Glenn


What error are you getting from ping?

Is it not able to ping the ip 192.168.2.3?
Or is the ping unable to route to that network and host?

-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: nvidia 32bit driver

2008-09-01 Thread Derek Ragona

At 03:59 PM 9/1/2008, DĆ”nielisz LĆ”szlĆ³ wrote:

Hello!


I just install my new FreeBSD7.0 system, everything its up tu date, but 
when I try to install /usr/ports/x11/nvidia-driver I always got the 
following error message:


===  Building for nvidia-driver-173.14.12
=== src (all)
/usr/share/mk/bsd.kmod.mk, line 12: can't find kernel source tree
*** Error code 1

Stop in /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-173.14.12.
*** Error code 1

Stop in /usr/ports/x11/nvidia-driver.
*** Error code 1

Stop in /usr/ports/x11/nvidia-driver.


Do you have any idea what the problem could be?




Do you have the full source tree?  Check that /usr/src is properly populated.

-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: /etc/hosts

2008-09-01 Thread Derek Ragona

At 06:52 PM 9/1/2008, Tom Marchand wrote:

Hi,

I've got an issue where hosts defined in my /etc/hosts are not being
resolved.  I've looked at resolv.conf, host.conf and nsswitch.conf and
everything looks ok.  It's my understanding that with the below
configurations, /etc/hosts should be used first then DNS.  Correct?
This is a 6.1 system.

host# cat resolv.conf
local   domain
nameserver  x.x.x.x

cat host.conf
# Auto-generated from nsswitch.conf, do not edit
hosts
dns


host# cat nsswitch.conf
group: compat
group_compat: nis
hosts: files dns
networks: files
passwd: compat
passwd_compat: nis
shells: files


Check your /etc/rc.conf and look that the correct IP and hostname are set 
in there.  You may have a typo.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: space char shell script problem

2008-08-24 Thread Derek Ragona

At 05:19 AM 8/23/2008, David Banning wrote:

I am running into a problem with the space character in filenames.
For instance, If I want to run the script;

for x in `ls`
do
  echo $x
done

then filenames that have a space in them ie: john smith.jpg
are processed by my script as two names, john and smith.jpg.

What is the best way to deal with this type of space problem in the shell?

I know that file names in quotes solves some problems but I can't tranfer
that to my script.


Depending on what your script is doing, I would use an intermediate file 
and awk.


Something like:
ls /tmp/mytempfile
cat /tmp/mytempfile | awk '{ print $0 }'

if you are looking for something special add grep to the mix:
cat /tmp/mytempfile | awk '{ print $0 }'|grep -i [some name pattern]
rm /tmp/mytempfile

You can save the results to another temporary file for more processing, or 
use awk more to create commandlines to execute in another script file such as:
cat /tmp/mytempfile | awk '{ print $0 }'|grep -i [some name pattern] | awk 
'{printfcp %s /backup/backupdir\n, $0)}' /tmp/mycopyscript


chmod +x /tmp/mycopyscript
/tmp/mycopyscript

So depending on what your original script was doing, this method may work 
for you.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: MTA advice ??

2008-08-24 Thread Derek Ragona

At 01:06 PM 8/24/2008, pete wrote:

I have a hosted domain that recently changed their mail filtering. I
am not happy with the new setup and am considering setting up my own.
Looking for tips on setting up something on my freeBSD 6.1 box.

My ISP is cablevision IO. Not sure what they allow, ie: whether I can
have my hosted domain set to use my cable IP as a MTA, or if I have to
do some kind of end run around cablevision to get a MTA set up locally.

Also looking for advice on which software would serve me bet in this instance.

TIA

Pete C


You will need either a static IP, or subscribe to a service that will 
update your DNS entry as your IP changes.  I prefer to use a static IP, but 
you need to see if your ISP will give you one.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: OT: Clamd error

2008-08-21 Thread Derek Ragona

At 11:17 AM 8/21/2008, Jean-Paul Natola wrote:

Hi all,

Sorry for cross-posting but it seams that the members from the other list
went on vacation- and I'm in a jam

I run  exim 4.69 clamav .93 and spamassassin on a freebsd box  - basically it
gets my smtp traffic, checks for spam virus etc,, then forwards it to my
mailserver-

Suddenly last night it stopped working , I check the paniclog and all I see
is

2008-08-21 09:44:26 1KWASY-EF-PB malware acl condition: clamd: unable to
connect to UNIX socket /var/run/clamav/clamd (No such file or directory)
2008-08-21 09:44:34 1KWASh-EZ-Pq malware acl condition: clamd: unable to
connect to UNIX socket /var/run/clamav/clamd (No such file or directory)
2008-08-21 09:45:09 1KWARf-EG-En malware acl condition: clamd: unable to
connect to UNIX socket /var/run/clamav/clamd (No such file or directory)
2008-08-21 09:45:38 1KWATZ-EG-9e malware acl condition: clamd: unable to
connect to UNIX socket /var/run/clamav/clamd (No such file or directory)

I unistalled clamav
make deinstall

Then  make clean

Then make install clean


And I still get the same errors- the weird part is that when I do top
clamd IS running-

22089 clamav  1   40 62132K 61616K accept   0:00  0.00% clamd

Any help would be greatly appreciated as im rerouting my mail now- and
getting bombarded with spam


Thx


If restarting the clam services doesn't fix this, edit your conf files and 
make sure you have the same names for the socket file.


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


Re: sendmail secondary server routing to alternate port

2008-08-19 Thread Derek Ragona

At 12:16 PM 8/19/2008, Derrick Ryalls wrote:

Greetings,

I recently had to rebuild my brother's all in one box to get a SATA
controller working.  It is now running 7.0 release and was previously
using courier and the mail system.  With this rebuild, I have switched
him over to sendmail and most things are working, but I discovered a
small issue with sendmail that I am having trouble working out.  As
well as being his own primary email server, he acts as secondary for a
couple of my domains, the tricky part is my ISP shut off port 25
access to me (no, I am not a spammer) so I use port 587 for handling
mail.  With courier, I was able to specify specific ports to
communicate with on a per domain basis.  For example, if I was
relaying for example.org on port 2345, I would specify
example.org:2345 and that is the port it would use to talk to
example.org.

Now that I have switched to sendmail, I don't see a way to set the
destination port on a per domain basis, only on an all or nothing
basis.  Am I missing some piece of the documentation or is this an
actual limitation of sendmail?


If you do nothing special, sendmail will handle both ports 587 and 25.

-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: RES: RES: Very Slow Samba

2008-08-17 Thread Derek Ragona

At 09:37 AM 8/15/2008, Mauro Ribeiro - Class Consultoria e Assessoria wrote:

Hi Derek,

I didn't have any Intel boards here for spare, but i Found a HP PCI-Express
1x Giga Ethernet here.

It's a broadcom chipset, I did replace the card but still with the same
problem. I also did a very deep research in google and found more people
with the same problem and everyone of them without a solution.

I guess that it's a issue between Samba and FreeBSD. I do say that 'cuz on
Linux+Samba (Debian Kernel+Samba.deb) this issue does not appear.

Anyway, If you have another idea.

BTW, this box was the same box that used to run Windows 2003 with SQL
Server.

Thank you for the support.

Best Regards,
Mauro Ribeiro


Mauro,

I'd look at your samba configuration and DNS configuration.  If you have 
samba running on another *NIX OS faster I'd compare the samba, 
authentication, and dns configurations.


I'd still suggest you buy a new intel ethernet.  These are not expensive 
and I know they work well under any load.


For a test, you could also try FreeNAS instead of FreeBSD+Samba.  It is 
essentially the same but all packaged for file sharing.


-Derek




-Mensagem original-
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Em nome de Derek Ragona
Enviada em: quinta-feira, 14 de agosto de 2008 17:39
Para: Mauro Ribeiro - Class Consultoria e Assessoria;
freebsd-questions@freebsd.org
Assunto: Re: RES: Very Slow Samba

At 03:22 PM 8/14/2008, Mauro Ribeiro - Class Consultoria e Assessoria wrote:
Hi Derek,

I don't use authentication on this server, no internet connection. Only 1
share and on this share everyone must have write permissions.

re0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500

options=399bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_UCA
S
T,WOL_MCAST,WOL_MAGIC
 ether 00:e0:4c:10:c9:75
 inet 192.168.0.254 netmask 0xff00 broadcast 192.168.0.255
 media: Ethernet autoselect (1000baseTX full-duplex)
 status: active

It's a realtek gigabit pci card. 8169 chipset.

First thing I'd do is replace the realtek.  They are terrible especially
under any load.  Replace with a gigabit card from intel.  Then see how it
works.

 -Derek



-Mensagem original-
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Em nome de Derek Ragona
Enviada em: quinta-feira, 14 de agosto de 2008 14:17
Para: Mauro Ribeiro - Class Consultoria e Assessoria;
freebsd-questions@freebsd.org
Assunto: Re: Very Slow Samba

At 10:21 AM 8/14/2008, Mauro Ribeiro - Class Consultoria e Assessoria
wrote:
 Hi All,
 
 
 
 I had migrated a Windows 2003 Server to a Samba Server (only for file
share)
 
 
 
 We share only the company system. That's a 3mb Delphi .exe and a 1,5mb
 libmysql.dll.
 
 
 
 BTW, the system loads 4 .jpg files from the server.
 
 
 
 On our old Windows Server the system was very fast on Samba is damn slow.
 About 2 mins to load.
 
 
 
 I have no clue on what to do.
 
 
 
 Server Specs: Pentium 4 3.0Ghz 1GB RAM, FreeBSD 7.0-STABLE and Samba
 3.0.28a.
 
 
 
 Here's is my smb.conf
 
 
 
 [global]
 
 workgroup = CLASS
 
 server string = Class Data Server
 
 security = share
 
 hosts allow = 192.168.0.
 
 load printers = yes
 
 printing = cups
 
 log file = /var/log/samba/log.%m
 
 max log size = 150
 
 socket options = TCP_NODELAY
 
 interfaces = 192.168.0.0/24
 
 dns proxy = no
 
 veto oplock files = /*.exe/*.dll/*.jpg/*.pdf/*.gif/
 
 oplock break wait time = 1
 
 debug level = 10
 
 
 
 [Class]
 
  Comment = Class
 
  Browseable = Yes
 
  Writeable = Yes
 
  Force User = root
 
  create mask = 0777
 
  path = /dados/samba/Class
 
  Guest ok = Yes
 
  fake oplocks = yes
 
 
 
 
 
 Best Regards,
 
 Mauro Ribeiro
 
 

What network card is in this server?

What are you using for authentication?

  -Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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

__ NOD32 3351 (20080813) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com


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

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions

{Disarmed} Re: {Spam?} {Disarmed} Re: Sendmail email delays

2008-08-17 Thread Derek Ragona

At 07:49 PM 8/15/2008, Tom Stuart wrote:
I have tried doing the forwarding via /etc/mail/aliases and it worked 
identically as it was with the /root/.forward. The mail does go through 
but gets delayed 5+ minutes, however when I send mail interactively using 
mailx or mail commands the receiving mailserver receives the message instantly.


I'd also like to add that if I restart sendmail via /etc/rc.d/sendmail 
restart the mail gets instantly received also...Thanks for the help thus far


Check your sendmail options in /etc/rc.conf and if you don't have any 
there, check the defaults.  Usually you are running two versions of 
sendmail.  Check the sendmail flags you are using for something like 
-q5m.  If you see this, try changing the value and see if that effects your 
delivery time.


-Derek



On Fri, Aug 15, 2008 at 6:22 PM, Derek Ragona 
mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote:

At 03:49 PM 8/15/2008, Tom Stuart wrote:

I've been having trouble sending email that was sent via a process(swatch).
I can send emails fine via command-line and receive immediately to the
forwarded address. However when sent via swatch it can take 5-10 minutes.
These entries appear in /var/log/mailllog. Note this is all relating to the
same email and notice the 11 minute delay. Thanks in advance for any help.

Aug 15 14:35:12 firewall-1 sendmail[72747]: m7FKZCXf072747: from=username,
size=155, class=0, nrcpts=1, msgid=
mailto:[EMAIL PROTECTED][EMAIL PROTECTED], 
[EMAIL PROTECTED]

ocalhost
Aug 15 14:35:12 firewall-1 sendmail[72747]: m7FKZCXf072747: to=root,
delay=00:00:00, mailer=relay, pri=30155, stat=queued
Aug 15 14:43:18 firewall-1 sendmail[72762]: m7FKhHx8072762: from=username,
size=0, class=0, nrcpts=0, [EMAIL PROTECTED]
Aug 15 14:46:03 firewall-1 sm-mta[72794]: m7FKk3wc072794: from=
mailto:[EMAIL PROTECTED][EMAIL PROTECTED], 
size=512, class=0, nrcpts=1, msgid=
mailto:[EMAIL PROTECTED][EMAIL PROTECTED], 
proto=ESMTP,
daemon=Daemon0, relay=localhost [http://127.0.0.1MailScanner warning: 
numerical links are often malicious:http://127.0.0.1 127.0.0.1]

Aug 15 14:46:03 firewall-1 sm-msp-queue[72793]: m7FKZCXf072747: to=root,
ctladdr=username (1001/1001), delay=00:10:51, xdelay=00:00:00, mailer=relay,
pri=120155, relay=[http://127.0.0.1MailScanner warning: numerical 
links are often malicious:http://127.0.0.1 127.0.0.1
] [http://127.0.0.1MailScanner warning: numerical links are often 
malicious:http://127.0.0.1 127.0.0.1], dsn=2.0.0, stat=Sent 
(m7FKk3wc072794 Message accepted for

delivery)
Aug 15 14:46:03 firewall-1 sm-mta[72795]: m7FKk3wc072794: to=
mailto:[EMAIL PROTECTED][EMAIL PROTECTED], 
ctladdr=mailto:[EMAIL PROTECTED][EMAIL PROTECTED] 
 (1001/1001),

delay=00:00:00, xdelay=00:0
0:00, mailer=relay, pri=30809, relay=http://smtp.xxx.comsmtp.xxx.com. 
[http://10.0.0.2MailScanner warning: numerical links are often 
malicious:http://10.0.0.2 10.0.0.2], dsn=2.0.0,
stat=Sent ( 
mailto:[EMAIL PROTECTED][EMAIL PROTECTED] 
Queued mail for

delivery)


I think its important to know these details:
firewall-1# uname -a
FreeBSD http://firewall-1.xxx.comfirewall-1.xxx.com 7.0-RC1 FreeBSD 
7.0-RC1 #2: Tue Feb  5 07:10:05

MST 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/FIREWALL-1  i386

There is a .forward file in /root to forward root's mail to
[EMAIL PROTECTED] is to be sent via smarthost.


I have the smarthost DS parameter in 
/etc/mail/http://sendmail.cfsendmail.cf configured to

use http://DSsmtp.xxx.comDSsmtp.xxx.com

/etc/hosts contains
localhost http://127.0.0.1MailScanner warning: numerical 
links are often malicious:http://127.0.0.1 127.0.0.1 firewall-1 
http://firewall-1.xxx.comfirewall-1.xxx.com
http://smtp.xxx.comsmtp.xxx.com http://10.0.0.2MailScanner 
warning: numerical links are often malicious:http://10.0.0.2 10.0.0.2


Have you tried changing the alias for root to the forwarded address in 
/etc/mail/aliases?  You can make the change there and rebuild the aliases file.


-Derek

--
This message has been scanned for viruses and
dangerous content by http://www.mailscanner.info/MailScanner, and is
believed to be clean.



--
This message has been scanned for viruses and
dangerous content by http://www.mailscanner.info/MailScanner, and is
believed to be clean.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


{Disarmed} Re: best website for used thinkpads?

2008-08-17 Thread Derek Ragona

At 05:06 PM 8/16/2008, Gary Kline wrote:


It's time to think about replacing my old 600E that died last
March with a faster (Mhz = 1.8 || Mz = 2.2 ), and drop in a
large drive and max out the RAM.  I'm already begun googling
around, but figured that the ThinkPad folks here might have a
preferred website.

Any favorite?

tia,

gary


lenova sells refurbished ones from their website.

-Derek






--
 Gary Kline  [EMAIL PROTECTED]  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org


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

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Sendmail email delays

2008-08-15 Thread Derek Ragona

At 03:49 PM 8/15/2008, Tom Stuart wrote:

I've been having trouble sending email that was sent via a process(swatch).
I can send emails fine via command-line and receive immediately to the
forwarded address. However when sent via swatch it can take 5-10 minutes.
These entries appear in /var/log/mailllog. Note this is all relating to the
same email and notice the 11 minute delay. Thanks in advance for any help.

Aug 15 14:35:12 firewall-1 sendmail[72747]: m7FKZCXf072747: from=username,
size=155, class=0, nrcpts=1, msgid=
[EMAIL PROTECTED], [EMAIL PROTECTED]
ocalhost
Aug 15 14:35:12 firewall-1 sendmail[72747]: m7FKZCXf072747: to=root,
delay=00:00:00, mailer=relay, pri=30155, stat=queued
Aug 15 14:43:18 firewall-1 sendmail[72762]: m7FKhHx8072762: from=username,
size=0, class=0, nrcpts=0, [EMAIL PROTECTED]
Aug 15 14:46:03 firewall-1 sm-mta[72794]: m7FKk3wc072794: from=
[EMAIL PROTECTED], size=512, class=0, nrcpts=1, msgid=
[EMAIL PROTECTED], proto=ESMTP,
daemon=Daemon0, relay=localhost [127.0.0.1]
Aug 15 14:46:03 firewall-1 sm-msp-queue[72793]: m7FKZCXf072747: to=root,
ctladdr=username (1001/1001), delay=00:10:51, xdelay=00:00:00, mailer=relay,
pri=120155, relay=[127.0.0.1
] [127.0.0.1], dsn=2.0.0, stat=Sent (m7FKk3wc072794 Message accepted for
delivery)
Aug 15 14:46:03 firewall-1 sm-mta[72795]: m7FKk3wc072794: to=
[EMAIL PROTECTED], ctladdr=[EMAIL PROTECTED] (1001/1001),
delay=00:00:00, xdelay=00:0
0:00, mailer=relay, pri=30809, relay=smtp.xxx.com. [10.0.0.2], dsn=2.0.0,
stat=Sent ( [EMAIL PROTECTED] Queued mail for
delivery)


I think its important to know these details:
firewall-1# uname -a
FreeBSD firewall-1.xxx.com 7.0-RC1 FreeBSD 7.0-RC1 #2: Tue Feb  5 07:10:05
MST 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/FIREWALL-1  i386

There is a .forward file in /root to forward root's mail to
[EMAIL PROTECTED] is to be sent via smarthost.

I have the smarthost DS parameter in /etc/mail/sendmail.cf configured to
use DSsmtp.xxx.com

/etc/hosts contains
localhost 127.0.0.1 firewall-1 firewall-1.xxx.com
smtp.xxx.com 10.0.0.2


Have you tried changing the alias for root to the forwarded address in 
/etc/mail/aliases?  You can make the change there and rebuild the aliases file.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Very Slow Samba

2008-08-14 Thread Derek Ragona

At 10:21 AM 8/14/2008, Mauro Ribeiro - Class Consultoria e Assessoria wrote:

Hi All,



I had migrated a Windows 2003 Server to a Samba Server (only for file share)



We share only the company system. That's a 3mb Delphi .exe and a 1,5mb
libmysql.dll.



BTW, the system loads 4 .jpg files from the server.



On our old Windows Server the system was very fast on Samba is damn slow.
About 2 mins to load.



I have no clue on what to do.



Server Specs: Pentium 4 3.0Ghz 1GB RAM, FreeBSD 7.0-STABLE and Samba
3.0.28a.



Here's is my smb.conf



[global]

   workgroup = CLASS

   server string = Class Data Server

   security = share

   hosts allow = 192.168.0.

   load printers = yes

   printing = cups

   log file = /var/log/samba/log.%m

   max log size = 150

   socket options = TCP_NODELAY

   interfaces = 192.168.0.0/24

   dns proxy = no

   veto oplock files = /*.exe/*.dll/*.jpg/*.pdf/*.gif/

   oplock break wait time = 1

   debug level = 10



[Class]

Comment = Class

Browseable = Yes

Writeable = Yes

Force User = root

create mask = 0777

path = /dados/samba/Class

Guest ok = Yes

fake oplocks = yes





Best Regards,

Mauro Ribeiro




What network card is in this server?

What are you using for authentication?

-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Migrate harddisk with FreeBSD into new machine

2008-08-14 Thread Derek Ragona

At 01:26 PM 8/14/2008, C.M. Burns wrote:

Hi list,

I have a problem. A faulty machine was running freeBSD with a two harddisk 
software raid.
now these two disks should be put into a new machine, but of course it 
won't boot because it is new hardware.
Kernel just reports: cannot mount root device from /dev/mirror/gm0s1a (or 
sth like this).


question is now, how can i add the correct driver into the initial ramdisk 
(if there is such a thing on bsd) so the machine finds the two drives?
second question: how can i afterwards remove the software mirror and only 
use one harddisk from that moment on?


any help is very welcom, as i have no idea about bsd. i am a linux guy ;)

thanks!



What I would do, is install FreeBSD onto a new separate hard disk.  Disks 
are cheap.  Once you get the boot disk installed you can create a custom 
kernel if necessary to support the RAID.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: RES: Very Slow Samba

2008-08-14 Thread Derek Ragona

At 03:22 PM 8/14/2008, Mauro Ribeiro - Class Consultoria e Assessoria wrote:

Hi Derek,

I don't use authentication on this server, no internet connection. Only 1
share and on this share everyone must have write permissions.

re0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500

options=399bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_UCAS
T,WOL_MCAST,WOL_MAGIC
ether 00:e0:4c:10:c9:75
inet 192.168.0.254 netmask 0xff00 broadcast 192.168.0.255
media: Ethernet autoselect (1000baseTX full-duplex)
status: active

It's a realtek gigabit pci card. 8169 chipset.


First thing I'd do is replace the realtek.  They are terrible especially 
under any load.  Replace with a gigabit card from intel.  Then see how it 
works.


-Derek




-Mensagem original-
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Em nome de Derek Ragona
Enviada em: quinta-feira, 14 de agosto de 2008 14:17
Para: Mauro Ribeiro - Class Consultoria e Assessoria;
freebsd-questions@freebsd.org
Assunto: Re: Very Slow Samba

At 10:21 AM 8/14/2008, Mauro Ribeiro - Class Consultoria e Assessoria wrote:
Hi All,



I had migrated a Windows 2003 Server to a Samba Server (only for file
share)



We share only the company system. That's a 3mb Delphi .exe and a 1,5mb
libmysql.dll.



BTW, the system loads 4 .jpg files from the server.



On our old Windows Server the system was very fast on Samba is damn slow.
About 2 mins to load.



I have no clue on what to do.



Server Specs: Pentium 4 3.0Ghz 1GB RAM, FreeBSD 7.0-STABLE and Samba
3.0.28a.



Here's is my smb.conf



[global]

workgroup = CLASS

server string = Class Data Server

security = share

hosts allow = 192.168.0.

load printers = yes

printing = cups

log file = /var/log/samba/log.%m

max log size = 150

socket options = TCP_NODELAY

interfaces = 192.168.0.0/24

dns proxy = no

veto oplock files = /*.exe/*.dll/*.jpg/*.pdf/*.gif/

oplock break wait time = 1

debug level = 10



[Class]

 Comment = Class

 Browseable = Yes

 Writeable = Yes

 Force User = root

 create mask = 0777

 path = /dados/samba/Class

 Guest ok = Yes

 fake oplocks = yes





Best Regards,

Mauro Ribeiro



What network card is in this server?

What are you using for authentication?

 -Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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

__ NOD32 3351 (20080813) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com


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

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Another No disks found during Install

2008-08-14 Thread Derek Ragona

At 04:29 PM 8/14/2008, Bernard Lecuire wrote:

Hello,
I have a problem with the installation.
I choose country, keyboard and then I can not continue installation,
because it says No disks found! Please verify that your disk controller 
is being...


Hardware: Acer Aspire M1641,Intel Pentium Dual Core E2180, nVidia GeForce 
7050, sata-500

Here is what i get during boot sequence:

(...cut...)
hptrr: HPT RocketRAID controller driver v1.1 (Feb 24 2008 10:34:18)
(...cut...)
atapci0: nVidia nForce MCP73 UDMA133 controller port 
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 8.0 on pci0

ata0: ATA channel 0 on atapci0
ata0: [ITHREAD]
ata1: ATA channel 1 on atapci0
ata1: [ITHREAD]
(...cut...)

I tried to install without success FreeBSD 7.0, 8.0, OpenBSD, NetBSD, and 
4-5 Linux distros.

Anyone an idea?
Bernard


Did you try creating a raid array first?

Most raid controllers will operate in RAID or pass through mode.  Choose 
the mode you want, and create an array if you want before trying the install.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Best SMTP Gateway Program and Reporting Tools

2008-08-12 Thread Derek Ragona

At 03:22 PM 8/12/2008, Josh Kidd wrote:

I just wanted to pose this question to the list on people's opinions as
to what the best SMTP Gateway program (ie. Sendmail, Postfix, etc) is
and what the best log analysis tool for that SMTP program is.



We are currently using Symantec Mail Security for our  outgoing SMTP
Gateway but want to employ an open-source solution instead. My problem
is our main requirement is to have a way to view the logs on a web based
interface that will allow our system administrators when a customer
complains they didn't receive an email to be able to go into the logs
and search by date/time and view the activity for that period to
determine if the mail went through our system or if it was blocked and
if so why.



I've heard of and read about a few different programs like SMA and
Anteater and pflogstats, but I don't know if these will have the
functionality I need to allow admins to search logs for a specific
date/time and/or specific phrase/address on a web based interface.



I appreciate any help, advice in making this decision.



Josh


Josh,

I use sendmail and sma.  But I don't these fit your needs.  In fact, I 
doubt you will find an opensource solution that does.  For those types of 
features you need to  spend some money and buy a commercial product.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: freebsd

2008-08-11 Thread Derek Ragona

At 01:32 AM 8/11/2008, AAH wrote:

Hi,



Can someone give me the correct settings to configure an att/sbcglobal 2wire
1800 gateway(it's a modem, router/gateway)to work with FreeBSD?

I have been told my other users of FreeBSD that this router/gateway does
work with FreeBSD. (Freebsd 6.3).  However, the values given to me

by att techs have not worked.  This is why I am email you all for some
assistance.  The error message is that network/server is unknown or cannot

be found.



Thanks



AAH


The default setting for this router/gateway is to have the client systems 
on the LAN use DHCP for configuration.  You should set your system up to 
use  DHCP.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: BIND won't resolve my IPs (not upstream or something?)

2008-08-10 Thread Derek Ragona

At 05:41 AM 8/9/2008, Redd Vinylene wrote:

I got this FreeBSD server called mother (80.252.2.2). On it, I've made
two jails, camel (80.252.2.3) and box (80.252.2.4 through to
80.252.2.127). The problem is that reverse lookups for any of the IPs
preceding .4 on box fails. If I connect to IRC with .5 for instance,
it times out and reverts back to .4, whose lookup works just fine.
BIND runs on camel. Maybe the problem is that BIND is not upstream for
all those IPs? (I don't know what that means, a friend just told me)
Or that I haven't configured the reverse for any of the other IPs? I
would really like to keep BIND running on camel, as its dedicated to
all my vital network services, whereas box is the home of all my
users, and thus expendable ;) Is there any way to modify BIND on
camel, or must I set up an additional one on box? My (hopefully)
relevant configuration files can be found here --
http://pastie.org/250469 -- much obliged, and thanks!


You need to check that you have zone files for both forward and reverse 
lookups, and those zones are defined in named.conf


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: BIND won't resolve my IPs (not upstream or something?)

2008-08-09 Thread Derek Ragona

At 06:55 AM 8/9/2008, Redd Vinylene wrote:
I'm pretty sure I do, though my apologies if I'm wrong, did you check my 
pastie?


On Sat, Aug 9, 2008 at 1:48 PM, Derek Ragona
[EMAIL PROTECTED] wrote:
 At 05:41 AM 8/9/2008, Redd Vinylene wrote:

 I got this FreeBSD server called mother (80.252.2.2). On it, I've made
 two jails, camel (80.252.2.3) and box (80.252.2.4 through to
 80.252.2.127). The problem is that reverse lookups for any of the IPs
 preceding .4 on box fails. If I connect to IRC with .5 for instance,
 it times out and reverts back to .4, whose lookup works just fine.
 BIND runs on camel. Maybe the problem is that BIND is not upstream for
 all those IPs? (I don't know what that means, a friend just told me)
 Or that I haven't configured the reverse for any of the other IPs? I
 would really like to keep BIND running on camel, as its dedicated to
 all my vital network services, whereas box is the home of all my
 users, and thus expendable ;) Is there any way to modify BIND on
 camel, or must I set up an additional one on box? My (hopefully)
 relevant configuration files can be found here --
 http://pastie.org/250469 -- much obliged, and thanks!

 You need to check that you have zone files for both forward and reverse
 lookups, and those zones are defined in named.conf

 -Derek

 --
 This message has been scanned for viruses and
 dangerous content by MailScanner, and is
 believed to be clean.



Well, I never let my read of these files suffice.  You should check them 
with the tools from bind:

named-checkconf
nemed-checkzone

If they pass those tests, then check the resolution using just a single ip 
that is NOT jailed on this server using dig or nslookup.  If those are 
working then adjust your jails.


If you go step-by-step you will quickly get it working.

-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: no boot/loader

2008-08-08 Thread Derek Ragona

At 04:42 PM 8/8/2008, acmeinc wrote:


No /boot/loader
no /boot/kernel/kernel

I isntalled FreeBSD 7.0 with the defaults for partiioning. I am using one
hard drive in which I followed with the ASQ (auto, tag for boot, quit)
command. I choose the standard boot loader option. I installed through the
master freebsd site via ethernet. Upon the congratulation screen is asks for
a reboot, and to remove the boot disk, I resart to the error message above.
I believe it is because a boot loader is not installed, however, it should
be. Is it not in the set up, it is one of the first steps.

Following the errors I am in put into a boot prompt:

boot:

Are there any commands I can run from this prompt to manually boot? How can
I make the boot work? Will I need to install my own boot loader? How can I
install a manul boot loader? How can I check if the boot loader is
installed, but just not loading properly?


You would do well do try the install again, but check things BEFORE you 
allow sysinstall to exit and reboot.  Also check that your BIOS has any 
anti-virus settings not allowing the boot area of the hard disk to be 
written, turned off.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: no boot/loader

2008-08-08 Thread Derek Ragona

At 07:00 PM 8/8/2008, acmeinc wrote:


Check things?  Which things should I be checking for?   And where should I be
checking them, to be more specific, which optoin should I choose within
sysinstall to check the things?

I am reading on another forum the installation is incorrect and to try
again, however I have tried many times.  Do you think the minimun install is
not enough to allow for bootup?


Before you exit sysinstall, go to the emergency shell I believe alt+F4 will 
get you there.  Then do:

mount

The output from mount will show where the new filesystems are mounted.  You 
can check that /boot is populated and that you have a kernel in 
/boot/kernel/kernel.  To check those you'd type:


ls -al [fill in the root mount point]/boot

and

ls -al [fill in the root mount point]/boot/kernel/kernel

Check your BIOS settings.  It is likely you have a setting in the BIOS 
preventing the boot area being written.


-Derek





Derek Ragona wrote:

 At 04:42 PM 8/8/2008, acmeinc wrote:

No /boot/loader
no /boot/kernel/kernel

I isntalled FreeBSD 7.0 with the defaults for partiioning. I am using one
hard drive in which I followed with the ASQ (auto, tag for boot, quit)
command. I choose the standard boot loader option. I installed through the
master freebsd site via ethernet. Upon the congratulation screen is asks
for
a reboot, and to remove the boot disk, I resart to the error message
above.
I believe it is because a boot loader is not installed, however, it should
be. Is it not in the set up, it is one of the first steps.

Following the errors I am in put into a boot prompt:

boot:

Are there any commands I can run from this prompt to manually boot? How
can
I make the boot work? Will I need to install my own boot loader? How can I
install a manul boot loader? How can I check if the boot loader is
installed, but just not loading properly?

 You would do well do try the install again, but check things BEFORE you
 allow sysinstall to exit and reboot.  Also check that your BIOS has any
 anti-virus settings not allowing the boot area of the hard disk to be
 written, turned off.

  -Derek

 --
 This message has been scanned for viruses and
 dangerous content by MailScanner, and is
 believed to be clean.

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



--
View this message in context: 
http://www.nabble.com/no-boot-loader-tp18899421p18900779.html

Sent from the freebsd-questions mailing list archive at Nabble.com.

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

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: IBM eServer x225 - LSI 1030 SCSI - BTX Halted / infinite loop

2008-08-06 Thread Derek Ragona

At 04:56 AM 8/6/2008, underligast wrote:

On Tue, Aug 5, 2008 at 10:15 PM, Derek Ragona wrote:

  Obviously it is the SCSI card or drives.  Have you tried changing the
 BIOS settings on the SCSI?  You might want to try changing the SCSI BUS
 speed.  You may also want to try turning off hyperthreading.

 -Derek

Disabling Hyperthreading didn't do anything, and i cannot find many options
for the SCSI. I'll try lowering the speed and i will also try another drive
if i can find one.
I also tried 8.0-current bootcd and that lists the dvd-rom and the floppy
but none of the disks.

There's another four x225:s at work but they all have lsi-controllers. I was
really looking forward to using the hotswap..

Thank you for your replies, i hope you can help me fix this eventually


It sounds like your controller either it isn't recognized or 
supported.  You can try a different SCSI card or see if your SCSI has a 
firmware that is update-able and try different firmware version.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: memory allocation with malloc

2008-08-06 Thread Derek Ragona

At 01:16 AM 8/5/2008, Shyamal Shukla wrote:

Hi All,

 I am trying to validate my understanding of how malloc works by means
of the below C program which tries to corrupt essential information
maintained by malloc for free() operation.

The program allocates 4, 12 byte blocks (internally 16 bytes are allocated
for each 12 byte block). Hence the total allocated space was 48 bytes.

As malloc maintains the (length of allocated block + 1), 4 bytes before the
returned pointer (from malloc), I have manipulated this length for the first
block and set it to 49 with the goal that a single free shall release all
these 4 blocks and a subsequent malloc of 15 bytes shall be from the address
of first block.

However, this does not happen. Can someone please correct my understanding
and provide me with a reference to the working of malloc() and free()?

#includestdio.h

int main(void)
{
char * ptr,* ptr1, *ptr2, * ptr3, * ptr4;
int * i;
int n,q,p;
int loop = 0;

ptr1 = (char *)malloc(12);
i = (int *)(ptr1 - 4);
printf(\n ptr1 = %p,%d \n,ptr1,*i);
printf(\n %d:%d:%d:%d\n,ptr1[-4],ptr1[-3],ptr1[-2],ptr1[-1]);
printf(\n %d:%d:%d:%d\n,ptr1[0],ptr1[1],ptr1[2],ptr1[3]);
printf(\n %d:%d:%d:%d\n,ptr1[4],ptr1[5],ptr1[6],ptr1[7]);
printf(\n %d:%d:%d:%d\n,ptr1[8],ptr1[9],ptr1[10],ptr1[11]);
*i = 49;

ptr2 = (char *)malloc(12);
i = (int *)(ptr2 - 4);
printf(\n ptr2 = %p,%d \n,ptr2,*i);
printf(\n %d:%d:%d:%d\n,ptr2[-4],ptr2[-3],ptr2[-2],ptr2[-1]);

ptr3 = (char *)malloc(12);
i = (int *)(ptr3 - 4);
printf(\n ptr3 = %p,%d \n,ptr3,*i);
printf(\n %d:%d:%d:%d\n,ptr3[-4],ptr3[-3],ptr3[-2],ptr3[-1]);

ptr4 = (char *)malloc(12);
i = (int *)(ptr4 - 4);
printf(\n ptr4 = %p,%d \n,ptr4,*i);
printf(\n %d:%d:%d:%d\n,ptr4[-4],ptr4[-3],ptr4[-2],ptr4[-1]);

free(ptr1);
printf(\n ANALYZE-\n);
printf(\n %d:%d:%d:%d\n,ptr1[-4],ptr1[-3],ptr1[-2],ptr1[-1]);
printf(\n %d:%d:%d:%d\n,ptr1[0],ptr1[1],ptr1[2],ptr1[3]);
printf(\n %d:%d:%d:%d\n,ptr1[4],ptr1[5],ptr1[6],ptr1[7]);
printf(\n %d:%d:%d:%d\n,ptr1[8],ptr1[9],ptr1[10],ptr1[11]);

ptr = (char *)malloc(15);
i = (int *)(ptr - 4);
printf(\n ptr = %p,%d \n,ptr,*i);
return;
}


Thanks and Regards,
Shyamal




I'm not quite sure what it is you want to accomplish with this 
program.  However, malloc and free work on the program's given data 
area.  This data area can be increased should there be a need for more 
memory.


You should NEVER assume that memory blocks are contiguous.  There are many 
reasons why they would not be contiguous among them compiler 
optimizations.  If you really want to delve into how a program is executed, 
have the compiler output the assembler code and look at that.  The 
assembler code will show exactly how and where the variables are 
allocated.  With such small amount of data used in your program, it is 
possible the variables are all just on the stack.



You may want to check out the brk and sbrk man pages as they will give you 
some information into how memory management was originally done as these 
functions are lower-level than malloc and free.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: IBM eServer x225 - LSI 1030 SCSI - BTX Halted / infinite loop

2008-08-05 Thread Derek Ragona

At 01:42 PM 8/5/2008, underligast wrote:

I'm trying to install FreeBSD 7.0 on my new server, an IBM eServer x225
(8647-5CG)
The server/drives runs fine under windows 2003 and ubuntu server but the
FreeBSD installation just halts.

So far i've tried:
CD: disk1 from 6.2, 7.0,
CD: bootonly from 7.0
Floppys: 7.0

They all end the same, cds with an infinite loop of numbers, floppys with
BTX Halted and a lot of numbers.

int=000derr=efl=00010006eip=000219b2
eax=000219acebx=ecx=c080edx=000587d8
esi=0003e007edi=ebp=0008fcbcesp=00099c88
cs=0008   ds=0010   es=0010   fs=0010   gs=0010   ss=0010
cs:eip=0f 32 0d 00 01 00 00 0f-30 0f 20 e0 83 c8 30 0f
   22 e0 b8 00 c0 03 00 0f-22 d8 0f 20 c0 0d 00 00
ss:esp=90 95 00 00 00 80 fc 00-00 90 fc 00 07 e0 03 00
   00 00 00 00 07 d0 03 00-00 00 00 00 cc 87 05 00
BTX halted

The only difference is when i boot from 7.0-STABLE-200804-i386-bootonly.iso,
then i see

BTX loader 1.00 BTX version is 1.02
Consoles: internal video/keyboard
BIOS CD is cd0
BIOS drive A: is disk0

Then it stops.
If i remove both the harddrives i can boot into the freebsd installer, but
as there are no drives, there is nowhere to install.

Atleast when i started with the floppys it detected drive1 and 2 before BTX
halted..

I dont know what to do anymore, there is just no way to get freebsd to
install on this thing.
Is it the LSI controller, it should still be initiated when there are no
drives in it, and the installation starts fine then.
Is it the Motherboard, the bios, the cpu, the ram? what?
The disks, having just one in doesn't work, switching positions doesn't
work?

Does anyone have any idea on how i can proceed once i'm in the installation,
can i mount the drives and install somehow?

The hardware is:
1x Xeon 2.8GHz(512KB), 2x 2048MB PC2100 DDR SDRAM (ecc), 2x 74GB 10K rpm
U320 HDD, Ultra320 SCSI, 48x CD-ROM, Broadcom NetXtreme 10/100/1000
Integrated Ethernet, ATI Rage XL


Obviously it is the SCSI card or drives.  Have you tried changing the BIOS 
settings on the SCSI?  You might want to try changing the SCSI BUS 
speed.  You may also want to try turning off hyperthreading.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Mail Heading to dead.letter

2008-07-31 Thread Derek Ragona

At 10:08 PM 7/30/2008, Andy Christianson wrote:


 At 05:45 PM 7/30/2008, Andy Christianson wrote:

 
  Check perms on /var/mail that it is set to 775
 
  -Derek
 

 /var/mail is at 775, so that's not it...

 [EMAIL PROTECTED] ~]$ stat /var/mail
 89 47105 drwxrwxr-x 2 root mail 188185 512 Jul 30 03:01:51 2008 Jul 30
 16:35:18 2008 Jul 30 16:35:18 2008 Feb 24 12:49:40 2008 4096 4 0
 /var/mail



 I would kick up the logging on sendmail to see better what is going on and
 where the failure really is.  You can add:
 -O LogLevel=80
 To your sendmail options in /etc/rc.conf

 Since root can send mail but regular users cannot, it sounds like a
 permission problem somewhere.

 -Derek

It turns out that FreeBSD wasn't happy with its host name. I changed it to a
host name that resolves properly, and sendmail began to work as expected.

Thanks for looking at this.

-Andy


Andy,

Sendmail is VERY dns dependent as you found out.  Glad all is working fine.

-Derek


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Controlling read access

2008-07-31 Thread Derek Ragona

At 04:16 PM 7/31/2008, John Almberg wrote:

I operate a server on which I am typically the only ssh user, but I
do provide a small number of users ftp access.

Each user has their own home directory. Currently all home
directories have read permission set for 'other'. This means if I log
in as one user, I can read and even download the contents of other
users home directories.

I want to block this read access. What is the best way to do this?
Turn off the read bit for 'other'? Or is there some better way?

Thanks: John


I've used vsftp from the ports.  It is very configurable to the point you 
can even specify which ftp commands to allow.


-Derek


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: SCSI RAID on FreeBSD 7.0, where is the array?

2008-07-30 Thread Derek Ragona

At 07:56 AM 7/30/2008, [EMAIL PROTECTED] wrote:

Hi all,


I am fighting the following hardware:

MB: ASUS p5b-plus (NON vista edition)
Cpu: Core 2 duo 4600
SCSI Card: Adaptec 39320 (Unused Dell OEM bought from ebay)
HDDs: 2xSeagate Cheetah 73.4 GB Ultra320 SCSI (posibly Dell OEM)

Nb. The MB does not support PCI-X, but is backwards compatible to a 
standard PCI slot. On recommendations I have limited the throughput on the 
channels to 160mb.


If you think any other pieces relevant let me know.


I think this is probably just an issue with my not knowing wtf I'm doing, 
but to be optimistic lets assume the ahd module worked as there are no 
errors in dmesg; which device do I install to? I can not see see ahd0 in fdisk.


There are alot of posts over the years reporting trouble with the 
Dell(Adaptec/Seagate) combiniation. The funny thing is that I am having 
none of these troubles; There are no panics, no dumps and no lengthy 
pauses. It all seems fine, until I try to select the disk to install to 
and I only have da0 or da1.




Thanks for your time


Have you defined an array?

If you create the array in the adaptec BIOS you will see one large hard 
disk in FreeBSD.  If you do not define an array in the adaptec BIOS you 
will see the individual SCSI drives as da0, da1, etc.


The GENERIC kernel has all the typical SCSI and RAID adapters compiled in, 
so look at the dmesg output when you boot FreeBSD.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: setting the other end's TCP segment size

2008-07-30 Thread Derek Ragona

At 11:04 PM 7/29/2008, [EMAIL PROTECTED] wrote:

 [TCP] splits traffic to 'segments' using its own logic ...

Is there a simple way for a FreeBSD system to cause its peer
to use a transmit segment size of, say, 640 bytes -- so that
the peer will never try to send a packet larger than that?

I'm trying to get around a network packet-size problem.
In case it matters, the other end is SunOS 4.1.1 on a sun3, and
I've been unable to find a way to limit its packet size directly.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

--


Just as an FYI, you might want to do:
man setsockopt
ro
man getsockopt

Each tcp conversation can have it's own size set along with a bunch of 
other params.


-Derek


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Mail Heading to dead.letter

2008-07-30 Thread Derek Ragona

At 07:52 AM 7/30/2008, Andy Christianson wrote:

Sendmail is running  DNS is working. See the following output:

[EMAIL PROTECTED] /home/andy]# /etc/rc.d/sendmail status
sendmail_submit is running as pid 71703.
sendmail_clientmqueue is running as pid 675.
[EMAIL PROTECTED] /home/andy]# ping gmail.com
PING gmail.com (64.233.161.83): 56 data bytes
64 bytes from 64.233.161.83: icmp_seq=0 ttl=239 time=19.943 ms
64 bytes from 64.233.161.83: icmp_seq=1 ttl=239 time=22.096 ms
64 bytes from 64.233.161.83: icmp_seq=2 ttl=239 time=22.568 ms
64 bytes from 64.233.161.83: icmp_seq=3 ttl=239 time=19.368 ms
^C
--- gmail.com ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 19.368/20.994/22.568/1.364 ms
[EMAIL PROTECTED] /home/andy]# mail [EMAIL PROTECTED]
Subject: Test
This is a test!!
EOT
[EMAIL PROTECTED] /home/andy]# exit
exit
[EMAIL PROTECTED] ~]$ mail [EMAIL PROTECTED]
Subject: Another test!!
Test sent from a normal user
EOT
[EMAIL PROTECTED] ~]$ /home/andy/dead.letter... Saved message in
/home/andy/dead.letter



Check perms on /var/mail that it is set to 775

-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Mail Heading to dead.letter

2008-07-30 Thread Derek Ragona

At 05:45 PM 7/30/2008, Andy Christianson wrote:


 Check perms on /var/mail that it is set to 775

 -Derek


/var/mail is at 775, so that's not it...

[EMAIL PROTECTED] ~]$ stat /var/mail
89 47105 drwxrwxr-x 2 root mail 188185 512 Jul 30 03:01:51 2008 Jul 30
16:35:18 2008 Jul 30 16:35:18 2008 Feb 24 12:49:40 2008 4096 4 0
/var/mail



I would kick up the logging on sendmail to see better what is going on and 
where the failure really is.  You can add:

-O LogLevel=80
To your sendmail options in /etc/rc.conf

Since root can send mail but regular users cannot, it sounds like a 
permission problem somewhere.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: {Spam?} Re: SCSI RAID on FreeBSD 7.0, where is the array?

2008-07-30 Thread Derek Ragona

At 07:14 PM 7/30/2008, [EMAIL PROTECTED] wrote:

Hi Derek,

As mentioned in my post, I have configured the Adaptec BIOS 
(SCSIselect/HostRAID) to create a RAID0 array.


The GENERIC Kernel natively-uses the 'ahd' adapter for this card, 
http://www.freebsd.org/cgi/man.cgi?query=ahdsektion=4manpath=FreeBSD+7.0-RELEASEhttp://www.freebsd.org/cgi/man.cgi?query=ahdsektion=4manpath=FreeBSD+7.0-RELEASE


dmesg does not post any errors, it recognised the card as ahd0, and states 
that da0  da1 are on that bus. I can not post the dmesg as the NIC 
adapter needs to be patched once the OS is installed. I could find a USB 
key and copy it over if you like, but there are no errors to consider.


Regards


What does dmesg show for da0 and da1?

Did you actually create the array in the Adaptec RAID BIOS?  If you did, 
with a stripped array I'd expect dmesg to only report da0 as the stripped 
compendium of both disks.


-Derek






Derek Ragona wrote:
At 07:56 AM 7/30/2008, mailto:[EMAIL PROTECTED][EMAIL PROTECTED] 
wrote:

Hi all,


I am fighting the following hardware:

MB: ASUS p5b-plus (NON vista edition)
Cpu: Core 2 duo 4600
SCSI Card: Adaptec 39320 (Unused Dell OEM bought from ebay)
HDDs: 2xSeagate Cheetah 73.4 GB Ultra320 SCSI (posibly Dell OEM)

Nb. The MB does not support PCI-X, but is backwards compatible to a 
standard PCI slot. On recommendations I have limited the throughput on 
the channels to 160mb.


If you think any other pieces relevant let me know.


I think this is probably just an issue with my not knowing wtf I'm 
doing, but to be optimistic lets assume the ahd module worked as there 
are no errors in dmesg; which device do I install to? I can not see see 
ahd0 in fdisk.


There are alot of posts over the years reporting trouble with the 
Dell(Adaptec/Seagate) combiniation. The funny thing is that I am having 
none of these troubles; There are no panics, no dumps and no lengthy 
pauses. It all seems fine, until I try to select the disk to install to 
and I only have da0 or da1.




Thanks for your time


Have you defined an array?

If you create the array in the adaptec BIOS you will see one large hard 
disk in FreeBSD.  If you do not define an array in the adaptec BIOS you 
will see the individual SCSI drives as da0, da1, etc.


The GENERIC kernel has all the typical SCSI and RAID adapters compiled 
in, so look at the dmesg output when you boot FreeBSD.


-Derek

--
This message has been scanned for viruses and
dangerous content by http://www.mailscanner.info/MailScanner, and is
believed to be clean.



--
This message has been scanned for viruses and
dangerous content by http://www.mailscanner.info/MailScanner, and is
believed to be clean.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Having some problems with a FreeBSD mail server (SMTP)

2008-07-30 Thread Derek Ragona

At 07:35 PM 7/30/2008, Andrew Falanga wrote:

Hi,

I run a mail server for my church.  Today I was called that folks are able to
receive, but not send their mail.  They are all currently configured for POP3
(I use dovecot).

At home I tried to send mail to two different e-mail accounts of mine using
the church e-mail server and was successful.  I used KMail for this.

As I look through /var/log/maillog I do not even see authid=their_user_ids
in the mail log (I'm using TLS with sendmail).  One of the pastor's told me
the error he's seeing is timeout.  They are using Outlook, I'm not sure of
the version.  What problems do people here usually encounter with Outlook
mail clients and their SMTP servers?

At this point, I'd just like to have some leads.  Any ideas what might be
keeping them from sending?  They can all log in and receive e-mail POP3.

Thanks,
Andy


Andy,

These errors can be some of the hardest to track down.  I would go to one 
of the problem users and try sending email with their client as you watch 
the maillog from a ssh window.


Outlook and Outlook express send mail a bit differently so you will need to 
know which client they are using.  Also, if sending mail was working, and 
just stopped, I'd suspect some microsoft patch as the culprit.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: {Spam?} Re: {Spam?} Re: SCSI RAID on FreeBSD 7.0, where is the array?

2008-07-30 Thread Derek Ragona

At 07:53 PM 7/30/2008, [EMAIL PROTECTED] wrote:

Thanks for the quick reply!

I created the array in the Adaptec BIOS and confirmed it with an XP 
installer disk, which gave me the option to install to the array as I had 
named it.



I have to apologise for not having the actual dmesg handy but identifies 
the disks much like the example below, but with Seagate disks.


It does not identify any striping or make any differentiation between the 
discs other than the target id.

.

da0 at ahd0 bus 0 target 2 lun 0
da0: MAXTOR ATLAS10K4_36WLS DFV0 Fixed Direct Access SCSI-3 device da0: 
320.000MB/s transfers (160.000MHz, offset 127, 16bit), Tagged Queueing Enabled

da0: 35074MB (71833096 512 byte sectors: 255H 63S/T 4471C)
da1 at ahd0 bus 0 target 4 lun 0
da1: MAXTOR ATLAS10K4_36WLS DFV0 Fixed Direct Access SCSI-3 device da1: 
320.000MB/s transfers (160.000MHz, offset 127, 16bit), Tagged Queueing Enabled

da1: 35074MB (71833096 512 byte sectors: 255H 63S/T 4471C)



Regards



Are you seeing any aacd drives in the dmesg?  This would be the device name 
for an advanced adaptec raid drive.


-Derek




Derek Ragona wrote:

At 07:14 PM 7/30/2008, [EMAIL PROTECTED] wrote:

Hi Derek,

As mentioned in my post, I have configured the Adaptec BIOS 
(SCSIselect/HostRAID) to create a RAID0 array.


The GENERIC Kernel natively-uses the 'ahd' adapter for this card, 
http://www.freebsd.org/cgi/man.cgi?query=ahdsektion=4manpath=FreeBSD+7.0-RELEASEhttp://www.freebsd.org/cgi/man.cgi?query=ahdsektion=4manpath=FreeBSD+7.0-RELEASE 



dmesg does not post any errors, it recognised the card as ahd0, and 
states that da0  da1 are on that bus. I can not post the dmesg as the 
NIC adapter needs to be patched once the OS is installed. I could find a 
USB key and copy it over if you like, but there are no errors to consider.


Regards


What does dmesg show for da0 and da1?

Did you actually create the array in the Adaptec RAID BIOS?  If you did, 
with a stripped array I'd expect dmesg to only report da0 as the stripped 
compendium of both disks.


-Derek






Derek Ragona wrote:
At 07:56 AM 7/30/2008, 
mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote:

Hi all,


I am fighting the following hardware:

MB: ASUS p5b-plus (NON vista edition)
Cpu: Core 2 duo 4600
SCSI Card: Adaptec 39320 (Unused Dell OEM bought from ebay)
HDDs: 2xSeagate Cheetah 73.4 GB Ultra320 SCSI (posibly Dell OEM)

Nb. The MB does not support PCI-X, but is backwards compatible to a 
standard PCI slot. On recommendations I have limited the throughput on 
the channels to 160mb.


If you think any other pieces relevant let me know.


I think this is probably just an issue with my not knowing wtf I'm 
doing, but to be optimistic lets assume the ahd module worked as there 
are no errors in dmesg; which device do I install to? I can not see 
see ahd0 in fdisk.


There are alot of posts over the years reporting trouble with the 
Dell(Adaptec/Seagate) combiniation. The funny thing is that I am 
having none of these troubles; There are no panics, no dumps and no 
lengthy pauses. It all seems fine, until I try to select the disk to 
install to and I only have da0 or da1.




Thanks for your time


Have you defined an array?

If you create the array in the adaptec BIOS you will see one large hard 
disk in FreeBSD.  If you do not define an array in the adaptec BIOS you 
will see the individual SCSI drives as da0, da1, etc.


The GENERIC kernel has all the typical SCSI and RAID adapters compiled 
in, so look at the dmesg output when you boot FreeBSD.


-Derek

--
This message has been scanned for viruses and
dangerous content by http://www.mailscanner.info/MailScanner, and is
believed to be clean.



--
This message has been scanned for viruses and
dangerous content by http://www.mailscanner.info/MailScanner, and is
believed to be clean.



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: {Spam?} Re: Sendmail local LAN delivery

2008-07-27 Thread Derek Ragona

At 03:49 PM 7/27/2008, Bruno Joho wrote:

Hi Derek

thanks for the reply.
My intention was to deliver the mails between the workstations on the
LAN directly. Every Workstation
on the LAN would have an appropriate cf file which forwards mails with
a destination on the WAN - to the
WAN-Smarthost, any mail going to a destination from inside the LAN
would be delivered
directly to the destination host without involving a (LAN) smarthost.
Is that possible somehow?

Thanks for your help

Bruno


That scenario is possible, but you may still need DNS MX records to point 
to the smart host as well.  You can have multiple MX records for a domain 
(or subdomain) where the value field is higher for a farther away mail 
server, or for a secondary mail server.  Sendmail uses DNS to figure 
routing along with the internal configuration file UNLESS you specify to 
sendmail to NOT use DNS.


So you have some choices in how you configure sendmail and/or DNS.

Also it may help you to test things on one system and bump up the sendmail 
logging so the /var/log/maillog file has more information.  Use the option:

-O LogLevel=80
Or some other value than 80.  You can add these options to your sendmail 
flags in /etc/rc.conf


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Sendmail local LAN delivery

2008-07-24 Thread Derek Ragona

At 06:30 AM 7/24/2008, Bruno Joho wrote:

Hi folks

we have a inside the Lab (Class B Net, eg: bnet.ourdomain.com) several
workstations (eg: host1.intra015.bnet.ourdomain.com) in different
Class C Net (eg.intra015.bnet.ourdomain.com). There is a Mail Hub
outside the Class B Net which communicates with the Internet and
delivers
the mails sent by the workstations. All workstations have a
Smarthost entry in the cf file. Incoming mails are collected by the
mailhub, which
provides IMAP and POP access for all workstations. No mail coming from
the Internet will be delivered directly to the workstations.
Everything
works fine, exept one (small) problem. How can I configure the
sendmal.cf from the local workstations to send the mail addressed to a
neighbour
workstation (eg. from host1.intra015.bnet.ourdomain.com to
host2.intra016.bnet.ourdomain.com) directly. Sending it to the mailhub
and then sending
it back to the Intranet is no option due to firewall restrictions.

I apreciate any help, thanks

Bruno



Bruno,

If I understand your question correctly, you will need to smarthosts, one 
on the LAN side, and one on the WAN/internet side.  You will have to setup 
the LAN smarthost to forward mail to the WAN smarthost that it cannot 
deliver.  You will have to enable the LAN smarthost and WAN smarthost to be 
able to pass mail through your firewall.  Sendmail uses DNS for most host 
resolution, so you will need to setup MX records for the various LAN hosts 
to go to the LAN smarthost.


Hope this helps.

-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Repeating Mail

2008-07-16 Thread Derek Ragona

At 10:47 PM 7/15/2008, lyd mc wrote:

Hi guys,

Some of my mail users receive repeating mail. I am using sendmail and my 
user uses MS Outlook to send/receive.


Is there any way to solve this problem?

Thank you.

Best regards,

alyd




Check the user's outlook setup.  It is likely they are leaving email on the 
server and it is not being deleted from the server, so it is sent down to 
the client again.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: problem with sendmail and su

2008-07-09 Thread Derek Ragona

At 05:44 AM 7/9/2008, Nicolas Letellier wrote:

Hello.

I use FreeBSD 7 with sendmail. I have a problem for sending email. More
precisely, with the sender of the mail.
When I'm logged to my machine in root, the mail is sent with
[EMAIL PROTECTED] with sender. OK, no problems.
When I'm logged to my machine in nicolas, the mail is sent with
[EMAIL PROTECTED] with sender. OK, no problems.

However, when I'm logged in nicolas to my machine, and if I do a su
root or su - root, and I send a mail, the sender will be
[EMAIL PROTECTED] and not [EMAIL PROTECTED].

It's a problem, because I done a su to be logged as root.

I don't have this problem with a FreeBSD/Postfix.

Thanks for your advices and helps. I don't understand this problem.

Regards,

--
 - Nicolas.


That is exactly working as designed.  The reason sendmail sends the mail as 
your actual login user is so you cannot spoof so easily.  If you have 
certain emails like system reports you are sending and want them sent as 
root, add them to roots crontab file.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: quota and sendmail accepts 10k mail size

2008-07-08 Thread Derek Ragona

At 08:14 PM 7/7/2008, lyd mc wrote:

Greetings,

I setup my mail server on freebsd7.0R and it is working great!

However, I have a problem on quota. It suppose to block any incoming 
message to specific user which is under quota. But sendmail can still send 
to the user under quota if the mail size is ~ less than 10k. Quota only 
works when the mail size is  greater than 13k.


Is there any way to correct this problem? Please help.


By the way, i disable the grace period via quota.h.

   #define MAX_IQ_TIME (0) /* seconds in 1 week */
   #define MAX_DQ_TIME (0) /* seconds in 1 week */


And my mail users authenticate via ldap.

Thank you and more power.


I don't fully understand what you are trying to limit, most sendmail size 
limits are set either globally, or by protocol.  The General setting is set 
in you .mc file with:


confMAX_MESSAGE_SIZEMaxMessageSize  [infinite] The maximum size of messages
that will be accepted (in bytes).

Otherwise read through the page on the options here and you can refine the 
size limit by the protcol/mta:


http://www.sendmail.org/documentation/configurationReadme

-Derek


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Reconfiguring network interfaces

2008-07-06 Thread Derek Ragona

At 09:06 AM 7/6/2008, David Allen wrote:

I need to make several wholesale changes to a few different systems,
and I'd prefer to do it over SSH without losing connectivity where
possible.  I know I can use ifconfig, or edit /etc/rc.conf directly
and reboot, but is there a canonical way to make the changes in
/etc/rc.conf and reload those changes to ensure everything is in a
known state?  From what I can determine, running netif stop/start
would work, but would require I do that locally.



You pretty much need to be on the console rather than ssh'd in to make 
those changes interactively.  You can do them remotely via a cron job or at 
job, but any mistake will require a trip  to  the console.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: sendmail on server with ip aliases and virtual hosts

2008-07-02 Thread Derek Ragona

At 11:26 AM 7/2/2008, D W wrote:

Hello,

Having a problem with sendmail on some of my servers supporting several
virtual apache hosts. Because these servers have 5-10 ip aliases bound, it
sometimes trips up sendmail when sending outbound mail to my smarthost. All
servers are configured to use the same smarthost. But on one of the hosts,
sendmail will send out as the one of the virtual hosts instead of the main
host, which is what I need.

Example:

webhost01.webdomain.com (10.10.0.1) is the main host.
mail01.webdomain.com (10.10.10.2) is the smarthost.

Five ip aliases for apache virtual servers:
www.siteA.com (10.10.20.1)
www.siteB.com (10.10.20.2)
www.siteC.com (10.10.20.3)
www.siteD.com (10.10.20.4)
www.siteE.com (10.10.20.5)

But when one I try to:
$ telnet mail01.webdomain.com 25

and watch the maillog on the smarthost, it tells me the connection is coming
from www.siteA.com (or one of the other virtual ip aliases/hosts) instead of
the main host, webhost01.webdomian.com.

This will cause relaying denied failures on the smarthost, unless I go
into the local-host-names and account for every virtual host and add it.

The other puzzling thing is that I have 9 other main hosts with many
virtual hosts, and they all seem to be working the way I expect; ie.,
outbound mail is coming from the main host name/ip instead of one of the
aliases. It's just this webhost01 that is messed up I can't figure out why.
The other thing is that if I destroy an alias, sendmail will use another
aliases, then if I put the destroyed virtual alias back, it may or may not
use it again when sending email.

How do I get sendmail to just send *everything* as from the main host and
connect on the main ip address instead of one of the aliases?

I have in /etc/mail/webhost01.webdomain.com.mc:

OSTYPE(freebsd6)
DOMAIN(generic)
FEATURE(access_db, `hash -o -TTMPF /etc/mail/access')
FEATURE(blacklist_recipients)
FEATURE(local_lmtp)
FEATURE(mailertable, `hash -o /etc/mail/mailertable')
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')
FEATURE(masquerade_envelope)
FEATURE(`genericstable')
GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')
MASQUERADE_AS(`webhost01.webdomain.com')
define(`confDOMAIN_NAME', `webhost01.webdomain.com')
define(`SMART_HOST', `mail01.webdomain.com')

and in generics-domains:
webhost01.webdomain.com


Thanks for any help.


I would suggest you check both your forward and reverse DNS's for all these 
domains.  Sendmail will use the DNS listings.


Are your virtual apache server's sending the emails from webpages?  If so, 
check your setup on those virtual servers that you are specifying the from 
address including the correct domain.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: priority or order for /usr/local/etc/rc.d scripts?

2008-06-30 Thread Derek Ragona

At 03:37 PM 6/30/2008, fred wrote:

Hi guys,



Basically, I have 2 scripts in the folder /usr/local/etc/rc.d/



Resin.sh and apache.sh



I need resin to be started when apache is starting, how can I do that? I
can't find any documentation on priority or order for startup scripts.



I have tried adding a line at the end of resin.sh to start apache.sh but it
doesn't work.



# uname -a

FreeBSD www.mydomain.com 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24
19:59:52 UTC 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386



Thanks for your help!



-fred


They are mostly done in alphabetic order, so if you need one BEFORE apache, 
rename it aa_something.


-Derek




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

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: first pre-emptive raid

2008-06-28 Thread Derek Ragona

At 02:57 AM 6/28/2008, prad wrote:

our dual pentium3 1GHz with 2G ram and 8 18G scsi drives (server holds
4) should be arriving in about 1 week. my son and i want to this up as
proper server rather than as a desktopish installation being used as a
server. it will serve primarily websites (static html) and email for
virtual domains as well as implement dns.

from the handbook, we are learning

1. how to installing scsi drives (we have some old 2G) from #18.3
2. about software raid #18.4.1 (because we don't have a hardware
solution and i guess you really don't have anything to figure out with
one)
3. about geom #19 and vinum #20
4. about raid principles in general from wikipedia


after a first reading, some initial questions about items:

3. it seems that geom just does striping and mirroring, but vinum
offers more configurability and is really the preferred choice?

4.1 with 4 18G drives one thought is to do a raid1, but we really
don't  want 3 identical copies. is the only way to have 2 36G mirrors,
by using raid0+1 or raid1+0?

4.2 another possibility is to do raid0, but is that ever wise unless
you desperately need the space since in our situation you run a 1/4
chance of going down completely?

4.3 is striping or mirroring faster as far as i/o goes (or does the
difference really matter)? i would have thought the former, but the
handbook says Striping requires somewhat more effort to locate the
data, and it can cause additional I/O load where a transfer is spread
over multiple disks #20.3

4.4 vinum introduces raid5 with striping and data integrity, but
exactly what are the parity blocks? furthermore, since the data is
striped, how can the parity blocks rebuild anything from a hard drive
that has crashed? surely, the data from each drive can't be duplicated
somehow over all the drives though #20.5.2 Redundant Data Storage has
me scratching my head! if there is complete mirroring, wouldn't the
disk space be cut in half as with raid1?


this is all very interesting and very new to us.


--


Striping alone offers speed but no data protection.

Mirroring offers redundancy but uses twice the disk space, AND is slower 
than striping.


Mirror + striping offers the best of both speed with redundancy.  However 
this configuration requires drive arrays of at least 4 drives and usually 
drives are added in 4's.  For complete safety you should have two drives in 
the array as hot spares as you can lose two drives.


Raid 5 attempts to offer data protection via saving parity checksums in 
another location.  However, it is possible to have both the data area fail, 
and the parity fail, making a rebuild impossible.  This can happen if you 
have two drives fail.  In newer hardware offering RAID 6, the parity is 
saved to 2 different drives, making the failure less likely.


I would suggest you wither do mirrored, or mirrored + striped  as these are 
older drives you are using.


For those of us that have lost drives in various ways, they die on their 
own of age, power problems will kill drives (from bad AC power AND/OR bad 
power supplies), heat of course will kill drives, etc.  Since most drives 
are installed at the same time often from the same manufacturer's lot, if 
there is any sensitivity or defect, you can easily lose multiple drives 
that way as well.


-Derek



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: rc scripts

2008-06-27 Thread Derek Ragona

At 04:11 PM 6/27/2008, David Allen wrote:

I need to an '-s' flag to the execution of openntpd's rc script:

   # PROVIDE: openntpd
   # REQUIRE: DAEMON
   # BEFORE:  LOGIN
   # KEYWORD: nojail

   . /etc/rc.subr

   name=openntpd
   rcvar=`set_rcvar`
   command=/usr/local/sbin/ntpd
   required_files=/usr/local/etc/ntpd.conf
   openntpd_enable=${openntpd_enable:-NO}
   load_rc_config $name
   run_rc_command $1

The problems I'm having are multiple.  First, the program doesn't offer
any logging, and running it with the do not daemonize switch with

   # /usr/local/sbin/ntpd -d 21  logfile

yields no output.

Then, I'm not sure I understand everything I'm reading in rc.subr(8), but
from trial error, I've discovered that modifying the script's command
variable doesn't work, nor does adding the usual scriptname_flags
directive to /etc/rc.conf.

Comments, questions and complaints all welcomed.


Add:
set -x

at the top of the script and run the output to a file as you were doing.  I 
would add a path to the logfile though and don't worry about the daemon like:


/usr/local/sbin/ntpd start 21 /tmp/logfile

Then you can kill it off and see what the startup looked like in the logfile.

-Derek


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


  1   2   3   4   5   6   7   8   9   >