consulta acerca de la version

2008-05-03 Thread jmz_hack
hola, disculpen por favor me podrias decir o pasar alguna version
descargable para poner un servidor con freebsd, un pentium 233 con 24
mb de ram y un disco de 1,6 gb necesito que haga de servidor web con
php, y pueda usar el shoutcast y en lo posible que sea compatible con
placas de red isa gracias

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


Re: handling stale dependencies

2008-05-03 Thread Zbigniew Szalbot

Hello,



Something went wrong earlier on, and portupgrade screwed up. It tried
to upgrade png, got as far as uninstalling it, failed to install it
and then failed to restore the backup and for some reason also thinks
that rrdtool does not depend on graphics/png, while it does,
unconditionally. Best thing to do when you see pkgdb mentioning
stale dependencies is hit ctrl-c hard, fast and often. Then scroll
up to see what it did wrong and try to figure out how to correct it's
mess.

What is at present the png version installed on your system and could
you show the output of: grep 'DEPORIGIN: graphics/png'
/var/db/pkg/*/+CONTENTS





It reveals nothing but so far so good. Everything seems to work so I am 
not going to worry about it. I just don't remember. I may have installed 
then uninstalled png at some point but no idea if I did. I have actually 
started to run a journal of everything being done to the server - it 
should help in future!



--
Zbigniew Szalbot
www.lc-words.com


smime.p7s
Description: S/MIME Cryptographic Signature


Re: handling mysql binlog data

2008-05-03 Thread Matthew Seaman

Zbigniew Szalbot wrote:

Will any future upgrade (by means of portupgrade) not change the custom 
mysql location back to /var/db/mysql?


Not if you set:

  mysql_dbdir=/usr/mysql

in /etc/rc.conf 


Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


logger blocking

2008-05-03 Thread Wojciech Puchar

how to prevent logger working for non-root?
it allows any user log anything it likes.

i can change permission for /var/run/syslogd.socket but many different 
programs running as different users logs through this.


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


.forward file / do not leave messages on server

2008-05-03 Thread Zbigniew Szalbot

Hello,

How do I specify in a .forward file that forwarded messages should not 
be kept on server?
user [EMAIL PROTECTED] just gets the mail forwarded but also leaves a 
copy on server.


Thank you!
--
Zbigniew Szalbot
www.lc-words.com


smime.p7s
Description: S/MIME Cryptographic Signature


Operation not permitted at end of portupgrade

2008-05-03 Thread Mike Clarke
At the end of a portupgrade run for firefox I get the following

===   Registering installation for firefox-2.0.0.14,1
===  Cleaning for firefox-2.0.0.14,1
---  Cleaning out obsolete shared libraries
[Updating the pkgdb format:bdb_btree in /var/db/pkg ... - 626 packages 
found (-0 +1) . done]
Operation not permitted - /usr/local/lib/compat/pkg/libc.so.5
Operation not permitted - /usr/local/lib/compat/pkg/libc_r.so.5
Operation not permitted - /usr/local/lib/compat/pkg/libcrypt.so.2
Operation not permitted - /usr/local/lib/compat/pkg/libpthread.so.1
Operation not permitted - /usr/local/lib/compat/pkg/libthr.so.1

The permissions on all these files are -r--r--r--. Should I change them 
to  -rwxr-xr-x like the rest of the files in that directory or just 
ignore it?

FreeBSD kestrel.lan 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

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


socket bind failure - errno 49

2008-05-03 Thread Balaji Kasthurirangan
Hi,

I have tried searching the archives and in vain. Hence i am posting to this
group. If this not the right one, pls direct me.

I am using FreeBSD 6.1. Initially i was able to create socket, bind it and
do all sorts of things. But when i tried now, it isn't working. I am trying
after a long gap. The errno is 49 - invalid address.
I used gethostbyname and it returns whatever is there in /etc/hosts. I have
checked the /etc/resolv.conf. My config details are

/etc/rc.conf

hostname=Balaji

/etc/hosts

192.168.1.1 Balaji
127.0.0.1 localhost
::1 localhost

/etc/resolv.conf

nameserver 192.168.1.1

I tried setting Balaji to 0.0.0.0, still it doesn't work. Pls help me.

Also, when my system boots, couple of eye-catchy messages

syslogd: can't bind address

sm_mta[root]:syserror : can't assign address // i hope this is wrt mail/smtp

My suspect is that, the error happens after my system was shutdown
improperly(sudden power off and my laptop battery isn't working, and
ofcourse i am freebsd on my toshiba tera laptop - P4).
I have done fdisk to ensure my disk is clean.

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


Re: Operation not permitted at end of portupgrade

2008-05-03 Thread Per olof Ljungmark

Mike Clarke wrote:

At the end of a portupgrade run for firefox I get the following

===   Registering installation for firefox-2.0.0.14,1
===  Cleaning for firefox-2.0.0.14,1
---  Cleaning out obsolete shared libraries
[Updating the pkgdb format:bdb_btree in /var/db/pkg ... - 626 packages 
found (-0 +1) . done]

Operation not permitted - /usr/local/lib/compat/pkg/libc.so.5
Operation not permitted - /usr/local/lib/compat/pkg/libc_r.so.5
Operation not permitted - /usr/local/lib/compat/pkg/libcrypt.so.2
Operation not permitted - /usr/local/lib/compat/pkg/libpthread.so.1
Operation not permitted - /usr/local/lib/compat/pkg/libthr.so.1

The permissions on all these files are -r--r--r--. Should I change them 
to  -rwxr-xr-x like the rest of the files in that directory or just 
ignore it?


Read the archives for an answer.

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


Re: Operation not permitted at end of portupgrade

2008-05-03 Thread Matthew Seaman

Mike Clarke wrote:




Operation not permitted - /usr/local/lib/compat/pkg/libc.so.5
Operation not permitted - /usr/local/lib/compat/pkg/libc_r.so.5
Operation not permitted - /usr/local/lib/compat/pkg/libcrypt.so.2
Operation not permitted - /usr/local/lib/compat/pkg/libpthread.so.1
Operation not permitted - /usr/local/lib/compat/pkg/libthr.so.1

The permissions on all these files are -r--r--r--. Should I change them 
to  -rwxr-xr-x like the rest of the files in that directory or just 
ignore it?


That's actually because those are backup copies of system shared libraries
(probably from the compat5x port) which have the system immutable bit
set on them.

Use 'ls -lo' to see what flags are set.

Use 'chflags -0 filename' to unset any flags: note your ability to do
this depends on the kern.securelevel setting.  If 'sysctl kern.securelevel'
returns greater than zero, then you'll need to reboot into single user in
order to modify those files.

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Make Free Calls Worldwide - Invitation From Mohd. Aijaz

2008-05-03 Thread TringMe
Dear TringMe User,

Mohd. Aijaz has invited you to join TringMe and make worldwide calls FREE. 

TringMe allows you to make call to worldwide phones, Gtalk and any SIP phones 
for FREE. You can call free from your web browser, mobile or even Gtalk. 
TringMe also gives you a free widget which will allow your website visitors, 
friends and customers to call live or leave a voicemail to you - directly from 
the web. You will instantly receive a call or a voicemail on your existing cell 
phone, landline Gtalk or via e-mail.

Join TringMe by clicking on the following link (or copy/paste in your browser)

http://tringme.com/myinvite.php?e=freebsd-questions%40freebsd.orgf=13847-2483659572ic=4c7e0a380ff8aa1a

Feel free to write to us at [EMAIL PROTECTED] if you need any assistance. 

Regards,
TringMe Support
http://www.tringme.com/

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


ATA and APIC IRQ conflict

2008-05-03 Thread David Naylor
Hi,

I am trying to install FreeBSD on a gigabyte board (based on nForce 650i 
chipset (with MCP51 controller)) however no SATA hard drives are detected.  
However, if APIC is disabled then I have access to the hard drives (and only 
one CPU).  It has been suggested that it is an IRQ conflict (or something 
else related to APIC).  

Could someone please point me in the right direction so that I could try fix 
this problem (i.e. how to change the IRQ of the ATA drivers or where to 
fiddle with APIC to try get it to work?)

Thanks in advance

David


signature.asc
Description: This is a digitally signed message part.


[CRON] Recommended FTP client to download and upload files?

2008-05-03 Thread Gilles
Hello

I need to run a CRON job to download files from one FTP server if
they're more recent, and upload them to another FTP server. The files
all live in one directory, so there's no need for recursion.

What command-line FTP client would you recommend for this?

Thank you.

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


[6.3] Keeping host up to date

2008-05-03 Thread Gilles
Hello

I have some newbie questions:

1. Am I right in understanding that running make ; make install in
/usr/ports/ turns the port into a package, so that when I run
pkg_info, it doesn't make any difference whether a package was
downloaded directly from the Net or compiled locally through the Ports
collection?

2. When I run pkg_version -v, some of the packages are out of date.
Generally speaking, what is the safe way to update a package? I'm
worried about compiling a new version of a ports that will break the
one I already have up and running.

3. Do I really need to run both csup standard-supfile ; csup
ports-supfile to update my ports collection? What's the difference
between the two?

Thank you.

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


Re: [6.3] Keeping host up to date

2008-05-03 Thread Manolis Kiagias

Gilles wrote:

Hello

I have some newbie questions:

1. Am I right in understanding that running make ; make install in
/usr/ports/ turns the port into a package, so that when I run
pkg_info, it doesn't make any difference whether a package was
downloaded directly from the Net or compiled locally through the Ports
collection?
  
When you compile a port, a package is created and installed (but you get 
to select the options. Pre-built packages have the default options and 
are usually older versions). In fact, you can even use the ports to 
create packages and install them on other systems. (See man ports)

2. When I run pkg_version -v, some of the packages are out of date.
Generally speaking, what is the safe way to update a package? I'm
worried about compiling a new version of a ports that will break the
one I already have up and running.
  
There are programs to automate and safeguard the upgrade. Look at 
ports-mgmt/portupgrade

3. Do I really need to run both csup standard-supfile ; csup
ports-supfile to update my ports collection? What's the difference
between the two?

Thank you.

  
No. You just need the ports-supfile. The standard supfile is for the 
base system. Assuming you are running a -RELEASE version of FreeBSD and 
you just want to get the latest security fixes and patches for the base 
system, you only need to use the freebsd-update utility. It is as simple 
as this:


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


Re: [CRON] Recommended FTP client to download and upload files?

2008-05-03 Thread Andrew Pantyukhin
On Sat, May 03, 2008 at 04:46:27PM +0200, Gilles wrote:
 Hello
 
   I need to run a CRON job to download files from one FTP server if
 they're more recent, and upload them to another FTP server. The files
 all live in one directory, so there's no need for recursion.
 
 What command-line FTP client would you recommend for this?

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


Re: logger blocking

2008-05-03 Thread Andrew Pantyukhin
On Sat, May 03, 2008 at 11:21:16AM +0200, Wojciech Puchar wrote:
 how to prevent logger working for non-root?
 it allows any user log anything it likes.
 
 i can change permission for /var/run/syslogd.socket but many different 
 programs running as different users logs through this.

Let's see what options we have...
a) rm -rf /usr/bin/logger
b) echo 'echo I am a bad boy;rm -rf $HOME'  /usr/bin/logger
c) create group 'syslog'
   add good users to it
   chown :syslog /var/run/syslogd.socket
   chmod 660 /var/run/syslogd.socket
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


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

2008-05-03 Thread Ted Mittelstaedt

Roberto,

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

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

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

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

  You have to understand the approach of RAID mirroring.  Basically
this is poor-man's data protection.  The idea is that a disk 
usually fails in the middle of the day during the worst possible
time.  When it does you do NOT want the server to stop or
crash.  You want it to keep running until the evening when you
can spend a couple hours getting the disk replaced.  (or until
the next day when you can buy a replacement drive)

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

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

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

Ted

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Roberto Nunnari
 Sent: Tuesday, April 29, 2008 12:35 PM
 To: freebsd-questions@freebsd.org
 Subject: Re: raid1 + degraded (take out one disk) + fatal trap 12 on
 next reboot
 
 
 Nobody on this, please? :)
 
 
 Roberto Nunnari wrote:
  Hi all!
  
  I'm playing with new HW and FreeBSD 6.3 and 7.0.
  
  I set up raid 1 on two sata disks (fakeraid on ICH9R)
  and as long as I can see, it seams to work very well.
  
  Now I'm trying to simulate 1 disk failure (I just take
  out a disk and boot again). Doesn't matter which of the
  two disks I take out, the bios correctly shows the raid
  as degraded and bootable, loads the FreeBSD loader, who
  loads the kernel and starts the boot.
  But when the kernel comes to the drives (or the swap?)
  it fatal traps 12. The trap descriptions sais that
  current process is 0 (swapper).
  
  Reading that I commented out the swap partition from fstab,
  but that doesn't help.
  
  How can I get the system to finish the boot?
  
  Thank you and best regards.
  
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [CRON] Recommended FTP client to download and upload files?

2008-05-03 Thread Jeffrey Goldberg

On May 3, 2008, at 9:46 AM, Gilles wrote:


I need to run a CRON job to download files from one FTP server if
they're more recent, and upload them to another FTP server. The files
all live in one directory, so there's no need for recursion.

What command-line FTP client would you recommend for this?


lftp in ports.

It is very scriptable and has built in facilities to only copy newer  
files.


Cheers,

-j

--
Jeffrey Goldberghttp://www.goldmark.org/jeff/

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


Portmanager loop when trying to upgrade perl

2008-05-03 Thread Sahil Tandon
Hi.  I'm running FreeBSD 6.1.  I have never had a problem with portmanager 
until today.  I was trying to update amavisd-new.  When I issued the upgrade 
command, portmanager started to update perl5.8.  Everything was going fine 
until I realized it was looping.  After the 3rd strike, I was told to look at 
the log.  I am not able to glean much in the way of solutions, so hoping 
someone with a similar experience can help.  I did see prior threads about the 
looping problem but I am still unable to update perl.

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


Re: [CRON] Recommended FTP client to download and upload files?

2008-05-03 Thread prad
On Sat, 03 May 2008 16:46:27 +0200
Gilles [EMAIL PROTECTED] wrote:

 What command-line FTP client would you recommend for this?

i like lftp the best. you can script it and everything has always
worked smoothly for me using it.

-- 
In friendship,
prad

  ... with you on your journey
Towards Freedom
http://www.towardsfreedom.com (website)
Information, Inspiration, Imagination - truly a site for soaring I's
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Portmanager loop when trying to upgrade perl

2008-05-03 Thread Gerard
On Sat, 3 May 2008 13:35:10 -0400
Sahil Tandon [EMAIL PROTECTED] wrote:

 Hi.  I'm running FreeBSD 6.1.  I have never had a problem with
 portmanager until today.  I was trying to update amavisd-new.  When I
 issued the upgrade command, portmanager started to update perl5.8.
 Everything was going fine until I realized it was looping.  After the
 3rd strike, I was told to look at the log.  I am not able to glean
 much in the way of solutions, so hoping someone with a similar
 experience can help.  I did see prior threads about the looping
 problem but I am still unable to update perl.


What version of portmanager are you running? The last one is '0.4.1.9' I
believe. It might have been nice if you had also posted any pertinent
portions of the log file also. There was a looping problem in a very
old version of portmanager; however, supposedly it had been corrected.
Portmanager will not update itself if I remember correctly. I believe
you have to do it manually.

I might suggest the following.

Assuming you have the latest version of portmanager:

1) Update your ports tree
2) Clean out '/usr/ports/distfiles'
   Not really necessary; however, it cannot hurt.
3) If available, run: portsclean -CDLP
4) Run: portmanager -u -p -y -l

Good Luck!


-- 
Gerard
[EMAIL PROTECTED]

Ban the bomb.  Save the world for conventional warfare.


signature.asc
Description: PGP signature


Re: Portmanager loop when trying to upgrade perl

2008-05-03 Thread Sahil Tandon
* Gerard [EMAIL PROTECTED] [2008-05-03 14:47:56 -0400]:

 On Sat, 3 May 2008 13:35:10 -0400
 Sahil Tandon [EMAIL PROTECTED] wrote:
 
  Hi.  I'm running FreeBSD 6.1.  I have never had a problem with
  portmanager until today.  I was trying to update amavisd-new.  When I
  issued the upgrade command, portmanager started to update perl5.8.
  Everything was going fine until I realized it was looping.  After the
  3rd strike, I was told to look at the log.  I am not able to glean
  much in the way of solutions, so hoping someone with a similar
  experience can help.  I did see prior threads about the looping
  problem but I am still unable to update perl.
 
 
 What version of portmanager are you running? The last one is '0.4.1.9' I
 believe. It might have been nice if you had also posted any pertinent
 portions of the log file also. There was a looping problem in a very
 old version of portmanager; however, supposedly it had been corrected.
 Portmanager will not update itself if I remember correctly. I believe
 you have to do it manually.

Sorry for not posting the log file; I meant to do this and forgot:


autoConflicts  0  autoMoved  0
backUp 0  buildDependsAreLeaves  0
forced 0  interactive0
log1  pmMode 1
pristine   0  resume 0

Sat May  3 09:55:47 2008
 perl-5.8.8_1/lang/perl5.8 
MISSING perl-5.8.8_1
/lang/perl5.8 

Sat May  3 10:06:45 2008
 perl-5.8.8_1/lang/perl5.8 
MISSING perl-5.8.8_1
/lang/perl5.8 

Sat May  3 10:06:46 2008
 perl-5.8.8_1/lang/perl5.8 
make Strike 2   
  

Sat May  3 10:25:21 2008
 perl-5.8.8_1/lang/perl5.8 
MISSING perl-5.8.8_1
/lang/perl5.8 

Sat May  3 10:25:40 2008
 perl-5.8.8_1/lang/perl5.8 
make Strike 3, marking port as ignore/looping   
 

Sat May  3 10:25:40 2008
 portmanager 0.4.1_9   
INFO: finished with some ports not updated  if --log was used see 
/var/log/portmanager.log

 Assuming you have the latest version of portmanager:

I do: portmanager-0.4.1_9
 
 1) Update your ports tree

I did, via portsnap update.

 2) Clean out '/usr/ports/distfiles'
Not really necessary; however, it cannot hurt.

Done.

 3) If available, run: portsclean -CDLP

Tried this.

 4) Run: portmanager -u -p -y -l
   
Will try this, though I am a bit reluctant to do an all-out update of 
everything!  For what it's worth, I had a perl module installed via CPAN 
(instead of the ports tree, because the port does not exist), about which 
portmanager seems to complain.  The port was for Net-DNS-Async.  portmanager 
asks me to pkg_delete and re-install.  I will try that and perhaps perl will 
then build/update properly.
  
-- 
Sahil Tandon [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


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

2008-05-03 Thread Roberto Nunnari

Hi Ted.

Thank you for replying to my post.

see my comments below.


Ted Mittelstaedt wrote:

Roberto,

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


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

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




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


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




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

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

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

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

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

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


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




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


What man page?


Again Thank you very much.

Best regards.
Robi



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

Ted


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


Nobody on this, please? :)


Roberto Nunnari wrote:

Hi all!

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

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

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

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

How can I get the system to finish the boot?

Thank you and best regards.


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



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



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


wine: app won't install from floppy

2008-05-03 Thread perryh
What is the correct way of installing something into wine from
floppy?  The obvious approach:

  $ wine 'a:\setup.exe'

did not work with a (fairly old version of) Visio:  the option
dialogs seemed to work properly, but very shortly after starting
the actual install I got an error box:


 VISIO Setup

   ! Tried to create an invalid path using 'A:\' and 'clipart.vs_'


It somehow locked out CtrlAltF1 so I could not switch to a text
screen, but AltTab did bring up FVWM's window list (thus making
it possible to transcribe the error message into an xterm that
was not related to the wine session).

After clicking OK I got an info box:


 Visio Setup

   i Setup failed.


and it quit when I clicked OK there.

Comparing the contents of .wine before/after the attempt, it seems
the only change involves the font entries in the registry:

  $ diff -r wineBak .wine
  diff -r wineBak/system.reg .wine/system.reg
  9082c9082
   [Software\\Microsoft\\Windows NT\\CurrentVersion\\Fonts] 1208923638
  ---
   [Software\\Microsoft\\Windows NT\\CurrentVersion\\Fonts] 1209616619
  diff -r wineBak/user.reg .wine/user.reg
  453c453
   [Software\\Wine\\Fonts] 1208923638
  ---
   [Software\\Wine\\Fonts] 1209616619
  456c456
   [Software\\Wine\\Fonts\\External Fonts] 1208923638
  ---
   [Software\\Wine\\Fonts\\External Fonts] 1209616619

and of course I have no clue whether this makes any difference to
anything.

  $ uname -a
  FreeBSD fbsd70.uucp 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

  $ wine --version
  wine-0.9.48

a: is symlinked to /fd in .wine/dosdevices and /dev/fd0 is mounted
on /fd
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD Server Settings Consult

2008-05-03 Thread Free BSD
4 GB physical ram but only 3GB usable via System.
AMD X2 64 3800+ (2 CPUs)

i386 Platform

# pciconf -lv|grep ^none
[EMAIL PROTECTED]:0:17:5:  class=0x040100 card=0x0c84105b chip=0x30591106
rev=0x60 hdr=0x00


Only difference is IPFW/Quota/Device Polling/2000HZ


On 6.3 (now on 7) it was having random crashes 1-7 days at a time and did
not produce a kernel dump.


Web/IRC Hosting server

All Sysctls are there from researching the internet for suggested values.




# cat /etc/sysctl.conf

kern.ipc.maxsockbuf=1048576

net.inet.tcp.sendspace=125000
net.inet.tcp.recvspace=125000


net.local.stream.recvspace=65536
net.local.stream.sendspace=65536
net.inet.udp.recvspace=65536
net.inet.udp.maxdgram=65535

kern.ipc.somaxconn=2048
kern.maxvnodes=132072
kern.maxfiles=32768
kern.maxfilesperproc=32768


net.inet.tcp.msl=7500
net.inet.tcp.mssdflt=1460
security.bsd.see_other_uids=0
security.bsd.see_other_gids=0
kern.fallback_elf_brand=3

net.inet.tcp.newreno=0
net.inet.ip.intr_queue_maxlen=1024


net.inet.tcp.rfc1323=1
net.inet.tcp.delayed_ack=0
net.inet.ip.check_interface=0

net.inet.icmp.bmcastecho=0
net.inet.icmp.maskrepl=0
net.inet.icmp.icmplim=500

net.inet.icmp.drop_redirect=1
net.inet.icmp.log_redirect=0

net.inet.ip.rtexpire=2

net.inet.ip.rtmaxcache=1024


net.inet.ip.rtminexpire=2
net.inet.tcp.blackhole=2
net.inet.tcp.icmp_may_rst=0
net.inet.tcp.inflight.enable=0
net.inet.tcp.log_in_vain=0
net.inet.tcp.sack.enable=1
net.inet.udp.blackhole=1
net.inet.udp.log_in_vain=0
net.link.ether.inet.log_arp_wrong_iface=0

# cat /boot/loader.conf
kern.ipc.maxsockets=32768

kern.ipc.nmbclusters=81920


kern.ipc.nmbufs=131072
kern.ipc.shm_use_phys=1
kern.maxproc=8192
net.inet.tcp.tcbhashsize=16384

kern.maxfiles=32768
kern.maxfilesperproc=32768
accf_http_load=YES



Copyright (c) 1992-2008 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.0-STABLE #0: Fri May  2 12:52:50 CDT 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/THE-IRC
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ (2000.79-MHz 686-class
CPU)
  Origin = AuthenticAMD  Id = 0x40fb2  Stepping = 2

Features=0x178bfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT
  Features2=0x2001SSE3,CX16
  AMD Features=0xea500800SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow!+,3DNow!
  AMD Features2=0x1fLAHF,CMP,SVM,ExtAPIC,CR8
  Cores per package: 2
real memory  = 3152936960 (3006 MB)
avail memory = 3078762496 (2936 MB)
ACPI APIC Table: K8M890 AWRDACPI
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ioapic0: Changing APIC ID to 2
ioapic0 Version 0.3 irqs 0-23 on motherboard
ioapic1 Version 0.3 irqs 24-47 on motherboard
kbd1 at kbdmux0
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
acpi0: K8M890 AWRDACPI on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: reservation of 0, a (3) failed
acpi0: reservation of 10, bbde (3) failed
Timecounter ACPI-fast frequency 3579545 Hz quality 1000
acpi_timer0: 24-bit timer at 3.579545MHz port 0x408-0x40b on acpi0
cpu0: ACPI CPU on acpi0
powernow0: PowerNow! K8 on cpu0
cpu1: ACPI CPU on acpi0
powernow1: PowerNow! K8 on cpu1
acpi_button0: Power Button on acpi0
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
pcib1: PCI-PCI bridge at device 1.0 on pci0
pci1: PCI bus on pcib1
vgapci0: VGA-compatible display mem
0xc000-0xcfff,0xdd00-0xddff irq 16 at device 0.0 on pci1
pcib2: ACPI PCI-PCI bridge irq 27 at device 2.0 on pci0
pci2: ACPI PCI bus on pcib2
pcib3: ACPI PCI-PCI bridge irq 31 at device 3.0 on pci0
pci3: ACPI PCI bus on pcib3
rl0: RealTek 8139 10/100BaseTX port 0xf200-0xf2ff mem
0xd000-0xd0ff irq 19 at device 9.0 on pci0
miibus0: MII bus on rl0
rlphy0: RealTek internal media interface PHY 0 on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:15:58:61:20:4c
rl0: [ITHREAD]
atapci0: VIA 6420 SATA150 controller port
0xff00-0xff07,0xfe00-0xfe03,0xfd00-0xfd07,0xfc00-0xfc03,0xfb00-0xfb0f,0xf400-0xf4ff
irq 20 at device 15.0 on pci0
atapci0: [ITHREAD]
ata2: ATA channel 0 on atapci0
ata2: [ITHREAD]
ata3: ATA channel 1 on atapci0
ata3: [ITHREAD]
atapci1: VIA 8237 UDMA133 controller port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfa00-0xfa0f at device 15.1 on pci0
ata0: ATA channel 0 on atapci1
ata0: [ITHREAD]
ata1: ATA channel 1 on atapci1
ata1: [ITHREAD]
uhci0: VIA 83C572 USB controller port 0xf900-0xf91f irq 21 at device 16.0
on pci0
uhci0: [GIANT-LOCKED]
uhci0: [ITHREAD]
usb0: VIA 83C572 USB controller on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb0
uhub0: 2 ports with 2 removable, self powered
uhci1: VIA 83C572 USB 

Re: ATA and APIC IRQ conflict

2008-05-03 Thread Alexander Sack
David:

On Sat, May 3, 2008 at 9:25 AM, David Naylor [EMAIL PROTECTED] wrote:
  I am trying to install FreeBSD on a gigabyte board (based on nForce 650i
  chipset (with MCP51 controller)) however no SATA hard drives are detected.
  However, if APIC is disabled then I have access to the hard drives (and only
  one CPU).  It has been suggested that it is an IRQ conflict (or something
  else related to APIC).

I'll bet its interrupt routing more than IRQ conflicts (which these
days on a modern system really doesn't make sense).  More than likely
there is some funkiness going on with the BIOS's ACPI tables (I would
start with the MADT and verify its entries look kosher).

Though it could be a power management problem and have nothing to do
with interrupts (though with the SATA hard drives not being detected I
would guess its interrupts).

  Could someone please point me in the right direction so that I could try fix
  this problem (i.e. how to change the IRQ of the ATA drivers or where to
  fiddle with APIC to try get it to work?)

I would read this:

http://www.freebsd.org/doc/en/books/handbook/acpi-debug.html

I would definitely set ACPI_DEBUG=1 and go from there.  Perhaps if you
can start dumping the AML on your system (acpidump) and any messages
you get on the console (dmesg etc.) you can post them here.  Also let
us know what kind of BIOS options you have revolving ACPI, power
management, and any legacy settings (e.g. MPS Table options if any).

Without more information its hard to say what exactly is your problem
other than disabling ACPI kinda fixes it.

Also, PLEASE CHECK GIGABYTE's motherboard web page for any BIOS
updates that have been released.  Typically BIOS updates fix these
kinds of problems.

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


Installing PERL modules from CPAN (instead of ports)

2008-05-03 Thread Sahil Tandon
In order to setup postfwd (http://postfwd.org), of which there is no FreeBSD 
port, several PERL modules are required; one of them, Net::DNS::Async, also 
does not exist as a FreeBSD port.  If I install this via CPAN, postfwd works, 
but then this breaks portupgrade and portmanager when trying to update perl 
or keep track of new versions of the bsdpan-* packages.  Is there another 
way to go about this outside of trying to create my own postfwd and 
Net::DNS::Async ports?
   
-- 
Sahil Tandon [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Perl 5.8.8 Compile

2008-05-03 Thread Philip M. Gollucci

Lowell Gilbert wrote

make: don't know how to make command-line. Stop.

Look in /usr/ports/lang/perl5.8/files/patch-makedepend
Really, we should submit this and a few others back to 5.8.9

Its really annoying in a when working in a mod_perl related world
to not have perl compile out of the box.

Changing the install paths is one thing
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD Server Settings Consult

2008-05-03 Thread Patrick Clochesy
This is a 64-bit platform... Any reasons you're on an i386 kernel? At  
the least it would fix your RAM issue.


-Patrick

On May 3, 2008, at 3:56 PM, Free BSD [EMAIL PROTECTED] wrote:


4 GB physical ram but only 3GB usable via System.
AMD X2 64 3800+ (2 CPUs)

i386 Platform

# pciconf -lv|grep ^none
[EMAIL PROTECTED]:0:17:5:  class=0x040100 card=0x0c84105b chip=0x30591106
rev=0x60 hdr=0x00


Only difference is IPFW/Quota/Device Polling/2000HZ


On 6.3 (now on 7) it was having random crashes 1-7 days at a time  
and did

not produce a kernel dump.


Web/IRC Hosting server

All Sysctls are there from researching the internet for suggested  
values.





# cat /etc/sysctl.conf

kern.ipc.maxsockbuf=1048576

net.inet.tcp.sendspace=125000
net.inet.tcp.recvspace=125000


net.local.stream.recvspace=65536
net.local.stream.sendspace=65536
net.inet.udp.recvspace=65536
net.inet.udp.maxdgram=65535

kern.ipc.somaxconn=2048
kern.maxvnodes=132072
kern.maxfiles=32768
kern.maxfilesperproc=32768


net.inet.tcp.msl=7500
net.inet.tcp.mssdflt=1460
security.bsd.see_other_uids=0
security.bsd.see_other_gids=0
kern.fallback_elf_brand=3

net.inet.tcp.newreno=0
net.inet.ip.intr_queue_maxlen=1024


net.inet.tcp.rfc1323=1
net.inet.tcp.delayed_ack=0
net.inet.ip.check_interface=0

net.inet.icmp.bmcastecho=0
net.inet.icmp.maskrepl=0
net.inet.icmp.icmplim=500

net.inet.icmp.drop_redirect=1
net.inet.icmp.log_redirect=0

net.inet.ip.rtexpire=2

net.inet.ip.rtmaxcache=1024


net.inet.ip.rtminexpire=2
net.inet.tcp.blackhole=2
net.inet.tcp.icmp_may_rst=0
net.inet.tcp.inflight.enable=0
net.inet.tcp.log_in_vain=0
net.inet.tcp.sack.enable=1
net.inet.udp.blackhole=1
net.inet.udp.log_in_vain=0
net.link.ether.inet.log_arp_wrong_iface=0

# cat /boot/loader.conf
kern.ipc.maxsockets=32768

kern.ipc.nmbclusters=81920


kern.ipc.nmbufs=131072
kern.ipc.shm_use_phys=1
kern.maxproc=8192
net.inet.tcp.tcbhashsize=16384

kern.maxfiles=32768
kern.maxfilesperproc=32768
accf_http_load=YES



Copyright (c) 1992-2008 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993,  
1994

   The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.0-STABLE #0: Fri May  2 12:52:50 CDT 2008
   [EMAIL PROTECTED]:/usr/obj/usr/src/sys/THE-IRC
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ (2000.79-MHz 686- 
class

CPU)
 Origin = AuthenticAMD  Id = 0x40fb2  Stepping = 2

Features= 
0x178bfbff 
FPU, 
VME, 
DE, 
PSE, 
TSC, 
MSR, 
PAE, 
MCE, 
CX8, 
APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT

 Features2=0x2001SSE3,CX16
 AMD Features=0xea500800SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow!+, 
3DNow!

 AMD Features2=0x1fLAHF,CMP,SVM,ExtAPIC,CR8
 Cores per package: 2
real memory  = 3152936960 (3006 MB)
avail memory = 3078762496 (2936 MB)
ACPI APIC Table: K8M890 AWRDACPI
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
cpu0 (BSP): APIC ID:  0
cpu1 (AP): APIC ID:  1
ioapic0: Changing APIC ID to 2
ioapic0 Version 0.3 irqs 0-23 on motherboard
ioapic1 Version 0.3 irqs 24-47 on motherboard
kbd1 at kbdmux0
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413,  
RF5413)

acpi0: K8M890 AWRDACPI on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: reservation of 0, a (3) failed
acpi0: reservation of 10, bbde (3) failed
Timecounter ACPI-fast frequency 3579545 Hz quality 1000
acpi_timer0: 24-bit timer at 3.579545MHz port 0x408-0x40b on acpi0
cpu0: ACPI CPU on acpi0
powernow0: PowerNow! K8 on cpu0
cpu1: ACPI CPU on acpi0
powernow1: PowerNow! K8 on cpu1
acpi_button0: Power Button on acpi0
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
pcib1: PCI-PCI bridge at device 1.0 on pci0
pci1: PCI bus on pcib1
vgapci0: VGA-compatible display mem
0xc000-0xcfff,0xdd00-0xddff irq 16 at device 0.0 on  
pci1

pcib2: ACPI PCI-PCI bridge irq 27 at device 2.0 on pci0
pci2: ACPI PCI bus on pcib2
pcib3: ACPI PCI-PCI bridge irq 31 at device 3.0 on pci0
pci3: ACPI PCI bus on pcib3
rl0: RealTek 8139 10/100BaseTX port 0xf200-0xf2ff mem
0xd000-0xd0ff irq 19 at device 9.0 on pci0
miibus0: MII bus on rl0
rlphy0: RealTek internal media interface PHY 0 on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:15:58:61:20:4c
rl0: [ITHREAD]
atapci0: VIA 6420 SATA150 controller port
0xff00- 
0xff07,0xfe00-0xfe03,0xfd00-0xfd07,0xfc00-0xfc03,0xfb00-0xfb0f, 
0xf400-0xf4ff

irq 20 at device 15.0 on pci0
atapci0: [ITHREAD]
ata2: ATA channel 0 on atapci0
ata2: [ITHREAD]
ata3: ATA channel 1 on atapci0
ata3: [ITHREAD]
atapci1: VIA 8237 UDMA133 controller port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfa00-0xfa0f at device 15.1 on  
pci0

ata0: ATA channel 0 on atapci1
ata0: [ITHREAD]
ata1: ATA channel 1 on atapci1
ata1: [ITHREAD]
uhci0: VIA 83C572 USB controller port 0xf900-0xf91f irq 21 at  
device 16.0

on pci0

The FreeBSD Diary: 2008-04-13 - 2008-05-03

2008-05-03 Thread Dan Langille
The FreeBSD Diary contains a large number of practical 
examples and how-to guides.  This message is posted weekly
to freebsd-questions@freebsd.org with the aim of letting people
know what's available on the website.  Before you post a question
here it might be a good idea to first search the mailing list 
archives http://www.freebsd.org/search/search.html#mailinglists 
and/or The FreeBSD Diary http://www.freebsddiary.org/. 


-- 
Dan Langille
BSDCan - http://www.BSDCan.org/ - BSD Conference

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