gmirror degraded
Just looking for some advice, I had a server lock up that uses gmirror for two RAID-1 arrays of the primary drive and a data drive. The data drive was reported as degraded after a reset of the server, but is rebuilding. It is comprised of two TB drives with one reporting ACTIVE with no flags. The other synchronizing and taking days... Geom name: d1 State: DEGRADED Components: 2 Balance: round-robin Slice: 4096 Flags: NONE GenID: 0 SyncID: 2 ID: 2434624761 Providers: 1. Name: mirror/d1 Mediasize: 999653637632 (931G) Sectorsize: 512 Mode: r2w1e1 Consumers: 1. Name: ada1p1 Mediasize: 999653638144 (931G) Sectorsize: 512 Stripesize: 0 Stripeoffset: 17408 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: NONE GenID: 0 SyncID: 2 ID: 175176036 2. Name: ada3p1 Mediasize: 999653638144 (931G) Sectorsize: 512 Stripesize: 0 Stripeoffset: 17408 Mode: r1w1e1 State: SYNCHRONIZING Priority: 0 Flags: DIRTY, SYNCHRONIZING GenID: 0 SyncID: 2 Synchronized: 91% ID: 4158324973 I ran the smartctl command below on the synchronizing drive and it seems there are no errors? Should I trust this drive? backup# /usr/local/sbin/smartctl -a /dev/ada3 smartctl 5.43 2012-06-30 r3573 [FreeBSD 9.0-RELEASE i386] (local build) Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net === START OF INFORMATION SECTION === Model Family: Seagate Barracuda 7200.12 Device Model: ST31000528AS Serial Number:9VP8EKVV LU WWN Device Id: 5 000c50 026d2b322 Firmware Version: CC3E User Capacity:1,000,204,886,016 bytes [1.00 TB] Sector Size: 512 bytes logical/physical Device is:In smartctl database [for details use: -P show] ATA Version is: 8 ATA Standard is: ATA-8-ACS revision 4 Local Time is:Thu Oct 11 10:36:54 2012 EDT SMART support is: Available - device has SMART capability. SMART support is: Enabled === START OF READ SMART DATA SECTION === SMART overall-health self-assessment test result: PASSED General SMART Values: Offline data collection status: (0x82) Offline data collection activity was completed without error. Auto Offline Data Collection: Enabled. Self-test execution status: ( 0) The previous self-test routine completed without error or no self-test has ever been run. Total time to complete Offline data collection:( 600) seconds. Offline data collection capabilities:(0x7b) SMART execute Offline immediate. Auto Offline data collection on/off support. Suspend Offline collection upon new command. Offline surface scan supported. Self-test supported. Conveyance Self-test supported. Selective Self-test supported. SMART capabilities:(0x0003) Saves SMART data before entering power-saving mode. Supports SMART auto save timer. Error logging capability:(0x01) Error logging supported. General Purpose Logging supported. Short self-test routine recommended polling time:( 1) minutes. Extended self-test routine recommended polling time:( 175) minutes. Conveyance self-test routine recommended polling time:( 2) minutes. SCT capabilities: (0x103f) SCT Status supported. SCT Error Recovery Control supported. SCT Feature Control supported. SCT Data Table supported. SMART Attributes Data Structure revision number: 10 Vendor Specific SMART Attributes with Thresholds: ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE 1 Raw_Read_Error_Rate 0x000f 113 097 006Pre-fail Always - 108410580 3 Spin_Up_Time0x0003 095 095 000Pre-fail Always - 0 4 Start_Stop_Count0x0032 100 100 020Old_age Always - 34 5 Reallocated_Sector_Ct 0x0033 076 076 036Pre-fail Always - 1003 7 Seek_Error_Rate 0x000f 074 060 030Pre-fail Always - 25881764 9 Power_On_Hours 0x0032 079 079 000Old_age Always - 18567 10 Spin_Retry_Count0x0013 100 100 097Pre-fail Always - 0 12 Power_Cycle_Count 0x0032 100 100 020Old_age Always - 17 183 Runtime_Bad_Block 0x0032 100 100 000Old_age Always - 0
Resetting RAID1 drive as Non-RAID
I have a FreeBSD 9.0 server with an Intel RAID card that has two array mirrors of which one has failed. The remote host was not responding and had it reset to find in the RAID utility one of the drives had failed one of the RAID 1 arrays. Perhaps I shouldn't have, but I told the utility to use the drive again and it added back to the array with the 'Rebuild' message on the array, which means to rebuild the array within the OS. I went into the system as single user mode and did a 'fsck -y' on all the /etc/fstab mounts... backup# cat /etc/fstab # DeviceMountpoint FStype Options DumpPass# /dev/ar0s1b noneswapsw 0 0 /dev/ar0s1a / ufs rw 1 1 /dev/ar0s1f /home ufs rw 2 2 /dev/ar0s1d /usrufs rw 2 2 /dev/ar0s1e /varufs rw 2 2 #/dev/ar1s1d/data ufs rw,userquota,groupquota2 2 /dev/acd0 /cdrom cd9660 ro,noauto 0 0 The drive that failed is in the ar1 array. I can mount /data in single user mode and see all files fine, but it continues to report INCORRECT BLOCK COUNT messages and UNEXPECTED SOFT UPDATE INCONSISTENCY errors as well as allocated frags marked free and reports CLEAN no matter how many times I run fsck on the drive. I can mount the /data partition in normal mode, but will receive errors about 'lock order reversal' when doing umount on the drive or it will lock the system after several minutes with panic error if left mounted. Assuming my problem is that the drive needs to be replaced, now that the drive is in the array again, the utility no longer indicates which drive is bad. I believe I remember which it was, but not 100% sure. Is there a way to determine which physical drive is bad using FreeBSD? If able to reset to Non-RAID, would that allow FreeBSD to mount the DEGRADED array and continue to access to the data or does the drive need to be pulled in order to possibly satisfy FreeBSD to allow me to mount RAID-1 array DEGRADED? In the end, I am hoping to mount this array with the one drive until I can get the replacement drive installed. Thanks for any help, I realize some of this is related to the Intel RAID, just wanted to see if someone was familiar with how to recover from such a situation. ___ 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
Apache segmentation fault
Upgraded php52 to php53 by pkg_delete of php5 and porinstall php52. Then I had to manually resort back to php52 by pkg_delete and then portinstall and now getting a seg fault when restarting apache22 on this FreeBSD 8.1 server. I narrowed it down to not the php module, but the two ldap modules I have in apache... mail# cat httpd.conf|grep ldap #LoadModule authnz_ldap_module libexec/apache22/mod_authnz_ldap.so #LoadModule ldap_module libexec/apache22/mod_ldap.so With these two lines commented out, apache restarts without the seg fault. Tried to force pkg_delete on apache and then portinstall to rebuild these modules, but same issue afterward. The php module loads without error, but getting download prompts when trying to access php pages. Not getting any help from messages or httpd-error logs and all was working before I messed it up. My question is what I should try next to try and fix this issue. Should I force pkg_delete and rebuild all php packages or ldap packages? Or some other approach? Thanks for any help, Robert -- Robert rob...@webtent.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Apache segmentation fault
On 1/11/2012 4:39 PM, Waitman Gobble wrote: sorry, somehow i missed that paragraph about commenting out the other modules... hope i didn't send you on a wild goose chase for nothing. but the behavior you describe sounds like what happens running with a mismatched php.ini... i once tried to narrow down but decided it more productive to start with a fresh ini file. i believe the problem has to do with the session config lines. that and the way it handles cgi variables (see the EPGS section) are the two biggest changes i noticed. anyway you might check if thats the issue easily by renaming php.ini.. it should run without it. (at least 5.2 would havent tried 5.3) if it runs without php.ini then that could be the problem. by the way you are restarting apache after the changes right? also verify that the modules listed in httpd.conf exist in the paths specified... hope that helps! waitman Thanks for that, found my php.ini was symlink'd to php.ini-recommended, which is now missing. PHP working now, but still no help with the segmentation fault. I have tested my ldap client pkgs and perl-LDAP to work fine, but when I uncomment those modules, I get the fault when restarting apache mail# pwd /usr/local/etc mail# cat apache22/httpd.conf|grep ldap LoadModule authnz_ldap_module libexec/apache22/mod_authnz_ldap.so LoadModule ldap_module libexec/apache22/mod_ldap.so mail# cat apache22/httpd.conf | grep ServerRoot ServerRoot /usr/local mail# cat apache22/httpd.conf | grep ldap LoadModule authnz_ldap_module libexec/apache22/mod_authnz_ldap.so LoadModule ldap_module libexec/apache22/mod_ldap.so mail# ls -lah /usr/local/libexec/apache22/*ldap* -rwxr-xr-x 1 root wheel54K Jan 11 12:29 /usr/local/libexec/apache22/mod_authnz_ldap.so -rwxr-xr-x 1 root wheel 115K Jan 11 12:29 /usr/local/libexec/apache22/mod_ldap.so mail# rc.d/apache22 restart Performing sanity check on apache22 configuration: Syntax OK Segmentation fault (core dumped) If I comment out the two modules shown, it restarts without issue. -- Robert rob...@webtent.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Kernel errors after upgrade from 8.1 to 8.2
After following the handbook Chapter 24 to upgrade from 8.1 to 8.2, I am getting kernel errors for various postfix commands... May 9 08:54:13 mx3 kernel: pid 57056 (trivial-rewrite), uid 125: exited on signal 11 May 9 08:56:46 mx3 kernel: pid 57086 (smtpd), uid 125: exited on signal 11 I have searched the maillog and can't find any errors between restart and such entries as... May 9 08:54:13 mx3 postfix/master[19357]: warning: process /usr/local/libexec/postfix/trivial-rewrite pid 57056 killed by signal 11 May 9 08:56:46 mx3 postfix/master[19357]: warning: process /usr/local/libexec/postfix/smtpd pid 57086 killed by signal 11 I updated the ports after the reboot and did a 'portupgrade -af' after the kernel update, restart, etc. I had no issues performing the upgrade according to the handbook and the System State Comparison seems OK... mx3# cat outfile.ids | awk '{ print $1 }' | more Looking Fetching Fetching Inspecting /boot/kernel/linker.hints /etc/crontab /etc/group /etc/hosts /etc/mail/aliases /etc/mail/mailer.conf /etc/manpath.config /etc/master.passwd /etc/motd /etc/passwd /etc/pwd.db /etc/spwd.db /etc/ssh/sshd_config /usr/lib32 I also tried 'make deinstall' for postfix and re-installed. And the system reports 8.2-RELEASE. All the mail for a test domain seem to be flowing without issue, but these kernel messages and warnings tell me something is wrong. Can someone suggest what to do next in finding a solution? Or is it best to post this to the postfix list? Thanks, Robert ___ 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: Kernel errors after upgrade from 8.1 to 8.2
On 5/9/2011 12:33 PM, Reko Turja wrote: I updated the ports after the reboot and did a 'portupgrade -af' after the kernel update, restart, etc. I had no issues performing the upgrade according to the handbook and the System State Comparison seems OK... Did you do the whole mergemaster -p make buildworld make buildkernel make installkernel reboot test make installworld mergemaster sequence? As you tell about ending the process at reboot, I have a gut feeling that your userland is not up to date with kernel and the make installworld step is missing... -Reko Thanks, I think this may be my problem. I took it the wrong way when the handbook said this process is complete at the end of section 24.2 meaning the upgrade process is complete. It did say during the process that the kernel changed and I rebooted with another 'freebsd-update install' afterward. Didn't realize more processes to follow. I am using a GENERIC kernel and do not have the source on the disk, of course then I get... mx3# mergemaster -p *** Creating the temporary root environment in /var/tmp/temproot *** /var/tmp/temproot ready for use *** Creating and populating directory structure in /var/tmp/temproot cp: /usr/src/etc/master.passwd: No such file or directory *** FATAL ERROR: Cannot copy files to the temproot environment So, I just need to get all the source and then rebuild as you mentioned? --Robert ___ 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
kern.crit messages
I have a server I installed 8.1-RELEASE on and believe I screwed up when rebuilding the kernel to support QUOTA because now that I am troubleshooting these weird messages in the log, I find I am actually running 9.0-CURRENT. I had a ports file as below when I pulled the source to rebuild the kernel... *default host=cvsup9.us.FreeBSD.org *default base=/usr *default prefix=/usr *default release=cvs tag=. *default release=cvs delete use-rel-suffix compress src-all Using the tag above caused my issue? Now I see some troubling messages in my logs... Feb 6 11:25:23 kern.crit backup kernel: lock order reversal: Feb 6 11:25:23 kern.crit backup kernel: 1st 0xff8014bbbe58 bufwait (bufwait) @ /usr/src/sys/kern/vfs_bio.c:2659 Feb 6 11:25:23 kern.crit backup kernel: 2nd 0xff002b9d6400 dirhash (dirhash) @ /usr/src/sys/ufs/ufs/ufs_dirhash.c:283 Feb 6 11:25:23 kern.crit backup kernel: KDB: stack backtrace: Feb 6 11:25:23 kern.crit backup kernel: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a Feb 6 11:25:23 kern.crit backup kernel: _witness_debugger() at _witness_debugger+0x2e Feb 6 11:25:23 kern.crit backup kernel: witness_checkorder() at witness_checkorder+0x807 Feb 6 11:25:23 kern.crit backup kernel: _sx_xlock() at _sx_xlock+0x55 Feb 6 11:25:23 kern.crit backup kernel: ufsdirhash_acquire() at ufsdirhash_acquire+0x33 Feb 6 11:25:23 kern.crit backup kernel: ufsdirhash_add() at ufsdirhash_add+0x19 Feb 6 11:25:23 kern.crit backup kernel: ufs_direnter() at ufs_direnter+0x662 Feb 6 11:25:23 kern.crit backup kernel: ufs_makeinode() at ufs_makeinode+0x291 Feb 6 11:25:23 kern.crit backup kernel: VOP_CREATE_APV() at VOP_CREATE_APV+0x8d Feb 6 11:25:23 kern.crit backup kernel: vn_open_cred() at vn_open_cred+0x46a Feb 6 11:25:23 kern.crit backup kernel: kern_openat() at kern_openat+0x181 Feb 6 11:25:23 kern.crit backup kernel: syscallenter() at syscallenter+0x1aa Feb 6 11:25:23 kern.crit backup kernel: syscall() at syscall+0x4c Feb 6 11:25:23 kern.crit backup kernel: Xfast_syscall() at Xfast_syscall+0xe2 Feb 6 11:25:23 kern.crit backup kernel: --- syscall (5, FreeBSD ELF64, open), rip = 0x80078118c, rsp = 0x7fffad48, rbp = 0x7fffb73f --- I also find this message with dmesg... ad8: 152627MB Seagate ST3160811AS 3.AAE at ata4-master UDMA100 SATA ad9: 953869MB Seagate ST31000528AS CC3E at ata4-slave UDMA100 SATA GEOM: ad8s1: geometry does not match label (255h,63s != 16h,63s). ad10: 152627MB Seagate ST3160811AS 3.AAE at ata5-master UDMA100 SATA ad11: 953869MB Seagate ST31000528AS CC3E at ata5-slave UDMA100 SATA GEOM: ad9s1: geometry does not match label (255h,63s != 16h,63s). uhub0: 2 ports with 2 removable, self powered uhub1: 2 ports with 2 removable, self powered uhub2: 2 ports with 2 removable, self powered uhub3: 2 ports with 2 removable, self powered GEOM: ufsid/4c7aa872e9a44575: geometry does not match label (255h,63s != 16h,63s). GEOM: ad10s1: geometry does not match label (255h,63s != 16h,63s). GEOM: ad11s1: geometry does not match label (255h,63s != 16h,63s). uhub4: 8 ports with 8 removable, self powered ar0: 152627MB Intel MatrixRAID RAID1 status: READY ar0: disk0 READY (master) using ad8 at ata4-master ar0: disk1 READY (mirror) using ad10 at ata5-master ar1: 953869MB Intel MatrixRAID RAID1 status: READY ar1: disk0 READY (master) using ad11 at ata5-slave ar1: disk1 READY (mirror) using ad9 at ata4-slave SMP: AP CPU #1 Launched! WARNING: WITNESS option enabled, expect reduced performance. ugen1.2: Rextron at usbus1 ukbd0: USB on usbus1 kbd2 at ukbd0 ums0: USB on usbus1 ums0: 5 buttons and [XYZ] coordinates ID=1 Trying to mount root from ufs:/dev/ar0s1a lock order reversal: 1st 0xff0002cdd818 ufs (ufs) @ /usr/src/sys/kern/vfs_lookup.c:501 2nd 0xff801497ff78 bufwait (bufwait) @ /usr/src/sys/ufs/ffs/ffs_softdep.c:11309 3rd 0xff0002d4fbd8 ufs (ufs) @ /usr/src/sys/kern/vfs_subr.c:2111 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a _witness_debugger() at _witness_debugger+0x2e witness_checkorder() at witness_checkorder+0x807 __lockmgr_args() at __lockmgr_args+0xd42 ffs_lock() at ffs_lock+0x8c VOP_LOCK1_APV() at VOP_LOCK1_APV+0x9b _vn_lock() at _vn_lock+0x47 vget() at vget+0x7b vfs_hash_get() at vfs_hash_get+0xd5 ffs_vgetf() at ffs_vgetf+0x48 softdep_sync_metadata() at softdep_sync_metadata+0x5e3 ffs_syncvnode() at ffs_syncvnode+0x213 ffs_truncate() at ffs_truncate+0x557 ufs_direnter() at ufs_direnter+0x47b ufs_makeinode() at ufs_makeinode+0x291 VOP_CREATE_APV() at VOP_CREATE_APV+0x8d vn_open_cred() at vn_open_cred+0x46a kern_openat() at kern_openat+0x181 syscallenter() at syscallenter+0x1aa syscall() at syscall+0x4c Xfast_syscall() at Xfast_syscall+0xe2 --- syscall (5, FreeBSD ELF64, open), rip = 0x80072f18c, rsp = 0x7fffead8, rbp = 0 --- lock order reversal: 1st 0xff8014bbbe58 bufwait (bufwait) @
Re: kern.crit messages
On 2/6/2011 12:20 PM, Vallo Kallaste wrote: By using the line: *default release=cvs tag=. for src-all collection you definitely grabbed -current sources. I'm not sure if downgrading by make world is supported but you could try. Backup first, try later.. Thanks. Can someone confirm these steps as the best way to attempt to get back to a 8.1 kernel I originally installed... 1. update my tag line to 8_1 2. update my source tree 3. run 'make world' I have backup already. I ask because in the handbook it says 'Do not use make world'... http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html I was going to just rebuild the kernel with the proper source tree. -- Robert rob...@webtent.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
switching to perl-threaded
I guess I did a stupid thing to 'make deinstall' and then 'make reinstall' to change my perl option for WITH_THREADS. Now it seems all my modules are lost as my LWP::Simple does not work anymore. I then tried to pkg_delete that, successful, and 'perl -MCPAN -e install LWP::Simple' only to fail with a lot of these... Can't load '/usr/local/lib/perl5/site_perl/5.10.1/mach/auto/HTML/Parser/Parser.so What is the best way to handle getting my modules working under threaded perl? That module in particular was done through CPAN because I couldn't seem to find a port for it. Thanks, Robert -- Robert rob...@webtent.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Bot?
Keep getting calls from our provider at one location that our FreeBSD 8.0-RELEASE server is sending bursts of 1000 spam messages to 70K recipients. Since the first call a few weeks ago, I have MRTG and Mail Statistics graphs setup and see no spikes in traffic. Their last sighting was over the weekend and graphs show a reduction in traffic during that time as expected, again with no spikes in traffic or messages sent/received by our Postfix/Amavisd-maia MTA. All services on that server including SSH, SMTP and mail queue size all monitored by Nagios and have had no alerts from that server. Nonetheless, they claim I must have a bot and the mail is not passing through my own SMTP. And I suspect little traffic is needed for the alleged bursts. They have no envelope info. Can someone advise on what port(s) are available for bot detection and/or prevention? In all my years of running FreeBSD as mail gateways, this is the first time I've had this issue. --Robert ___ 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
RecursiveDependencyError
Stuck on this problem. It is not happening for all ports, but for several pear ports. I tried a 'pkgdb -fF' and it reported no errors, what else can I do to find the cause of this when trying to install the pear-Mail and others on this FreeBSD 8.1 server. This is a new install...thanks for any help! [Gathering depends for mail/pear-Mail .../usr/local/sbin/portinstall:854:in `get_all_depends': recursive dependency (RecursiveDependencyError) from /usr/local/sbin/portinstall:877:in `get_all_depends' from /usr/local/lib/ruby/1.8/set.rb:195:in `each' from /usr/local/lib/ruby/1.8/set.rb:195:in `each_key' from /usr/local/lib/ruby/1.8/set.rb:195:in `each' from /usr/local/sbin/portinstall:876:in `get_all_depends' from /usr/local/sbin/portinstall:877:in `get_all_depends' from /usr/local/lib/ruby/1.8/set.rb:195:in `each' from /usr/local/lib/ruby/1.8/set.rb:195:in `each_key' from /usr/local/lib/ruby/1.8/set.rb:195:in `each' from /usr/local/sbin/portinstall:876:in `get_all_depends' from /usr/local/sbin/portinstall:877:in `get_all_depends' from /usr/local/lib/ruby/1.8/set.rb:195:in `each' from /usr/local/lib/ruby/1.8/set.rb:195:in `each_key' from /usr/local/lib/ruby/1.8/set.rb:195:in `each' from /usr/local/sbin/portinstall:876:in `get_all_depends' from /usr/local/sbin/portinstall:877:in `get_all_depends' from /usr/local/lib/ruby/1.8/set.rb:195:in `each' from /usr/local/lib/ruby/1.8/set.rb:195:in `each_key' from /usr/local/lib/ruby/1.8/set.rb:195:in `each' from /usr/local/sbin/portinstall:876:in `get_all_depends' from /usr/local/sbin/portinstall:877:in `get_all_depends' from /usr/local/lib/ruby/1.8/set.rb:195:in `each' from /usr/local/lib/ruby/1.8/set.rb:195:in `each_key' from /usr/local/lib/ruby/1.8/set.rb:195:in `each' from /usr/local/sbin/portinstall:876:in `get_all_depends' from /usr/local/sbin/portinstall:893:in `get_notinstalled_depends' from /usr/local/sbin/portinstall:775:in `main' from /usr/local/sbin/portinstall:753:in `each' from /usr/local/sbin/portinstall:753:in `main' from /usr/local/lib/ruby/1.8/optparse.rb:1310:in `call' from /usr/local/lib/ruby/1.8/optparse.rb:1310:in `parse_in_order' from /usr/local/lib/ruby/1.8/optparse.rb:1306:in `catch' from /usr/local/lib/ruby/1.8/optparse.rb:1306:in `parse_in_order' from /usr/local/lib/ruby/1.8/optparse.rb:1254:in `catch' from /usr/local/lib/ruby/1.8/optparse.rb:1254:in `parse_in_order' from /usr/local/lib/ruby/1.8/optparse.rb:1248:in `order!' from /usr/local/lib/ruby/1.8/optparse.rb:1241:in `order' from /usr/local/sbin/portinstall:559:in `main' from /usr/local/lib/ruby/1.8/optparse.rb:791:in `initialize' from /usr/local/sbin/portinstall:231:in `new' from /usr/local/sbin/portinstall:231:in `main' from /usr/local/sbin/portinstall:2219 -- Robert ___ 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
mpt error
Just want to check here to see if anyone else has experienced the following errors showing up periodically in the logs on a FreeBSD 8.0 VPS on vmware ESXi... Sep 29 05:38:35 db1 kernel: mpt0: attempting to abort req 0xff80002a48c0:60350 function 0 Sep 29 05:38:35 db1 kernel: mpt0: completing timedout/aborted req 0xff80002a48c0:60350 Sep 29 05:38:35 db1 kernel: mpt0: abort of req 0xff80002a48c0:0 completed From what I googled, it appears this may be a disk I/O issue? I have another FreeBSD 8.1 install on an exact duplicate server, except it has a half the memory, with no errors. This ESXi server with the error has 12GB RAM and these servers do not use RAID at all. -- Robert ___ 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: slow clock on FreeBSD 7.2 on vmware
On 12/17/2009 4:01 PM, Steve Polyack wrote: On 12/16/09 12:53, Robert Fitzpatrick wrote: I run multiple FreeBSD servers inside VMWare and I don't have this problem. Are you running VMWare workstation? Or ESX/ESXi? I am running VMware Server 2.0...thanks again. I would really recommend switching to VMware ESXi if at all possible. I have a lot of FreeBSD VMs running under ESXi 3.5 and 4.0 that work just great with kern.hz=100 and openntpd. I loaded ESXi and a FreeBSD 8.0 guest last night and this morning it is still keeping time OK without any changes to loader.conf. We actually kept everything running on Linux+VMware Server 1.0 until we could make the switch to ESXi; the VMware Server 2.0 product wasn't reliable for us at all and was a total pain to manage. I am using vSphere to manage, but I see even the standard version requires licensing in the amount of $795. Is there a free management software, or better yet, a way to manage via Linux? That's definitely something I like about VMware Server, that I can manage via a browser. I have not had any major problems with VMware Server 2.0 all running on CentOS 5.x hosts. --Robert ___ 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: slow clock on FreeBSD 7.2 on vmware
On 12/21/2009 10:22 AM, Steve Polyack wrote: I loaded ESXi and a FreeBSD 8.0 guest last night and this morning it is still keeping time OK without any changes to loader.conf. I'm trying to test this out now without openntpd, but with kern.hz=100 still set. You will definitely want kern.hz=100 or something lower than the default of 1000, otherwise your guests will use up a decent portion of your hosts CPU time, even when idle. Try it and see the difference. Yes, I see the difference using 100, thanks. I guess we're not able to install vmware-tools for 8.0 since the install does not find a FreeBSD8.0 kernel module? Not that I used them much on VMware Server, I was curious if they work any better on ESXi for FreeBSD8.0. Had to make changes to the script used to restart before and it didn't show IP, etc. I assume this hasn't changed though? --Robert ___ 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: slow clock on FreeBSD 7.2 on vmware
On 12/15/2009 9:38 AM, Jacques Manukyan wrote: On Sat, 12 Dec 2009 12:06:18 -0500, Robert Fitzpatrick rob...@webtent.com wrote: I found posts about this and a possible solution is to disable APIC by adding hint.apic.0.disabled=1 to /boot/loader.conf. But after doing so, it booted to the mountroot prompt and would not recognize my ufs:/dev/da0s1a partition when tried. I went to FixIt and removed the line from the loader.conf file and it boots fine. I do have some other things to help the pgsql db on this server in the loader.conf file, are they interfering? pgsql# cat /boot/loader.conf kern.ipc.semmni=32 kern.ipc.semmns=512 hint.apic.0.disabled=1 Try putting: kern.hz=50 in your /boot/loader.conf Thanks, that worked. I removed the hint.apic.0.disabled line and put the kern.hz line back in except this time with 50 instead of 100 and it boots and seems to be keeping time now fine. Since I am a programmer and not a system admin, not sure what this does and would like to know, what is the kern.hz telling FreeBSD? I run multiple FreeBSD servers inside VMWare and I don't have this problem. Are you running VMWare workstation? Or ESX/ESXi? I am running VMware Server 2.0...thanks again. ___ 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
slow clock on FreeBSD 7.2 on vmware
I found posts about this and a possible solution is to disable APIC by adding hint.apic.0.disabled=1 to /boot/loader.conf. But after doing so, it booted to the mountroot prompt and would not recognize my ufs:/dev/da0s1a partition when tried. I went to FixIt and removed the line from the loader.conf file and it boots fine. I do have some other things to help the pgsql db on this server in the loader.conf file, are they interfering? pgsql# cat /boot/loader.conf kern.ipc.semmni=32 kern.ipc.semmns=512 hint.apic.0.disabled=1 The only way I'm able to keep the clock up to date is to sync with an Internet time server regularly. Anyone have an idea how fix this issue? ___ 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: slow clock on FreeBSD 7.2 on vmware
On 12/12/2009 12:30 PM, Maxim Khitrov wrote: On Sat, Dec 12, 2009 at 12:06 PM, Robert Fitzpatrickrob...@webtent.com wrote: I found posts about this and a possible solution is to disable APIC by adding hint.apic.0.disabled=1 to /boot/loader.conf. But after doing so, it booted to the mountroot prompt and would not recognize my ufs:/dev/da0s1a partition when tried. I went to FixIt and removed the line from the loader.conf file and it boots fine. I do have some other things to help the pgsql db on this server in the loader.conf file, are they interfering? pgsql# cat /boot/loader.conf kern.ipc.semmni=32 kern.ipc.semmns=512 hint.apic.0.disabled=1 Add kern.hz=100 to loader.conf. - Max Thanks for the suggestion, but i added to the loader.conf file, but the kernel would not even load then, let alone getting to any prompt including mountroot :( ___ 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: slow clock on FreeBSD 7.2 on vmware
On 12/12/2009 12:59 PM, andrew clarke wrote: On Sat 2009-12-12 12:06:18 UTC-0500, Robert Fitzpatrick (rob...@webtent.com) wrote: pgsql# cat /boot/loader.conf kern.ipc.semmni=32 kern.ipc.semmns=512 hint.apic.0.disabled=1 According to the loader.conf man page these should all be in the format: kern.ipc.semmni=32 kern.ipc.semmns=512 hint.apic.0.disabled=1 I don't know if this matters. I'm not sure hint.apic.0.disabled is valid for 7.2. sysctl -a doesn't list this variable on my machine. Maybe it's only available on some machines. The only way I'm able to keep the clock up to date is to sync with an Internet time server regularly. Anyone have an idea how fix this issue? Can you use ntpd? Regards Andrew I'm pulling from a time server now every hour, keeps it from getting behind too much. Perhaps that is what I'll end up doing, loading the ntp server, I guess that would keep it up to date better? Thanks. ___ 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
mountroot prompt after hint.apic.0.disabled=1
Don't know if that loader.conf change affected this server, I disabled APIC in loader.conf after finding it may be responsible for a slow clock on this VMware guest FreeBSD install. I rebooted for the changes to take affect and it goes now to a mountroot prompt, can't seem to load the root partition. I type ? at the prompt and it does not list anything after 'List of GEOM managed disk devices'. Can anyone suggest how I can fix this problem? Thanks, Robert ___ 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
mountroot prompt after hint.apic.0.disabled=1
Don't know if that loader.conf change affected this server, I disabled APIC in loader.conf after finding it may be responsible for a slow clock on this VMware guest FreeBSD install. I rebooted for the changes to take affect and it goes now to a mountroot prompt, can't seem to load the root partition. I type ? at the prompt and it does not list anything after 'List of GEOM managed disk devices'. Can anyone suggest how I can fix this problem? Thanks, Robert ___ 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
Portinstall insists on rebuilding openldap client
I was trying to install samba and it keeps wanting to build the openldap client package that I already have installed. I really don't want to mess with that as it is also supporting other packages for the mail system. Why would it be wanting to build a package that is already installed? mx1# ls /var/db/pkg | grep ldap openldap-sasl-client-2.3.43 openldap-sasl-server-2.3.43 p5-perl-ldap-0.34 php5-ldap-5.2.5_1 phpldapadmin-1.1.0.5_1,1 mx1# portinstall samba --- Found 3 ports matching 'samba': net/samba3 net/samba32 net/samba33 Install 'net/samba3'? [yes] no Install 'net/samba32'? [yes] no Install 'net/samba33'? [yes] [Gathering depends for net/samba33 done] --- Installing 'openldap-sasl-client-2.3.43' from a port (net/openldap23-client) --- Building '/usr/ports/net/openldap23-client' === Cleaning for openldap-sasl-client-2.3.43 === Vulnerability check disabled, database not found === Extracting for openldap-sasl-client-2.3.43 = MD5 Checksum OK for openldap-2.3.43.tgz. = SHA256 Checksum OK for openldap-2.3.43.tgz -- Robert see what I'm up to on my Live Journal tech blog at -- http://saintcolumbus.livejournal.com ___ 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
Upgrade 6.1 to 7.1 remotely?
I have a remote system with no access to boot info. I can get someone to reset, look at screen, etc. The server is 6.1-RELEASE-p15 and wondering if there is a path to upgrade to 7.1 remotely. Would it be possible to do something like this for getting the box to 6.4... http://www.daemonology.net/blog/2006-11-26-freebsd-6.1-to-6.2-binary-upgrade.html And then another freebsd-update to 7.1? Seems that box will not let me portupgrade clamav anymore due to a change from 6.1 :( ../libclamav/.libs/libclamav.so: undefined reference to `gethostbyname_r' *** Error code 1 -- Robert ___ 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
openldap24-sasl-client conflicts
It seems this always gets me when setting up a new machine and I've haven't been able to stop it from happening. I install openldap-server WITH_SASL and after that point, if I try to install any package with LDAP support, it tries to install openldap-client when openldap-sasl-client is already there and conflicts as shown below. What do I need to do to keep this from happening? --- Installing the new version via the port === Installing for openldap-sasl-client-2.4.11 === openldap-sasl-client-2.4.11 depends on file: /usr/local/lib/libcrypto.so.5 - found === Generating temporary packing list === Checking if net/openldap24-client already installed === openldap-sasl-client-2.4.11 is already installed You may wish to ``make deinstall'' and install this port again by ``make reinstall'' to upgrade it properly. If you really wish to overwrite the old port of net/openldap24-client without deleting it first, set the variable FORCE_PKG_REGISTER in your environment or the make install command line. *** Error code 1 Stop in /usr/ports/net/openldap24-client. *** Error code 1 Stop in /usr/ports/net/openldap24-client. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portinstall.54161.0 env make reinstall ** Fix the installation problem and try again. --- Skipping 'net/nss_ldap' because a requisite port 'net/openldap24-client' failed (specify -k to force) --- Skipping 'security/pam_ldap' because a requisite port 'net/openldap24-client' failed (specify -k to force) ** Listing the failed packages (-:ignored / *:skipped / !:failed) ! net/openldap24-client (install error) * net/nss_ldap * security/pam_ldap -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: openldap24-sasl-client conflicts
On Mon, 2008-12-01 at 16:34 +0100, Mel wrote: On Monday 01 December 2008 15:48:13 Jerry wrote: failed packages (-:ignored / *:skipped / !:failed) ! net/openldap24-client (install error) * net/nss_ldap * security/pam_ldap ^ portupgrade I am assuming that you are attempting to install the port(s) manually. Have you tried using a port management tool like 'portmanager' or 'portupgrade' to handle the task. It's likely it's caused by portupgrade, but won't be able to tell till the output from net/nss_ldap build. Thanks for the ideas from everyone. I was doing a portinstall of nss_ldap and pam_ldap. I went ahead and used the -k option and all in and working now. I also received the error when installing samba, I'm sure would for every LDAP dependent port if memory serves. This always bites me, I have uninstalled/reinstalled ports in the past and fiddled with things to get it all working, but nowadays I am more knowledgeable/comfortable using force options with the port utilities. -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: openldap24-sasl-client conflicts
On Mon, 2008-12-01 at 19:06 +0100, Mel wrote: Thanks for the ideas from everyone. I was doing a portinstall of nss_ldap and pam_ldap. I went ahead and used the -k option and all in and working now. I also received the error when installing samba, I'm sure would for every LDAP dependent port if memory serves. This always bites me, I have uninstalled/reinstalled ports in the past and fiddled with things to get it all working, but nowadays I am more knowledgeable/comfortable using force options with the port utilities. It's not working, it's masking the real error, which is either in portupgrade or /usr/ports/Mk/bsd.ldap.mk. Ah, looks like I need WANT_OPENLDAP_SASL :/ -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Error with kernel PAE option
Trying to build my own kernel with PAE option and getting the following error... /usr/src/sys/dev/advansys/advansys.c: In function 'adv_action': /usr/src/sys/dev/advansys/advansys.c:259: warning: cast from pointer to integer of different size *** Error code 1 I removed the PAE option keeping my SMP option in the kernel configuration for this dual proc server and it builds fine. Any idea what I can do for this error? -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Error with kernel PAE option
On Tue, 2008-10-21 at 18:43 +0300, Manolis Kiagias wrote: Robert Fitzpatrick wrote: Trying to build my own kernel with PAE option and getting the following error... /usr/src/sys/dev/advansys/advansys.c: In function 'adv_action': /usr/src/sys/dev/advansys/advansys.c:259: warning: cast from pointer to integer of different size *** Error code 1 I removed the PAE option keeping my SMP option in the kernel configuration for this dual proc server and it builds fine. Any idea what I can do for this error? Have a look at: /usr/src/sys/i386/conf/PAE Is the device that is causing the problem listed with a nodevice entry? I guess in your case, it is the adv device, and it is listed. This means it does not work with a PAE kernel. Thanks, yes, I have nodevice in the PAE file for adv. What does this mean and/or how can I address this problem? Should I just remove the entry from the PAE file? How about going with the 64bit version of FreeBSD? That was my first try, but the CPU appears not to support amd64 as there are no AMD Features listed in dmesg. -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Error with kernel PAE option
On Tue, 2008-10-21 at 20:30 +0300, Manolis Kiagias wrote: Is it a 64bit CPU? The AMD64 version of FreeBSD supports the Intel 64bit (Core2 / Quad / Xeon / Pentium 4 / Pentium D) processors as well, regardless of the AMD in its name. It is an Intel Xeon 2.4GHz processor, but I was told yesterday here on the list that if LM does not appear in the AMD Features line of dmesg, then it does not support amd64. I looked at another server we have here now running amd64 FreeBSD and I see the AMD Features line with LM, but on this server, no AMD Features line whatsoever. I am getting 'BTX halted' when trying to install FreeBSD-amd64 on this server. The other server we have running it has Xeon 3.0GHz procs, I thought that was kinda weird that the two servers were really close in spec, but one would not run amd64 :/ This would be my preferred option if I can get it to install. -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: page fault while in kernel mode
On Tue, 2008-10-21 at 12:03 -0400, John Baldwin wrote: Some drivers don't work with PAE (see all the 'nodevice' lines in /sys/i386/conf/PAE). You'll need to purge those drivers from your config. If you are using the hardware those drivers support, then you can't use PAE. Thanks for the help. Excuse the ignorance, I'm more a programmer than system guy. How do I purge a driver, or know which driver to look for, from the config and know what the driver supports? Do you mean, in this case, remove 'nodevice adv' from the PAE file? If so, I don't know what that supports :/ -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: page fault while in kernel mode
On Tue, 2008-10-21 at 11:47 -0700, Jeremy Chadwick wrote: The drivers which don't work are listed in the /sys/i386/conf/PAE file. They're prefixed by the word nodevice, which tells the kernel config reader DO NOT build this device, because it won't work. You will need to take the nodevice lines from /sys/i386/conf/PAE and put them into your kernel config file. (There are alternative methods such as using include directives and so on, but I'm trying to keep this explanation simple.) Make sense now? :-) Perfect sense now, believe it or not I was beginning to think along these lines as I was doing some searching and found 'device adv' in my config file and there was a description of the hardware it was for, which I don't have. Thanks for the clarification, now let's see if I can get this build done...thanks to all! -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: page fault while in kernel mode
On Tue, 2008-10-21 at 15:09 -0400, John Baldwin wrote: Alternatively, you could just remove the 'device adv' line from your kernel config rather than adding lots of 'nodevice' lines at the bottom. You can usually do 'man 4 driver name' to see what devices it supports. In this case, adv(4) supports mostly ancient Advansys SCSI host adapters. The manpage has a full list of the various model numbers, etc. Yes, that is what I thought. Right now, I am just commenting them out, now I know what people mean when they say they are running a trimmed/clean kernel. I did see one potential issue... # USB support device uhci# UHCI PCI-USB interface device ohci# OHCI PCI-USB interface device ehci# EHCI PCI-USB interface (USB 2.0) device usb # USB Bus (required) I see all of these with nodevice lines in the PAE file. Although I have USB ports, I don't use them, but I was concerned by the 'required' on the last one, is it OK to remove? Also, would I then need to disable USB in the BIOS to avoid errors? -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: page fault while in kernel mode
On Sun, 2008-10-19 at 13:16 -0700, Jeremy Chadwick wrote: On Sun, Oct 19, 2008 at 03:50:01PM -0400, Robert Fitzpatrick wrote: I took a working 5.4-i386 server and trying to convert its RAID 5 to RAID 10 and load 7.0 amd64. I kept getting BTX halted even after flashing the latest bios and firmware for the raid card, Intel SRCZCR, in this dual Xeon 2.4GHz supermicro superserver. I have another server, bit newer, but same basic hardware makeup with Xeon 3.0 procs that runs 6.1-amd64 fine. Anyway, so I have resorted to the i386 version of 7.0 to see if the server is just incapable of running amd64, which after passing the initial boot where amd64 failed, now gives me the subject error after some reference to GEOM_LABEL. I did rebuild the RAID to RAID-10, can someone tell me what this error means? http://columbus.webtent.org/freebsd.png Can you please try 7.1-BETA2 instead (ISOs are now available)? There have been fixes/improvements to BTX since 7.0-RELEASE which could fix your problem. Thanks, but that didn't work either trying 7.1-BETA2 amd64 :( Forgot to mention I added memory to this server as well, took it from 2GB it was using under 5.4-RELEASE up to 6GB filling all slots, that is why I wanted to load amd64. I reduced down to 4GB and now am able to install 7.0-RELEASE i386. Does this mean that I may have a hardware issue or can FreeBSD produce the page fault I was getting when using over 4GB with i386? I would love to figure out this BTX halted issue instead...any ideas on that? -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: page fault while in kernel mode
On Mon, 2008-10-20 at 13:45 -0400, John Baldwin wrote: i386 cannot address more than 4GB unless the kernel is built with PAE mode enabled. This isn't enabled in GENERIC for many (justified) reasons. If you have more than 4GB, you should be using amd64, so you made the right decision there. If you aren't using kernel modules, then PAE should work fine. You can make kernel modules work with PAE as well, but that takes more work. Thanks for the help, I am missing AMD Features for this CPU in dmesg, so it looks like the CPU does not support amd64. I tried to build my own kernel with PAE option and getting the following error... /usr/src/sys/dev/advansys/advansys.c: In function 'adv_action': /usr/src/sys/dev/advansys/advansys.c:259: warning: cast from pointer to integer of different size *** Error code 1 Any idea what I can do for this error? -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
page fault while in kernel mode
I took a working 5.4-i386 server and trying to convert its RAID 5 to RAID 10 and load 7.0 amd64. I kept getting BTX halted even after flashing the latest bios and firmware for the raid card, Intel SRCZCR, in this dual Xeon 2.4GHz supermicro superserver. I have another server, bit newer, but same basic hardware makeup with Xeon 3.0 procs that runs 6.1-amd64 fine. Anyway, so I have resorted to the i386 version of 7.0 to see if the server is just incapable of running amd64, which after passing the initial boot where amd64 failed, now gives me the subject error after some reference to GEOM_LABEL. I did rebuild the RAID to RAID-10, can someone tell me what this error means? http://columbus.webtent.org/freebsd.png Thanks for any guidance. -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
page fault while in kernel mode
I took a working 5.4-i386 server and trying to convert its RAID 5 to RAID 10 and load 7.0 amd64. I kept getting BTX halted even after flashing the latest bios and firmware for the raid card, Intel SRCZCR, in this dual Xeon 2.4GHz supermicro superserver. I have another server, bit newer, but same basic hardware makeup with Xeon 3.0 procs that runs 6.1-amd64 fine. Anyway, so I have resorted to the i386 version of 7.0 to see if the server is just incapable of running amd64, which after passing the initial boot where amd64 failed, now gives me the subject error after some reference to GEOM_LABEL. I did rebuild the RAID to RAID-10, can someone tell me what this error means? http://columbus.webtent.org/freebsd.png Thanks for any guidance. -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Screwed up upgrade to 7.0
I have screwed up my upgrade from 6.2 to 7.0 following the doc at... http://www.daemonology.net/blog/2007-11-11-freebsd-major-version-upgrade.html I ran the install a second time and it completed before the next to the last step including 'portupgrade -af' was completed. I went back and ran the next to the last step, but still, all my packages complain of missing shared libraries. Is there any way to get everything rebuilt, saving me a complete reinstall? Fortunately, I am doing this on a test box. -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Screwed up upgrade to 7.0
On Mon, 2008-08-11 at 14:09 +0100, Vincent Hoffman wrote: Robert Fitzpatrick wrote: I have screwed up my upgrade from 6.2 to 7.0 following the doc at... http://www.daemonology.net/blog/2007-11-11-freebsd-major-version-upgrade.html I ran the install a second time and it completed before the next to the last step including 'portupgrade -af' was completed. I went back and ran the next to the last step, but still, all my packages complain of missing shared libraries. Is there any way to get everything rebuilt, saving me a complete reinstall? Fortunately, I am doing this on a test box. Try installing misc/compat6x as a stopgap? Sweet! Thank you very much, all services started. Now, how do I proceed with my upgrade to 7.0? Do I just rebuild all now and it will update to the 7.0 libraries and then how to undo COMPAT_FREEBSD6? -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
PostgreSQL debugging
I installed from the ports system postgresql83-server WITH_DEBUG=true and cannot find any of the associated files after install. The pgsql list said the plugin_debugger.so file should be in my lib directory and the script to setup debugging on a db should be in the share directory. I have looked in /usr/local/share/postgresql and /usr/local/lib/postgresql, even tried updating my locate db and using locate to find, but neither file found anywhere. I checked /var/db/ports/postgresql83/options and see the WITH_DEBUG option was set during the build. I built again and cannot even find the README.debugging in the doc directory under the build. What can I do to get debugging support? Thanks, Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
slapd won't start with nss_ldap.conf
On a FreeBSD 6.1 with openldap-server-2.3.39, I have setup nss_ldap and pam_ldap, but cannot get slapd to start as long as I have nss_ldap.conf present, it just hangs and nothing in the messages or debug logs. I just copied ldap.conf to nss_ldap.conf, see contents below. As soon as I rm the nss_ldap.conf file, slapd starts without delay, but of course, our logins, etc. do not work until I re-create the file or symlink to ldap.conf afterward... host 127.0.0.1 base dc=example,dc=com binddn cn=manager,dc=example,dc=com bindpw secret nss_base_passwd ou=People,dc=example,dc=com?one nss_base_shadow ou=People,dc=example,dc=com?one nss_base_group ou=group,dc=example,dc=com?one I have verified all the above to work with simple binds and all is fine after slapd is started and nss_ldap.conf is in place. I have openldap working with postfix and cyrus-imapd a long time on this box and now using with samba for file shares, but have this issue with nss_ldap.conf and trying to smooth out my boot process. Can someone suggest a solution or point me to some info for help? I am also have a hard time getting slapd to start early on boot. I am using the port install built WITH_RCORDER=yes, but it still starts near the end of the boot. Is there something more that I need to do and somewhere to check that WITH_RCORDER=yes in make.conf was applied during build? Any suggestion from someone experienced would be appreciated. -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: slapd won't start with nss_ldap.conf
On Fri, 2008-05-09 at 22:44 +0200, Jonathan McKeown wrote: On Friday 09 May 2008 14:36, Robert Fitzpatrick wrote: On a FreeBSD 6.1 with openldap-server-2.3.39, I have setup nss_ldap and pam_ldap, but cannot get slapd to start as long as I have nss_ldap.conf present, it just hangs and nothing in the messages or debug logs. I just copied ldap.conf to nss_ldap.conf, see contents below. So, to start slapd, the system needs the group info for user ldap - from slapd. It times out and retries a few times, and eventually starts slapd using the group information from /etc/passwd and /etc/group, but the timeout and retry options by default take several minutes. Seems my core problem is something wrong with the openldap setup on that box. I had taken the slave ldap server up to 2.3.41 and it was not having this slapd/nss_ldap startup problem. I don't know if it is bad with a synrepl slave earlier version that the master, but I just didn't want to mess with the master until it proved OK and all seems perfectly great on the slave except my boot order issue Thanks for the response, and yes, the openldap list owner finally rejected my message and gave me the pointer to start slapd with the owner and group by id instead of name. After reading the start script to get the owner and group by id in the rc.conf file, I am now starting the process in that way. While doing that I realize that I can handle boot order by name of the file and gave it a prefix of 001. I will test my changes tomorrow when I go on site to replace a UPS. If all goes well on the slave, I'll upgrade the master and see if my pesky nss_ldap issue goes away. And, yes, I was only waiting the length of time it normally took when the nss_ldap.conf file was missing, few seconds max. -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
compiling kernel with PAE
Getting an error when trying to compile a kernel on 5.4 and 6.2 with the PAE option. I've tried NO_MODULES in make.conf as well... se2 -ffreestanding -Werror /usr/src/sys/dev/advansys/advansys.c /usr/src/sys/dev/advansys/advansys.c: In function `adv_action': /usr/src/sys/dev/advansys/advansys.c:260: warning: cast from pointer to integer of different size *** Error code 1 Stop in /usr/obj/usr/src/sys/WEBTENT. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. This is a custom kernel build with the QUOTA option, I take out the PAE option and all makes fine. I did a src-all update with RELENG_VER tag prior to building. I assume this is a driver issue compatible with PAE? Also, can I run amd64 release on this Intel Xeon dual proc with 6GB RAM? Thinking about loading 6.3 amd64 if possible. Excuse my ignorance, I am not a hardware guy, I am a programmer. CPU: Intel(R) Xeon(TM) CPU 3.00GHz (3000.12-MHz 686-class CPU) Origin = GenuineIntel Id = 0xf41 Stepping = 1 Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,C MOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE Features2=0x641dSSE3,RSVD2,MON,DS_CPL,CNTX-ID,CX16,b14 AMD Features=0x2010NX,LM Logical CPUs per core: 2 -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: db performance
On Thu, 2008-01-17 at 15:53 -0500, Bill Moran wrote: In response to Robert Fitzpatrick [EMAIL PROTECTED]: I also have assumed in the past that db performance could be better if I get off the system RAID-5 and put it on 1+0? The system has 4 SATA drives. That will speed things up if IO is your bottleneck, but you've not demonstrated that. Which machine in this system is the bottleneck? Are the Amavis machines timing out, or is the PostgreSQL server too slow? If I understand your description, it sounds like a network problem to me ... i.e., machines not on the same gateway as the PG server are experience slow network response (or dropped packets?) that's causing amavis to time out while trying to talk to PG. I would suggest investigating there first. The SA timeouts I'm finding on all the servers. Even the db server that runs it's own amavisd process for backup purposes and some minor domains just to make sure it is there and working. This is why I think you're right, the pgsql db is too slow. Would I possibly see dramatic differences in speed with the RAID switch? -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: db performance
On Thu, 2008-01-17 at 22:19 +0100, Ivan Voras wrote: Robert Fitzpatrick wrote: real memory = 3220635648 (3071 MB) avail memory = 3150565376 (3004 MB) we have 3GB of RAM available with actually 4GB physical RAM installed? If you're using a 32-bit (i386) kernel you need PAE. Or switch to 64-bit (amd64). Yes, this is something else I've found I need to do to these i386 servers since we upgraded the memory, I guess I'll get PAE in the kernel and switch the RAID, should provide quite a difference, yes? Some people have suggested the PAE drivers may not be stable with my hardware. -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
db performance
We have several postfix transport gateways on different networks all working with local amavisd-maia+SA using a remote postgresql backend at one location. I am getting delays in the queues on a gateway server at a remote site since we added more memory to the db server. After seeing the issues of SA TIMED OUT in the logs, seems this was happening prior to the upgrade, but never to the extent, I guess, to delay much mail. Queues on a gateway of the same network as the db server working fine, but messages with the timeouts differ from one server to another. After reading tuning, it suggests the SWAP should be double RAM. According to dmesg... real memory = 3220635648 (3071 MB) avail memory = 3150565376 (3004 MB) we have 3GB of RAM available with actually 4GB physical RAM installed? Anyway, the SWAP is only 2GB, even with the average usage shown here, will increasing SWAP to 6-8GB help? last pid: 49828; load averages: 0.23, 0.21, 0.18up 8+18:33:08 15:42:23 184 processes: 5 running, 158 sleeping, 21 waiting CPU states: 2.6% user, 0.0% nice, 1.0% system, 0.0% interrupt, 96.4% idle Mem: 446M Active, 1646M Inact, 236M Wired, 138M Cache, 112M Buf, 30M Free Swap: 2048M Total, 164K Used, 2048M Free I also have assumed in the past that db performance could be better if I get off the system RAID-5 and put it on 1+0? The system has 4 SATA drives. All servers running FreeBSD 6.2 and latest ports of postfix+amavisd-maia +SA+ClamAV. Thanks for any input. -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: db performance
On Thu, 2008-01-17 at 16:34 -0500, Bill Moran wrote: In response to Robert Fitzpatrick [EMAIL PROTECTED]: I don't know anything about amavisd's usage of databases. If it's doing a lot of small writes, then it's likely that getting off RAID 5 will make a marked difference. I believe this is the case with SA learning on and auto-whitelisting. Disabling things like that are my last resort. You need to investigate more, though. Otherwise you're just randomly flipping switches. I really appreciate the pointers! Watching top on the PG machine, how much RAM is in use? What is the average CPU usage when you see timeouts? Run top -m io in another terminal and see if a lot of IO is happening on the part of PostgreSQL ... is it reads or writes? I see mainly postgres in the top 8-10 with mainly WRITEs of mainly less than 100 regularly, mostly less than 30 WRITES at a time. And what tuning have you done to PostgreSQL? PG doesn't perform well without tuning. Install the pg_buffercache addon and see if you've got enough shared_buffers to get decent performance out of it. Are you running vacuum and analyze frequently? Turn on query timing and watch the logs to see what queries are taking up time. Read the following links and follow the advice therein: http://www.powerpostgresql.com/PerfList http://www.revsys.com/writings/postgresql-performance.html This is what I have setup now, thanks for the links, I'll re-check my tuning... mx1# cat /etc/sysctl.conf kern.ipc.shm_use_phys=1 kern.ipc.shmmax=1073741824 kern.ipc.shmall=262144 kern.ipc.semmsl=512 kern.ipc.semmap=256 I'm sure some of my tuning could use some help, like the shm_use_phys, maybe this is why my swap is not being used much? This is what I've changed from defaults in postgresql.conf... max_connections = 250 shared_buffers = 500MB work_mem = 64MB # min 64kB maintenance_work_mem = 256MB# min 1MB max_fsm_pages = 256000 -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: db performance
On Thu, 2008-01-17 at 22:17 +0100, Wojciech Puchar wrote: After reading tuning, it suggests the SWAP should be double RAM. According to dmesg... installing database on RAID-5 or asking if to add swap (when almost none is used)? what is more stupid? whould we vote? That was my whole point of showing you the low usage. I take that as a yes, RAID 1+0 would provide a dramatic difference in speed, thanks! -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: db performance
On Thu, 2008-01-17 at 22:49 +0100, Wojciech Puchar wrote: is used)? what is more stupid? whould we vote? That was my whole point of showing you the low usage. I take that as a yes, RAID 1+0 would provide a dramatic difference in speed, thanks! the only adventage of RAID-5 is less wasted space than RAID-1. one and the only adventage. write performance is terrible on small writes - exactly what happens on database usage. with today sizes of disks more wasted space doesn't make much a problem, as i don't think your database have hundreds of gigabytes. did you look how much disks (no matter what RAID or just devices) are actually used?! use systat Using 'systat -iostat' it shows mostly idle with 25-70 MB/s on the aacd0 array. Most of time above 50. Thanks for the help! -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
5.4-RELEASE crashing
I upgraded memory in a 5.4-RELEASE server from 1GB (2x512MB) to 4GB (4x1GB). I'm wondering if that can even be causing my problem since nothing went wrong for an entire week. One week later, the server just stops responding in the middle of the night, I can see the login prompt, but cannot type anything, no response to keyboard at all. Since the initial crash one week after the memory upgrade, it continues to do this every couple of days. The crash has happened during the 3-4am time span every time except at 9pm once and then this morning at 9am. So, it seems it may be related to something building up over time. After reset and disk cleanup, I have examined the logs and cannot find anything in the message log, one entry shows my last login activity and the next entry is the start of boot info from the reset. The only thing I find in the logs erroneous is an NFS connection not responding, then alive again, but I unmounted and disabled the entry in fstab before it happened this morning. I'm just trying to figure out how to approach tracking down my crashing issue. Whether it somehow is related to the memory upgrade. The only thing to note about the memory upgrade is on boot, it will say that it is ignoring a small amount of memory over 4GB. Can someone suggest how to approach my problem? -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Imaging to new system
I have a server running 5.4-RELEASE using RAID-5 on an Intel RAID controller that I need to move to faster RAID. Is it possible to image or some other way to save the current install and restore after setting up the RAID or should I just plan to reinstall everything? -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Imaging to new system
On Sun, 2007-12-30 at 11:10 -0700, Darren Spruell wrote: On Dec 30, 2007 10:54 AM, Robert Fitzpatrick [EMAIL PROTECTED] wrote: I have a server running 5.4-RELEASE using RAID-5 on an Intel RAID controller that I need to move to faster RAID. Is it possible to image or some other way to save the current install and restore after setting up the RAID or should I just plan to reinstall everything? Running dump(8) and restore(8) would allow you to back up and restore your system. http://www.freebsd.org/cgi/man.cgi?query=dump http://www.freebsd.org/cgi/man.cgi?query=restore This is typically used with tape, although you can dump to disk as well. If your data/system is critical, you ought to already have some backup strategy you could restore the system from to your new RAID. If not, you might put one in place (RAID != backups). Yes, of course, we have data backup and can restore after reinstalling everything, but I was looking for a complete system restore option. I'll look into these docs, thanks. There is no tape system, so I guess the only hope is if it can be dumped and restored from an NFS drive. From looking at the docs, it does appear this is possible, as long as the data in on a fs mounted by fstab? -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
4GB memory and more
I have a couple of Supermicro servers and upgraded both with more memory. I upgraded our ESMTP server from 1GB to 4GB and our MX server from 2GB to 5GB. Below are the dmesg memory findings and, yes, I get the memory over 4GB ignored when booting up. The ESMTP even says that about 130MB is ignored. I was reading about building into the kernel PAE options for using above 4GB of memory, but in the dmesg I see PAE in the Features. Does this mean the support is there and I just need some BIOS tweaking? esmtp# dmesg Copyright (c) 1992-2005 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 5.4-RELEASE #1: Tue Dec 13 16:00:53 EST 2005 [EMAIL PROTECTED]:/usr/src/sys/i386/compile/WEBTENT Timecounter i8254 frequency 1193182 Hz quality 0 CPU: Intel(R) Xeon(TM) CPU 2.40GHz (2399.33-MHz 686-class CPU) Origin = GenuineIntel Id = 0xf25 Stepping = 5 Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE Hyperthreading: 2 logical CPUs real memory = 4160225280 (3967 MB) avail memory = 4073279488 (3884 MB) snip mx1# dmesg Copyright (c) 1992-2007 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 6.2-RELEASE-p5 #0: Sat Jun 2 11:11:40 EDT 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/WEBTENT Timecounter i8254 frequency 1193182 Hz quality 0 CPU: Intel(R) Xeon(TM) CPU 3.00GHz (3000.12-MHz 686-class CPU) Origin = GenuineIntel Id = 0xf41 Stepping = 1 Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE Features2=0x641dSSE3,RSVD2,MON,DS_CPL,CNTX-ID,CX16,b14 AMD Features=0x2010NX,LM Logical CPUs per core: 2 real memory = 3220635648 (3071 MB) avail memory = 3150565376 (3004 MB) snip Thanks in advance. -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Determining bus speed/memory
I have a couple of servers (5.5 and 6.2) at a remote location that I need to order additional memory. I need to know bus speed and, if possible, how many chips currently installed to help determine whether I need to replace or match and fill available slots. For instance, I know one server has 1GB of mem, but do I have two 512MB or a single 1GB chip in place now. Can someone tell me the commands to determine either of these things? Thanks in advance! -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
snapshots
I was looking into snapshots using the doc below to try and see if delta copies with rsync matched data better if I take a snapshot of a file system, mount it and rsync transfer the data. Right now, dumps don't seem to match much data due to changes in the sequences and a very active mail cache pgsql db. http://people.freebsd.org/~rse/snapshot/ I created the snapshot and got it mounted, took a minute or so for each to do this on my /usr ufs file system on FreeBSD 6.2 with 2GB RAM, dual P4 procs with SMP and RAID 5 (I know, will be changing soon) SATA150 drives. In the midst of doing this, the currently running pgsql db, remember I said it was very active amavisd-maia supporting two mail gateways as a mail cache if you know Maia Mailguard, I started getting these messages and things stopped responding well... Sep 24 16:59:02 mx1 kernel: aac0: COMMAND 0xc6530fc0 TIMEOUT AFTER 38 SECONDS Did a reboot, it tooks several minutes to start reboot after the command. I even got some of these kernel messages after the reboot, not until I rm -f the snapshot file did it stop. I am wondering how I need to handle snapshots when trying this, especially if included in a routine backup script? I haven't made it to the solution part of the above doc yet, wanted to check here before I try anything again. Also, haven't tested my rsync until tonight to see if the file system transfer will make a difference in my ability to match data better. But I'd still like use the snapshot as a backup solution. -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Loading FreeBSD 6.2
On Mon, 2007-09-24 at 14:55 -0600, MJ Hewitt wrote: I am running into a problem loading 6.2 on a new Dell Optiplex 320 with an Intel Celeron 1.6GHz with 64-bit. It is completely locking up after the initial boot sequence. The last line is usb0: OHCI version 1.0, legacy support. Try disabling USB options in the BIOS of the computer and see what happens. Usually by pressing the Del, F2 or F10 key on your PC after the post beep, see the Dell manual for instructions on how to enter the BIOS. If install works after disabling, you can try re-enabling after you've installed the system and/or done updates. -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Concurrency limit warning in Postfix leads to server lock
I have dilemma with one of our 5.4 server mail gateways. About 2-3 times a month now the server SMTP and related services stop responding. I find myself not able to login, just sits there after entering user name. I have to reset the server and the only thing I can find with an 'egrep (fatal|error|warn)' in the messages and maillog are these concurrency limit warnings minutes before the issue started... Sep 15 07:19:02 esmtp postfix/smtpd[2789]: warning: Connection concurrency limit exceeded: 51 from unknown[88.238.96.247] for service smtp This seems to be an attacker of some sort, I block them and the issue goes away, of course. I posted my issue to the Postfix list, but was told this should not be taking down my server and to find out why I'm not able to login when this happens. I am looking for help on where to look to determine this, can someone give some guidance? Some other log I should examine? The only thing I can spot that looks possibly out of place is nfsd running at 6-8% CPU. I do a backup from one other server to this server via nfs. I checked and all that backup was finished couple of hours prior to this latest issue, but the nfsd process seems to be taking more CPU than normal. And when I reboot, the nfs connection I have in /etc/fstab takes several seconds to initialize. -- Robert ___ 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 openldap-sasl-client port?
On Sun, 2007-06-24 at 08:37 +0100, Matthew Seaman wrote: Just tell pkgdb 'no' and then tell it the correct alternate package name. (You can use tab completion there; very handy) After that, things should go smoothly. Thanks. I tried this, but the pkgdb does not see my current openldap-sasl-client-2.3.36. Stale dependency: nagios-2.9_1 - openldap-client-2.3.35 (net/openldap23-client): openldap-server-2.3.36 (score:52%) ? ([y]es/[n]o/[a]ll) [no] Install stale dependency? ([y]es/[n]o/[a]ll) [yes] no New dependency? (? to help): openldap-client-2.3.36 Please choose one of these: amavisd-new-2.5.0,1 apache-2.2.4_2 appres-1.0.1 arc-5.21o_1 arj-3.10.22 atk-1.18.0_1 autoconf-2.13.000227_5 autoconf-2.59_2 automake-1.4.6_3 automake-1.9.6_1 bash-3.1.17 bdftopcf-1.0.0 beforelight-1.0.2 bigreqsproto-1.0.2 bitmap-1.0.3 bitstream-vera-1.10_4 cabextract-1.2 cclient-2004g,1 clamav-0.90.3 compat4x-i386-5.3_9 ... mx1# ls /var/db/pkg/ | grep ldap openldap-sasl-client-2.3.36 openldap-server-2.3.36 Any other ideas on what I can try next? -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Problem with openldap-sasl-client port?
I posted the other day, trying to install SA 3.2, it keeps attempting to install openldap-sasl-client-2.3.36 even though it is already there. I tried 'pkg_delete -f' and then portinstall of the ldap client, I've tried to register FORCE_PKG_REGISTER. Whenever I run 'pkgdb -F', the ldap client deps want to link to the openldap-server-2.3.36. Am I going to have to uninstall all deps fro the ldap client and re-install? Will that work... mx1# pkg_delete openldap-sasl-client-2.3.36 pkg_delete: package 'openldap-sasl-client-2.3.36' is required by these other packages and may not be deinstalled: amavisd-new-2.5.0,1 apache-2.2.4_2 dirmngr-0.9.7_2 gnupg-2.0.3 openldap-server-2.3.36 pear-1.5.4 pear-Auth-1.5.0 pear-Auth_SASL-1.0.2 pear-DB-1.7.11,1 pear-File_Passwd-1.1.6 pear-Log-1.9.10 pear-Mail_Mime-1.4.0,1 pear-Net_IMAP-1.0.3 pear-Net_POP3-1.3.6 pear-Net_SMTP-1.2.10 pear-Net_Socket-1.0.7 pear-Pager-2.3.4 pear-SOAP-0.10.1 php5-5.2.2 php5-gettext-5.2.2 php5-ldap-5.2.2 php5-mysql-5.2.2 php5-openssl-5.2.2 php5-pcre-5.2.2 php5-pgsql-5.2.2 php5-session-5.2.2 php5-wddx-5.2.2 php5-xml-5.2.2 postfix-2.4.3,1 postgresql-server-8.2.4_1 smarty-2.6.18 mx1# pkgdb -F --- Checking the package registry database [Updating the pkgdb format:bdb_btree in /var/db/pkg ... - 505 packages found (-1 +1) (...). done] Stale dependency: amavisd-new-2.5.0,1 - p5-Mail-SpamAssassin-3.2.0 (mail/p5-Mail-SpamAssassin): p5-Mail-SPF-Query-1.999.1 (score:56%) ? ([y]es/[n]o/[a]ll) [no] Install stale dependency? ([y]es/[n]o/[a]ll) [yes] no New dependency? (? to help): Skip this? ([y]es/[n]o/[a]ll) [yes] Skipped. Stale dependency: nagios-2.9_1 - openldap-client-2.3.35 (net/openldap23-client): openldap-server-2.3.36 (score:52%) ? ([y]es/[n]o/[a]ll) [no] ^C -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Issue portupgrade of SA 3.2.1
Tried doing a portupgrade of p5-Mail-SpamAssassin on one of our test postfix+amavisd+SA+ClamAV 6.2 servers and it failed due to some dependency version missing I can't remember now. I portupgrade'd the dependency and afterward discovered SA had been uninstalled before it failed, no longer on the system. Trying to portinstall the same package, I find it wanting to install openldap-sasl-client-2.3.36 when openldap-sasl-client-2.3.35 was already there...fine, I did a portupgrade myself of openldap-sasl-client to 2.3.36. Still, when trying to portinstall SA, it wants to install openldap-sasl-client-2.3.36. I tried running pkgdb -F to find it trying to link ldap dependencies like nagios to openldap-server-2.3.35_1? Of course, the amavisd package is looking for SA as well. Can't quite understand what it is looking for or if the failure after uninstalling SA broke something. mx1# ls /var/db/pkg/ | grep ldap openldap-sasl-client-2.3.36 openldap-server-2.3.35_1 snip mx1# portinstall p5-Mail-SpamAssassin [Gathering depends for mail/p5-Mail-SpamAssassin ... done] --- Installing 'openldap-sasl-client-2.3.36' from a port (net/openldap23-client) snip -- killed How can I fix this? Or should I just let it do the install? -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Ports system gone
How can I restore my ports system? I have no idea what happened. I have a server I setup over the weekend to start testing Maia Mailguard, installed many packages over the last few days (postfix+amavisd+SA+related). I can't remember the last package installed via the ports system, I updated it to src-all and back to ports-all once to compile my kernel. Now, today I go to install a package and practically everything is gone...this is all I have left... mx1# ls /usr/ports INDEX-6 INDEX-6.db dns security INDEX-6.bz2 distfiles net mx1# ls /usr/ports/dns bind9-dlz mx1# ls /usr/ports/security/ vscan mx1# ls /usr/ports/net/ openldap23-client At this point I want to assume I mistakenly did a rm sometime, what else could cause something like this? Can't find any issues in the logs and no other issues with any services running on the box. Can't find anything else missing. If I try to run my ports update my ports, it just hangs here... mx1# cd /usr/ports mx1# /usr/local/bin/cvsup /root/ports-supfile Connected to cvsup9.us.FreeBSD.org Updating collection ports-all/cvs -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Boot problem after GEOM setup
Following the doc below, I am trying to mirror an existing disk, ad0, which holds the root and /usr partitions (a second disk holds /var). I have an exact same disk in as ad2 in the system and did everything in this document top section through dumping the data and setting up /etc/fstab and loader.conf. I created the /boot.config as shown except I replaced the '1' with '2' just like I did for the other steps, but this does not appear correct. I now stall when booting at the boot: prompt. What can I type in the boot: prompt to get back in my system and make the necessary changes? Also, what should the /boot.config look like to boot to my new disk and continue through the steps for adding the first disk to the mirror? I guess it looks like this now: 1:ad(2,a)/boot/loader. http://people.freebsd.org/~rse/mirror/ -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Boot problem after GEOM setup
On Sat, 2007-04-21 at 11:39 -0400, Robert Fitzpatrick wrote: Following the doc below, I am trying to mirror an existing disk, ad0, which holds the root and /usr partitions (a second disk holds /var). I have an exact same disk in as ad2 in the system and did everything in this document top section through dumping the data and setting up /etc/fstab and loader.conf. I created the /boot.config as shown except I replaced the '1' with '2' just like I did for the other steps, but this does not appear correct. I now stall when booting at the boot: prompt. What can I type in the boot: prompt to get back in my system and make the necessary changes? Also, what should the /boot.config look like to boot to my new disk and continue through the steps for adding the first disk to the mirror? I guess it looks like this now: 1:ad(2,a)/boot/loader. http://people.freebsd.org/~rse/mirror/ I was able to recover with a FreeSBIE and go back, seems I was close. I have the GEOM working now as shown below. However, after successfully synchronizing and doing a reboot, it shows up DEGRADED after every reboot and synchronizes again, is that normal? genoa# gmirror list Geom name: gm0 State: DEGRADED Components: 2 Balance: round-robin Slice: 4096 Flags: NONE SyncID: 1 ID: 4224071626 Providers: 1. Name: mirror/gm0 Mediasize: 15364338688 (14G) Sectorsize: 512 Mode: r4w3e2 Consumers: 1. Name: ad0 Mediasize: 15364339200 (14G) Sectorsize: 512 Mode: r0w1e1 State: SYNCHRONIZING Priority: 0 Flags: DIRTY, SYNCHRONIZING SyncID: 1 Synchronized: 28% ID: 4099754703 2. Name: ad2 Mediasize: 15364339200 (14G) Sectorsize: 512 Mode: r4w3e3 State: ACTIVE Priority: 0 Flags: DIRTY SyncID: 1 ID: 3454124143 Geom name: gm0.sync Consumers: 1. Name: mirror/gm0 Mediasize: 15364338688 (14G) Sectorsize: 512 Mode: r1w0e0 -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Connecting to usb serial device
I have a Keyspan usb serial port connected to a FreeBSD 6.1 server and wondering how I can connect to it. Using minicom from a connected Linux box, do I connect to a COM port, and how do I know what COM port? This is what I see in dmesg: ugen0: Keyspan, a division of InnoSys Inc. Keyspan USA-19H, rev 1.10/1.00, addr 2 Thanks for any help! -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Kernel source
I have a 6.1 server that I need to install the source for recompiling quotas support. It is at a remote location without the CD and when I try FTP, it declares 6.1-SECURITY is not available on any ftp server. Is there anywhere to download from? -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
BIND slave records not updating
I'm not a member of any bind list, so I was hoping to be able to ask my question here. I have primary DNS with bind 9.2.4 on Linux servers where there are web GUI's for management. I keep slave records on two FreeBSD servers that serve as our ns1 and ns2, one is 6.1 with the bind port bind9-9.3.3 and it works fine. The other is FreeBSD 5.4-RELEASE with bind9-base-9.3.4, not sure what the base difference is, can someone tell me? This 5.4 server is not updating when changes are made to the primary. I see in the logs on the primary that notifies are sent and the 9.3.3 server, which is at a different facility, updates within minutes, the 5.4 machine on the local network does not. I can't find any bind log information in /var/log/messages on the FreeBSD servers, where would that be? I have to remove the '.bak' zone file and restart the bind process, then it brings over the new zone file as it should re-creating the '.bak' file. I checked the perms on all the files involved, comparing to the 6.1 machine. The zone files all owned by the bind process user. zone example.com { type slave; file slave/example.com.bak; masters { 10.0.0.48; }; allow-query { 0.0.0.0/0; }; }; esmtp# ls -lah /var/named/etc/namedb/slave/tpghotels.com.bak -rw-r--r-- 1 bind wheel 635B Feb 13 08:19 /var/named/etc/namedb/slave/example.com.bak Again, this exact same setup on the other BSD server works perfectly. The allow-transfer on the primary seems to be working fine since deleting the zone file on the slave and restarting pulls the zone fine. This is our workaround for now, but a pain. Is there a problem with running the different bind9 versions? I can't really do anything about the primary server considering we rely on yum and recommended updates by the system repositories. So, should I keep my slave BSD boxes on that same version 9.2.4? Thanks in advance! -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: BIND slave records not updating
On Tue, 2007-02-13 at 10:00 -0600, Derek Ragona wrote: I run multiple FreeBSD versions with Bind and have not had a problem with records being updated. Are you properly setting the new serial numbers in the master record files? Thanks. Do you mean the master zone files where the BSD server are pulling from. I update via a GUI on the server running Bluequartz GUI. The zone file serial number changes from 2007020501 to 2007021301 after changing one today. The other BSD server hosting slave records is pulling the updates fine, just this one that is not. Is there anywhere in the logs to find what is happening. All I've been able to find in logs is on the master server indicating notifies sent to the IP address of the problem server. -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Determining daylight savings changes on BSD
I use the following command on our CentOS Linux servers to find out if the system is ready for the daylight savings changes coming up, but it does not seem to work the same on our FreeBSD 5.4 and 6.1 servers. How can I do this? I see the zdump command and the man page seems to suggest the same usage, but... esmtp# zdump -v US/Eastern | grep 2007 esmtp# zdump -v US/Eastern US/Eastern Fri Dec 13 20:45:52 1901 UTC = Fri Dec 13 20:45:52 1901 UTC isdst=0 gmtoff=0 US/Eastern Sat Dec 14 20:45:52 1901 UTC = Sat Dec 14 20:45:52 1901 UTC isdst=0 gmtoff=0 US/Eastern Mon Jan 18 03:14:07 2038 UTC = Mon Jan 18 03:14:07 2038 UTC isdst=0 gmtoff=0 US/Eastern Tue Jan 19 03:14:07 2038 UTC = Tue Jan 19 03:14:07 2038 UTC isdst=0 gmtoff=0 The Linux version spits out all years, hence the need for grep: [EMAIL PROTECTED] ~]# zdump -v US/Eastern |grep 2007 US/Eastern Sun Mar 11 06:59:59 2007 UTC = Sun Mar 11 01:59:59 2007 EST isdst=0 gmtoff=-18000 US/Eastern Sun Mar 11 07:00:00 2007 UTC = Sun Mar 11 03:00:00 2007 EDT isdst=1 gmtoff=-14400 US/Eastern Sun Nov 4 05:59:59 2007 UTC = Sun Nov 4 01:59:59 2007 EDT isdst=1 gmtoff=-14400 US/Eastern Sun Nov 4 06:00:00 2007 UTC = Sun Nov 4 01:00:00 2007 EST isdst=0 gmtoff=-18000 -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Determining daylight savings changes on BSD
On Fri, 2007-02-02 at 10:36 -0600, Dan Nelson wrote: In the last episode (Feb 02), Robert Fitzpatrick said: I use the following command on our CentOS Linux servers to find out if the system is ready for the daylight savings changes coming up, but it does not seem to work the same on our FreeBSD 5.4 and 6.1 servers. How can I do this? I see the zdump command and the man page seems to suggest the same usage, but... esmtp# zdump -v US/Eastern | grep 2007 esmtp# zdump -v US/Eastern US/Eastern Fri Dec 13 20:45:52 1901 UTC = Fri Dec 13 20:45:52 1901 UTC isdst=0 gmtoff=0 US/Eastern Sat Dec 14 20:45:52 1901 UTC = Sat Dec 14 20:45:52 1901 UTC isdst=0 gmtoff=0 US/Eastern Mon Jan 18 03:14:07 2038 UTC = Mon Jan 18 03:14:07 2038 UTC isdst=0 gmtoff=0 US/Eastern Tue Jan 19 03:14:07 2038 UTC = Tue Jan 19 03:14:07 2038 UTC isdst=0 gmtoff=0 That means you need to update your zoneinfo tables. You can also use the date command to see if you need updating: date -r 1173679260 Yes, thanks, looks like I need to do that, how do I update my zoneinfo tables? esmtp# zdump -v EST5EDT | grep '200[67]' EST5EDT Sun Apr 2 06:59:59 2006 UTC = Sun Apr 2 01:59:59 2006 EST isdst=0 gmtoff=-18000 EST5EDT Sun Apr 2 07:00:00 2006 UTC = Sun Apr 2 03:00:00 2006 EDT isdst=1 gmtoff=-14400 EST5EDT Sun Oct 29 05:59:59 2006 UTC = Sun Oct 29 01:59:59 2006 EDT isdst=1 gmtoff=-14400 EST5EDT Sun Oct 29 06:00:00 2006 UTC = Sun Oct 29 01:00:00 2006 EST isdst=0 gmtoff=-18000 EST5EDT Sun Apr 1 06:59:59 2007 UTC = Sun Apr 1 01:59:59 2007 EST isdst=0 gmtoff=-18000 EST5EDT Sun Apr 1 07:00:00 2007 UTC = Sun Apr 1 03:00:00 2007 EDT isdst=1 gmtoff=-14400 EST5EDT Sun Oct 28 05:59:59 2007 UTC = Sun Oct 28 01:59:59 2007 EDT isdst=1 gmtoff=-14400 EST5EDT Sun Oct 28 06:00:00 2007 UTC = Sun Oct 28 01:00:00 2007 EST isdst=0 gmtoff=-18000 -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
BIND tool for setting up secondary records?
I am not a member of a BIND list, so I thought I'd ask here first if anyone knows of a script tool that will query a primary name server and setup secondary records on another BIND server? Or any other solution for doing mass entries of domains to a BIND server to setup secondary records with the same primary master? -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Setting up ucom serial device for tty communications
I have a Keyspan USB serial adapter identified by FreeBSD 6.1 as shown below. I was wondering if it is possible, and how to, set this device up to receive COM communications from another Linux box using minicom. Can someone suggest or point to some helpful docs possibly to setup in /etc/ttys? esmtp# dmesg | grep Keyspan ugen0: Keyspan, a division of InnoSys Inc. Keyspan USA-19H, rev 1.10/1.00, addr 2 esmtp# grep Keyspan /var/log/messages Jan 6 10:48:02 esmtp kernel: ugen0: Keyspan, a division of InnoSys Inc. Keyspan USA-19H, rev 1.10/1.00, addr 2 Thanks -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Connecting to a USB serial port
I have a Keyspan USB serial port on my FreeBSD 6.1 box and trying to connect from a Linux box to the machine. I'm using minicom and not sure of the settings that should be used. I see the following in dmesg... sio0: 16550A-compatible COM port port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A Is this the USB serial port? There is no other serial port avaialble on the server, but could be something in the board, not sure. Someone else told me they used this same serial port on their box and I wanted to try it since the box does not have an available PCI slot or serial port available. My question is whether this works just like a regular COM port? I wanted to be sure I should be handling things the same as I would with a regular serial port. I have ttyd0 enabled and showing up... 657 ?? I 0:00.00 /usr/libexec/getty std.9600 ttyd0 That seems to do the trick with my other BSD servers that have regular serial ports, but minicom doesn't want to find it using 9600 8N1 settings. -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Tar backup on geom mirror drive
I am backing up a big home partition that results in 46GB tar.gz file directly to another FreeBSD machine via NFS and it is taking from 9:30pm until almost 7am the next morning. The source home partition is on a geom mirrored slice, could this be the reason for such a slow backup? The destination server is using RAID, but from the BIOS, not geom. Both servers are using gigabit cards through a gigabit switch. -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Protocol error trying to install ports
I walked someone through setup of a FreeBSD 6.1 install over the phone and now when I try to install any ports, I get the same protocol error. I assume something went wrong with the install, is there something I can check or fix remotely? Sorry for the wrapping below, I can't seem to find how to avoid in my temporary mailer Thunderbird. unix# cd /usr/ports/sysutils/portupgrade/ unix# make all install clean === Installing for portupgrade-2.0.1_1,1 === portupgrade-2.0.1_1,1 depends on file: /usr/local/lib/ruby/site_ruby/1.8/i386-freebsd6/bdb1.so - not found === Verifying install for /usr/local/lib/ruby/site_ruby/1.8/i386-freebsd6/bdb1.so in /usr/ports/databases/ruby-bdb1 === Vulnerability check disabled, database not found = bdb1-0.2.2.tar.gz doesn't seem to exist in /usr/ports/distfiles/ruby. = Attempting to fetch from ftp://moulon.inra.fr/pub/ruby/. fetch: ftp://moulon.inra.fr/pub/ruby/bdb1-0.2.2.tar.gz: Protocol error = Attempting to fetch from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ruby/. fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ruby/bdb1-0.2.2.tar.gz: Protocol error = Couldn't fetch it - please try to retrieve this = port manually into /usr/ports/distfiles/ruby and try again. *** Error code 1 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
POKED TIMER
I get this message in the logs from named on a machine running FreeBSD 5.4 and BIND 9.3.1. From what I have found out, there may be a problem with this mix... http://unix.derkeiler.com/Mailing-Lists/FreeBSD/stable/2005-06/1035.html This post suggests an option to get the ports system to overwrite the base. How do I do this? I have never patched the system either and unsure how to apply the security patches. My freebsd-update is having problems connecting to updates.daemonology.net, are there other sources? Thanks in advance, Robert -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Best way to upgrade base programs
Can someone offer some guidance as to the best way to upgrade packages that were not installed via the ports system? For instance, openssh. Would 'portinstall sshd' work and the system see the new version or should it be uninstalled some way first? I am running 5.3 and 6.1. Thanks, Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Dual core processors
I have a server with 6.1 and one dual-core processor and the SMP option was built in the kernel according to the doc below, but only zeros show up in the 'C' column of top after I've rebooted with the newly compiled kernel. http://www.freebsddiary.org/smp.php I did not add APIC_IO as the doc suggested as it complains the option is invalid, plus I did not do this for my other 5.4 server which shows all processors in top. Both configs have a device of apic, neither has the APIC_IO option. However, the other server is running 2 physical CPU's and I see 0 thru 3 in the C column in top. Also, dmesg shows CPU #1 Launched along with everything else: esmtp# dmesg|grep CPU CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (3010.67-MHz 686-class CPU) Logical CPUs per core: 2 FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0: ACPI CPU on acpi0 acpi_throttle0: ACPI CPU Throttling on cpu0 cpu1: ACPI CPU on acpi0 SMP: AP CPU #1 Launched! Why would I not see any other CPU numbers under top like I do in my other server? -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: linksys WPC54G | WPA-TKIP | FreeBSD 6.1
On Tue, 2006-11-14 at 11:40 -0800, probsd org wrote: Anyone know of a good HOWTO on setting up networking in 6.1-RELEASE using a Linksys WPC54G v2 PCMIA card to connect to a wireless linksys router doing WPA-TKIP encryption? michael I would also take a look at 'man ath' and the link below. Both helped me to get my wireless card going http://www.freebsdmall.com/~loader/en_US.ISO8859-1/articles/wireless/article.html -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Dual core processors
On Tue, 2006-11-14 at 15:04 -0800, Josh Carroll wrote: up in the 'C' column of top after I've rebooted with the newly compiled kernel. Run top with the -S argument. You should then see two idle processes, one for each CPU: 11 root 1 171 52 0K 8K CPU0 0 72.1H 91.70% idle: cpu0 10 root 1 171 52 0K 8K RUN1 72.2H 90.97% idle: cpu1 Can you confirm whether you see that or not? I do not have APIC_IO in my kernel either, and it is showing both cores in top (Core 2 Duo CPU). Thanks, yes, I see both cpu0 and cpu1 and cpu1 is 100% idle compared to cpu0 only 45-50% idle at this time. I did some googling for hyperthreadin after reading Bill's response and checked sysctl to find these settings: esmtp# sysctl machdep.hlt_logical_cpus machdep.hlt_logical_cpus: 0 esmtp# sysctl machdep.smp_cpus sysctl: unknown oid 'machdep.smp_cpus' esmtp# sysctl machdep.hlt_cpus machdep.hlt_cpus: 2 Looks like my hyperthreading is enabled and it is in the BIOS. I was told there was a dual-core in the machine, but not confirmed. But there should be two with HT anyway as seen, correct? -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Instant Messenger software
Can anyone here recommend an IM client/server software that runs on FreeBSD? I'm looking at DBabble, but I see no port (which would be nice). We like BSD servers and are getting a lot of requests for this type of private service. But if BSD is not recommended, please tell. Thanks in advance! -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Instant Messenger software
On Thu, 2006-11-09 at 19:28 -0500, Robert Huff wrote: Robert Fitzpatrick writes: Can anyone here recommend an IM client/server software that runs on FreeBSD? I'm looking at DBabble, but I see no port (which would be nice). We like BSD servers and are getting a lot of requests for this type of private service. But if BSD is not recommended, please tell. Would we be correct in assumong you've wandered through /usr/ports/net-im? Thanks, any recommendations? -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Using FreeBSD as a router
It's time to upgrade my old Cisco 10Mbps router and I am seriously considering using FreeBSD. I have found some solutions and wonder what one would recommend here on the list... Solution 1: http://tomclegg.net/256-router Solution 2: http://m0n0.ch/wall/index.php I want to duplicate my Cisco setup. It has 4 Ethernet ports with the WAN subnet assigned to the WAN port and 3 different subnets assigned to each of the remaining 3 ports leading to their VLANs on the switch. Looking for advise from those who have used the above solutions and their experiences. Thanks in advance! -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Periodic processes
I have a FreeBSD 6.0 server that the periodic processes don't seem to complete and build up until our monitor complains about the number of processes and I killall. How would I go about figuring out which process is the problem or if there is a cron issue? Can't find any errors in the messages or cron log. After a few days, this is what I see and have to kill: 26347 ?? Is 0:00.01 /bin/sh -c periodic daily 26349 ?? I 0:00.01 /bin/sh - /usr/sbin/periodic daily 26355 ?? I 0:00.02 /bin/sh - /usr/sbin/periodic daily 26356 ?? I 0:00.00 /bin/sh - /usr/sbin/periodic daily 26401 ?? I 0:00.01 /bin/sh /etc/periodic/daily/400.status-disks 28108 ?? Is 0:00.01 /bin/sh -c periodic weekly 28110 ?? I 0:00.01 /bin/sh - /usr/sbin/periodic weekly 28117 ?? I 0:00.01 /bin/sh - /usr/sbin/periodic weekly 28118 ?? I 0:00.00 /bin/sh - /usr/sbin/periodic weekly 28129 ?? I 0:00.01 /bin/sh - /etc/periodic/weekly/310.locate 28136 ?? IN 0:00.01 /bin/sh /usr/libexec/locate.updatedb 28140 ?? IN 0:00.01 /bin/sh /usr/libexec/locate.mklocatedb -presort 61416 ?? Is 0:00.01 /bin/sh -c periodic daily 61417 ?? I 0:00.01 /bin/sh - /usr/sbin/periodic daily 61424 ?? I 0:00.02 /bin/sh - /usr/sbin/periodic daily 61425 ?? I 0:00.00 /bin/sh - /usr/sbin/periodic daily 61470 ?? I 0:00.01 /bin/sh /etc/periodic/daily/400.status-disks 92450 ?? Is 0:00.01 /bin/sh -c periodic daily 92451 ?? I 0:00.02 /bin/sh - /usr/sbin/periodic daily 92458 ?? I 0:00.02 /bin/sh - /usr/sbin/periodic daily 92459 ?? I 0:00.00 /bin/sh - /usr/sbin/periodic daily 92504 ?? I 0:00.01 /bin/sh /etc/periodic/daily/400.status-disks 98286 ?? Is 0:00.01 /bin/sh -c periodic daily 98289 ?? I 0:00.01 /bin/sh - /usr/sbin/periodic daily 98295 ?? I 0:00.03 /bin/sh - /usr/sbin/periodic daily 98296 ?? I 0:00.00 /bin/sh - /usr/sbin/periodic daily 98341 ?? I 0:00.01 /bin/sh /etc/periodic/daily/400.status-disks -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Advice on RAID?
I have looked into and tried FreeBSD 6.0 Vinum and GEOM RAID in our PIII SCSI 80-pin server with the help of several here on the list. I'm pretty much going to use GEOM RAID-1 for the system disks using Ralf's doc. I have room for 3 more disks. Would you recommend using Vinum RAID-5 on three 73GB drives or using GEOM RAID-1 again on 2 147GB drives? If there is no big reason to use either over the other, we've decided to go for the most space and RAID-5. But the amount of space we would be gaining is probably less than 50GB, correct? Or do you have another solution on our $700 budget. It is a debate here and would like to get experienced insight. Thanks in advance for your time! -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Auto mount/unmount USB hard drive
On Tue, 2006-05-09 at 02:00 +0200, Joerg Pernfuss wrote: On Mon, 08 May 2006 19:40:44 -0400 Robert Fitzpatrick [EMAIL PROTECTED] wrote: I have a USB hard drive mounting and working fine. I have the following entry in /etc/fstab that allows it to work on boot. The device loads as /dev/da4. But if I disconnect without unmounting the device, it detaches, but when plugged back in, it receives a new device as /dev/da5, which is not what is in fstab of course, yada, yada, yada. Is there a way I can get it to automatically mount/unmount the drive while working under the same device id as I unplug and plug back in? /dev/da4s1 /mnt/usbmsdos rw,noauto 0 0 If the msdosfs has a label, you could load geom_label.ko and use sth like /dev/msdosfs/usbdisk /mnt/usbmsdos rw,noauto 0 0 Sorry for the direct message Joerg, I am resending this to the list. Thanks, but how do I label the msdosfs? I assume something similar to tunefs for UFS, but I don't see a label option for msdosfs. -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
ibsh shell session fails using scp/sftp
Trying to use WinSCP to connect using the ibsh shell. The logs in the WinSCP program indicate 'Connection failed. Server sent command exit status 0', but I cannot find anything in the FreeBSD logs. I am hoping to find where my FreeBSD 6.0 box is trying to execute a command so I can add it to the approved list of commands to run by the user. The /var/log/auth.log only states... May 8 09:21:28 files sshd[22864]: Accepted keyboard-interactive/pam for webtent from 192.168.1.12 port 1130 ssh2 May 8 09:21:29 files sshd[22867]: subsystem request for sftp While the /var/log/messages and /var/log/debug.log have nothing as a result of the attempt to login. Is there anywhere else this may be logging on why the session could not start? Thanks in advance! -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ibsh shell session fails using scp/sftp
On Mon, 2006-05-08 at 09:39 -0400, Bill Moran wrote: Trying to use WinSCP to connect using the ibsh shell. The logs in the WinSCP program indicate 'Connection failed. Server sent command exit status 0', but I cannot find anything in the FreeBSD logs. I am hoping to find where my FreeBSD 6.0 box is trying to execute a command so I can add it to the approved list of commands to run by the user. The /var/log/auth.log only states... May 8 09:21:28 files sshd[22864]: Accepted keyboard-interactive/pam for webtent from 192.168.1.12 port 1130 ssh2 May 8 09:21:29 files sshd[22867]: subsystem request for sftp While the /var/log/messages and /var/log/debug.log have nothing as a result of the attempt to login. Is there anywhere else this may be logging on why the session could not start? Run sshd with -d. Be sure to read the manpage on what this does first, as it may be an unpleasant surprise if you're trying to work on a machine that you don't have local access to. Thanks, I can't seem to find all the debug messages on screen in a log file, so I'll try to not misspell or represent something here. After starting the session, it displays the subsystem message, then a 'Received SIGCHLD' and pid assignment, then the exit message... snip subsystem request for sftp debug1: sybsystem: exec() /usr/libexec/sftp-server debug1: Received SIGCHLD. debug1: session_by_pid: pid 23011 debug1: session_exit_message: session 0 channel 0 pid 23011 debug1: session_exit_message: release channel 0 debug1: session_close: session 0 pid 23011 snip I have sftp and even added exec to the approved commands along with anything else I could think of for ibsh with no luck, same messages. I tried adding /usr/libexec to my PATH, no help. files# echo $PATH /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/usr/libexec files# cat /usr/local/etc/ibsh/globals.cmds cd ls pwd logout exit touch mkdir rm pico scp sftp sftp-server ssh sshd exec -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Auto mount/unmount USB hard drive
I have a USB hard drive mounting and working fine. I have the following entry in /etc/fstab that allows it to work on boot. The device loads as /dev/da4. But if I disconnect without unmounting the device, it detaches, but when plugged back in, it receives a new device as /dev/da5, which is not what is in fstab of course, yada, yada, yada. Is there a way I can get it to automatically mount/unmount the drive while working under the same device id as I unplug and plug back in? /dev/da4s1 /mnt/usbmsdos rw,noauto 0 0 Also, if I try to reboot after unplugging the device, I get a page fault error. Not sure where this error is in the logs so I can post here in my message. -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
ibsh
Anyone using ibsh shell for locking users in to their home directory? I just found out about this googling and installed the port on my FreeBSD 6.0 box, but can't seem to get it working files# grep ibsh /etc/shells /usr/local/bin/ibsh files# grep webtent /etc/passwd webtent:*:1002:1000:WebTent Networking, Inc.:/home/webtent:/usr/local/bin/ibsh [EMAIL PROTECTED]:~ ssh [EMAIL PROTECTED] Password: snip [EMAIL PROTECTED] cd .. [EMAIL PROTECTED] pwd /home [EMAIL PROTECTED] What am I missing? I can't find any docs or manual on the system... -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ibsh
On Sun, 2006-05-07 at 12:32 -0400, Robert Fitzpatrick wrote: Anyone using ibsh shell for locking users in to their home directory? I just found out about this googling and installed the port on my FreeBSD 6.0 box, but can't seem to get it working Sorry for posting to quickly, I found that merely editing the /etc/passwd file to change the shell did not get it done. I have ibsh shell working now, but something peculiar happening. I can login from my Linux box using ssh and all is as expected, but if I use the WinSCP program, commonly used by our staff, it does not believe there is an SFTP server running. Of course, logging in using WinSCP with a user of a different shell works perfectly. Here is ibsh commands I am allowing and the log from WinSCP... files# cat globals.cmds # Add any commands the user may execute. Even shell commands. # You have to allow logout and/or exit, so the user can logout! # cd and pwd should also be allowed. Note: other shell builtin # commands are not yet implemented! cd ls pwd logout exit . 2006-05-07 12:48:40.600 -- . 2006-05-07 12:48:40.600 WinSCP Version 3.7.6 (Build 306) (OS 5.2.3790 Service Pack 1) . 2006-05-07 12:48:40.600 Login time: Sunday, May 07, 2006 12:48:40 PM . 2006-05-07 12:48:40.600 -- . 2006-05-07 12:48:40.600 Session name: [EMAIL PROTECTED] . 2006-05-07 12:48:40.600 Host name: 192.168.1.7 (Port: 22) . 2006-05-07 12:48:40.600 User name: webtent (Password: Yes, Key file: No) . 2006-05-07 12:48:40.610 Transfer Protocol: SFTP (SCP) . 2006-05-07 12:48:40.610 SSH protocol version: 2; Compression: No . 2006-05-07 12:48:40.610 Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No . 2006-05-07 12:48:40.610 Ciphers: aes,blowfish,3des,WARN,des; Ssh2DES: No . 2006-05-07 12:48:40.610 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec . 2006-05-07 12:48:40.610 SSH Bugs: -,-,-,-,-,-,-,- . 2006-05-07 12:48:40.610 SFTP Bugs: -,-,- . 2006-05-07 12:48:40.610 Proxy: none . 2006-05-07 12:48:40.610 Return code variable: Autodetect; Lookup user groups: Yes . 2006-05-07 12:48:40.621 Shell: default, EOL: 0 . 2006-05-07 12:48:40.621 Local directory: default, Remote directory: home, Update: No, Cache: Yes . 2006-05-07 12:48:40.621 Cache directory changes: Yes, Permanent: Yes . 2006-05-07 12:48:40.621 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes . 2006-05-07 12:48:40.621 Alias LS: No, Ign LS warn: Yes, Scp1 Comp: No . 2006-05-07 12:48:40.621 -- . 2006-05-07 12:48:40.771 Looking up host 192.168.1.7 . 2006-05-07 12:48:40.781 Connecting to 192.168.1.7 port 22 . 2006-05-07 12:48:40.831 Server version: SSH-2.0-OpenSSH_4.2p1 FreeBSD-20050903 . 2006-05-07 12:48:40.851 We claim version: SSH-2.0-WinSCP_release_3.7.6 . 2006-05-07 12:48:40.861 Using SSH protocol version 2 . 2006-05-07 12:48:40.881 Doing Diffie-Hellman group exchange . 2006-05-07 12:48:41.001 Doing Diffie-Hellman key exchange . 2006-05-07 12:48:42.273 Host key fingerprint is: . 2006-05-07 12:48:42.293 ssh-dss 2048 0a:59:6c:0f:b9:18:2b:68:1b:e0:5d:3b:d6:5a:e0:65 . 2006-05-07 12:48:42.313 Initialised AES-256 client-server encryption . 2006-05-07 12:48:42.333 Initialised HMAC-SHA1 client-server MAC algorithm . 2006-05-07 12:48:42.353 Initialised AES-256 server-client encryption . 2006-05-07 12:48:42.373 Initialised HMAC-SHA1 server-client MAC algorithm ! 2006-05-07 12:48:42.413 Using username webtent. ! 2006-05-07 12:48:42.523 Using keyboard-interactive authentication. . 2006-05-07 12:48:42.543 Password: prompt from server . 2006-05-07 12:48:42.563 Responding with stored password. . 2006-05-07 12:48:42.603 Access granted . 2006-05-07 12:48:42.623 Opened channel for session . 2006-05-07 12:48:42.653 Started a shell/command . 2006-05-07 12:48:42.673 -- . 2006-05-07 12:48:42.693 Using SFTP protocol. . 2006-05-07 12:48:42.724 Doing startup conversation with host. 2006-05-07 12:48:42.744 Type: SSH_FXP_INIT, Size: 5, Number: -1 . 2006-05-07 12:48:42.774 Server sent command exit status 0 . 2006-05-07 12:48:42.794 All channels closed. Disconnecting . 2006-05-07 12:48:42.824 Server closed network connection * 2006-05-07 12:48:42.854 (ESshFatal) Cannot initialize SFTP protocol. Is the host running a SFTP server? * 2006-05-07 12:48:42.854 Connection has been unexpectedly closed. Server sent command exit status 0. -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Problem using geom to mirror system
I am following the doc at http://people.freebsd.org/~rse/mirror/ While using Approach 2, the initial dump and reboot using the new gm0 mirror worked fine, but having a problem trying to add my da0 drive to the mirror after the reboot. Can someone suggest what I've done wrong? files# gmirror configure -a gm0s1 No such device: gm0s1. files# df -h Filesystem SizeUsed Avail Capacity Mounted on /dev/mirror/gm0s1a 8.3G1.2G6.4G16%/ devfs 1.0K1.0K 0B 100%/dev /dev/mirror/datas1a 33G4.0K 30G 0%/data files# ls -lah /dev/mirror/ total 1 dr-xr-xr-x 2 root wheel 512 Dec 31 1969 . dr-xr-xr-x 5 root wheel 512 Dec 31 1969 .. crw-r- 1 root operator0, 116 May 4 23:43 data crw-r- 1 root operator0, 118 May 4 23:43 datas1 crw-r- 1 root operator0, 121 May 4 19:43 datas1a crw-r- 1 root operator0, 122 May 4 23:43 datas1c crw-r- 1 root operator0, 109 May 4 23:43 gm0 crw-r- 1 root operator0, 117 May 4 23:43 gm0s1 crw-r- 1 root operator0, 119 May 4 19:43 gm0s1a crw-r- 1 root operator0, 120 May 4 23:43 gm0s1c files# dmesg|grep gm0 GEOM_MIRROR: Device gm0 created (id=982386906). GEOM_MIRROR: Device gm0: provider da1 detected. GEOM_MIRROR: Device gm0: provider da1 activated. GEOM_MIRROR: Device gm0: provider mirror/gm0 launched. Trying to mount root from ufs:/dev/mirror/gm0s1a -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
removing geom config left over from previous install
Trying to mirror the system using geom on a box with 2 pairs of identical SCSI drives (2 IBM 9GB drives and 2 Seagate 35GB drives). The Seagate drives were mirrored with geom under a previous install and I was trying to mirror the system, when all was not working and I decided to start all over again. I have tried a few times now with a fresh install of FreeBSD 6.0 and on the last round, removed and wrote changes to the disk in the splice setup for all four disks and then restarted the machine and installation to make sure I had all disks with one slice of unused space to start. I did, so I proceeded to create all my partitions on the one IBM da0 drive to mirrored with da1 after install. The issue is that after loading the mirror, I get what seems to be my previous devices, how can I get a fresh start? Because this eventually leads to 'bsdlabel: Geom not found'...right after first boot, I am following the doc at http://people.freebsd.org/~rse/mirror/ files# dd if=/dev/zero of=/dev/da1 bs=512 count=79 79+0 records in 79+0 records out 40448 bytes transferred in 0.015124 secs (2674452 bytes/sec) files# fdisk -v -B -I /dev/da1 *** Working on device /dev/da1 *** fdisk: invalid fdisk partition table found parameters extracted from in-core disklabel are: cylinders=1115 heads=255 sectors/track=63 (16065 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=1115 heads=255 sectors/track=63 (16065 blks/cyl) Information from DOS bootblock is: 1: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 17912412 (8746 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 90/ head 254/ sector 63 2: UNUSED 3: UNUSED 4: UNUSED fdisk: Geom not found files# gmirror label -v -n -b round-robin gm0s1 /dev/da1s1 Metadata value stored on /dev/da1s1. Done. files# ls /dev/mirror ls: /dev/mirror: No such file or directory files# gmirror load files# ls /dev/mirror datadatas1c gm0 gm0s1 datas1 datas1ccgm0s1 files# ls -la /dev/mirror total 1 dr-xr-xr-x 2 root wheel 512 May 5 13:15 . dr-xr-xr-x 5 root wheel 512 Dec 31 1969 .. crw-r- 1 root operator0, 114 May 5 13:07 data crw-r- 1 root operator0, 124 May 5 13:07 datas1 crw-r- 1 root operator0, 126 May 5 13:07 datas1c crw-r- 1 root operator0, 128 May 5 13:07 datas1cc crw-r- 1 root operator0, 123 May 5 13:07 gm0 crw-r- 1 root operator0, 125 May 5 13:07 gm0s1 crw-r- 1 root operator0, 125 May 5 13:07 gm0s1 files# bsdlabel -w -B /dev/mirror/gm0s1 bsdlabel: Geom not found -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Software RAID guidance
On Fri, 2006-05-05 at 00:37 +0100, Alex Zbyslaw wrote: Robert Fitzpatrick wrote: I have an old NT4 PIII here that has a pair Adaptec Array1000 Family controllers with 2 pairs of identical drives on one of them (2 IBM 9GB and 2 Seagate 35GB). From what I googled, *nix does not support the controller, so I have removed the RAID arrays and loaded FreeBSD 6.0 onto the two IBM drives. Now, I wanted to mirror the other two for data and looking for guidance as to whether it is first of all suited for software RAID and if so, CCD or vinum. I am contemplating vinum because the handbook mentions CCD is when cost is the important factor and for me, is reliability. What would someone suggest? If vinum, one thing I don't quite understand is do I create the partitions to be used in the device? There doesn't seem to be a man for gvinum and the link to it in the handbook section 19.6.1 is broken. Just to give you another option. You can support RAID1 using atacontrol to just make two disk into a RAID. Yes, I saw mention of atacontrol somewhere in the handbook, the drives all SCSI. It seems atacontrol only addresses IDE? Excuse my ignorance on the subject of ATA vs SCSI :/ files# atacontrol list ATA channel 0: Master: acd0 CD-ROM 50X/10 ATA/ATAPI revision 0 Slave: no device present ATA channel 1: Master: no device present Slave: no device present -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Software RAID guidance
On Thu, 2006-05-04 at 19:59 -0400, Ian Jefferson wrote: I think if you want mirroring only you should consult the geom pages. Great, I believe I have this setup right. I'm not sure what the fdisk issue may be with the message 'fdisk: Geom not found', but all looks to have setup properly. Now, just to have a clear understanding, what is the purpose of /dev/mirror/datas1c as it is not used in creating the mirror it seems? files# geom mirror label -v -s 35000 data /dev/da2 /dev/da3 Metadata value stored on /dev/da2. Metadata value stored on /dev/da3. Done. files# gmirror load files# fdisk -vBI /dev/mirror/data *** Working on device /dev/mirror/data *** parameters extracted from in-core disklabel are: cylinders=4462 heads=255 sectors/track=63 (16065 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=4462 heads=255 sectors/track=63 (16065 blks/cyl) Information from DOS bootblock is: 1: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 71681967 (35000 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 365/ head 254/ sector 63 2: UNUSED 3: UNUSED 4: UNUSED fdisk: Geom not found files# ls -l /dev/mirror/ total 0 crw-r- 1 root operator0, 127 May 4 20:48 data crw-r- 1 root operator0, 110 May 4 20:43 datas1 crw-r- 1 root operator0, 117 May 4 20:43 datas1a crw-r- 1 root operator0, 118 May 4 20:43 datas1c files# bsdlabel -wB /dev/mirror/datas1 files# newfs -U /dev/mirror/datas1a /dev/mirror/datas1a: 35001.0MB (71681948 sectors) block size 16384, fragment size 2048 using 191 cylinder groups of 183.77MB, 11761 blks, 23552 inodes. with soft updates super-block backups (for fsck -b #) at: 160, 376512, 752864, 1129216, 1505568, 1881920, 2258272, 2634624, 3010976, 3387328, 3763680, 4140032, 4516384, 4892736, 5269088, 5645440, 6021792, 6398144, 6774496, 7150848, 7527200, 7903552, 8279904, 8656256, 9032608, 9408960, 9785312, 10161664, 10538016, 10914368, 11290720, 11667072, 12043424, 12419776, 12796128, 13172480, 13548832, 13925184, 14301536, 14677888, 15054240, 15430592, 15806944, 16183296, 16559648, 16936000, 17312352, 17688704, 18065056, 18441408, 18817760, 19194112, 19570464, 19946816, 20323168, 20699520, 21075872, 21452224, 21828576, 22204928, 22581280, 22957632, 2984, 23710336, 24086688, 24463040, 24839392, 25215744, 25592096, 25968448, 26344800, 26721152, 27097504, 27473856, 27850208, 28226560, 28602912, 28979264, 29355616, 29731968, 30108320, 30484672, 30861024, 31237376, 31613728, 31990080, 32366432, 32742784, 33119136, 33495488, 33871840, 34248192, 34624544, 35000896, 35377248, 35753600, 36129952, 36506304, 36882656, 37259008, 37635360, 38011712, 38388064, 38764416, 39140768, 39517120, 39893472, 40269824, 40646176, 41022528, 41398880, 41775232, 42151584, 42527936, 42904288, 43280640, 43656992, 44033344, 44409696, 44786048, 45162400, 45538752, 45915104, 46291456, 46667808, 47044160, 47420512, 47796864, 48173216, 48549568, 48925920, 49302272, 49678624, 50054976, 50431328, 50807680, 51184032, 51560384, 51936736, 52313088, 52689440, 53065792, 53442144, 53818496, 54194848, 54571200, 54947552, 55323904, 55700256, 56076608, 56452960, 56829312, 57205664, 57582016, 57958368, 58334720, 58711072, 59087424, 59463776, 59840128, 60216480, 60592832, 60969184, 61345536, 61721888, 62098240, 62474592, 62850944, 63227296, 63603648, 6398, 64356352, 64732704, 65109056, 65485408, 65861760, 66238112, 66614464, 66990816, 67367168, 67743520, 68119872, 68496224, 68872576, 69248928, 69625280, 70001632, 70377984, 70754336, 71130688, 71507040 files# mount /dev/mirror/datas1a /data files# df -h Filesystem SizeUsed Avail Capacity Mounted on /dev/da0s1a3.8G 55M3.4G 2%/ devfs 1.0K1.0K 0B 100%/dev /dev/da1s1d8.3G1.0G6.6G13%/usr /dev/da0s1d4.0G4.2M3.7G 0%/var /dev/mirror/datas1a 33G4.0K 30G 0%/data -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Software RAID guidance
On Fri, 2006-05-05 at 09:20 +0800, Cheng-Lung Sung wrote: Great, I believe I have this setup right. I'm not sure what the fdisk issue may be with the message 'fdisk: Geom not found', but all looks to have setup properly. Now, just to have a clear understanding, what is the purpose of /dev/mirror/datas1c as it is not used in creating the mirror it seems? Have you tried to mount it? files# mount /dev/mirror/datas1c mount: /dev/mirror/datas1c: unknown special file or file system -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Software RAID guidance
On Fri, 2006-05-05 at 09:16 +0800, Cheng-Lung Sung wrote: 1. http://people.freebsd.org/~rse/mirror/ Great doc, thanks! I was able to get the first part of the 2nd approach booting from the gm0 mirror, but after booting and trying to add my da0 to the mirror, it does not recognize the device...I tried re-splicing the drive in sysinstall with no help... files# gmirror configure -a gm0s1 No such device: gm0s1. files# df -h Filesystem SizeUsed Avail Capacity Mounted on /dev/mirror/gm0s1a 8.3G1.2G6.4G16%/ devfs 1.0K1.0K 0B 100%/dev /dev/mirror/datas1a 33G4.0K 30G 0%/data files# ls -lah /dev/mirror/ total 1 dr-xr-xr-x 2 root wheel 512 Dec 31 1969 . dr-xr-xr-x 5 root wheel 512 Dec 31 1969 .. crw-r- 1 root operator0, 116 May 4 23:43 data crw-r- 1 root operator0, 118 May 4 23:43 datas1 crw-r- 1 root operator0, 121 May 4 19:43 datas1a crw-r- 1 root operator0, 122 May 4 23:43 datas1c crw-r- 1 root operator0, 109 May 4 23:43 gm0 crw-r- 1 root operator0, 117 May 4 23:43 gm0s1 crw-r- 1 root operator0, 119 May 4 19:43 gm0s1a crw-r- 1 root operator0, 120 May 4 23:43 gm0s1c Again, not sure where mine is getting the s1c devices...while the data mirror was setup with another doc, the gm0 setup flawlessly following your 2nd approach. -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Apache 2.2 port with OpenLDAP 2.3.20
Trying to install Apache 2.2 via the ports collection and get this make error where the port is trying to install OpenLDAP 2.2 and conflicting with my already installed v2.3... esmtp# make === apache-2.2.0_7 depends on executable: python - found === apache-2.2.0_7 depends on file: /usr/local/bin/perl5.8.7 - found === apache-2.2.0_7 depends on file: /usr/local/bin/autoconf259 - found === apache-2.2.0_7 depends on file: /usr/local/bin/libtool - found === apache-2.2.0_7 depends on shared library: expat.6 - found === apache-2.2.0_7 depends on shared library: ldap-2.2.7 - not found ===Verifying install for ldap-2.2.7 in /usr/ports/net/openldap22-client === Installing for openldap-client-2.2.30 === openldap-client-2.2.30 conflicts with installed package(s): openldap-sasl-client-2.3.20 I have on another server Apache 2.0 running with LDAP 2.3, but the LDAP package has been upgraded since Apache was installed. Can someone suggest what is necessary to get Apache 2.2 to install with OpenLDAP 2.3.x? Looks from the Makefile that WITH_LDAP triggers the support, I also have WITH_OPENLDAP_VER=23 in the /etc/make.conf file, but no help getting Apache to look at my v2.3.x. -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Running custom command via Nagios
I have the Nagios port installed on my FreeBSD 5.4 server and trying to use a custom command. I can run from the command line with no problem, but when Nagios is configured to use the command, which is a sendmail script, I get this error in /var/log/messages: Feb 2 16:39:03 esmtp kernel: pid 40443 (nagios), uid 2004: exited on signal 10 I am trying a sendmail script to allow me to send messages via an off-the-box SMTP server while monitoring Amavisd-new. So if Amavis does go down, I'll still get the message. I even made a simple little shell script that writes to a file and that doesn't work either. How can I run this script in the same context as Nagios to test from the commandline? -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
package tools out of date?
Trying to 'portupgrade openldap-sasl-server-2.2.29' and get the following errors. Does this mean my FreeBSD 54. package tools? Which ports or how do I upgrade? pkg_create: read_plist: unknown command '@dirrmtry etc/openldap/schema' (package tools out of date?) pkg_create: read_plist: unknown command '@dirrmtry %D/etc/openldap' (package tools out of date?) pkg_create: write_plist: unknown command type -1 (etc/openldap/schema) *** Error code 2 Stop in /usr/ports/net/openldap22-sasl-server. *** Error code 1 Stop in /usr/ports/net/openldap22-sasl-server. -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
php port using pear to get PEAR_Frontend_Web
Can't seem to get this pear package to install, others install OK. Does anyone know of an issue with the php port that could cause this? Not sure about segmentation fault, I also see this on successfully installed package. According to the PEAR site, there is no 0.5 version. esmtp# pear install PEAR_Frontend_Web Failed to download pear/PEAR_Frontend_Web within preferred state stable, latest release is version 0.4, stability beta, use channel://pear.php.net/PEAR_Frontend_Web-0.4 to install Cannot initialize 'PEAR_Frontend_Web', invalid or missing package file Package PEAR_Frontend_Web is not valid install failed Segmentation fault (core dumped) esmtp# pear install channel://pear.php.net/PEAR_Frontend_Web-0.4 pear/pear requires package pear/PEAR_Frontend_Web (version = 0.5.0), downloaded version is 0.4 pear/PEAR_Frontend_Web cannot be installed, conflicts with installed packages No valid packages found install failed Segmentation fault (core dumped) -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
arp messages
I get these messages in the log, these are the mac addresses for NICs all on my network, my switch and destination server: esmtp.webtent.net kernel log messages: arp: 208.38.145.35 moved from 00:10:e0:01:86:d9 to 00:b0:64:4d:0b:70 on em0 arp: 208.38.145.42 moved from 00:10:e0:01:86:d9 to 00:b0:64:4d:0b:70 on em0 arp: 208.38.145.40 moved from 00:b0:64:4d:0b:70 to 00:10:e0:01:b1:7a on em0 arp: 208.38.145.40 moved from 00:10:e0:01:b1:7a to 00:b0:64:4d:0b:70 on em0 I found this note, is this the proper way to disable these messages in my FreeBSD 5.4 server? http://listserver.uk.freebsd.org/pipermail/freebsd-users/2004-August/009605.html It's just arp telling you that both nics are on the same network. This will stop arp messages being logged Sysctl net.link.ether.inet.log_arp_movements=0 -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Determining disk latency
I have been trying to track down an issue where are mail messages are delayed via postfix, amavis, clamav and SA. Seems the messages move right through amavis now in just a second, like the message below. I'm sure the queue active messages are related to me restarting postfix after making changes. I have max_server for amavis set to 2 just like the smtp-amavis transport in master.cf in postfix. If I try to increase this, my CPU utilization spikes. Messages come in as queue active and sit for, in this case 2 and half hours, until amavis picks it up. Someone suggested on the amavis list to look for disk latency issues, how do I do this? esmtp# grep 7BEE97E997 /var/log/maillog Dec 14 14:17:38 esmtp postfix/smtpd[32427]: 7BEE97E997: client=mail186.e2ma.net[66.179.147.186] Dec 14 14:17:38 esmtp postfix/cleanup[33547]: 7BEE97E997: message-id=[EMAIL PROTECTED] Dec 14 14:17:49 esmtp postfix/qmgr[29605]: 7BEE97E997: from=[EMAIL PROTECTED], size=11246, nrcpt=1 (queue active) Dec 14 14:27:29 esmtp postfix/qmgr[29605]: 7BEE97E997: to=[EMAIL PROTECTED], relay=none, delay=592, status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]: Connection refused) Dec 14 14:46:25 esmtp postfix/qmgr[35306]: 7BEE97E997: from=[EMAIL PROTECTED], size=11246, nrcpt=1 (queue active) Dec 14 14:58:56 esmtp postfix/qmgr[36371]: 7BEE97E997: from=[EMAIL PROTECTED], size=11246, nrcpt=1 (queue active) Dec 14 15:25:44 esmtp postfix/qmgr[37488]: 7BEE97E997: from=[EMAIL PROTECTED], size=11246, nrcpt=1 (queue active) Dec 14 16:44:02 esmtp postfix/smtp[40014]: 7BEE97E997: to=[EMAIL PROTECTED], relay=127.0.0.1[127.0.0.1], delay=8785, status=sent (250 2.6.0 Ok, id=40110-01-4, from MTA([127.0.0.1]:10025): 250 Ok: queued as 4EAA07F5EF) Dec 14 16:44:02 esmtp postfix/qmgr[37488]: 7BEE97E997: removed esmtp# grep 4EAA07F5EF /var/log/maillog Dec 14 16:44:02 esmtp postfix/smtpd[40116]: 4EAA07F5EF: client=localhost.webtent.net[127.0.0.1] Dec 14 16:44:02 esmtp postfix/cleanup[39841]: 4EAA07F5EF: message-id=[EMAIL PROTECTED] Dec 14 16:44:02 esmtp postfix/qmgr[37488]: 4EAA07F5EF: from=[EMAIL PROTECTED], size=11737, nrcpt=1 (queue active) Dec 14 16:44:02 esmtp amavis[40110]: (40110-01-4) FWD via SMTP: [EMAIL PROTECTED] - [EMAIL PROTECTED], 250 2.6.0 Ok, id=40110-01-4, from MTA([127.0.0.1]:10025): 250 Ok: queued as 4EAA07F5EF Dec 14 16:44:02 esmtp postfix/smtp[40014]: 7BEE97E997: to=[EMAIL PROTECTED], relay=127.0.0.1[127.0.0.1], delay=8785, status=sent (250 2.6.0 Ok, id=40110-01-4, from MTA([127.0.0.1]:10025): 250 Ok: queued as 4EAA07F5EF) Dec 14 16:44:02 esmtp postfix/smtp[38824]: 4EAA07F5EF: to=[EMAIL PROTECTED], relay=208.38.145.35[208.38.145.35], delay=0, status=sent (250 2.0.0 jBELhw220499 Message accepted for delivery) Dec 14 16:44:02 esmtp postfix/qmgr[37488]: 4EAA07F5EF: removed -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]