Re: named questions.
At 08:59 PM 3/12/2008, jekillen wrote: Hello: I have named running as secondary server on v6.2 It will not start without a specific configuration file set on the command line. After doing some investigation it appears that that is because it runs chrooted and there is not a symlink from /etc/namedb. Is that a correct assumption? I read the man page and it specifies the default configuration file as /etc/namedb/named.conf and along with this file there are master and slave directories. Would I make the /etc/namedb/named.conf file to be a symlink to /var/named/etc/namedb/named.conf? You can run named chrooted or not. The default is to run chrooted. Look in: /etc/defaults/rc.conf for all the named configuration options and default settings. If you run chrooted be sure your chroot environment has writeable directory for the slave files. There are some other entries in rc.conf related to named that appear in my primary nameserver rc.conf file that relate to getting it up at boot but I have lost root access to that machine so I cannot recover the rc.conf details and I do not remember what document- ation I was using to set it up. You should not need root access to read /etc/rc.conf. This is usually given read by all perms. However, in my rc.conf I set: named_chroot_autoupdate=NO # Automatically install/update chrooted named_chrootdir=# Chroot directory (or not to auto-chroot it) named_enable=YES named_flags= # quoted string for the command line named_uid=# quoted user name to run as bind or root I was advised to start named as a user other than root but when I tried that named would not start because the user I set it to does not have write permission in the directory that has the pid file. Your chroot environment must be set up correctly with the correct perms to write those files and to read the named.conf file. When named starts at boot what user does it run as, by default? It will run by the named_uid you set in /etc/rc.conf You will have an easier time getting named to run via the command line, then set /etc/rc.conf for the correct settings. /usr/sbin/named -c [to the path and name for naed.conf] -u [the user name to run as] -t [chroot directory or omit this setting if not chrooting] -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: source upgrade from 6.3 - 7.0 fails
At 01:41 PM 3/12/2008, David Newman wrote: Having trouble upgrading 6.3 to 7.0 from source. This is on a single-CPU amd64 machine. These steps all work OK: 1. cd /usr/src 2. cvsup -g -L 2 /usr/local/etc/security-supfile (tag points to RELENG_7_0) 3. make buildworld 4. make buildkernel KERNCONF=GENERIC 5. make installkernel KERNCONF=GENERIC 6. reboot to single-user mode 7. mount -u / 8. mount -a 9. mergemaster -p But then I do: 10. make installworld and get this error: install: crt1.o: No such file or directory ***Error code 71 crt1.o does exist in /usr/lib. Thanks in advance for any clues on fixing this upgrade. dn I had a similar problem with one server I upgraded this way too. I was running the 7.0 kernel with 6.3 world. I rebuilt world after cleaning everything and the next installworld went fine. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Best practice: sendmail and SMTP auth
At 02:19 PM 3/12/2008, Doug Poland wrote: Hello, Not sure if this is the most appropriate place for this question, but since all my servers are FreeBSD 6.x/7.x, I'll give it a go... I am considering setting up SMTP auth on a number of sendmail instances that I control. After much googling and reading, it is not clear to me that a server with SMTP auth configured/enabled can relay mail in both auth and non-auth modes. If one sendmail configuration cannot accommodate both SMTP auth and access.db, does one setup a dedicated SMTP auth host with a SMART_HOST option and feed incoming email to an non-auth instance of sendmail? Sorry if my terminology is ambiguous, I'm not a sendmail professional by day. -- Regards, Doug You can set up sendmail to do both auth and non-auth. However best practice is to use auth only to control any spam relaying. Check the sendmail.org website FAQ's for setting this up. You will want to probably use cyrus-sasl or cyrus-sasl2 ports along with sendmail. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Upgrade 4.11 to 7.0, possible?
At 11:14 PM 3/10/2008, Simon Gao wrote: Hi, I am trying to see if it's possible to upgrade 4.11 to 7.0 by using cvsup. When I run make buildworld, I got these errors. Are there packages missing? -- Building an up-to-date make(1) -- rm -f .depend mkdep -f .depend -a-I/usr/src/usr.bin/make -DOLD_JOKE=1 -DMAKE_VERSION=\5200408120\ -D__FBSDID=__RCSID -DDEFSHELLNAME=\sh\ /usr/src/usr.bin/make/arch.c /usr/src/usr.bin/make/buf.c /usr/src/usr.bin/make/cond.c /usr/src/usr.bin/make/dir.c /usr/src/usr.bin/make/for.c /usr/src/usr.bin/make/hash.c /usr/src/usr.bin/make/hash_tables.c /usr/src/usr.bin/make/job.c /usr/src/usr.bin/make/lst.c /usr/src/usr.bin/make/main.c /usr/src/usr.bin/make/make.c /usr/src/usr.bin/make/parse.c /usr/src/usr.bin/make/proc.c /usr/src/usr.bin/make/shell.c /usr/src/usr.bin/make/str.c /usr/src/usr.bin/make/suff.c /usr/src/usr.bin/make/targ.c /usr/src/usr.bin/make/util.c /usr/src/usr.bin/make/var.c In file included from /usr/src/usr.bin/make/arch.c:107: /usr/src/usr.bin/make/globals.h:49: stdint.h: No such file or directory In file included from /usr/src/usr.bin/make/cond.c:59: /usr/src/usr.bin/make/globals.h:49: stdint.h: No such file or directory In file included from /usr/src/usr.bin/make/dir.c:97: /usr/src/usr.bin/make/globals.h:49: stdint.h: No such file or directory In file included from /usr/src/usr.bin/make/for.c:55: /usr/src/usr.bin/make/globals.h:49: stdint.h: No such file or directory In file included from /usr/src/usr.bin/make/job.c:131: /usr/src/usr.bin/make/globals.h:49: stdint.h: No such file or directory In file included from /usr/src/usr.bin/make/main.c:82: /usr/src/usr.bin/make/globals.h:49: stdint.h: No such file or directory In file included from /usr/src/usr.bin/make/make.c:80: /usr/src/usr.bin/make/globals.h:49: stdint.h: No such file or directory In file included from /usr/src/usr.bin/make/parse.c:86: /usr/src/usr.bin/make/globals.h:49: stdint.h: No such file or directory In file included from /usr/src/usr.bin/make/str.c:49: /usr/src/usr.bin/make/globals.h:49: stdint.h: No such file or directory In file included from /usr/src/usr.bin/make/suff.c:102: /usr/src/usr.bin/make/globals.h:49: stdint.h: No such file or directory In file included from /usr/src/usr.bin/make/targ.c:84: /usr/src/usr.bin/make/globals.h:49: stdint.h: No such file or directory In file included from /usr/src/usr.bin/make/util.c:59: /usr/src/usr.bin/make/globals.h:49: stdint.h: No such file or directory In file included from /usr/src/usr.bin/make/var.c:96: /usr/src/usr.bin/make/globals.h:49: stdint.h: No such file or directory mkdep: compile failed *** Error code 1 Stop in /usr/src/usr.bin/make. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. Simon I have upgraded from 4.11 to 5.X, then from 5.X to 6.x, then from 6.X to 7.0. I don't think you can jump major versions as too much changes with each major version. You could download the ISO's and do binary upgrades to the major versions which would be faster. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: doesn't change to Daylight Saving Time
At 08:17 AM 3/10/2008, Robert Huff wrote: Derek Ragona writes: My FreeBSD 6.2 doesn't change to Daylight Saving Time. How should I fix it? I'm having the same problem with -CURRENT. I have updated the zoneinfo files (using misc/zoneinfo) and (re-)run tzsetup, but am still a hour behind. Robert Huff Are you running ntpd? I am. (If it matters, I have rebooted the system since updating the tz files/settings.) Robert Huff Have you checked the ntpd log file for errors, and verified it is running. Often ntpd won't reset the time if the delta is too large, and you have to stop nrpd and run ntpdate instead, then start ntpd. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: doesn't change to Daylight Saving Time
At 09:38 AM 3/10/2008, Robert Huff wrote: Derek Ragona writes: Have you checked the ntpd log file for errors, and verified it is running. Often ntpd won't reset the time if the delta is too large, and you have to stop ntpd and run ntpdate instead, then start ntpd. I genuflect in your direction, sir. That did it. Robert Huff Glad I could help. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: doesn't change to Daylight Saving Time
At 07:43 AM 3/10/2008, Robert Huff wrote: Xihong Yin writes: My FreeBSD 6.2 doesn't change to Daylight Saving Time. How should I fix it? I'm having the same problem with -CURRENT. I have updated the zoneinfo files (using misc/zoneinfo) and (re-)run tzsetup, but am still a hour behind. Robert Huff Are you running ntpd? -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: doesn't change to Daylight Saving Time
At 10:28 AM 3/10/2008, Robert Huff wrote: Derek Ragona writes: Have you checked the ntpd log file for errors, and verified it is running. Often ntpd won't reset the time if the delta is too large, and you have to stop ntpd and run ntpdate instead, then start ntpd. I genuflect in your direction, sir. That did it. Glad I could help. However, now I'm curious - isn't this going to be a recurring problem (admittedly only twice a year) for the non-trivial number of machines that do run ntpd for various reasons? Robert Huff Shouldn't be a recurring problem but it can depend on what version of FreeBSD you are running. I've had no problem with 6.X and 7.X updating automatically this weekend. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SIGHUP and Program Flow in a 6.2 Application
At 07:46 AM 3/6/2008, Martin McCormick wrote: This actually turned out to be a red herring. One of the things I had to trace was an attempted read from /dev/ttyd0 in which I was trying to go past the actual read. This appears to be what thoroughly confused the trace. There was a logic error in the signal handler which caused it to never exit and that was what prevented further signals. It took me a while to figure all that out but it makes sense. In my tinkering with embedded systems and assembly-language programming, one often-times shuts off the interrupts first thing during an interrupt handler because disaster results if another interrupt comes in while one is setting up the jump vector, etc. The signal handler hides all those details, but it still has to take care of them. Anyway, when I fixed the logic of the handler, itself and did not try to trace it, it does work as one would expect. I appreciate the help as it made me think and re-examine what was happening. The man page more or less explains it if you know what to look for but it wasn't close enough to what was happening here to really help much. Good to hear you got things working. Debugging signal handlers and interrupt handlers is always a challenge. I am an old assembly coder too, and have done embedded work as well. It can be very challenging in any environment debugging these, particularly with re-entrancy issues. -Derek Derek Ragona writes: Nothing needs to be in your handler function to continue running simply return from your function. However, depending on the signal you may wish to call the original signal handler. Signals like interrupts are chained linked lists of handlers. You can choose to break the chain, and have only your handler called, or keep the chain intact calling the other handlers. In this case, the chain appears to resume on return from the routine I called on SIGHUP. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SIGHUP and Program Flow in a 6.2 Application
At 03:26 PM 3/5/2008, Martin McCormick wrote: A SIGHUP signal to a running process needs a signal handler like signal( SIGHUP ,startlogging); What sort of end statement needs to be in the function called to allow program execution to resume back in the main caller? I had put a return; statement in the function and noticed that things were wrong after the application stopped catching the SIGHUP after the first call. A gdb trace shows that the signal causes a branch to the code pointed to by the signal statement. The code runs and then if it reaches the return; statement, the flow is lost and knows not where to go next. Thank you. Martin McCormick WB5AGZ Stillwater, OK Systems Engineer OSU Information Technology Department Network Operations Group Nothing needs to be in your handler function to continue running simply return from your function. However, depending on the signal you may wish to call the original signal handler. Signals like interrupts are chained linked lists of handlers. You can choose to break the chain, and have only your handler called, or keep the chain intact calling the other handlers. Read the man page on signal for more information. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: So How Hard Is Moving From 6.3 To 7.0?
At 05:25 AM 3/2/2008, Ezat - Ezatech wrote: Would tend to agree. I just lost a machines hdd so it's a good opportunity to build with latest release but otherwise, i have still have a 6.0 box running strong and executing tasks which it was built for. No plans to upgrade. ezat Bogdan Äulibrk wrote: ---= --BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim Daneliuk wrote: | I have a stable 6.3 production server. I would stop right there. Question is why would you change something that simply works? - -- Best regards, Bogdan Culibrk Why upgrade? In my case it was that performance would be so much better under 7 than under 6.X. It is inevitable that systems need to be upgraded as versions become EOL (end of life and no longer supported) or replaced. In my case I run FreeBSD on servers which have a much longer life than client desktops or laptops. For those that have been doing FreeBSD a while, as I have since 1.X. Each upgrade has its problems. It just takes some patience and ingenuity to work around them. These mailing lists with the large community help a great deal. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Booting from Memory Stick
At 03:23 PM 3/1/2008, [EMAIL PROTECTED] wrote: I am working on getting a FreeBSD system to boot from a USB memory stick. Would it be possible to install the operating system using the following: cd /usr/src make DESTDIR=/mnt/usbdisk world boot0cfg -v -B -o noupdate da0 Or, is there an easier way to do this? Thanks, Jay I don't know how to do this myself, but know it is available using FreeNAS, which is based on FreeBSD. FreeNAS information is at: www.freenas.org -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: So How Hard Is Moving From 6.3 To 7.0?
At 07:12 PM 2/1/2008, Tim Daneliuk wrote: I have a stable 6.3 production server. If I buildworld/kernel for 7.0, install them, and reboot, will everything pretty much work the same as it did under 6.3, or have file locations, userland configuration, etc. changed? Will my 6.3 binaries run unchanged on 7.0 as well? TIA, -- Tim Daneliuk [EMAIL PROTECTED] PGP Key: http://www.tundraware.com/PGP/ Tim, I am still working on my first server migration. I followed the instructions in /usr/src/UPDATING, but still had problems. I also did a portupgrade -faP to make the ports as per the release notes. Unfortunately not all worked after that. I had issues with apache22 and clamav, so I rebuilt and reinstalled both of those ports. I still don't have xorg and gnome working. So needless to say this is a much longer update process than previous versions. I did NOT try the binary update from CD or the new binary update utility. I believe most of the issues I have had are because of changes in the libraries specifically to the threads. Oh, I started my update on Friday Morning. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Freebsd quota sendmail
At 12:29 PM 2/27/2008, Ofloo wrote: I'm putting this under freebsd because there is no forum for sendmail, and it does concern freebsd as well. My problem is this, when i set quota in /var/mail directory to each user and this user creates a cronjob, that doesn't forward all data to /dev/null, and keeps on generating mail, .. Well after a while the mail file reaches it's quota and sendmail isn't allowed to write to that file anymore, so it will start and fill the mailq, .. The point is after a while the whole system will just crash what can I do about it, sorry for rambling. Why are you setting these quotas on /var/mail. These days with disk so cheap, why bother? If you are trying to better control sendmail, you should exercise the control there. You can adjust sendmail for maximum message size, number of messages, etc. Or if SPAM is the issue use mailscanner to control how spam is handled. Adding disk quotas outside of sendmail as you found is not a good approach as it will bring the system down. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: My Rebuild Problem
At 07:04 AM 2/26/2008, [EMAIL PROTECTED] wrote: I would like to reformat and start over, but I don´t know how. As I wrote earlier, I keep getting the below-mentioned loop. How do I just reformat the disk? Also, concerning BIOS, not the problem, since I successfully installed earlier. beno If you want to re-format the drive, download a CD image from the drive manufacturer's website. Most manufacturer's have bootable CD images that include utilities to test and format their drives. -Derek -Original Message- From: Derek Ragona [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; freebsd-questions@freebsd.org Sent: Sat, 23 Feb 2008 8:32 pm Subject: Re: My Rebuild Problem At 09:14 AM 2/23/2008, [EMAIL PROTECTED] wrote: Now I get this when I try and log on:   no /boot/loader  All I want to do is rebuild the silly FBSD! Again, I fell into this silly loop when I tried to rebuild:  -- Select Drive -- FDISK Partition Editor (Q) -- Install Boot Manager  and it just goes round, and round, and round. Can I just wipe the disk and start over? And why these strange problems? Iôm not connected to the Internet, so no possibility of virus. Never had this problem before. Help! Tony  Tony,  You don't mention what version you installing.  Be sure your BIOS is not set to not allow boot sector writes. Some BIOS have this set to thwart boot sector viruses.  A few things you can try: You can boot FreeDOS and run booteasy from the tools folder on the FreeBSD install CD to install the boot-manager. Boot the FreeBSD install CD and use the emergency shell to check the hard drive for the correct creation of the folders and kernel.  If all else fails you can reformat and start over.   -Derek  -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.  ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] More new features than ever. Check out the new AOL Mail ! - http://webmail.aol.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. __ Information from ESET NOD32 Antivirus, version of virus signature database 2902 (20080226) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Calendar Solution?
At 10:29 AM 2/26/2008, B. Cook wrote: Hello All, Anyone have any suggestions for a 'corporate' calendar? Either ports or DIY or other .. I am trying to get them on the idea of an OSX server.. They are using words like 'Exchange' and 'Externally Hosted Exchange' servers.. (just sends a chill down my spine.. ) We have our own email server with qmail, dovecot, squirrelmail.. etc but no calendar.. any suggestions or opinions welcome. Thanks in advance I have used the sunbird application from Mozilla. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: hardware problem
At 08:06 AM 2/25/2008, Tsu-Fan Cheng wrote: Hi guys, this is really not about freebsd per sa. But this is the only computer-related forum I use. so please forgive me. my desktop was relocated due to my recent moving to a new apartment. After settling down at the new place, I plug in the cables and the computer won't start up. I open the case and found out that when i switched on the power supply from the back, the power fan and cpu fan will spin for a split second then stop. I tried to debug by unplugging the cables, when doing so, sometimes the fans will spin for 10 seconds, maybe, but most of the time, it just stopped right after the power switched on. I also try to hold down the start button on the front for a while, but no good. I was told the mother board maybe short-circuit. can anyone give a second opinion?? thanks!! TFC It sounds like you have something shorting out the motherboard. I would remove everything you can, all add-on cards etc. Just leave a video card, unless video is on the motherboard. I would disconnect all the drives too. The idea is to remove everything, so you can check just the motherboard alone. If the motherboard still won't power on, remove and reseat the RAM. If it still won't power up, remove and re-seat the CPU. I would guess something inside the case was moved around enough in your move to cause the short. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: hardware problem
At 09:58 AM 2/25/2008, Tsu-Fan Cheng wrote: thank you all for helping. I will reinstall my main again from scratch. one thing i want to know is that if my m-board is short somewhere, does this mean my board is damaged? or it's okay if i can find out what is wrong, and so most likely i need to buy a power supply, is that right at the moment?? thans!! TFC I would look for the short first. You may need to replace nothing. Be sure to check the Motherboard case connectors to the switchs and LEDs as well. -Derek On Mon, Feb 25, 2008 at 10:22 AM, D G Teed [EMAIL PROTECTED] wrote: Every system I've seen with his description of the problem, where the power supply can't even run it's own fan, is having a power supply problem. Power supplies are very often low quality these days and can't handle the stresses of typical electrical grid fluctuations. Most people who deal with hardware have a spare power supply around just for testing as this is a very common problem. Motherboards typically do not stop power supply fans when they can't post. On Mon, Feb 25, 2008 at 10:35 AM, DAve [EMAIL PROTECTED] wrote: IMO, experience says the worst thing you can do to a computer is leave it sit a year running, and then move it. I would get a grounding wrist strap, open the case, remove all cards and memory, disconnect all hard drives, clean with a soft brush (never a vacuum cleaner), reseat all cards and memory, reconnect all hard drives, and then try to restart it. Even without a post code announcing a problem, I have fixed many moved PCs this way. DAve -- Google finally, after 7 years, provided a logo for veterans. Thank you Google. What to do with my signature now? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. __ Information from ESET NOD32 Antivirus, version of virus signature database 2900 (20080225) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD SAMBA file server performance - strange behaviour
At 09:38 AM 2/25/2008, Nenad Mihajlovic wrote: Hi all, Recently I have received the reuest from the colleague to create the homebrewn NAS for his small office, so I started checking the possible options, and having good, stable and long relationship with FreeBSD I've settled again for it. Machine is not something special, Pentium D with 1G RAM and single SATA150 disk, 3Com 1G server card in the PCI slot, connected to the desktop though 1Gbps unmanaged switch. If needed I'll provide the full config and setup information. After installing the bare FreeBSD 7.0RC3 and Samba 3.x.xx - whichewer was included in the packages - I wanted to have the job done quickly, the machine appeared on the network and everyone seemed to be happy and live happily everafter. Until dear friend of mine started using the machine to do the actual work - basic editing of the wedding videos. When trying to upload the single file to file server, he was getting the varying speed of 5-13 MBps, from his machine to file server - which is unacceptably low for any kind of transfer speed. Interestingly enough, when he tried to copy _TWO_ files to file server, the transfer speed vould jump to the 25-27 MB/sec and keep permanent, without much fluctuation. After I tried to copy the files from one directory to another, iostat has shown me the speed in excess of 29 MB/sec while copying the files between two directories on the same server, so the disk access should not be the problem. On the other hand, i experienced that when i try PING on the File server's IP address from the fileserver, i get performance increase in the transfer speed - the bigger the traffic i generate, the better the results, which max out at 25-27 MB/sec with flood ping. Has anyone else experienced any similar behaviour? Regards, Nenad Just as an FYI, you may find it better to use FreeNAS, which is based on FreeBSD. http://www.freenas.org/ -Derek ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. __ Information from ESET NOD32 Antivirus, version of virus signature database 2900 (20080225) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Unable to compile anything from ports
At 01:11 PM 2/23/2008, Jasvinder S. Bahra wrote: It has a Via CPU? Comment that option and try again. Mel, It does indeed have a Via cpu. The box is running on a VIA EPIA EK 8000EG motherboard (which has a CPU integrated into it). If I run cat /var/log/dmesg.today | grep CPU, I get... CPU: VIA C3 Nehemiah+RNG+AES (800.03-MHz 686-class CPU) Regardless, I commented out all three settings in /etc/make.conf (CPUTYPE, CFLAGS and COPTFLAGS), and tried the 'make install clean' routine again. Unfortunately, Portupgrade, Aide and ISC-DHCP3-Server still fail, though at a different point... = Portupgrade == config.status: creating Makefile === Building for ruby-1.8.6.111_1,1 cc -O2 -fno-strict-aliasing -pipe-fPIC -DRUBY_EXPORT -I. -I. -c array.c array.c: In function `rb_ary_modify': array.c:72: internal compiler error: Illegal instruction: 4 Please submit a full bug report, with preprocessed source if appropriate. See URL:http://gcc.gnu.org/bugs.html for instructions. *** Error code 1 Stop in /usr/ports/lang/ruby18/work/ruby-1.8.6-p111. *** Error code 1 Stop in /usr/ports/lang/ruby18. *** Error code 1 Stop in /usr/ports/ports-mgmt/portupgrade. *** Error code 1 Stop in /usr/ports/ports-mgmt/portupgrade. = Aide === config.status: creating po/Makefile config.status: creating build.sh === Building for gmake-3.81_2 make all-recursive Making all in glob if cc -DHAVE_CONFIG_H -I. -I. -I..-I/usr/local/include -O2 -fno-strict-ali asing -pipe -MT glob.o -MD -MP -MF .deps/glob.Tpo -c -o glob.o glob.c; then mv -f .deps/glob.Tpo .deps/glob.Po; else rm -f .deps/glob.Tpo; exit 1; fi glob.c:150: warning: conflicting types for built-in function 'malloc' glob.c: In function `prefix_array': glob.c:1162: internal compiler error: Illegal instruction: 4 Please submit a full bug report, with preprocessed source if appropriate. See URL:http://gcc.gnu.org/bugs.html for instructions. *** Error code 1 Stop in /usr/ports/devel/gmake/work/make-3.81/glob. *** Error code 1 Stop in /usr/ports/devel/gmake/work/make-3.81. *** Error code 1 Stop in /usr/ports/devel/gmake/work/make-3.81. *** Error code 1 Stop in /usr/ports/devel/gmake. *** Error code 1 Stop in /usr/ports/security/aide. = Aide === Making links in server === Building for isc-dhcp3-server-3.0.5_2 Making all in common cc -O2 -fno-strict-aliasing -pipe -D_PATH_DHCPD_CONF=\/usr/local/etc/dhcp d.conf\ -D_PATH_DHCPD_DB=\/var/db/dhcpd.leases\ -D_PATH_DHCPD_PID=\/var/ run/dhcpd.pid\ -D_PATH_DHCRELAY_PID=\/var/run/dhcrelay.pid\ -D_PATH_DHCLI ENT_CONF=\/usr/local/etc/dhclient.conf\ -D_PATH_DHCLIENT_SCRIPT=\/usr/loc al/sbin/dhclient-script\ -D_PATH_DHCLIENT_DB=\/var/db/dhclient.leases\ -D _PATH_DHCLIENT_PID=\/var/run/dhclient.pid\ -Dwarn=dhcp_warn -DNOMINUM -DPA RANOIA -DJAIL -I/usr/ports/net/isc-dhcp3-server/work/dhcp-3.0.5 -I/usr/po rts/net/isc-dhcp3-server/work/dhcp-3.0.5/includes -O -Wall -Wno-unused -c raw.c cc -O2 -fno-strict-aliasing -pipe -D_PATH_DHCPD_CONF=\/usr/local/etc/dhcp d.conf\ -D_PATH_DHCPD_DB=\/var/db/dhcpd.leases\ -D_PATH_DHCPD_PID=\/var/ run/dhcpd.pid\ -D_PATH_DHCRELAY_PID=\/var/run/dhcrelay.pid\ -D_PATH_DHCLI ENT_CONF=\/usr/local/etc/dhclient.conf\ -D_PATH_DHCLIENT_SCRIPT=\/usr/loc al/sbin/dhclient-script\ -D_PATH_DHCLIENT_DB=\/var/db/dhclient.leases\ -D _PATH_DHCLIENT_PID=\/var/run/dhclient.pid\ -Dwarn=dhcp_warn -DNOMINUM -DPA RANOIA -DJAIL -I/usr/ports/net/isc-dhcp3-server/work/dhcp-3.0.5 -I/usr/po rts/net/isc-dhcp3-server/work/dhcp-3.0.5/includes -O -Wall -Wno-unused -c parse.c parse.c: In function `convert_num': parse.c:635: internal compiler error: Illegal instruction: 4 Please submit a full bug report, with preprocessed source if appropriate. See URL:http://gcc.gnu.org/bugs.html for instructions. *** Error code 1 Stop in /usr/ports/net/isc-dhcp3-server/work/dhcp-3.0.5/work.freebsd/common. *** Error code 1 Stop in /usr/ports/net/isc-dhcp3-server/work/dhcp-3.0.5/work.freebsd. *** Error code 1 Stop in /usr/ports/net/isc-dhcp3-server/work/dhcp-3.0.5. *** Error code 1 Stop in /usr/ports/net/isc-dhcp3-server. *** Error code 1 Stop in /usr/ports/net/isc-dhcp3-server. Jazz It looks like your c compiler is bad. You may want to try a binary upgrade from CD to the same version you are running. Then try the ports again. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: My Rebuild Problem
At 09:14 AM 2/23/2008, [EMAIL PROTECTED] wrote: Now I get this when I try and log on: no /boot/loader All I want to do is rebuild the silly FBSD! Again, I fell into this silly loop when I tried to rebuild: -- Select Drive -- FDISK Partition Editor (Q) -- Install Boot Manager and it just goes round, and round, and round. Can I just wipe the disk and start over? And why these strange problems? I´m not connected to the Internet, so no possibility of virus. Never had this problem before. Help! Tony Tony, You don't mention what version you installing. Be sure your BIOS is not set to not allow boot sector writes. Some BIOS have this set to thwart boot sector viruses. A few things you can try: You can boot FreeDOS and run booteasy from the tools folder on the FreeBSD install CD to install the boot-manager. Boot the FreeBSD install CD and use the emergency shell to check the hard drive for the correct creation of the folders and kernel. If all else fails you can reformat and start over. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: tape splitter
At 01:23 PM 2/22/2008, Wojciech Puchar wrote: anybody know program to split data (from stdin) on tapes like that something|splittotapes /dev/sa0 and then concattapes /dev/sa0 |something i know dump do this, but i need other thing to be written to more than 1 tape. Well sonny in the old days we would create a volume with tar or cpio, then uuencode it, then run it through split. You could then move the split pieces onto removable media and reassemble it on another system. To put split piece back together you just cat them: cat split2 split2 total.uu then uudecode it to restore the original file. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....
At 08:34 AM 2/21/2008, Forrest Aldrich wrote: I recently recomplied the apache20 port (updated) with no compile-time changes. Since that time, I noticed it was hogging 98% of the CPU and hanging. I adjusted the various Max/Min server levels and that seemed to fix it - except at midnight when the logs are rotated and the server is sent a HUP signal. When that happens, all the processes die except one and it hangs at 90% CPU. I kill it off, restart it manually and it behaves fine. Here's a recent output of top : PID USERNAME THR PRI NICE SIZERES STATE C TIME WCPU COMMAND 94711 www 1 1170 41036K 13852K RUN0 1:43 98.69% httpd The only thing that has changed on the system is an upgrade from MySQL-4.1 to MySQL-5.1, which I wouldn't expect httpd to be affected by, but I could be wrong. To be sure, I recompiled it, PHP and any dependencies that PHP has, but I'm still seeing the same result. I tried compiling MySQL-5.1 with and without pthreads and see the same CPU consumption issue. I wonder if I've hit a bug or if I've possibly messed something up (as careful as I've been anyway). Thanks, Forrest What is showing in the apache logs when this happens? -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....
At 11:57 AM 2/21/2008, Forrest Aldrich wrote: Derek Ragona wrote: At 08:34 AM 2/21/2008, Forrest Aldrich wrote: I recently recomplied the apache20 port (updated) with no compile-time changes. Since that time, I noticed it was hogging 98% of the CPU and hanging. I adjusted the various Max/Min server levels and that seemed to fix it - except at midnight when the logs are rotated and the server is sent a HUP signal. When that happens, all the processes die except one and it hangs at 90% CPU. I kill it off, restart it manually and it behaves fine. Here's a recent output of top : PID USERNAME THR PRI NICE SIZERES STATE C TIME WCPU COMMAND 94711 www 1 1170 41036K 13852K RUN0 1:43 98.69% httpd The only thing that has changed on the system is an upgrade from MySQL-4.1 to MySQL-5.1, which I wouldn't expect httpd to be affected by, but I could be wrong. To be sure, I recompiled it, PHP and any dependencies that PHP has, but I'm still seeing the same result. I tried compiling MySQL-5.1 with and without pthreads and see the same CPU consumption issue. I wonder if I've hit a bug or if I've possibly messed something up (as careful as I've been anyway). Thanks, Forrest What is showing in the apache logs when this happens? -Derek The only thing I see are multiple lines of these errors in error_log: [Thu Feb 21 00:00:12 2008] [error] child process 63633 still did not exit, sending a SIGKILL [Thu Feb 21 00:00:12 2008] [error] child process 63634 still did not exit, sending a SIGKILL [Thu Feb 21 00:00:12 2008] [error] child process 63635 still did not exit, sending a SIGKILL [Thu Feb 21 00:00:12 2008] [error] child process 63636 still did not exit, sending a SIGKILL [Thu Feb 21 00:00:12 2008] [error] child process 63637 still did not exit, sending a SIGKILL [Thu Feb 21 00:00:12 2008] [error] child process 63983 still did not exit, sending a SIGKILL [Thu Feb 21 00:00:12 2008] [error] child process 64048 still did not exit, sending a SIGKILL Which is correct, as the process is not exiting. For some reason it's hanging. The old binary did not do this. I could try another system update today (make/build/install world and recompile the apache executable and dependencies) to see if this solves the problem... Thanks, Forrest I would try to see if there's an update, otherwise you might need to post a bug report to apache. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Shell scripting question - incrementing
At 11:35 AM 2/19/2008, Paul Schmehl wrote: I could do this in perl easily, but I'm trying to force myself to learn shell scripting better. :-) I'm parsing a file to extract some elements from it, then writing the results, embeded in long strings, into an output file. Here's the script: cat file.1 | cut -d',' -f9 | sort | uniq file.nicks (read line; echo alert ip \$HOME_NET any - \$EXTERNAL_NET any (msg:\JOIN $line detected\; classtype:trojan-activity; content:\JOIN\; content:$line; sid:201; rev:1;); while read line; do echo alert ip \$HOME_NET any - \$EXTERNAL_NET any (msg:\JOIN $line detected\; classtype:trojan-activity; content:\JOIN\; content:$line; sid:201; rev:1;); done) file.nicks file.rules The result is a file with a bunch of snort rules in it (I can't provide the actual data because it's sensitive.) The rules look like this: alert ip $HOME_NET any - $EXTERNAL_NET any (msg:JOIN channel detected; classtype:trojan-activity; content:JOIN; content:channel; sid:201; rev:1;) alert ip $HOME_NET any - $EXTERNAL_NET any (msg:JOIN channel2 detected; classtype:trojan-activity; content:JOIN; content:channel2; sid:201; rev:1;) Once this file is created (or ideally *while* it's being created!) I need to increment the sid numbers. The first one is 201. The second needs to be 202, and so forth. I don't know the total number of lines ahead of time, but it's easy enough to get after the file is created. (wc -l file.rules | awk '{print $1}') Is there a way to do this in shell scripting? In perl I'd use a for loop and vars, but I'm not sure how to solve this problem in shell scripting. In pseudo code I would do: COUNT=`wc -l file.rules | awk '{print $1}'` LAST_SID=$((200 + COUNT)) for (i=201; i = ${LAST_SID}; i++) { sed 's/201/${i}/g file.rules rules.new' } Similar to what other's have offered: for i in `cat file.rules`;do sed 's/201/${i}/g rules.new; done -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: freebsd dead after attempt on upgrade from 6.2 to 6.3
At 03:02 PM 2/15/2008, Deian Popov wrote: Hello, I'm pretty stuck with the death of my bsd machine after attempt on upgrade from 6.2 to 6.3. Some time ago, I successfully upgraded from 6.1 to 6.2following the steps in the manual 1) cvsup source to specific release 2) buildworld 3) buildkernel 4) installkernel 5) boot 6) mergemaster -p 7) installworld 8) mergemaster 9) boot Now, after completing steps 1 to 5 the system won't boot and stucks at the following prompt bsd: Trying to mount root from ufs:/dev/ad1s1a bsd: mountroot the prompt has ? command which shows available boot devices. The only device present there is my floppy (fd0) I can choose to boot to loader prompt but have no idea how to recorver, and more interesting, to figure out why that failure occurred? Any help is appreciated. In some 6.x versions the upgrade can go south. I had this happen on one server, and this is how I fixed it: I downloaded and burned the release iso. I booted the system from CD, then in sysinstall, I used the emergency shell. In the emergency shell I mounted my drives and had a peek. In my case I saw there was no kernel. So I copied the kernel from the cd to my root / drive. After that I could reboot from the hard drive, and finished my upgrade. Hope this helps. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Help with su on 6.3
At 08:16 AM 2/14/2008, Alex Zbyslaw wrote: Derek Ragona wrote: I usually just set the shell to /usr/bin/false or /usr/sbin/nologin for users like these. Of course you can't test these interactively with su. If you want to do that, give the account a valid login shell, test it, then set it to false or nologin. It's not clear to me what you mean by you can't test these interactively with su. If you mean you can't su to them and get a shell; that's wrong. su -m account_with_fake_shell --Alex Alex, What I meant to say was that you can: su -m account_with_fake_shell But you can't: su - account_with_fake_shell and then test any command and scripts in the user's environment. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: tar backup script
At 09:57 PM 2/13/2008, Steel City Phantom wrote: this isn't really bsd specific but i still need help with it. im writing a backup script a clip from that script is this: find /usr/local/www/data-dist/ -name config.php /usr/local/backupScript/include find /usr/local/www/data-dist/ -name ClientFiles /usr/local/backupScript/include tar cvf /usr/local/backupScript/files/www-client-files.tar -I /usr/local/backupScript/include /usr/local/www/data-dist obviously im creating an include file from a directory. when the tar runs, it correctly adds all the files in the include file. but once that is finished, for some reason tar then goes back and adds all the files that are in the /usr/local/www/data-dist directory, even the ones in the include file. i was under the impression that the -I command would add ONLY the files that are listed in the include. why is it adding those and then after finishing that, adding all the others? As you have found -I which is the same as -T will read the file, and in create mode add those files to the tar volume, but then the next param is read as another pattern to archive. Why not do just: tar cvf /usr/local/backupScript/files/www-client-files.tar -I /usr/local/backupScript/include -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Network Help
At 09:50 AM 2/14/2008, Victor Farah wrote: Alright, I have the machine up to 6.3-STABLE #1 now. I've changed subnets on the one card that pushes the traffic. There is a run down of the machine now. The machine is still having the weird network traffic problem of capping at around 100mbps and then dropping to 10~20mbps the next minute. Any suggestions? em0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 options=1bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING inet 192.168.X.X netmask 0xff00 broadcast 192.168.1.255 ether 00:1b:fc:ef:34:de media: Ethernet autoselect (1000baseTX full-duplex) status: active em1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 options=1bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING inet X.X.X.X netmask 0xff80 broadcast X.X.X.127 ether 00:1b:fc:ef:34:df media: Ethernet 1000baseTX full-duplex status: active plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT mtu 1500 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff00 If your switch this system is connected to is managed, you can check the ports these connect to for collisions of other issues. When ethernet throughput degrades it can be caused by many factors like the stream sending the packets slowing down, or transmit errors causing retransmission of packets. Often once there are errors, they grow exponentially because of retransmission etc. You should try to isolate the exact conditions you have when you see the traffic flow degrade. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD6.2 What is the easiest Way to Capture RS-232 Serial Data?
At 11:55 AM 2/14/2008, Martin McCormick wrote: I wrote a C program several years ago that works and logs output from a telephone switch to a file and runs in FreeBSD4.x. I just opened /dev/ttyd0 for reading and it has run for up to 1,000 days at a time, but it also has issues as one might expect. It can be killed if one of the incoming characters happens to be an EOF (4) which is quite possible if somebody umplugs or plugs in the cable and creates garbage on the line. If you use fread to read the stream, you can test using feof or ferror and conditionally keep reading depending on the condition. You should add signal handling so the program is only killed when you want it to be. The data from the switch is ASCII with carriage return/linefeed sequences so nothing really harsh goes on, but I need to make it as bullet-proof as possible. In addition, the actual data are 7-bit, odd parity with 1 stop. I basically ignored that fact last time and masked off the MSB of each character and that's how it has been for 5 years. Now, I am writing a similar program to log different data from that same telephone switch and I want to do better this time, but not reen vent any wheels I don't have to. What is the best way to use as much of the existing UNIX environment as possible to listen to /dev/ttyd[x] with no interpretation of incoming data? The data will be dumped at the end of each line, stored in a file, and other action may be taken but normally, the program will just be in a receive-blocked mode, waiting to hear something new. About the only thing I am doing differently this time is trying to set the tty such that it doesn't look for any EOF or other control codes in the data. The data will be treated as raw and what ever comes across is okay. The program will clean it up to make it good for the file. You still need to handle when the cord is unplugged, or put the server in a secure location away from other people. As I stated, the standard /dev/ttyd device has done amazingly well in FreeBSD4.7, but some of that has been dumb luck. We shouldn't have to warn people in the area that they could kill the logger by unplugging the cable since they wouldn't be aware that they stopped it until we found out later when there was nothing in the file. Searching archives dealing with serial communications produced good information about dialup lines and terminals, but this is actually less complex. Many thanks for any good advice about stty or anything else that will allow one to use standard devices for this project. If you want the program to be more capable of staying running you can have the program fork a child and if the child dies, fork a new child. This is the method used for many running services. Just be sure if the child dies the log file is closed and that same file is opened by the new child. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Curses problem with keymapping in screen and debugging curses
At 12:06 PM 2/14/2008, Martin Cracauer wrote: I have the following problem when using screen sessions between FreeBSD and Linux: The pageup/pagedown keys stop working when I re-attach a session that was started under FreeBSD to a console that is Linux driven and vice versa. All other keys, including alt/meta and some supposedly more complicated keys continue to work. I haven't verified this in detail but it seems that while programs like mutt seem affected often emacs seems to be happy. I know NIL about curses. How would I go about debugging this? I would need something like xev for curses to see what keys I get from the different consoles and then I'd need something to find out what a given session expects. Where do I start looking? Also, I see screen on FreeBSD emit line noise on a regular basis, both when attaching before the session comes up and after deattaching. Dunno whether this helps. Example: # session running, press detach key [detached] -en \033]0; grisu:ttype:~\007 Martin Martin, In the past I have had issues with reading some keys with curses too. I would read the keys and if they were unknown I'd print out the value. I used a large case statement and if the key fell through I printed out the value. You also need to remember in curses most of the extra keys, function and movement keys are compound sequences where first ESC is sent, then the actual keycode is in the next two bytes. You have to get those two bytes and put them together to decode the actual keycode. You can debug your program in any debugger, I used xxgdb from the ports. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Network Help
At 10:01 AM 2/13/2008, Victor Farah wrote: I'm updating the system to 6.3-release now. All 13 machines are on the same subnet but they are scattered across different switchs. netstat -m: 7716/399/8115 mbufs in use (current/cache/total) 7388/326/7714/25600 mbuf clusters in use (current/cache/total/max) 7380/41 mbuf+clusters out of packet secondary zone in use (current/cache) 0/0/0/0 4k (page size) jumbo clusters in use (current/cache/total/max) 0/0/0/0 9k jumbo clusters in use (current/cache/total/max) 0/0/0/0 16k jumbo clusters in use (current/cache/total/max) 16705K/751K/17456K bytes allocated to network (current/cache/total) 0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters) 0/0/0 requests for jumbo clusters denied (4k/9k/16k) 0/6/6656 sfbufs in use (current/peak/max) 0 requests for sfbufs denied 0 requests for sfbufs delayed 0 requests for I/O initiated by sendfile 193374 calls to protocol drain routines ifconfig -a: em0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 options=bRXCSUM,TXCSUM,VLAN_MTU inet 192.168.X.X netmask 0xff00 broadcast 192.168.X.255 ether 00:1b:fc:ef:34:de media: Ethernet autoselect (1000baseTX full-duplex) status: active em1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 options=bRXCSUM,TXCSUM,VLAN_MTU inet X.X.X.X netmask 0xff00 broadcast X.X.X.255 ether 00:1b:fc:ef:34:df media: Ethernet 1000baseTX full-duplex status: active plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT mtu 1500 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff00 What IP's are you trying to configure on em0 and em1? These cannot be on the same subnet unless you are trying to bond them, which I don't believe is available in 6.X. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Help with su on 6.3
At 12:51 PM 2/13/2008, Neil Gruending wrote: On 2/12/08, Derek Ragona [EMAIL PROTECTED] wrote: At 06:16 PM 2/12/2008, Neil Gruending wrote: Hi, Today I upgraded my computer to 6.3, but now root can't su to other users. I login as a regular user (neil) over ssh and I can su to become root. But now root can't su to other users. For example, if I do su svn I get su: Sorry. My boot rc scripts do the same thing where I use su. Everything worked fine when I was running 6.2. Any help is appreciated. I followed the binary upgrade procedure in the release announcement. Thanks Neil Did you run mergemaster? Check your users still exist in /etc/passwd? -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. I didn't run mergemaster because http://www.freebsd.org/releases/6.3R/announce.html didn't say to. However, I did try su at the console with the same result, but I was getting pam_acct_mgmt: authentication errors. I checked /etc/master.passwd and noticed that the accounts I was trying to su to were locked. I tried passwd account as root on an account that wasn't working and once I set a password it I could su to it as long as logins were enabled. I tried another account with disabled logins and got This account is currently not available. Both of these accounts only exist to let servers run as different users. What's the proper way to set them up? Maybe that's my issue instead. I only noticed this because the servers weren't starting because the init scripts can't su to the right users anymore. Thanks, Neil Well you should always read and follow UPDATING in /usr/src when doing an upgrade. I usually just set the shell to /usr/bin/false or /usr/sbin/nologin for users like these. Of course you can't test these interactively with su. If you want to do that, give the account a valid login shell, test it, then set it to false or nologin. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Help with su on 6.3
At 06:16 PM 2/12/2008, Neil Gruending wrote: Hi, Today I upgraded my computer to 6.3, but now root can't su to other users. I login as a regular user (neil) over ssh and I can su to become root. But now root can't su to other users. For example, if I do su svn I get su: Sorry. My boot rc scripts do the same thing where I use su. Everything worked fine when I was running 6.2. Any help is appreciated. I followed the binary upgrade procedure in the release announcement. Thanks Neil Did you run mergemaster? Check your users still exist in /etc/passwd? -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Network Help
At 01:50 PM 2/12/2008, Victor Farah wrote: Hello, I have a machine setup with FreeBSD 6.3-PRERELEASE setup on a 10/100/1000 switch. There are a pair of em interfaces, and the network traffic on this machine is very spuratic. Both EM interfaces reach 100Mbps and falls to 5~10Mbps, the very next minute, the traffic is very spuratic. The media of the interfaces is as follows: EM0: media: Ethernet autoselect (1000baseTX full-duplex) EM1: media: Ethernet 1000baseTX full-duplex Currently the EM1 card is in use. I watch an MRTG that I have setup to see the machine failing at sustaining its bandwidth. I have 13 other machines setup the same way but traffic is running fine and working very well, the only difference between those and the new one, is that it's pushing much more data through it; almost the same amount of data the 13 other machines push combined. First you should update this system to 6.3 release. Also you should post how your interfaces are configured, you can copy and paste the output from: ifconfig -a You also need to better explain the topology of your network. For instance are all 13 systems on the same subnet? or are you running multiple subnets with a switched backbone? How many switches are you using? Are you checking the throughput across a LAN segment or across multiple subnet segments? -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Freebsd based server lacking chown command, where to get it.
At 10:49 AM 2/12/2008, deepcore wrote: chown is in /usr/sbin/ ok. I get that, and i found it I can, however not execute it. whenever i go to the usr/sbin and type chown i get chown: Command not found. i find this pretty strange as ls -l shows: -r-xr-xr-x 1 root wheel 6688 Jan 12 2007 chown shouldn't this mean that the file is excecutable by all? even tried to switch to root first (just executing su) ... What i am more specifically trying to do is change the ownership of all the directories and files on a specific disk, mounted as /mnt/moviedisk, to the user that is supposed to own them. Any surgestions? What am i doing wrong as i cannot execute the chown command? Sounds like your path doesn't include /usr/sbin, or /usr/sbin or /usr is mounted without exec. Have you tried executing with the complete path: /usr/sbin/chown -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Promise RAID array and mounting questions
At 09:48 AM 2/12/2008, Trevor Hearn wrote: Hi there. I am hoping someone can help me with my question here. I have used freeBSD for many years, and I am pushing into new territory. I have constructed a 16 1tb drive array from Promise Technologies, and connected it via Fibre to a Dell server running FreeBSD 6.3. I can see the promise array, it shows us as DA0. The problem is what is listed in the Dmesg stream shows the right amount of storage space on the array, but when I use sysinstall, I cannot mount that space as the full volume. I don't know if I am missing information on what to put for geometry, but anything I put does not get accepted as usable. I know that there is a technique for using targets, etc, but I cannot find information on doing what I am doing. Well, I don't recognize it as being what I need. Is there someone or somewhere out there that would have information that would help me get to the destination I seek? Thanks! -Trevor Hearn Trevor, I've used promise's hardware in the past. When I have, I defined the array outside FreeBSD. When I installed FreeBSD it saw the array as just a single disk volume, which I partitioned in the sysinstall process. Do you have the array already created? What are you seeing in sysinstall when you go to partition the volume? -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: gnome screensaver crashes
At 11:24 PM 2/10/2008, John L wrote: On a nice fresh install of FreeBSD 6.3 and gnome, gnome-screensaver crashes at X startup claiming that it can't talk to the dbus daemon, even though the daemon is running. Is this a known problem? It seems to be new in the latest version of X and/or Gnome. You need to post more information, such as your video card and what driver you are using. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Server getting crashed, any helpful comments?
At 03:37 AM 2/10/2008, VeeJay wrote: Hello I am running a Freebsd server: 1. Software: Apache 1.3 mysql 5.0.27 php 4.4 2. Hardware: 2 intel procerssors 4 gb ram RAID 10 with hard drives 15K rpm I am having this problem quite often now. Apache stops responding due to mysql (my guess). And I cannot connect to mysql server: /usr/local/mysql/bin/mysqladmin: connect to server at 'localhost' failed error: 'Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use 'ulimit' to allow mysqld to use more memory or you can add more swap space' There is following configuration for mysql: # The following options will be passed to all MySQL clients [client] port= 3306 socket = /tmp/mysql.sock default-character-set=utf8 # Here follows entries for some specific programs # The MySQL server [mysqld] port= 3306 socket = /tmp/mysql.sock skip-locking skip-networking skip-name-resolve server-id=1 max_connections=1000 key_buffer = 1024M max_allowed_packet = 16M table_cache = 512K sort_buffer_size = 4M net_buffer_length = 64K read_buffer_size = 4M read_rnd_buffer_size = 4M join_buffer_size=4M myisam_sort_buffer_size = 128M # increase until threads_created doesnt grow anymore thread_cache=512 query_cache_type=1 query_cache_limit=2M query_cache_size=64M # Try number of CPU's*2 for thread_concurrency thread_concurrency=4 set-variable=local-infile=0 init_connect='SET collation_connection = utf8_unicode_ci' init_connect='SET NAMES utf8' default-character-set=utf8 character-set-server=utf8 collation-server=utf8_unicode_ci ft_min_word_len=2 ft_max_word_len=15 log-bin=mysql-bin server-id = 1 [mysqldump] quick max_allowed_packet = 16M [mysql] no-auto-rehash default-character-set=utf8 [isamchk] key_buffer = 256M sort_buffer_size = 256M read_buffer = 2M write_buffer = 2M [myisamchk] key_buffer = 256M sort_buffer_size = 256M read_buffer = 2M write_buffer = 2M [mysqlhotcopy] interactive-timeout ANY COMMENTS WILL BE WELCOMED, thanks!!! -- Thanks! BR / vj You don't mention what version of FreeBSD you are running or what kernel (custom or generic.) The first things I would do is to be sure you are on the latest production release version of FreeBSD which would be 6.3 and use a generic kernel if possible. Then I would update the ports you using that you suspect are causing the lock-ups. Specifically update your apache, mysql-server and php. Once you have all the latest software running, test to see if the problem persists. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Help with router problem
At 08:24 PM 2/6/2008, Eugen wrote: I tried everything you guys told me and it still doesn't work : - tried to set a static address as Derek indicated - commented out the ipv6 line in rc.conf, even if it was already set to NO - the answer to Kevin's questions follow: # ping -I dc0 192.168.1.1 ping: invalid multicast interface: `dc0' # arp -a ? (192.168.1.1) at (incomplete) on dc0 [ethernet] # ifconfig -a dc0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8VLAN_MTU ether 00:14:cf:52:b4:17 inet 192.168.1.33 netmask 0xff00 broadcast 192.168.1.255 media: Ethernet autoselect (100baseTX full-duplex) status: active lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff00 ping 192.168.1.1 and traceroute 192.168.1.1 give Network is unreachable I even connected directly to the cable modem as it was before I bought the router and... surprise: it works! Put the router back and BSD stops working again. I'm writing this post from Linux, so this one works. When it is connected directly to the router, what IP are you using then? Can you post your ifconfig -a output then, and when it is connected to the router. What router are you using? How do you have it set-up? What are the IP settings for the router? What are the DHCP settings? Can the router ping itself or other hosts? -Derek ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: script to be executed on system startup.
At 08:09 AM 2/6/2008, navneet Upadhyay wrote: Hi, I have a script file, i want that script to be executed on system startup. I am doing this on Linux in following two steps : - 1. Copying the script to /etc/rc.d directory. 2. /sbin/chkconfig --add scriptname I want to achieve the same on FreeBSD chckconfig file is not present, documentation says i have to add it to rc.conf file. How can i add it to rc.conf file, is there any command? You don't need any command. Depending on the version of FreeBSD, put your script in /usr/local/etc/rc.d and if you are using earlier than 6.X FreeBSD name the script chckconfig.sh You can name it in the same in 6.X and 7.X and it will work. Be sure the script is chmod'd (usually 755) to execute. Since your script runs without a known environment be sure to either use full pathnames for executables or set the path in your script. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Host interface resetting - Asus nx 1101 (stge)
At 12:11 AM 2/6/2008, Rudi Kramer - MWEB wrote: Hello, I recently purchased a Asus NX 1101 nic for a intel pc I have at home. The motherboard is a intel gigabyte GA-8I945GMF and I'm running FreeBSD 6.3 RELEASE. The card is correctly using the stge driver but whenever I try and bring the interface up I get the following message host interface error resetting repeated over and over again and I have to reboot the server. I tested the card on an AMD gigabyte board (K8M800-8237), also running FreeBSD 6.3 and the card runs perfectly. I checked dmesg and also /var/logl/message and I couldn't find anything useful, any ideas? Rudi Rudi, Since you are having this problem on one motherboard but not the other, I would try other slots on the problematic motherboard. Usually some PCI slots have different capabilities (besides 32 bit vs 64 bit) as some will allow busmastering as one example. Check the card specs against your motherboard specs for the slots. Also some PCI cards may need irq assignment, some motherboards let you set these, while others make these assignment automatically through some implementation of plug-and-play. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: script to be executed on system startup.
At 08:33 AM 2/6/2008, navneet Upadhyay wrote: i dont want to go with the rename option, as if tomorrow i want to add more scripts to run at startup i will be in a mess. I will tell in detail so that it would be easy for you to understand my problem :- Intention is that the script file should be called at both startup and shutdown. In Linux after doing :- 1. Copying the script to /etc/rc.d directory. 2. /sbin/chkconfig --add scriptname While startup scriptfile is called with parameter start and while shutdown it is called with parameter stop. So i check the parameter value in the script and if it is start , i run my executables and if it is stop i gracefully exit from my executables. I want to achie same thing in FreeBSD. Thanks, Navneet All scripts in /usr/local/etc/rc.d are sent the start parameter at bootup and the stop parameter at shutdown. So this is exactly what you are looking for. If your script isn't running correctly check the paths to the executables, and also put some echo statements in the script to follow the logic to debug it. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Help with router problem
At 07:40 AM 2/6/2008, Eugen wrote: Thanks for all your input. For now I am posting my rc.conf, but I will try your suggestions this evening when I come back from work. If anyone needs additional details, please ask and I'll repost my initial cry for help. Eugen ### Console options keymap=us.iso font8x8=NO font8x14=NO font8x16=NO scrnmap=NO keyrate=fast cursor=blink blanktime=900 saver=warp ### Mouse daemon mousechar_start=NO moused_enable=NO moused_flags= moused_port=/dev/sysmouse moused_type=auto ### IPv6 options ipv6_enable=NO ifconfig_dc0=DHCP ### PF firewall # pf_enable=YES# Enable PF (load module if required) # pf_flags= # additional flags for pfctl startup # pf_rules=/etc/pf.conf# rules definition file for pf # pflog_enable=YES # start pflogd(8) # pflog_flags= # additional flags for pflogd startup # pflog_logfile=/var/log/pflog # where pflogd should store the logfile ### Miscellaneous administrative options kern_securelevel=-1 # range: -1..3 ; `-1' is the most insecure kern_securelevel_enable=NO# kernel security level (see init(8)), local_startup=/usr/local/etc/rc.d clear_tmp_enable=YES # Clear /tmp at startup. devfs_system_ruleset=devfsrules_local # The name of a ruleset to apply to /dev dmesg_enable=YES # Save dmesg(8) to /var/run/dmesg.boot update_motd=YES # update version info in /etc/motd (or NO) virecover_enable=NO# Perform housekeeping for the vi(1) editor usbd_enable=YES usbd_enable=YES # Run the usbd daemon. usbd_flags= # Flags to usbd (if enabled). lpd_enable=YES Eugen, I almost always set my FreeBSD systems up to use a static IP, even behind a router. I don't know if you want to access your FreeBSD system from ONLY the LAN, or if you want some access through your router. I prefer a static IP on my FreeBSD systems as they are all providing some server functions (file sharing, DNS, etc.) Below are typical lines you would have in your /etc/rc.conf: == #set the default router to your router's IP, often 192.168.1.1 defaultrouter=192.168.1.1 #set your hostname to match the enty in /etc/hosts hostname=myhostname.mydomainname.com #set your IP to one not in any DHCP range ifconfig_dc0=inet 192.168.1.10 netmask 255.255.255.0 == These are all you need to get it working. If you want the FreeBSD to have a LAN address but access through the router you need to set that up in your router. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: question on DSL signal
At 02:01 PM 2/4/2008, David Banning wrote: I run a small FreeBSD server with a standard DSL line. I have it ping the ISP every five seconds, and when it doesn't ping it logs the results. I notice very inconsistent results. Sometimes it's up for a week without a single drop, while other times it's up for 30 seconds, down for a minute, up for 2 minutes, down for 1. That can go on for 10 hours, and then maybe it's stable again for a day or so. It's always appears to be the DSL signal itself, as I can see the modem sync light starts flashing when the signal goes down. To end any possibility of the phone company pointing their finger at the wiring in my house, I put the DSL modem right at the phone connection block where the line enters the house and then called them. Problem persists. The phone company say they have replaced lines all over the neighborhood while trying to fix the problem. Eventually the connection becomes stable, the phone company declares that they found the problem, but when he's gone, the trouble starts again. Now knowing how common this is, I installed the same logging system at another company's server, that is located a few miles away. Guess what? Same drop-in drop-out problem. To any average computer user, these lines might appear normal - when a page stops loading for a minute they just live with it, and forget about it. So here's my question: 1. is there anyone who has a lot of experience monitoring DSL lines that can tell me how common this is? It is fairly common as the number of DSL providers is large, but they rely on the copper wires in place that may or may not be well maintained that are usually owned by another firm. So getting the copper actually fixed can take a lot of persistence and patience. Often these lines are from old voice circuits that were not nearly as demanding as DSL. Worse, at least around me in the midwest, often indoor boxes and such are used outside which causes a lot of issues with digital lines. 2. Is there any way to avoid it? Get all new wiring in place. 3. I have used three different DSL modems, but the are all home quality: an Alcatel Speed Touch, a Speedstream 5260, and a Westell Wirespeed. Would spending more money on another type of modem help? If so, what is recommended? I'm not sure if the modems really matter as it is likely a noisy line either from other drops still in place, bad junctions, or just old wires getting crosstalk. Keep a log of problem times, noting the weather, time of day, and anything else that could be a factor. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Help with router problem
At 07:24 PM 2/5/2008, Eugen wrote: Are there really no experienced FreeBSD users who can help me with my behind a router problem ? Should I post it again ? Should I just give up using BSD altogether due to an unusable system? I would not like this idea, I was really starting to like it. Respectfully, Eugen Eugen, I saw your post but was too busy to respond then. If you give me the details, and what you have in your /etc/rc.conf for the ethernet I will try to help. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: MAGIC: /usr/local/bin/bash: bad interpreter: Permission denied
At 05:02 AM 1/29/2008, Wojciech Puchar wrote: i've got on one of my servers on just one account when trying to run bash script (it is set to executable) doing bash ./scriptname instead of ./scriptname helps BUT on other accounts, or root account - it works. what's up? Your script likely has as the first line: #!/usr/local/bin/bash I would suspect /usr/local/bin is not in the path of the problem accounts or isn't in /etc/shells, or is restricted to run for only some users and groups. Check the bash executable doing: ls -al /usr/local/bin/bash it should be executable by everyone. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: MAGIC: /usr/local/bin/bash: bad interpreter: Permission denied
At 10:11 AM 1/29/2008, Wojciech Puchar wrote: Your script likely has as the first line: #!/usr/local/bin/bash I would suspect /usr/local/bin is not in the path of the problem accounts or $ echo $PATH /bin:/usr/bin:/usr/games:/usr/local/bin:/usr/X11R6/bin:/smietnik/tmp/bin $ echo $PATH /bin:/usr/bin:/usr/games:/usr/local/bin:/usr/X11R6/bin:/smietnik/tmp/bin [EMAIL PROTECTED] ~]$ cat /etc/shells /bin/sh /bin/csh /bin/tcsh /usr/local/bin/bash to make things more funny, /usr/local/bin/bash is a default shell for that (and other) account. isn't in /etc/shells, or is restricted to run for only some users and groups. Check the bash executable doing: ls -al /usr/local/bin/bash [EMAIL PROTECTED] ~]$ ls -al /usr/local/bin/bash -rwxr-xr-x 1 root wheel 748288 15 cze 2007 /usr/local/bin/bash Check your script then, add: set -x near the top and see where it is complaining. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: warning messages?
At 02:00 PM 1/29/2008, Siraj Shaikh wrote: I have just installed FreeBSD 6.3 on my machine. I keep seeing these messages cpu0: Cx states changed cpu1: Cx states changed in somewhat random intervals, specially at startup. What are they? Should I be worried? Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] You CPU is changing states as part of power management/thermal management. There are sysctl variables to set these values if you don't want the state to change, or to control is finer. Look at your dmesg output for how many states your CPU supports. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Trouble compiling php5-xml
At 04:10 PM 1/29/2008, Nick Rout wrote: I am bumping this because I haven't had a response. I'll add that I am running 6.1-RELEASE (according to the motd when I log in). I don't know what other info may be relevant, if I can provide anything else please let me know. Also, if there is a better list to post to for an answer, I'd be grateful to know. Nick. On Jan 16, 2008 12:08 PM, Nick Rout [EMAIL PROTECTED] wrote: I am trying to compile php5-xml (as a dependency to rtgui). I get this error: cc -I. -I/usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml -DPHP_ATOM_INC -I/usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/include -I/usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/main -I/usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/libxml2 -I/usr/local/include -DHAVE_CONFIG_H -O2 -fno-strict-aliasing -pipe -c /usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/xml.c -fPIC -DPIC -o .libs/xml.o /usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/xml.c:74: warning: parameter names (without types) in function declaration /usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/xml.c:160: error: `xml' undeclared here (not in a function) /usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/xml.c:160: error: initializer element is not constant /usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/xml.c:160: error: (near initialization for `xml_module_entry.post_deactivate_func') /usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/xml.c:161: error: initializer element is not constant /usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/xml.c:161: error: (near initialization for `xml_module_entry.globals_id') /usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/xml.c:162: warning: initialization makes integer from pointer without a cast /usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/xml.c:163: warning: initialization makes integer from pointer without a cast /usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/xml.c:164: warning: excess elements in struct initializer /usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/xml.c:164: warning: (near initialization for `xml_module_entry') /usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/xml.c:164: warning: excess elements in struct initializer /usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/xml.c:164: warning: (near initialization for `xml_module_entry') /usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/xml.c:165: warning: excess elements in struct initializer /usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/xml.c:165: warning: (near initialization for `xml_module_entry') /usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/xml.c: In function `PHP_GINIT_FUNCTION': /usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/xml.c:187: error: invalid type argument of `-' *** Error code 1 Stop in /usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml. *** Error code 1 Stop in /usr/ports/textproc/php5-xml. *** Error code 1 Stop in /usr/ports/net/php5-xmlrpc. *** Error code 1 Stop in /usr/ports/net-p2p/rtgui. *** Error code 1 Stop in /usr/ports/net-p2p/rtgui. Can anyone help me in sorting this out? Cheers (new to the list by the way :-) ) Nick. Nick, Have you tried re-pulling the sources for this port? If not, you should try that as it looks like the sources you have, have a syntax error. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: redundancy in domain or hostname ?
At 06:36 PM 1/26/2008, Walter Jansen wrote: The router connected to my server reports DNS inquiries like myserver.example.com.example.com which obviously leads nowhere The server is in a SOHO situation connected to a router which is connected to DSL; the server runs 6.3 Release and will serve as mailserver for the few in-house employees and as a webserver. The domain example.com is registered with Dyndns.org who also run the Custom DNS service. The DNS entries were checked with Dyndns.org staff and found in accordance with the purpose. During installation of the server, the hostname myserver.example.com and the domain name example.com were entered in the appropiate Sysinstall dialog . /etc/hosts shows: ::1 localhost.example.com localhost 127.0.0.1 localhost.example.com localhost 192.168.1.13myserver.example.com myserver 192.168.1.13myserver.example.com. 192.168.1.13 is allocated to the server by the DHCP of the router; this IP address is fixed though!! Table /etc/resolv.com reads: domain example.com nameserver 192.168.1.1 (my router's IP address I postponed installation of Postfix and Apache as I feel that host- and domainname should be configured correctly to prevent accumulating trouble. Remarks a most appreciated. The extra entries in /etc/hosts are for both IP6 and IP4 the hostname entry with the trailing dot: myserver.example.com. denotes it as a fully qualified domain name, FQDN. If hostname shows the correct hostname with one domain, the problem is else ware. If it is else ware, I suspect your router is adding the example.com to every lookup. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: machine migration from 5.3 to 6.3
At 03:51 PM 1/28/2008, Josh Tremor wrote: Okay, I had a freshly installed 6.3 on a machine (thanks Derek Ragona), and my intention is to use this new installation as a direct replacement of an older 5.3 box. This means using the same host name, IP address, and services. I want to make sure I've crossed all the t's. I installed ilohamail and since I'm using mysql for the database, I need to bring over the tables. So I use mysqladmin to copy all databases and their tables from the old box and restore them on my new box. Copy over my users' home directories, and copy the /etc/master.passwd and /etc/passwd files. I need to bring over the old httpd.conf file so my virtual hosts are preserved. Also bring over the related directories with content. Run #hostname new.name to change the hostname, and edit the /etc/rc.conf file to make the change permanent. Edit the /etc/hosts file also, or copy over the old one. To change the address, vi the /etc/rc.conf file to edit the if_config lines (disconnect the old box from the network, first) and run #/etc/netstart Now I'm really unsure of this step: since this box is an important dns host, couldn't I copy the entre /var/named structure over? Or is is best to create fresh ones? It was well over two years ago when I set bind/rndc up, and I remember not enjoying that. I was hoping to use the same zone records. I'm the only one who ssh's in, so I don't care about those keys, but my main concern is to have the mail/dns flowing the way it was before. The mail is handled by a third party's (Sophos) own postfix implementation, and they have their own postgres database. Is there anything I've missed, or am way off on? Thanks. Usually I tar up and move and untar /etc /usr/local /home and possibly /var depending on what you have there. You don't need to disconnect the old box, you can just swap the ip's if you want between the boxes so both are still on your netowrk. Swapping ip's requires a different /etc/rc.conf file and a hosts file that reflects the current ip and hostname. This is easily done creating a second /etc/rc.conf file say /etc/rc.conf.new edit this file. Do the same with /etc/hosts to /etc/hosts.new To swap the ip's create a shell script such as: = #!/bin/sh /bin/mv /etc/rc.conf /etc/rc.conf.old /bin/mv /etc/rc.conf.new /etc/rc.conf /bin/mv /etc/hosts /etc/hosts.old /bin/mv /etc/hosts.new /etc/hosts /sbin/reboot = Assuming you run this on both machines with the correctly edited files, each will reboot to the other's old IP. That way if you need to copy things, you still can do so easily. If you move filesystems between servers run mergemaster once you are done to see if you have any out of date or missing files as you are moving from 5.x to 6.x. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Network configuration in FreeBSD
At 05:38 PM 1/28/2008, Bhuvaneswari Ramkumar wrote: I'm guessing it does detect the interface, network-device all that, bcos my ifconfig says the ethernet status is active. But still I'm unable to do any kind of networking at all, even pings from other PCs to this one remain unreachable. I'm wondering if I should configure something else in the sysinstall or the rc.conf file. On Mon, Jan 28, 2008 at 6:18 PM, Bhuvaneswari Ramkumar [EMAIL PROTECTED] wrote: ifconfig -a em0: flags ...lot of data . status: active ( I'm guessing this is the ethernet interface) netstat -rn routing tables: Internet : 127.0.0.1 ..followed by some IPs, flags(UH), etc .. Internet6 expire followed by some hex-values and flags would this do or more specifics needed ? On Mon, Jan 28, 2008 at 4:42 PM, Christopher Cowart [EMAIL PROTECTED] wrote: On Mon, Jan 28, 2008 at 04:29:49PM -0500, Bhuvaneswari Ramkumar wrote: I'm a newbie FreeBSD user, I've just installed the 5.5 version. I know this is a very silly question but I've searched the archives and any suggestions are welcome. I think my system is not connected to the internet or any external network, ping dosent work ( nor ftp or dig) When I try to do a post-install configuration and choose to enable the inetd daemon option from the sysinstall, it doesnt invoke the editor to change the inetd.conf at all, so I did a root-login and enabled ftp, even pftp and other services in the file as mentioned in the installation document. This file affects running an ftp server, not an ftp client from the command line. But still I'm unable to ftp to any server, the message I get is ftp: hostname or servname not known or not provided. Do you guys have any ideas ? Send the list the output of the following commands: # ifconfig -a # netstat -rn With that info, we can probably help you out better. -- Chris Cowart Network Technical Lead Network Infrastructure Services, RSSP-IT UC Berkeley __ You need to set the default gateway in /etc/rc.conf. Without a default gateway, you will need to add a default route with the route command. Without a route your machine will only be able to ping itself. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: adaptec embedded sata, 6.2 install
At 03:25 PM 1/25/2008, Josh Tremor wrote: Greetings, Apologies in advance for too much info. I have a machine by SuperMicro with an adaptec embedded sata that the manufacturer set to RAID 1 on two 149 GB drives. I boot the machine, wait for the configuration checker to finish looking at the array, which says the array is healthy, and then I can use the 6.2 install discs to set up the partitions and install all of the packages I choose. Everything seems fine, but then after sysinstall finishes and reboots, I get the message 'Operating System Not Found'. I can't seem to capture a dmesg output to see what I did wrong. The drives are WD caviar SE 1600 but I'm not sure what to do for the geometry. What gets reported for a geometry is 310101/16/63 and fdisk reports 19457 cyls/255 heads/63 sectors. The system has Embedded Adaptec SATA BIOS v.5 and I set the partitions as such: / 20G swap 30G /tmp 3G /home 10G /opt 40G /var 10G /boot 7 /usr 29G Thanks for any clue. The boot sector and MBR is not getting written to the disks. Make sure you have nothing in the BIOS on the motherboard or the adaptec BIOS preventing the boot sector being written. Typically in BIO's this is some type of boot sector virus protection. Also, since 6.3 is released, why don't you install 6.3 instead? -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD 6.2 Frequent Lockups
At 10:37 AM 1/16/2008, Joseph Yeager wrote: Hello, I'm experiencing daily lockups on a FreeBSD 6.2 machine thats currently being used as a gateway for a local church school. I have installed and/or configured the following services which are running on it right now: Quagga (only using the Zebra daemon), DHCP (via the isc-dhcp3-server port), BIND, and PF. Everything runs as expected except for the fact that the machine will completely freeze (console included) quite often. Its recently gotten as bad as freezing every 3-5 hours. I don't have any custom cron jobs running and the only job I see that operates at that frequency is daily maintenance. Thinking it could be a heat problem originating from sitting on top of a switch, I put a few blocks under and now it runs a good bit cooler. Last night, I had the windows open and it never got hotter then luke warm and I witnessed, first hand, it completely freeze for no apparent reason. Despite that seemingly pointing to it NOT being a heat problem, I'll be moving it to a shelf by itself. I will also be swapping out the RAM in a few hours when I get up there to see if that is the problem, but I still have a feeling (after reading other similar problems like this) that that may not be the answer. I have a similar setup running at my home which uses the exact same motherboard but different RAM and HD. The only difference on my home router is that I have split horizon DNS setup for my domain and am using IPFW as opposed to PF. My home router has been rock solid every since I got it (several months ago) and my email and webserver, which both run FreeBSD 6.2, have never been down except for extended power outages. I will update you on how the RAM swap goes, but if there are any other suggestions you have I would greatly appreciate it. Thanks, Joe Lockups are usually hardware related. You should run diagnostics on all your motherboard, RAM, drives, and NIC's. Check that your system BIOS settings are correct, and you are not over-clocking your CPU or RAM. I would run the generic kernel if you have a custom kernel. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Nut and RAID on FreeBSD 7.0
At 01:43 AM 1/11/2008, Derrick Ryalls wrote: On Jan 10, 2008 3:52 PM, Kurt Buff [EMAIL PROTECTED] wrote: On Jan 10, 2008 3:14 PM, Bob Johnson [EMAIL PROTECTED] wrote: On 1/10/08, Derrick Ryalls [EMAIL PROTECTED] wrote: Perhaps I need to re-evaluate my line of thinking. Light sometime flicker, but power almost never goes out. When it does it is either back on in less than 1 minute, or out for hours. If the UPS detects critical correctly and gives me at least a minute before death, then that should be plenty of time for the system to auto-shutdown. Guess I will have to do some experimentation tonight. While you experiment, keep in mind the following sequence of events: -- Power fails -- UPS signals low battery -- System shuts down -- Power returns before UPS shuts itself down -- System never reboots, because it never lost power. Getting around this is the tricky part. I haven't used NUT in about seven years, but back then the recommendation was to shut down to single user mode and run a script that delayed for some time longer than the remaining battery life of the UPS, then rebooted the system. There didn't seem to be an easy hook for running a script after shutting down to single user mode (maybe there is now). I haven't looked at NUT recently, but I expect the various flags that you are supposed to test are another way around this problem. Trying to test out the scripts, I ran into a road block. I see that upsmon is working and detecting the events I wanted to detect from these sorts of entries in /var/log/messages: Jan 10 23:28:57 frodo upsmon[80983]: UPS [EMAIL PROTECTED] on line power Plus a similar message for going to battery power. However, the notify executable is having issues and is dumping dozens of lines like this in /var/log/messages: Jan 10 23:28:09 frodo kernel: pid 81029 (upssched), uid 1005: exited on signal 11 Jan 10 23:28:09 frodo kernel: pid 81031 (upssched), uid 1005: exited on signal 11 Jan 10 23:28:10 frodo kernel: pid 81032 (upssched), uid 1005: exited on signal 11 Jan 10 23:28:10 frodo kernel: pid 81033 (upssched), uid 1005: exited on signal 11 Jan 10 23:28:11 frodo kernel: pid 81034 (upssched), uid 1005: exited on signal 11 Jan 10 23:28:11 frodo kernel: pid 81035 (upssched), uid 1005: exited on signal 11 I tried giving the user the user in question (nutmon) a shell of /bin/sh instead of /sbin/nologin but that didn't help. Any clues on how to fix this? Executing upssched from the command line it tells me not to execute directly (similar to what the man page states), and manually executing the upsched-cmd shell script does work and the script itself uses full paths for commands. What is in your notify command? I set my NOTIFYCMD in upsmon.conf to a simple shell script I created to send the message via sendmail, here is my script if that helps: #!/usr/local/bin/ksh #set -x SENDMAIL=/usr/sbin/sendmail MAIL=/usr/bin/mail HOSTNAME=/bin/hostname MYHOSTNAME=`$HOSTNAME -s` echo $* | $MAIL -s UPS Alert from $MYHOSTNAME [EMAIL PROTECTED] -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Nut and RAID on FreeBSD 7.0
At 06:51 PM 1/9/2008, Derrick Ryalls wrote: Greetings, I have a RAID fileserver plugged into a UPS and nut is able to communicate with it successfully. With the winds making the lights flicker, I started looking into having the computer shut down when power goes out for more than say 5 minutes or so. Looking at the documentation, I found that the 'true' solution is more like the system goes into a safe state when the battery gets low, then the ups eventually dies. When power is restored, the UPS and computer are supposed to both come back to life. This would be a great system to have in place, but it does sound a bit risky and so may not be worth doing just to save my home fileserver. The instructions and the conf file have the shutdown command of 'shutdown -h +0' which will halt the system. The man page for halt says the the disk cache will be flushed, but doesn't mention anything about going to read-only or anything. I suppose my first question is whether or not flushing the cache is sufficient to save the RAID (5) array, or if I need to find a way to get the file systems into read only mode? The second question has to do with a rc.d script that nut recommends creating. The script does a 'upsdrvctl shutdown' and then a sleep 120, basically waiting for the machine to die while in the script. Won't this block the other rc.d scripts? Also, is this the magic part that enables the machine to auto power up when power is restored? Changing the shutdown command in nut to 'shutdown -p +0' looks like the sure fire way to get the system down clean before the power is lost, but if my concerns are not valid, then I could be missing out on some nice functionality for no reason. Does anyone have experience with this? I have my servers all using nut to safely shutdown. My configuration is the servers are set up with one as master for nut, that master connected to the UPS. The other servers are slaves and get their nut information from the master. My setup has the servers wait until the UPS is on low battery, then they all shutdown. As a separate part of the setup, the servers are set in their BIOS to power on, after a power failure. This is in the BIOS power setup. So if there is a minor power problem, the servers run from battery. In a larger power outage, they are shutdown cleanly once the battery level is low, and power up automatically once power is restored. In my upsmon.conf file I have this: SHUTDOWNCMD /sbin/shutdown -h +0 If you want more specifics, I can look through the configuration files and email you relevant settings. As far as my experiences using nut with RAID and different setups if the shutdown command works from a command line, it will work the same from nut. I would also suggest you test your setup. Pull the plug on your UPS and watch what happens. Also you should employ other monitoring systems and scripts, should a system not reboot correctly, you do want to know that quickly. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Nut and RAID on FreeBSD 7.0
At 01:40 PM 1/10/2008, Derrick Ryalls wrote: Greetings, I have a RAID fileserver plugged into a UPS and nut is able to communicate with it successfully. With the winds making the lights flicker, I started looking into having the computer shut down when power goes out for more than say 5 minutes or so. Looking at the documentation, I found that the 'true' solution is more like the system goes into a safe state when the battery gets low, then the ups eventually dies. When power is restored, the UPS and computer are supposed to both come back to life. This would be a great system to have in place, but it does sound a bit risky and so may not be worth doing just to save my home fileserver. The instructions and the conf file have the shutdown command of 'shutdown -h +0' which will halt the system. The man page for halt says the the disk cache will be flushed, but doesn't mention anything about going to read-only or anything. I suppose my first question is whether or not flushing the cache is sufficient to save the RAID (5) array, or if I need to find a way to get the file systems into read only mode? The second question has to do with a rc.d script that nut recommends creating. The script does a 'upsdrvctl shutdown' and then a sleep 120, basically waiting for the machine to die while in the script. Won't this block the other rc.d scripts? Also, is this the magic part that enables the machine to auto power up when power is restored? Changing the shutdown command in nut to 'shutdown -p +0' looks like the sure fire way to get the system down clean before the power is lost, but if my concerns are not valid, then I could be missing out on some nice functionality for no reason. Does anyone have experience with this? I have my servers all using nut to safely shutdown. My configuration is the servers are set up with one as master for nut, that master connected to the UPS. The other servers are slaves and get their nut information from the master. My setup has the servers wait until the UPS is on low battery, then they all shutdown. As a separate part of the setup, the servers are set in their BIOS to power on, after a power failure. This is in the BIOS power setup. So if there is a minor power problem, the servers run from battery. In a larger power outage, they are shutdown cleanly once the battery level is low, and power up automatically once power is restored. In my upsmon.conf file I have this: SHUTDOWNCMD /sbin/shutdown -h +0 If you want more specifics, I can look through the configuration files and email you relevant settings. After doing more reading, I am confident that a shutdown -h would be sufficient, but am a bit concern on the order of operations. The nut documentation has a recommendation to add a kill script as such: #!/bin/sh if [ $1 == stop ] then if [ -f /etc/killpower ] then echo Killing the power, bye! /usr/local/libexec/nut/upsdrvctl shutdown sleep 120 fi fi /copy Even if I name this zz_killpower.sh to make it run last, depending on how long it takes FreeBSD to flush the cash after all rc.d scripts are run, I could end up doing a dirty power down, right? Without this, if the power does come back while before the battery finally dies, the system won't restart since the power was never fully interrupted at the computer side? You are reading the old documentation. The current nut, 2.2, has complete rc scripts that are installed in /usr/local/etc/rc.d You need only define the flag file you want to use in upsmon.conf Also define what actions you want in that file as well. You need to use the sample files installed in /usr/local/etc/nut and be sure to read the comments. -Derek As far as my experiences using nut with RAID and different setups if the shutdown command works from a command line, it will work the same from nut. I would also suggest you test your setup. Pull the plug on your UPS and watch what happens. I absolutely will do a full test as such before I put full faith in the setup, but I want to first minimize the chance of me destroying the file system during the test. Also you should employ other monitoring systems and scripts, should a system not reboot correctly, you do want to know that quickly. -Derek ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support.
Re: Nut and RAID on FreeBSD 7.0
At 04:43 PM 1/10/2008, Derrick Ryalls wrote: Greetings, I have a RAID fileserver plugged into a UPS and nut is able to communicate with it successfully. With the winds making the lights flicker, I started looking into having the computer shut down when power goes out for more than say 5 minutes or so. Looking at the documentation, I found that the 'true' solution is more like the system goes into a safe state when the battery gets low, then the ups eventually dies. When power is restored, the UPS and computer are supposed to both come back to life. This would be a great system to have in place, but it does sound a bit risky and so may not be worth doing just to save my home fileserver. The instructions and the conf file have the shutdown command of 'shutdown -h +0' which will halt the system. The man page for halt says the the disk cache will be flushed, but doesn't mention anything about going to read-only or anything. I suppose my first question is whether or not flushing the cache is sufficient to save the RAID (5) array, or if I need to find a way to get the file systems into read only mode? The second question has to do with a rc.d script that nut recommends creating. The script does a 'upsdrvctl shutdown' and then a sleep 120, basically waiting for the machine to die while in the script. Won't this block the other rc.d scripts? Also, is this the magic part that enables the machine to auto power up when power is restored? Changing the shutdown command in nut to 'shutdown -p +0' looks like the sure fire way to get the system down clean before the power is lost, but if my concerns are not valid, then I could be missing out on some nice functionality for no reason. Does anyone have experience with this? I have my servers all using nut to safely shutdown. My configuration is the servers are set up with one as master for nut, that master connected to the UPS. The other servers are slaves and get their nut information from the master. My setup has the servers wait until the UPS is on low battery, then they all shutdown. As a separate part of the setup, the servers are set in their BIOS to power on, after a power failure. This is in the BIOS power setup. So if there is a minor power problem, the servers run from battery. In a larger power outage, they are shutdown cleanly once the battery level is low, and power up automatically once power is restored. In my upsmon.conf file I have this: SHUTDOWNCMD /sbin/shutdown -h +0 If you want more specifics, I can look through the configuration files and email you relevant settings. After doing more reading, I am confident that a shutdown -h would be sufficient, but am a bit concern on the order of operations. The nut documentation has a recommendation to add a kill script as such: #!/bin/sh if [ $1 == stop ] then if [ -f /etc/killpower ] then echo Killing the power, bye! /usr/local/libexec/nut/upsdrvctl shutdown sleep 120 fi fi /copy Even if I name this zz_killpower.sh to make it run last, depending on how long it takes FreeBSD to flush the cash after all rc.d scripts are run, I could end up doing a dirty power down, right? Without this, if the power does come back while before the battery finally dies, the system won't restart since the power was never fully interrupted at the computer side? You are reading the old documentation. The current nut, 2.2, has complete rc scripts that are installed in /usr/local/etc/rc.d You need only define the flag file you want to use in upsmon.conf Also define what actions you want in that file as well. You need to use the sample files installed in /usr/local/etc/nut and be sure to read the comments. I have 2.2 installed and am using the existing scripts. In the comments in uspmon.conf, there is this part: # -- # POWERDOWNFLAG - Flag file for forcing UPS shutdown on the master system # # upsmon will create a file with this name in master mode when it's time # to shut down the load. You should check for this file's existence in # your shutdown scripts and run 'upsdrvctl shutdown' if it exists. # # See the shutdown.txt file in the docs subdirectory for more information. POWERDOWNFLAG /etc/killpower Which in the related documentation means I need the custom shutdown script mentioned above which checks for the existence of the /etc/killpower file before doing the upsdrvctl shutdown command to kill the UPS before the battery is completely dead. I suppose in your situation you won't need this extra script as you run until the UPS is critical whereas I am trying to kill the system a bit early, before it is
Re: 5.4-RELEASE crashing
At 08:19 AM 1/9/2008, Robert Fitzpatrick wrote: 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 You should verify a few things: Make sure the memory you installed is correct for the motherboard AND the motherboard will handle that quantity of memory. I would run the generic kernel if you can, to see that there are no custom kernel issues. Run memtest or other diagnostic utility to check the memory you installed. If all that doesn't help, check for cron jobs causing a problem, or perhaps run a periodic cron job to provide a log of what is running that you can refer to after a crash. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sendmail is broken, how do I fix
At 03:03 PM 1/2/2008, Andrew Falanga wrote: While you think there is nothing on that port something is running not letting that socket connection. Try rebooting the system and see if the problem is still there. -Derek I did try that too. Didn't work. Have you tried telnet to the IP and port 25? If it is sendmail, you can see that from the banner, also you can watch the maillog file in /var/log. I suspect you have another process tying up that port. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sendmail is broken, how do I fix
At 11:17 AM 1/1/2008, Andrew Falanga wrote: Hello, I'm not sure what I did. I've been following instructions (really!) and after following the instructions from here: http://www.puresimplicity.net/~hemi/freebsd/sendmail.html to setup SSL/TLS authentication for mail relaying, my sendmail installation always gives me this very frustrating messages in /var/log/maillog: Jan 1 11:24:27 whitbap sm-mta[3706]: starting daemon (8.13.8): [EMAIL PROTECTED]:30:00 Jan 1 11:24:27 whitbap sm-mta[3706]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use Jan 1 11:24:27 whitbap sm-mta[3706]: daemon MTA: problem creating SMTP socket Jan 1 11:24:27 whitbap sm-msp-queue[3710]: starting daemon (8.13.8): [EMAIL PROTECTED]:30:00 Jan 1 11:24:27 whitbap sm-mta[3707]: m010sNBM004564: to=[EMAIL PROTECTED], delay=17:30:04, xdelay=00:00:00, mailer=esmtp, pri=1835114, relay=mail02.interchangeusa.com. [63.251.210.81], dsn=4.0.0, stat=Deferred: Connection refused by mail02.interchangeusa.com. Jan 1 11:24:32 whitbap sm-mta[3706]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use Jan 1 11:24:32 whitbap sm-mta[3706]: daemon MTA: problem creating SMTP socket Jan 1 11:24:37 whitbap sm-mta[3706]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use Jan 1 11:24:37 whitbap sm-mta[3706]: daemon MTA: problem creating SMTP socket Jan 1 11:24:42 whitbap sm-mta[3706]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use Try as I have, I cannot isolate what is causing this. When I completely kill all sendmail processes (as verified by sockstat and ps -aux) there is *nothing* using port 25. I do not understand what is going on. While following the instructions for smtp authentication in: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/smtp-auth.html I perhaps made one of my blunders. These instructions say to alter the file freebsd.mc rather than hostname.mc. It does say that some admin's like to use hostname.mc, but because I didn't know much about how FreeBSD does the install, I saw freebsd.mc and added the three lines listed in bullet item 6 on that web page. Later, I saw that I did have the file hostname.mc and while researching a resolution to this problem learned that FreeBSD makes the hostname.mc file when doing a make all if memory serves. Anyway, I then removed those three lines from freebsd.mc and pasted them into hostname.mc. Regardless, when I had those three lines in freebsd.mc everything worked. I made the changes for SSL/TLS as Josh Tolbert lays out in his web site (see above link) and when I restarted sendmail, that's when my troubles began. I don't understand what it is that I did and how it made it so that sendmail now thinks something else is using the socket/address. I'm desperate for a solution. Thanks for any help. Andy While you think there is nothing on that port something is running not letting that socket connection. Try rebooting the system and see if the problem is still there. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to make sendmail listen on an address other than the loopback
At 11:33 AM 12/28/2007, Andrew Falanga wrote: Hi, I'm trying to get an e-mail system working for my church (whitneybaptist.org). I've added a file called local-host-names in /etc/mail as described in the Handbook, then did /etc/rc.d/sendmail restart and then did sockstat | grep sendmail and got the following results: root sendmail 32889 3 tcp4 127.0.0.1:25 *:* root sendmail 32889 4 dgram - /var/run/logpriv smmspsendmail 696 3 dgram - /var/run/log Now, with the exception of the additional file, nothing has been done to this stock sendmail configuration (system is 6.2-RELEASE-p7). How would I make sendmail listen on the ip of 192.168.2.23? I do have some experience with sendmail, however, it was several years ago and I've forgotten quite a bit. Why isn't it listening on that address now? Andy Take a look at your settings for sendmail in /etc/rc.conf vs /etc/default/rc.conf You need two instances of sendmail running, one for local delivery, another for external mail send receive. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Server crashes
At 07:43 AM 12/23/2007, Monah Baki wrote: Hi All, I'm running a very old server (P3, dual 600Mhz, SCSI 9GB harddrive). Applications that I run on it is MySQL and Apache. I have no problem with server uptime but I am not able to update because once I run the command: make buildkernel KERNCONF=SMP Server crashes here mkdep -f .depend_aicasm -a -nostdinc -I/usr/include -I. -I/usr/src/sys/modules/aic7xxx/aicasm/../../../dev/aic7xxx/aicasm /usr/src/sys/modules/aic7xxx/aicasm/../../../dev/aic7xxx/aicasm/aicasm.c /usr/src/sys/modules/aic7xxx/aicasm/../../../dev/aic7xxx/aicasm/aicasm_symbol.c aicasm_gram.c aicasm_macro_gram.c aicasm_scan.c aicasm_macro_scan.c echo aicasm: /usr/lib/libc.a /usr/lib/libl.a .depend_aicasm cd /usr/src/sys/modules/aic7xxx/aicasm; MAKEOBJDIRPREFIX=/usr/obj/usr/src/sys/SMP/modules make -DNO_CPU_CFLAGS all cc -O2 -fno-strict-aliasing -pipe -nostdinc -I/usr/include -I. -I/usr/src/sys/modules/aic7xxx/aicasm/../../../dev/aic7xxx/aicasm -c /usr/src/sys/modules/aic7xxx/aicasm/../../../dev/aic7xxx/aicasm/aicasm.c cc -O2 -fno-strict-aliasing -pipe -nostdinc -I/usr/include -I. -I/usr/src/sys/modules/aic7xxx/aicasm/../../../dev/aic7xxx/aicasm -c /usr/src/sys/modules/aic7xxx/aicasm/../../../dev/aic7xxx/aicasm/aicasm_symbol.c cc -O2 -fno-strict-aliasing -pipe -nostdinc -I/usr/include -I. -I/usr/src/sys/modules/aic7xxx/aicasm/../../../dev/aic7xxx/aicasm -c aicasm_gram.c This happens everytime, is there anywhere I can look to see what's going on, or if it's a hardware problem, where is the cause so I can replace. Thanks Have you tried pulling down all new sources? You could have a corrupt source file. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Redirecting STDOUT
At 08:49 AM 12/21/2007, [EMAIL PROTECTED] wrote: I am in the process of debugging a script and I would like to have the output of stdout redirected to a file. After reading about redirection on the Internet, I was under the impression the following would redirect stdout to a file, but I cannot seem to get it to work. tar -cvzf root.tgz /root /dev/null 2/home/jay/tarlog I'm sure it is something simple I am doing wrong, but I am not seeing it. Thanks for your help. Jay In your command line above you are redirecting stdout to /dev/null and stderr to your file. try: tar -cvzf root.tgz /root /home/jay/tarlog 21 -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Redirecting STDOUT
At 11:12 AM 12/21/2007, [EMAIL PROTECTED] wrote: At 08:49 AM 12/21/2007, [EMAIL PROTECTED] wrote: I am in the process of debugging a script and I would like to have the output of stdout redirected to a file. After reading about redirection on the Internet, I was under the impression the following would redirect stdout to a file, but I cannot seem to get it to work. tar -cvzf root.tgz /root /dev/null 2/home/jay/tarlog I'm sure it is something simple I am doing wrong, but I am not seeing it. Thanks for your help. Jay In your command line above you are redirecting stdout to /dev/null and stderr to your file. try: tar -cvzf root.tgz /root /home/jay/tarlog 21 When I run the above, I receive the following message. Ambiguous output redirect. Any suggestions? What I found Googling on the message indicates I am trying to write the output to multiple locations. I am using the bourne shell. I am using the right syntax? Thanks, Jay tar is a bit different in the syntax, this seems to work: tar -f /root.tgz -cvz /root /home/jay/tarlog 21 -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Bare Metal Recovery FreeBSD How To
At 09:05 AM 12/19/2007, Nuno Gonçalves wrote: Hi all, I am trying to do a Bare Metal Recovery from a FreeBSD 6.0 system to a different Hardware. I have a backup from all partitions of the affected system so I am trying to install a minimum FreeBSD 6.0 in a different hardware which I already have up and running. I created a Swap Partition, a / partition where the minimum system is running, and a third partition /backup in which I will restore the backup through the network. Next step will be to change the boot manager and make it boot through /backup. Do you guys think this is doable? I Think I probably must recompile the kernel after the bare metal recovery because the hardware is different, still do you think it might work? What is your opinion on this? What should be the best approach ? Thanks for reading and Best regards Nuno It depends on your server's partitioning. The simplest would be to create the same file systems like you had on the old server and restore each filesystem. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Panic on boot
At 07:32 PM 12/15/2007, jekillen wrote: On Dec 15, 2007, at 5:21 PM, jekillen wrote: Hello; I have had an AMD64 754 system that I have 64 bit SCSI card and two 15k rpm SCSI drives. It has been running fine with FreeBSD v 6.0 for about two years now. I have several things I wanted to change and reconfigure, software wise, and hardware wise. The first was a new case which I got today. I shut down the system, put everything in the new case and booted. It booted without any complaint. I got the V6.2 install cd and put it in. The system froze during boot process after an entry for mpt 0. I turned off the power and tried rebooting into the install cd. This time it made it to sysinstall and went through slice and partitioning and was in the process of installing the base system and it froze again, no error messaged to console. I rebooted and started again. The second time I got all the way through the install process. Now on reboot the system is panicking just after the line mtp0 hidden device members(6) The error is: Fatal Trap 12 (the screen does not persist long enough to transcribe it all.) Three tries, the same thing in the same place in the boot process. I tried it agian and the same thing happened. This time I got more of the error message. 'page fault while in kernel mode' does this mean the scsi drives or card is going bad? (I nope not) the card is LSI Logic 64 bit card (installed in a standard PCI slot but has been working with an inch of the card hanging off the end of the slot. I only have one internal bus available this way, but that is all I need. Thanks in advance for info Jeff K (chewing my fingernails) Jeff, Could be anything causing this from your move such as damaged ram or other component from static or a somewhat flaky power supply in the new case. Have you run diagnostics on the hard drives? Make sure all your power connectors are tight, no damaged cables. It is easy with some SCSI cables to damage the cable or connectors, I know I have done that a few times. If you can, separate the power to the hard drives to separate lines from the power supply rather than daisy chaining a power line with multiple connectors on it. Have you tried other bootable OS's just to see if they crash too? -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: named mystery
At 12:57 AM 12/10/2007, jekillen wrote: Hello: I have two name servers for four domains. The primary name server is running FreeBSD v 6.0 and the secondary is running v 6.2. I have an MX record for each of the four registered domains. I have set up Postfix to act as a smart host mail hub (the MX host). One of the named record database is for one of the sites. When I try to send an E-mail from this message to list e-mail address. The messages bounce for dns lookup failure. The name that is being looked up is mxhost.domainName.tld.targetDomainName.tld Some how the two names are being mashed together and then looked up, causing the resolution failure. dig targetDomainName.com -t MX produces the record according to my ISP's name servers, which is the mashed version. Possibly they have it wrong? Someone is screwing up the lookup for this. There was a period missing after the MX host name record. I added that and rebooted the machine with the primary name server just to insure that named got the change and checked the secondary record and it has the change I did dig @targerDomainName.com -t MX and got my secondary name server responding. I checked the primary server to see that it is actually running at the time, it was and is. but the bak file on the secondary server has clip IN MX 10 host.domain.tld. $ORIGIN targetDomain.tld. /clip when the record on primary server is clip @ IN MX 10 host.domain.tld. /clip @ in this context should reference the domain this file is for. If anyone is a wiz at dns record and problems can you make any suggestions or recommendations? thank you in advance Jeff K Jeff, I just checked how my DNS files look on two 6.2 servers. The primary zone files will have the: @ while the secondary zone files will not have these. In my zone files the MX appears on the primary as a the lines: ; MX Record @ IN MX 10 mail.mydomain.com. Note the last period after the domain suffix is there to show it is a fully qualified name, with that name defined earlier in this zone file. On the secondary server the zone files has: MX 10 mail.mydomain.com. In both files the 10 is the weight for the MX record. If you have multiple servers you want to accept email, you would use this number to designate the order they should get mail, smaller numbers are primary to get email. When you make a change on the primary DNS server zone file be sure to change the serial number in that zone file. Also I usually stop and start named on the primary. I also remove the backup files on the secondary servers and stop and start named on those too to see that the new files are transferred and thus being used. Hope this helps. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: named mystery
At 01:24 PM 12/11/2007, Bill Vermillion wrote: On Tue, Dec 11, 2007 at 18:23 , while impersonating an expert on the internet, [EMAIL PROTECTED] sent this to stdout: Date: Tue, 11 Dec 2007 06:09:11 -0600 From: Derek Ragona [EMAIL PROTECTED] Subject: Re: named mystery To: jekillen [EMAIL PROTECTED], User Questions freebsd-questions@freebsd.org At 12:57 AM 12/10/2007, jekillen wrote: Hello: I have two name servers for four domains. The primary name server is running FreeBSD v 6.0 and the secondary is running v 6.2. I have an MX record for each of the four registered domains. I have set up Postfix to act as a smart host mail hub (the MX host). One of the named record database is for one of the sites. When I try to send an E-mail from this message to list e-mail address. The messages bounce for dns lookup failure. The name that is being looked up is mxhost.domainName.tld.targetDomainName.tld Some how the two names are being mashed together and then looked up, causing the resolution failure. As the other respondent noted, that was because of the missing period. I've found that 'nslint' in the /usr/ports/dns hierarchy is a nice little program that will tell you all your errors. I actually run it's output through a 'filter' to get rid of extranous things such as 'in use by .xxx' as i have several sites that respond to the same IP. dig targetDomainName.com -t MX produces the record according to my ISP's name servers, which is the mashed version. Possibly they have it wrong? Someone is screwing up the lookup for this. There was a period missing after the MX host name record. I added that and rebooted the machine with the primary name server just to insure that named got the change and checked the secondary record and it has the change You don't have to reboot Unix systems for almost all things which don't require a kernel change. named.restart will do the job. I did dig @targerDomainName.com -t MX and got my secondary name server responding. I checked the primary server to see that it is actually running at the time, it was and is. but the bak file on the secondary server has clip IN MX 10 host.domain.tld. $ORIGIN targetDomain.tld. /clip when the record on primary server is clip @ IN MX 10 host.domain.tld. /clip @ in this context should reference the domain this file is for. If anyone is a wiz at dns record and problems can you make any suggestions or recommendations? thank you in advance Jeff K Jeff, I just checked how my DNS files look on two 6.2 servers. The primary zone files will have the: @ while the secondary zone files will not have these. In my zone files the MX appears on the primary as a the lines: ; MX Record @ IN MX 10 mail.mydomain.com. Note the last period after the domain suffix is there to show it is a fully qualified name, with that name defined earlier in this zone file. On the secondary server the zone files has: MX 10 mail.mydomain.com. In both files the 10 is the weight for the MX record. If you have multiple servers you want to accept email, you would use this number to designate the order they should get mail, smaller numbers are primary to get email. When you make a change on the primary DNS server zone file be sure to change the serial number in that zone file. Also I usually stop and start named on the primary. I also remove the backup files on the secondary servers and stop and start named on those too to see that the new files are transferred and thus being used. I have about 250 zones in my DNS and I've done something which makes sure that I always have the correct date, but all the domains will show the same date. I've extracted much of what you put in a zone file and put it in a file called named.soa . And in each file is used the $INCLUDE directive [quite handy] that is $INCLUDE named.soa Then I just update the serial number in the one file. It saves a lot of time, particualary yesterday when one client of a support house that uses our servers decided he needed all the standard variants .com, .net, .biz, .mobi, .info, .org, and .tv - plus 5 variants on his domain. I'd just dupe the zone file and make global changes in 'vi' and only have to update the serial number in the named.soa just one time. Bill Bill, I didn't know about the include statement, I will do that with my zone files too. Good to know about the nslint utility too. I am one who makes typos, so it will be a good way to make sure the files are at least syntax correct. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any
Re: Determining bus speed/memory
At 09:20 AM 12/6/2007, Robert Fitzpatrick wrote: 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 If you know the motherboard maker and model, you can check either their website or one of the ram maker's sites. Most of the RAM manufacturer's offer an online catalog, you can look up compatible memory there. If you want to boot a window's compatible CD on the system you can run cpu-z available from: http://www.cpuid.com This application gives detailed information on the entire system. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: looking for online text editor
At 01:11 PM 12/4/2007, David Banning wrote: Often I have to maintain my fbsd box from outside locations. I have tried using webmin but sometimes outside computers stop me from running the java filemanager - same goes for attempting to run mindterm-ssh. Is there some plain text editor program out there that will allow me to simply login and edit my files in plain text - (not a gui html editor) ? I use putty to ssh to remote servers and use vi to edit files once logged in to the server. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ./configure question for AIX
At 01:05 AM 12/5/2007, Rogelio wrote: I have a question on compiling Nagios' NRPE on AIX (which I'm assuming would be similar to FreeBSDl, as I'm trying to use Autotools on ksh). I'm used to always running tar -zxfv file.tar.gz, but this time I had to run (I think) like tar z and then tar xfv to get it unzipped. In that directory, I then ran ./configure and then make all, and I'm hoping someone here might help point me in the right direction. ./configure --prefix=/opt/nagios --enable-command-args --without-ssl make install When I do this, I get an error about Boutell's GD library is required to compile the statusmap, trends and histogram CGIs. Get it from http://www.boutell.com/gd/, compile it, and use the --with-gd-lib and --with-gd-inc arguments to specify the locations of the GD library and include files. Ok, that's cool. But am I on the right track about how to install this on AIX? Once I installed this GD library and ./configure with the right parameters, will this work in AIX? (Sorry if this isn't the best place to ask this question, as I tend to be spoiled by Linux packages. If not, I can take it elseware) It has been a while since I have done this on AIX, but you just need to check the directory structure is going to be correct. Typically I will run configure and check to see what variables are set for the install directories, and possibly set those differently if configure did not find the correct directories or if I need them set differently. Often this may mean moving the install directories to or from the /usr/local area. You may do well to look for pre-compiled binaries for AIX. Also let me remind you that you could gunzip the .gz file first, then just untar the tarball in two steps, rather than doing it in one step. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: What is best method to debug freezes/hangs?
At 08:49 PM 12/4/2007, yar wrote: My question is how best to go about debugging sporadic freezes and hangs. Just looking for general methods.On a couple of our IDS systems there are sporadic hangs or freezes that occur every couple weeks or so, that are recoverable by either system reboots or taking out and reinserting the Gig fiber ethernet sniffing cables, but I never can find anything in /var/logs/messages to tell what is going on. I'm assuming that may have to compile in kernel debugger support, but from what I read briefly, doesn't that require an actual crash with the resultant reboot and a debugger readable file left in /var/crash? That doesn't happen, there is no automatic reboot just a freeze/hang (box falls off network and at the console unable to type until one of the two above mentioned measures are take. The systems are: Dell 1850's Free BSD 6.2 2 Gb ram running various open source IDS software BRO Thanks I would be sure your systems are running the generic kernel, or as close to generic that is possible to rule out anything you could have introduced by running a custom kernel. I would also run complete diagnostics on the hardware to rule out any hardware issues. You can also gather some information by having a script run top periodically and logging this to a file to see what the system is doing. You can check the last log entry of this file after a freeze/hang to see what was going on. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Shell script in crontab cannot write files into FreeBSD's filesystem. (2nd evised version)
At 03:02 AM 12/5/2007, Supote Leelasuppakorn wrote: Hi all, Please anybody help me, I faced the problem with my crontab. I tried to run a shell script which will fetch webpage and save it to a directory by using wget but after few minute I cannot see any file in such directory Below are content of shell script, my crontab and also file's permission listing. ## # Output of `crontab -l` ## SHELL=/bin/sh MAILTO=pjn * * * * * . /home/pjn/parseGP/fetchPage.sh # file: fetchPage.sh #!/bin/sh TIMESTAMP=`date +%Y%m%d-%H%M%S` You are assuming that date is in your path by the above statement. Never assume you have a good path, unless you set it in your script file. So, either setup the path you need or use absolute pathnames such as: TIMESTAMP=`/bin/date +%Y%m%d-%H%M%S` LOGPATH=/home/pjn/parseGP/logs /usr/local/bin/wget --no-cache -a ${LOGPATH}/fetch.log -O ${LOGPATH}/${TIMESTAMP}.html http://www.blahblah.com # Files' permission blahHost$ blahHost$ls -ltrd parseGP drwxr-xr-x 3 pjn pjn 512 Dec 5 14:27 parseGP blahHost$ls -ltr parseGP/ total 4 drwxr-xr-x 2 pjn pjn 512 Dec 5 15:11 logs -rwxr--r-- 1 pjn pjn 226 Dec 5 15:21 fetchPage.sh blahHost$ls -ltr parseGP/logs/ total 0 -rw-r--r-- 1 pjn pjn 0 Dec 5 15:14 fetch.log blahHost$ TIA Pote Make sure your script runs correctly outside cron, then test it from inside cron. Add some echo statements so you can see what is executed, such as: #!/bin/sh TIMESTAMP=`/bin/date +%Y%m%d-%H%M%S` LOGPATH=/home/pjn/parseGP/logs echo $(TIMESTAMP) echo $(LOGPATH) echo /usr/local/bin/wget --no-cache -a ${LOGPATH}/fetch.log -O /usr/local/bin/wget --no-cache -a ${LOGPATH}/fetch.log -O echo ${LOGPATH}/${TIMESTAMP}.html http://www.blahblah.com ${LOGPATH}/${TIMESTAMP}.html http://www.blahblah.com -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: looking for online text editor
At 02:14 PM 12/4/2007, David Banning wrote: running the java filemanager - same goes for attempting to run mindterm-ssh. Is there some plain text editor program out there that will allow me to simply login and edit my files in plain text - (not a gui html editor) ? I use putty to ssh to remote servers and use vi to edit files once logged in to the server. But putty has be installed on the machine you are working on, right? I need to have access on, say a library computer, where no local software can be installed. I can log in to webmin and edit the files via their file manager. The actual edit process does -not- appear to be java, but the file manager to select the file -is- java so I can't select the file to edit. Putty is pretty much standalone executable, at least the one for Windows is, you can run it from a thumb drive. If you need a web based application, you can install firefox on a thumb drive as well. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: rmuser
At 07:28 PM 12/2/2007, Lubomír Matouek wrote: Dear list, I have the following problem when when using rmuser (freebsd 6.2): Is this the entry you wish to remove? yes Remove user's home directory (/home/jakub/abcd)? yes Removing user (abcd):ipcs: sysctlbyname: kern.ipc.shmmax: No such file or directory ipcs: sysctlbyname: kern.ipc.shmmax: No such file or directory ipcs: sysctlbyname: kern.ipc.shmmax: No such file or directory mailspool home passwd. I haven't find any records in google. Please, can you help? You should first check the user's home directory exists, as it is in /etc/password. I suspect you have a typo and the home directory entry is wrong, on on an unmounted filesystem. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SSH disconnects very troubling
At 05:22 PM 12/3/2007, Anne Moore wrote: Hi All Whenever my users connect to my FreeBSD system, they are automatically disconnected after 1 minute of inactivity. This happens no matter if they are connected to our Oracle instance or SSH or Telnet, or anything. It's like the server hangs-up on them after no activity for a minute or so. I ran tcpdump during and received this error on the disconnect: 17:20:21.362159 IP 192.168.8.90.56141 myhost1.rdm.loc.ssh: . ack 233 win 33303 nop,nop,timestamp 2469825 98100123 I'm stumped! Does anyone have any idea why this might be happening? Thank you for your help! Anne I would check your firewall setting, which may disconnect connections on inactivity. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Diagnosing an unstable machine
At 11:42 AM 12/1/2007, Ross Penner wrote: I'm currently using FreeBSD 6.2 to run as a fileserver and gateway for my home. It's been incredibly unstable and I'm trying to figure out why. What can I do to try and figure out what is causing these crashes? Apparently the machine just rebooted 20min ago looking at the uptime. They're seemingly random to me as there is definitely no usage pattern that is obviously bringing these crashes about. Any help I could get would be greatly appreciated. The first thing I would do is make sure you are running 6.2 release with the generic kernel. Look at the last log entries prior to a crash for all the logs in /var/log Run any diagnostics you have for the hardware (motherboard, memory, hard drives, NIC.) Check your dmesg hardware found to the supported hardware list. If you are still getting random crashes, post back with your dmesg output included. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: System Reboots with Bittorrent Use
At 11:53 AM 12/1/2007, [EMAIL PROTECTED] wrote: Hi! I have had this problem before, so let me narrate the history (quickly). I used to use the rtorrent port. However, when running rtorrent (never any other time) the system would spontaneously reboot. I couldn't figure out what exactly the problem was, but when I switched to deluge (another bittorrent port) the problem seemed to go away. I have since reformatted my computer. I began using deluge again a couple weeks ago, but am again experiencing spontaneous reboots, now when using deluge (I don't have rtorrent installed). I don't get any message in /var/logs/messages (is there a way to make the computer log more? Are there other logs I should check?). In general the file system needs to be cleaned after the reboot. Could this be a driver problem, by any chance? I use Deluge version 0.5.6.2, freeBSD version 6.3 Prerelease. If any more information would help, I'd be happy to provide it. Thanks if you can offer any help at all! I'm still fairly new to *BSD. It could be anything that relates to bad hardware. But since you believe it is related to the network, and bittorrent use, I would first suspect the NIC. If possible I would swap NIC's and see it the problem still is there. In swapping NIC's I would avail using any with realtek chips and opt for a better supported NIC chip like one of the intel NICs. Otherwise you can run any diagnostic software you have for your hardware, and if you post back include the full dmesg output. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: named.conf - unable to set control bit
At 07:15 AM 11/30/2007, Gelsema, P \(Patrick\) - FreeBSD wrote: Hi list, I have got the following issue. I have added the following settings in named.conf but am unable to get it working. If I read the man page it seems that what I have put in is completely correct. REason to put it in is that I want the DHCP server to automatically update the DNS zone. the error I get is: Nov 30 14:09:31 hulk named[6848]: reloading configuration failed: failure Nov 30 14:09:45 hulk named[6848]: /etc/namedb/named.conf:20: expected 'allow' near ';' Nov 30 14:09:45 hulk named[6848]: reloading configuration failed: unexpected token head -n 25 /etc/named/named.conf # generated with dnssec-keygen -a HMAC-MD5 -b 128 -n USER DHCP_UPDATER key DHCP_UPDATER { algorithm HMAC-MD5.SIG-ALG.REG.INT; secret hashedstring==; }; acl home {10.202.77.0/24;127.0.0.1;}; options { // Relative to the chroot directory, if any directory /etc/namedb; pid-file/var/run/named/pid; dump-file /var/dump/named_dump.db; statistics-file /var/stats/named.stats; allow-query {home; }; }; controls { inet 127.0.0.1 port 953; allow { 127.0.0.1;10.202.77.110; } keys { DHCP_UPDATER; }; }; Line 20 is where controls start. Any help much appreciated. rgds, Patrick try either removing the port 953; from that line or just removing the ; after the port 953 -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Dell PE4600 RAID5 server failing
At 09:00 AM 11/14/2007, Barnaby Scott wrote: I suspect I already know the answer to this, which is that the trouble I am having is nothing to do with the OS at all, but I have to ask, because I am otherwise up against a total brick wall! I bought a second-hand Dell Poweredge 4600 and installed FreeBSD 6.2 earlier this year. I had it set up with RAID5 using its PERC3/DC controller, with 7 x 73GB disks (+ 1 hot spare). So far so good, and it worked faultlessly as a Samba server for several months. At the beginning of October, it went down, reporting a mismatch between the configuration on the NVRAM and the disks. With help from Dell support, I managed to recreate the RAID array and it worked again for a month. In early November it happened again, and has kept happening since. At one point it appeared that the backplane was faulty, so I replaced that, but I cannot keep the server up for more than a day or so without this 'mismatch' poblem. What about diagnostics on the hardware you may ask? I have run all the diagnostic tools that Dell can supply - several times - and the server declares itself to be totally fault-free. My specific questions therefore: Is there any way at all that FreeBSD could be invloved with this problem? (I did notice for example that the Dell PERC3/DC controller was not in the list of supported hardware - but then again, why did it work for several months?) Can I use FreeBSD to tell me anything about the fault that Dell's diagnostic tools haven't found? (I do hope someone might be able to help - Dell are trying to get me to switch to a 'supported' OS!) Thanks Barnaby Scott It doesn't sound like any OS issue as you set up the RAID outside the OS. It may be a bad drive or drive(s). Most RAID drives have RAID information written to the drives, and if this becomes unreadable you will have RAID faults. Another likely culprit is heat. Overheating drives often fail. Are you sure the temperatures in the drive enclosure is OK? If you can, run diagnostics on the drives, this usually requires running these with the drives taken out of the RAID array though. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Dell PE4600 RAID5 server failing
At 12:12 PM 11/14/2007, Tamouh H. wrote: Derek Ragona wrote: At 09:00 AM 11/14/2007, Barnaby Scott wrote: I suspect I already know the answer to this, which is that the trouble I am having is nothing to do with the OS at all, but I have to ask, because I am otherwise up against a total brick wall! I bought a second-hand Dell Poweredge 4600 and installed FreeBSD 6.2 earlier this year. I had it set up with RAID5 using its PERC3/DC controller, with 7 x 73GB disks (+ 1 hot spare). So far so good, and it worked faultlessly as a Samba server for several months. At the beginning of October, it went down, reporting a mismatch between the configuration on the NVRAM and the disks. With help from Dell support, I managed to recreate the RAID array and it worked again for a month. In early November it happened again, and has kept happening since. At one point it appeared that the backplane was faulty, so I replaced that, but I cannot keep the server up for more than a day or so without this 'mismatch' poblem. What about diagnostics on the hardware you may ask? I have run all the diagnostic tools that Dell can supply - several times - and the server declares itself to be totally fault-free. My specific questions therefore: Is there any way at all that FreeBSD could be invloved with this problem? (I did notice for example that the Dell PERC3/DC controller was not in the list of supported hardware - but then again, why did it work for several months?) Can I use FreeBSD to tell me anything about the fault that Dell's diagnostic tools haven't found? (I do hope someone might be able to help - Dell are trying to get me to switch to a 'supported' OS!) Thanks Barnaby Scott It doesn't sound like any OS issue as you set up the RAID outside the OS. It may be a bad drive or drive(s). Most RAID drives have RAID information written to the drives, and if this becomes unreadable you will have RAID faults. Another likely culprit is heat. Overheating drives often fail. Are you sure the temperatures in the drive enclosure is OK? If you can, run diagnostics on the drives, this usually requires running these with the drives taken out of the RAID array though. -Derek Thanks for replying - as I said, this is a long shot trying to see if there is any OS involvement. The drives are fine - I have used two different tools to analyse them while the computer is booted from a live CD and the RAID configuration cleared on the controller. Besides, you would expect one drive to fail at a time, and if this happened, the hot spare would surely be pressed into service. Nothing like this has happened though - the controller is reporting several drives (not always the same ones) failed simultaneously, but when the array is re-created from the disks, everything works fine. Problem is, it goes down again a day or so later. As for heat, there is nothing being reported there and the fans that cool that area are working. Any other ideas gratefully received! Barnaby Scott This is very unlikely to be OS related. But here are few pointers: 1) Check the make/model of the drives. Certain types of make/model SCSI drives had a glitch in them a while ago with a certain firmware that they'd disconnect from a RAID. I had a personal experience with these ones (Seagate U320). 2) What did happen in October? Anything hardware, software, power wise has occurred ? 3) NVRAM and Disk mismatch, I'd say check the controller, backup battery present but weak ? 4) Unlikely to be the source, but run a test on your physical RAM using MEMTEST86+ and check the power supply is sufficient and working properly. I've had some raid drives disconnect and go missing, which all cleared and was rebuilt on a full power-off reboot. I belive this is due to some power issues in my area. Specifically my line power from the utility was running high, over 127 volts, making over-voltage spikes prevalent. On a couple spikes I saw the drives disconnect. So it could be power related. On temperature, I would put in a temperature probe and check it from the external probe. Some remote KVM solutions now include temperature probes. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Socket programming question
At 04:21 PM 11/14/2007, Andrew Falanga wrote: Hi, My question has to do with how someone would find out if a call to socket(2) actually produced a socket. I know that the API works, I've programmed with it many times, but is there a way to find out if 's' returned by socket(2) is actually valid in whatever kernel structure it is stored? I understand that I may have the process entirely mixed up. But it seems to me that the socket is somehow known to the kernel and I should be able to query the kernel somehow and discover if it is valid. Let me know if my question doesn't make sense as worded and I'll try to explain myself better. Another question related to this one, would someone in this list know where the source code is, in the system source tree, for the select call? Thanks, Andy Andy, It's been a while since I did socket programing, but the easiest test is to use a client application to contact the server side socket. Just be sure if you want to connect from another host you set the domain correctly in your socket call for a local socket on the same host or an internet socket to contact from another host. With internet sockets, these get added to the TCP stack, and their are kernel structures created too I'm sure, but I have no idea how to find those. Netstat will show sockets in use though. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: shell programming
At 11:46 AM 11/9/2007, Bill Banks wrote: I'm writing a backup script. I need to get the day of the week into a variable. How can I do it? I do this in ksh, but it should work in sh too: DATE=/bin/date TODAY=`$DATE +%m-%d-%Y` TIME=`$DATE +%H:%M:%S` echo Backups started $TODAY at $TIME -Derek -- --- Bill Banks 508-829-2005 Wachusett Programming Ourweb http://www.ourweb.net http://www.ourwebtemplates.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Memory problem
At 11:26 AM 11/7/2007, Mario Lobo wrote: On Wednesday 07 November 2007, Erik Trulsson wrote: On Wed, Nov 07, 2007 at 11:39:55AM -0300, Mario Lobo wrote: Hello; I'm running a qmailrocks install + DNS server here. Hosting 14 domains and their respective e-mail accounts. Everything seems to be working fine. The machine is: -- FreeBSD 6.2-STABLE #0: Mon Sep 10 14:15:16 BRT 2007 CPU: Intel(R) Core(TM)2 CPU 6700 @ 2.66GHz (2669.94-MHz K8-class CPU) Origin = GenuineIntel Id = 0x6f6 Stepping = 6 Cores per package: 2 real memory = 3488481280 (3326 MB) avail memory = 3362598912 (3206 MB) FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 -- When I turn the machine on/restart it, it starts off with around 2800 Mb free memory. I know that, in its course of work, a few of those processes do not properly return memory back to the system. The machine was last restarted exactly a week ago (last wednesday). Now 'top' shows me this: -- last pid: 17204; load averages: 0.00, 0.04, 0.06 up 5+21:00:50 11:18:58 135 processes: 1 running, 132 sleeping, 2 zombie CPU states: 0.6% user, 0.0% nice, 0.4% system, 0.2% interrupt, 98.9% idle Mem: 379M Active, 1915M Inact, 256M Wired, 119M Cache, 214M Buf, 415M Free Swap: 5120M Total, 5120M Free -- Here are my questions: Is this a normal thing to happen with memory in just one week? Yes, it is normal and nothing to worry about. Does the '1915M Inact' means zombie memory (non-returned)? No. 'Inact[ive]', 'Cache' and 'Free' can all be considered free memory in slighly different states. There are differences between them that can be important in some circumstances, but if you are just trying to determine if you have a memory leak somewhere they can be lumped together, Is there a manual garbage collector i could run? No. What is your advise on what method I could use to precisely track down what program(s) is(are) causing this? My advice is that you ignore it. It is nothing to worry about. Ok. Thanks Erik ! Pitty the majordomo cut out the .png file I sent. I have seen memory eaten up by running anti-virus and mail scanning software particularly if you are not bouncing spam. I would check your spam handling. -Derek Derek, what exactly do you suggest that I should check in the spam handling area ? I would look and see if you are getting a lot of spam to start deleting those emails. Often trying to reject or do more processing of them makes an infinite loop which can really drag a server down. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Memory problem
At 08:39 AM 11/7/2007, Mario Lobo wrote: Hello; I'm running a qmailrocks install + DNS server here. Hosting 14 domains and their respective e-mail accounts. Everything seems to be working fine. The machine is: -- FreeBSD 6.2-STABLE #0: Mon Sep 10 14:15:16 BRT 2007 CPU: Intel(R) Core(TM)2 CPU 6700 @ 2.66GHz (2669.94-MHz K8-class CPU) Origin = GenuineIntel Id = 0x6f6 Stepping = 6 Cores per package: 2 real memory = 3488481280 (3326 MB) avail memory = 3362598912 (3206 MB) FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 -- When I turn the machine on/restart it, it starts off with around 2800 Mb free memory. I know that, in its course of work, a few of those processes do not properly return memory back to the system. The machine was last restarted exactly a week ago (last wednesday). Now 'top' shows me this: -- last pid: 17204; load averages: 0.00, 0.04, 0.06 up 5+21:00:50 11:18:58 135 processes: 1 running, 132 sleeping, 2 zombie CPU states: 0.6% user, 0.0% nice, 0.4% system, 0.2% interrupt, 98.9% idle Mem: 379M Active, 1915M Inact, 256M Wired, 119M Cache, 214M Buf, 415M Free Swap: 5120M Total, 5120M Free -- Here are my questions: Is this a normal thing to happen with memory in just one week? Does the '1915M Inact' means zombie memory (non-returned)? Is there a manual garbage collector i could run? What is your advise on what method I could use to precisely track down what program(s) is(are) causing this? I am attaching a png graphic of this. Thanks, I have seen memory eaten up by running anti-virus and mail scanning software particularly if you are not bouncing spam. I would check your spam handling. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: 6.2 and random reboots
At 09:37 AM 11/5/2007, Darryl Hoar wrote: Greetings, I am trying to figure out why my freebsd 6.2 server has started randomly rebooting. I look at dmesg and see nothing out of the ordinary. Not sure if it is hardware or the OS. Ideas for troubleshooting greatly appreciated. -Darryl I would suggest you run GENERIC if you are not. Turn off any rc scripts you don't need. Run diagnostics on the hardware and memtest. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Help Failing Disk Problem
At 01:53 PM 11/5/2007, Sean Murphy wrote: I have a FreeBSD 6.2 Release box with a single ide that has user data and the FreeBSD OS on a hard disk that is failing. I need advice on the best way to clone the entire disk (or at least the data) onto a larger ide disk drive, then pull the failing disk and replace it with the clone. What is the best way in FreeBSD to do that? Thanks If you buy a new disk most disk manufacturer's have cloning software. However if you are having media failure errors it can be difficult to get the data off. You may be able to just get the data you need off this disk by copying to a new disk, or top tape, or a usb disk. If you know what data you need like: /etc /usr/local/etc /usr/local/data you may be better to just copy those trees off. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: 5.2.1 to 6.2 Migration.
At 11:56 AM 11/3/2007, Grant Peel wrote: Hi all, I thought I would ask the question before I do it the hard way 1. Can FreeBSD be upgraded from 5.2.1 to 6.2 ? if so ... 2. Can it be done through an ssh connection, or MUST I make the trip to the farm and do it from the console? -Grant I did a source upgrade and rebuild from 5.1 to 6.1 remotely. Read upgrading carefully after you pull down the new src though for any extra steps you might need to make. However, also be prepared to make the trip should the upgrade go awry. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: fsck failing
At 08:33 AM 10/30/2007, Dudley wrote: Note: If there's a more appropriate mailing list, please let me know. I've been running a FreeBSD 4.11 installation for a couple of years without issue. Unfortunately, one of the drives on the 3Ware Escalada 8500 RAID array died leaving the array in a degraded state. The drive likely died in an outage which also corrupted the filesystem. That said, the FreeBSD install is still able to boot until it attempts to mount the filesystem. During the boot process, I get the following error: Can't stat /dev/twed0s1a: Bad file Descriptor Can't stat /dev/twed0s1a: Bad file Descriptor /dev/twed0s1a: CANT CHECK FILE SYSTEM /dev/twed0s1a: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY It drops me in to single user mode allowing me to run fsck. If I run just fsck then, it runs successfully but doesn't check twed0s1a which means on reboot the problem is still there. If I force fsck on that partition by running `fsck /dev/twed0s1a` then I get the same errors as above. Please let me know what other steps I should take to get the system booting again. Thanks in advance, Your /etc/fstab has that filesystem marked for a later secondary fsck run, not the primary one. You can run fsck manually on any filesystem, just specify that on the fsck commandline. fsck works better when the system is in single user mode, on non-mounted filesystems. If fsck cannot fix errors, run diagnostics from the hard drive manufacturer on the hard drive(s) as they are likely failing. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: skip bad block in QIC-150 tar
At 02:10 PM 11/1/2007, [EMAIL PROTECTED] wrote: I'm trying to recover some files from a 5 yr old tar on a QIC-150 tape. Unfortunately, there's a bad block on the tape; tar barfs and quits when it gets to it: tar: Unrecognized archive format: Inappropriate file type or format I managed to get a complete directory listing using tar t on my first attempt, before the tape became unreadable; it had to work at it but apparently managed to eventually get the block read. I've cleaned the tape and retried multiple times, to no avail. I've tried omitting the directory containing the bad block, but that hasn't prevented it from terminating. Anyone know a way to get around this? Thanks, Gary I would try the other tar's (bsdtar, pax, etc.) and see what happens . . . Also check the man pages and see if there is a commandline option to continue after error. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: What's best way to copy a filesystem? [was: Re: slight emergency here...]
At 08:45 PM 10/28/2007, Gary Kline wrote: On Sun, Oct 28, 2007 at 06:34:22PM -0500, Jon Hamilton wrote: Gary Kline [EMAIL PROTECTED], said on Sun Oct 28, 2007 [03:02:03 PM]: }At any rate, how do i as root, single user, cp -rp all of /var to }elsewhere (/storage) and rmdir /var, them mkdir /var and copy }everything back?? I've forgotten the cpio magic command. } } The nutshelll of this posting could be: What's the best tool } to copy a /FILESYSTEM to /storage/FILESYSTEM? The best tool is the one you use successfully. If you're really talking about a whole filesystem, dump and restore may contain the least surprises in unusual situations: $ newfs /dev/whatever $ mount /dev/whatever /mnt $ cd /dev/whatever $ dump 0af - /old_filesystem | restore -rf - Then delete /mnt/restoresymtable when it's all done. Of course you can use tar, cpio, cpdup if you have it, or even cp. At different points in time historically some of those have had problems with some situations like sparse files, extra hard links, symlinks, etc. Seems like I'm running into inode problems I finally tar'd /var to a /temp fs, then forgot to do the newfs. So now I've got a fs panic. Hope it isn't a bad drive. thanks. gary I would run the manufacturer's diagnostics on the drive to be sure. Often drives will have a media issue SMART doesn't catch. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
{Disarmed} Re: What's best way to copy a filesystem? [was: Re: slight emergency here...]
At 06:02 PM 10/28/2007, Gary Kline wrote: On Sun, Oct 28, 2007 at 01:54:54PM -0800, Gary Kline wrote: Guys, I think I've found the reason for the intermittent rashes. Part of /var is bad, and fsck cannot allocate inoinfo to repair the damage. At any rate, how do i as root, single user, cp -rp all of /var to elsewhere (/storage) and rmdir /var, them mkdir /var and copy everything back?? I've forgotten the cpio magic command. The nutshelll of this posting could be: What's the best tool to copy a /FILESYSTEM to /storage/FILESYSTEM? I don't know if this is the best way, but is one I've done for years . . . cd srcdir ; tar -cf - . | (cd destdir ; tar -xpf -) which for your example would be: cd /FILESYSTEM; tar -cf - . | (cd /storage/FILESYSTEM ; tar -xpf -) then you would rm -rf /FILESYSTEM ln -s /storage/FILESYSTEM /FILESYSTEM -Derek -- Gary Kline [EMAIL PROTECTED] www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: resolver problems
At 06:47 PM 10/28/2007, jekillen wrote: Hello: I am still having resolver problems with my 6.2 system. It has shown up with trying to install ports from the ftp site. I discovered that there is no resolv.conf file, so I created one. The funny thing is if I ping one of my web sites with www.domainName.com ping can't resolve the address. but if I do actualHostName.domainName.com it works. Just for control test purposes I tried from a Mac OSX machine and was able to ping www.domainName.com. I even have my own DNS servers listed as servers to contact in resolv.conf To abbreviate this message, I am trying to get ports set up and working. This time I tried portsnap fetch and the site indicated as the source and mirrors could not be found. Any suggestions, help, advice is appreciated. I am going more to the existing material, but it obviously cannot anticipate this sort of problem literally. Thanks In Advance: Jeff K Sounds like a DNS problem. Make sure your /etc/hosts only defines the hostname for that machine and localhost. Check you have the correct order of hosts in /etc/resolv.conf, it is read top down. Check your /etc/nsswitch.conf hosts line which should be: hosts: files dns You may by mistake have left an entry in a hosts file, or have your DNS not forwarding correctly for unknown names. -Derek ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: reverse DNS resolution...
At 07:23 AM 10/23/2007, Eric F Crist wrote: On Oct 22, 2007, at 4:51 PMOct 22, 2007, Philip M. Gollucci wrote: Eric F Crist wrote: Hey folks, We're trying to get reverse DNS resolution for a block of IPs (private). We've had the 10.x network working great at the office for quite some time now, but I'm having a problem getting the 172.30.x network to work. Typing 'host ip' returns a valid result, however output from who, as well as other network services (IRC, apache) only see the IP. Is there something I'm missing? Thanks for the pointers! Well, your DNS needs to be authoritative for both forward and reverse. If you are trying to do this for less then a /24 block the zone files get messy quick because of the 8bit boundaries. You seem to be trying to do this for a /16. I'll bet you're missing the named.conf entries and related reverse zone files: Odds are you'll want to have zones: zone 1.30.172.in.addr.arpa { type master; file master/1.30.172.in.addr.arpa notify yes; } zone 255.30.172.in.addr.arpa { ;; or slave config since you'll have more than 1 ns type slave; file slave/255.30.172.in.addr.arpa; masters { x.y.z.a; }; } Or some larger splits of that. You're going to have give me a netmask for more help. /16 is the netmask, you already figured that one out. ;) As I already stated, if I do a host 172.30.x.x, I get a the correct reverse resolution. dig works as well. What isn't working is the reverse resolution in certain command outputs, etc. Maybe there is something missing here: == named.conf == zone 30.172.IN-ADDR.ARPA { type master; file master/vpn.rev; }; == vpn.rev == $TTL 86400 @ IN SOA snowball2.secure-computing.net root.secure- computing.net ( 1 ; Serial 21600 ; Refresh 1200; Retry 1209600 ; Expire 3600; TTL ) IN NS snowball2.secure-computing.net ; Static vpn ips go here. 21.1IN PTR user1.vpn. 25.1IN PTR user2.vpn. 29.1IN PTR user3.vpn. 33.1IN PTR user4.vpn. 37.1IN PTR user5.vpn. 41.1IN PTR user6.vpn. 45.1IN PTR user7.vpn. 49.1IN PTR user8.vpn. 53.1IN PTR user9.vpn. ; Auto-generate reverse dns for our dynamic block. $ORIGIN 0.30.172.in-addr.arpa. $GENERATE 2-254 $ PTR 172-30-0-$.vpn. For what it's worth, the hosts I'm testing have snowball2 listed as their primary DNS server. Again, host 172.30.1.21 successfully returns user1.vpn, etc. Just output in w and last, as well as certain services such as UnrealIRCd don't resolve these correctly. Thanks for the help folks! - Eric F Crist Secure Computing Networks You may need to check your /etc/nsswitch.conf on snowball, and any other DNS servers. Also be sure you are using the same DNS lookup order for the clients. I didn't see snowball's PTR record, so I assume it is correct and all servers find it correctly as the primary DNS. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Mentor for C self study wanted
At 04:24 PM 10/23/2007, Harald Schmalzbauer wrote: Am Dienstag, 23. Oktober 2007 22:24:54 schrieb Bill Moran: In response to cpghost [EMAIL PROTECTED]: On Tue, 23 Oct 2007 20:44:52 +0200 Harald Schmalzbauer [EMAIL PROTECTED] wrote: The first one was for example the attached code: Why does it segfault? Mailman ate the attachment... Can't see it here. I may be out of line, but I think if you're using FreeBSD as your learning platform, that it wouldn't be a problem to ask this list. Harald Schmalzbauer wrote: Am Dienstag, 23. Oktober 2007 21:43:52 schrieben Sie: Hello Aryeh, I'm willing to pay fair fees, but are you interested in micro payment ;) ? For other reasons I love micro payments. Serious, I'll have the one or other short question per week (I'm usually busy, just making spare time lessons from my book (UTC-1 spare time)). Just so I know what level to present on what is your background in CS and programming? CS?? I'm able to solve problems analytically, but I don't know any language really well. I know bourne shell, csh, pascal, and basic. And a tiny bit asm, but that's been on ZX81. Although, you'll have to include your code inline to get past the sanitizers. Thanks all, here was my example, just for completeness, I found mentors for my needs. Thanks a lot to all! #include stdio.h void main() { short nnote; // Numerischen Notenwert einlesen printf(Bitte numerischen Schulnotenwert eingeben: ); scanf(%d,nnote); switch (nnote) { case 1: printf(Die Note %d entspricht sehr gut.,nnote); break; case 2: printf(Die Note %d entspricht gut.,nnote); break; case 3: printf(Die Note %d entspricht befriedigend.,nnote); break; case 4: printf(Die Note %d entspricht ausreichend.,nnote); break; case 5: printf(Die Note %d entspricht mangelhaft.,nnote); break; case 6: printf(Die Note %d entspricht ungenügend.,nnote); break; default: printf(%d ist keine zulässige Schulnote!); } printf(\n); } P.S.: I found that declaring nnote as int soleves my problem, but I couldnÄt understand why. Another one was the result of default: nnote was -1077942208 instead of 9 for example. if you check the man page on scanf: d Matches an optionally signed decimal integer; the next pointer must be a pointer to int. You shouldn't try to put a short into an int. Always declare the correct size for variables. Your segv is because scanf was trying to put an int where it won't fit. You will get the same result if you go off the end of an array. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Linux samba server, Freebsd client
At 07:37 PM 10/19/2007, Jason Dobyns wrote: Hello, My smb server is run from a linux CentOS 5 machine. When I mount the share in Freebsd all the files are owned by root SMB Server permissions -rwxrwxr-x 1 httpd httpd21868 Oct 17 22:06 index.php Freebsd Client Share permissions -rwxr-xr-x 1 root wheel 21868 Oct 18 05:06 index.php I have the httpd user and group with matching UID and GID on the freebsd client. What do I have to do to get the permissions to come through. Do I need an option on the mount_smbfs command? smb.conf [global] workgroup = vlaze server string = storage1.blahblah.com encrypt passwords = True security = user smb passwd file = /etc/smbpasswd log file = /var/log/samba/log.%m socket options = IPTOS_LOWDELAY TCP_NODELAY dns proxy = No name resolve order = lmhosts host bcast bind interfaces only = True interfaces = eth1 hosts allow = ALL debug level = 1 create mask = 0777 directory mask = 0777 level2 oplocks = True read raw = no write cache size = 262144 read raw = yes write raw = yes log level = 3 # Default is 0 oplocks = yes # Default max xmit = 65535 # Default dead time = 15 # Default is 0 getwd cache = yes [vlaze] path = /opt/www writable = Yes validusers = smbuser Thank You, Jason Dobyns you can assign the user and group using: mount_smbfs -u uid, -g gid -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: reverse DNS resolution...
At 12:02 PM 10/22/2007, Eric F Crist wrote: Hey folks, We're trying to get reverse DNS resolution for a block of IPs (private). We've had the 10.x network working great at the office for quite some time now, but I'm having a problem getting the 172.30.x network to work. Typing 'host ip' returns a valid result, however output from who, as well as other network services (IRC, apache) only see the IP. Is there something I'm missing? Thanks for the pointers! - Eric F Crist Secure Computing Networks Do you have the reverse zones setup correctly? Are your DNS servers the first ones you query? -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Mails undelivered
At 09:10 AM 10/18/2007, Joel Muia wrote: Dear Reader I have FreeBSD 5.5 installed and configured as a firewall and as mail server in my network. Unfortunately, a consultant installed and configured before I joined the company. I am the system administrator however I do not know on how to support it. Currently, mails are not going. Only internal mails are be delivered. How do I troubleshoot? What services do I restart and what commands should I use. You need to find out more information before we can offer much help. You need to determine how and what mail software you are using. Look in /etc/rc.conf to see if you have sendmail_enable statements there, or something else (postfix, dovecot, etc.) You could be using a number of different software configurations. Once you determine what software your server is running, post that back to this thread and you can get more help. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]