scripting zfs send receive, but the script never exits cleanly
Hi all. Quick question for you. I've got a pair of freebsd 9 systems running zfs. i've got my primary system doing ZFS SEND each night to my secondary system for backups. I'm using a script I wrote to automate the process. I'm passing the zfs send receive through gnetcat as a buffer which increases the speed of the transfer quite a bit. The script is available here: http://pastebin.com/2suzs3wP My problem is, when I run this script it syncs just fine, but it never actually ends. It just sits there until I kill it. I would love to have this run as a scheduled cron job, but until I can get this to exit cleanly when it is done, that won't be an option. Here is the output I get when I run this: http://pastebin.com/q8hRzuVv Would really appreciate any advice you may have. If anyone has a cleaner/more efficient way of doing these incremental send/receives, that would be great too. Thanks, Brian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Crontabbing a Ruby script inside a screen
screen(1) is just going to fill a massive buffer, then eventually core. You can capture stdout/stderr to a file using script(1) instead. Its basically the same as: % nohup ./command 21 | tee -a ~/command.log ~BAS On Thu, 24 Jan 2013, Dwayne Henderson wrote: Hi, I run this Ruby + Sequel script inside a screen that records data from this live stream 24/7. But it tends to core dump every once in a while, and since I run it in a screen (so it's easy to check in on), I can't really scroll up to catch the error whenever it happens. So how do I crontab the screen with the Ruby s ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Brian
What security features, set freebsd above other operating systems? What are some high lights that you have for IPv4 and IPv6 routing? Why does freebsd handle the networking protocols differently than others, that makes it better? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Brian Blencoe
Hello I am a student, doing a presentation project on FreeBSD. I have been surfing your web site, getting some reading done. If you have any good ideas that I could include into my presentation, please email me. Thank You Brian Blencoe 910-470-7001 blenc...@gmail.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
odd phantom directory
Hi all, I ran into a rather odd issue this morning with my FreeBSD 9.0-Release system running ZFS v28. This system serves as an RSYNC host which all of our other systems back up to each night. Last night, I started getting the following error: file has vanished: /backup/ldap1/etc/pki Now, usually when I get a file has vanished error during an RSYNC run, it indicates that the source file/directory on the system that is sending the rsync backup has been deleted or moved before rsync got a chance to actually send it. That doesn't appear to be the case here. /backup/ldap1/etc/pki is the destination directory on my Freebsd/ZFS server. I take a look in /backup/ldap1/etc on my Freebsd server and the pki subdirectory is no longer listed. Ok, so I run mkdir /backup/ldap1/etc/pki and get the following error: mkdir: /backup/ldap1/etc/pki: File exists. Odd Just to double check, I run ls -la /backup/ldap1/etc/pki and get the following: ls: /backup/ldap1/etc/pki: No such file or directory Alright, how about a simple touch? touch: /backup/ldap1/etc/pki: No such file or directory Fine. Maybe there is something funky about the /backup/ldap1/etc directory that is preventing me from doing any of this. mkdir /backup/ldap1/etc/pki2. That works just fine. What the heck? Looking at the output of my daily security run, I see the following: Checking setuid files and devices: find: /backup/ldap1/etc/fonts/conf.avail: No such file or directory find: /backup/ldap1/etc/fonts/conf.d/30-metric-aliases.conf: No such file or directory find: /backup/ldap1/etc/pki: No such file or directory So, it looks like there are a few files/directories in /backup/ldap1/etc that were affected. Looking through dmesg and /var/log/messages, I don't see anything out of the ordinary. I'm running a zpool scrub now just to be on the safe side, but I haven't seen any checksum or other errors so far. Any thoughts as to what might be causing this? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE: odd phantom directory
It looks like this may be the same issue as reported here: http://lists.freebsd.org/pipermail/freebsd-current/2011-October/027902.html but that thread seems to have just died off about a year ago. Zfs scrub is still running, but not reported errors so far. I'm going to run a zdb -ccv backup once that is done. From looking over this other thread, I tried just a simple ls /backup/ldap1/etc and /backup/ldap1/etc/pki does show up if I do ls without any arguments. If I do an ls -l then it doesn't show up. -Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Brian Gold Sent: Friday, November 16, 2012 9:37 AM To: freebsd-questions@freebsd.org Subject: odd phantom directory Hi all, I ran into a rather odd issue this morning with my FreeBSD 9.0-Release system running ZFS v28. This system serves as an RSYNC host which all of our other systems back up to each night. Last night, I started getting the following error: file has vanished: /backup/ldap1/etc/pki Now, usually when I get a file has vanished error during an RSYNC run, it indicates that the source file/directory on the system that is sending the rsync backup has been deleted or moved before rsync got a chance to actually send it. That doesn't appear to be the case here. /backup/ldap1/etc/pki is the destination directory on my Freebsd/ZFS server. I take a look in /backup/ldap1/etc on my Freebsd server and the pki subdirectory is no longer listed. Ok, so I run mkdir /backup/ldap1/etc/pki and get the following error: mkdir: /backup/ldap1/etc/pki: File exists. Odd Just to double check, I run ls -la /backup/ldap1/etc/pki and get the following: ls: /backup/ldap1/etc/pki: No such file or directory Alright, how about a simple touch? touch: /backup/ldap1/etc/pki: No such file or directory Fine. Maybe there is something funky about the /backup/ldap1/etc directory that is preventing me from doing any of this. mkdir /backup/ldap1/etc/pki2. That works just fine. What the heck? Looking at the output of my daily security run, I see the following: Checking setuid files and devices: find: /backup/ldap1/etc/fonts/conf.avail: No such file or directory find: /backup/ldap1/etc/fonts/conf.d/30-metric-aliases.conf: No such file or directory find: /backup/ldap1/etc/pki: No such file or directory So, it looks like there are a few files/directories in /backup/ldap1/etc that were affected. Looking through dmesg and /var/log/messages, I don't see anything out of the ordinary. I'm running a zpool scrub now just to be on the safe side, but I haven't seen any checksum or other errors so far. Any thoughts as to what might be causing this? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE: odd phantom directory
Ok, really confused now. I just ran an rm -rf /backup/ldap1, which errored out when trying to rm /backup/ldap1/etc/pki, /backup/ldap1/etc/fonts/conf.d/30-metric-aliases.conf, and /backup/ldap1/etc/fonts/conf.avail. Everything else got purged correctly, except for those phantom files. I then reran my rsync script, which DIDN'T error this time, shipped all the files over, and I can now read those phantom files/folders just fine. -Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Brian Gold Sent: Friday, November 16, 2012 11:23 AM To: freebsd-questions@freebsd.org Subject: RE: odd phantom directory It looks like this may be the same issue as reported here: http://lists.freebsd.org/pipermail/freebsd-current/2011-October/027902.html but that thread seems to have just died off about a year ago. Zfs scrub is still running, but not reported errors so far. I'm going to run a zdb -ccv backup once that is done. From looking over this other thread, I tried just a simple ls /backup/ldap1/etc and /backup/ldap1/etc/pki does show up if I do ls without any arguments. If I do an ls -l then it doesn't show up. -Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Brian Gold Sent: Friday, November 16, 2012 9:37 AM To: freebsd-questions@freebsd.org Subject: odd phantom directory Hi all, I ran into a rather odd issue this morning with my FreeBSD 9.0-Release system running ZFS v28. This system serves as an RSYNC host which all of our other systems back up to each night. Last night, I started getting the following error: file has vanished: /backup/ldap1/etc/pki Now, usually when I get a file has vanished error during an RSYNC run, it indicates that the source file/directory on the system that is sending the rsync backup has been deleted or moved before rsync got a chance to actually send it. That doesn't appear to be the case here. /backup/ldap1/etc/pki is the destination directory on my Freebsd/ZFS server. I take a look in /backup/ldap1/etc on my Freebsd server and the pki subdirectory is no longer listed. Ok, so I run mkdir /backup/ldap1/etc/pki and get the following error: mkdir: /backup/ldap1/etc/pki: File exists. Odd Just to double check, I run ls -la /backup/ldap1/etc/pki and get the following: ls: /backup/ldap1/etc/pki: No such file or directory Alright, how about a simple touch? touch: /backup/ldap1/etc/pki: No such file or directory Fine. Maybe there is something funky about the /backup/ldap1/etc directory that is preventing me from doing any of this. mkdir /backup/ldap1/etc/pki2. That works just fine. What the heck? Looking at the output of my daily security run, I see the following: Checking setuid files and devices: find: /backup/ldap1/etc/fonts/conf.avail: No such file or directory find: /backup/ldap1/etc/fonts/conf.d/30-metric-aliases.conf: No such file or directory find: /backup/ldap1/etc/pki: No such file or directory So, it looks like there are a few files/directories in /backup/ldap1/etc that were affected. Looking through dmesg and /var/log/messages, I don't see anything out of the ordinary. I'm running a zpool scrub now just to be on the safe side, but I haven't seen any checksum or other errors so far. Any thoughts as to what might be causing this? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: bad root shell in /etc/passwd
On 9/26/2012 9:06 PM, Gary Aitken wrote: Probably not. Just boot a livecd that supports your HBA and FS, mount your Root FS, and: # vipwd -d /mnt/rootfs or mount /usr as well and: # chroot /mnt/rootfs usermod -s /usr/local/bin/bash root guidance? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- Brian A. Seklecki bsekle...@probikesllc.com CE-Pro Bikes, LLC 412-378-3823 (m) PGP Key Available Upon Request ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: have desktop on freebsd
Pcbsd is always an option. On Sep 20, 2012 2:50 AM, saeedeh motlagh saeedeh.motl...@gmail.com wrote: thank you every body for your answers. i understand that my garphic card is NVIDIA not intel therefore i installed nvidia driver from port. now it seems that everything is ok. there is no error in Xorg.log file and when i run startx command, no errors occurred. but when i restart my system,i don't have desktop yet. i don't know what to do and search for what, because there is no error. please tell me if you have any idea about it. thanks On 9/19/12, Bernt Hansson b...@bananmonarki.se wrote: 2012-09-19 07:23, saeedeh motlagh skrev: thanks Bernt, i deinstall it and then try startx. startx works and displays graphical page. but when i restart me system i do not have desktop yet. you know, startx displays graphical page when fbdev is installed too. please let me know if you have any idea or hint that can solved my problem becuase i don't have any idea anymore. thanks Try this; cd /usr/ports/x11-drivers/xorg-drivers make rmconfig Then when you run make double check you do not have fbdev marked. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
FreeBsd modules
Hi, I have a watchguard firewall v80 which I’ve decided to amend it to PFSense based on freebsd. So far I’ve installed PFSense and everything is working accordingly. This firewall has 2x onboard nic cards and a PCI quad nic, as per attached photo. The onboard nics can be recognized however the PCI card is not being recognised, and the strange thing is that both onboard and the PCI uses the same chipset Intel 82559er Ethernet. How can I amend changes in freebsd modules so that the PCI card can be recognised. Usually in other distros modules can be located in /etc/module however I cannot find where the modules are located in freebsd. Can I have some assistance. Regards, Brian Stivala ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Building a FreeBSD desktop.
The pcbsd project which uses FreeBSD is another option. On Aug 20, 2012 11:31 PM, d...@safeport.com wrote: On Mon, 20 Aug 2012, James D. Parra wrote: I was looking to build a desktop to learn FreeBSD and was wondering if there is a list of parts to build one or to just look at the hardware comparability list? I just don't want to order wrong parts. If don't want to make the full commitment to building a desktop, a good way to learn about FreeBSD is to install within a virtual machine. Either VMWare or VirtualBox will serve you well. If you have a system you want to try you can also check out http://laptop.bsdgroup.de/**freebsd/index.htmlhttp://laptop.bsdgroup.de/freebsd/index.html . __**_ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/**mailman/listinfo/freebsd-**questionshttp://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-** unsubscr...@freebsd.org freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how to speed up port make??
You could use pkg_add -r xorg to get it and all of its dependencies installed. I usually use that, in combination with ccache to speed up compiles called by portupgrade. Brian On Jul 25, 2012 8:38 AM, Mr U mru...@yahoo.com wrote: hi is it possible to speed up port make ?? i want to install openbox and xorg on a Pentium 4 and 2gb ram, compiling xorg takes about 2 hours thank you all mru Sent from Yahoo! Mail on Android ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Sendmail and Postfix
During subsequent system upgrades, of you build from source, you should watch out for thus during the mergemaster piece. Brian On Jun 22, 2012 11:44 AM, Matthew Seaman matt...@freebsd.org wrote: On 22/06/2012 19:19, Walter Hurry wrote: It seems that Sendmail is embedded somehow in the base system. What is the 'approved' way to get rid of /usr/bin/mailq? Or better, remove Sendmail? You don't need to remove the base system sendmail. All you need to do is set up /etc/mail/mailer.conf properly -- and installing the postfix port should do that for you -- and then any reference to /usr/sbin/sendmail, /usr/bin/mailq, usr/bin/hoststat etc. will run postfix instead. It's really very nicely done. See mailer.conf(5) Cheers, Matthew PS. Alright, yes. You can prevent sendmail from being built as part of the base system by defining 'WITHOUT_SENDMAIL=yes' in /etc/src.conf, but this supposes that you want to build the system yourself, rather than using, say, freebsd-update(8). See src.conf(5) and read in /usr/src/UPDATING and the Handbook about the procedure for building the system from source. -- Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: (Free 7.2) su -l didnt prompt password.Is it possbile?
I have only seen thuis after a source upgrade where mergemaster wants to remove the passwd. Has a source upgrade been done recently? Brian On Jun 18, 2012 7:26 AM, Budnev Vladimir vladimir.bud...@gmail.com wrote: 18.06.2012 18:02, Mike Tancsa написал: On 6/18/2012 9:31 AM, Budnev Vladimir wrote: And It looked such way: %su -l Before you enter this command, post the output of id Unfortunately, we can not flashback or reproduce that step now, cause we'v hurried and changed root password to avoid such strange free logins. And changing it back didnt change a thing. It was...and't went. We had only buffered console output :( But mb you can point in what case there is possibility to make su -l without any prompt. I suppose you mean that user has gid=0 or smthng like that but it hasn't. And as i mentioned changin root password to another and backwards doesn't allow to reproduce discribed behaviour. ---Mike __**_ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/**mailman/listinfo/freebsd-**questionshttp://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-** unsubscr...@freebsd.org freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
P5-FuzzyOcr port
Pkg_add -r can't find a package for this; I presume this is deliberate because of the unmaintained status of fuzzyocr? Brian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: P5-FuzzyOcr port
I was migrating from v7 to v8 when I saw this a few nights ago. The upgrade was going speedily well till I hit that. Like I said I was able to get through it by building the port. On Jun 13, 2012 12:25 AM, Matthew Seaman m.sea...@infracaninophile.co.uk wrote: On 13/06/2012 07:17, Brian W. wrote: Pkg_add -r can't find a package for this; I presume this is deliberate because of the unmaintained status of fuzzyocr? Not directly. As many pkgs as possible are built from ports, irrespective of who the maintainers are. An unmaintained port is however less likely to have any issues attended to promptly. If you want to see exactly why no pkg exists, use portsmon: http://portsmon.freebsd.org/portoverview.py?category=mailportname=p5-FuzzyOcr and the reason is that the graphics/giflib port -- one of the dependencies -- failed to work properly. On 9.0-RELEASE it shows the problem is to do with XML validation, and there's an open PR about that which is assigned to the graphics/giflib maintainer. There should be a fix fairly soon. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Version Selection
There are two advantages that come to mind quickly. With amd64 you could install more than 4 gigs of ram and have it recognized. With i386 if you need to do this pae would need to be installed, which FreeBSD doc pages say is if beta quality. I bet that amd64 will get more dev attention. On Jun 10, 2012 11:21 PM, Doug Hardie bc...@lafn.org wrote: I have a number of servers that I am about to upgrade to FreeBSD 9.0. The processors all have the ability to run i386 or amd64. The machines all have 2 GB memory which is more than adequate for their intended use. Some of these are replacing very old equipment that is being retired and did not have the ability to run amd64 so everything has been i386 till now. The question is what are the advantages or disadvantages of switching to amd64? I have tested all the various applications on amd64 and they work fine. Is there going to be any benefit down the road in a few years to being on amd64? If so, now would be the time to switch. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Booting from ZFS with serial console
Hi all. I am in desperate need of some help with ZFS (maybe GPT) and serial consoles. I use 19200 for my console speed for everything, so I recompiled the boot blocks using BOOT_COMCONSOLE_SPEED=19200 in /etc/make.conf. I then ran this to install new blocks to my two drives in the mirror pair: gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ad4 gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ad6 If the keyboard is plugged in when the machine starts up, all is good. With the keyboard unplugged, I get a small error dump followed by BTX Halted. I tried this with the files from the install DVD, and the same thing happens...BTX Halted without a keyboard plugged in. In both cases, /boot.config has : -P -S19200. I tried changing it to -Dh -S19200, and I get the BTX Halted on every boot now. Can someone please shed some light on why it's crashing like this? I'm fairly confident this behavior is a bug and not by design...but I can't believe that this bug would not be noticed up until now. Thanks! --Brian -- _-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_ Brian McCann I don't have to take this abuse from you -- I've got hundreds of people waiting to abuse me. -- Bill Murray, Ghostbusters ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how to allow by MAC
I would ask what problem do you want to solve here; is it preventing a userjust from getting out unless they are using their assigned address, or something else? On Jun 10, 2012 8:16 PM, Bill Yuan byc...@gmail.com wrote: Hi Lan, Thanks for your reply, I am reading some old emails which you sent in 2008 while other place asked a same question as mine, On Mon, Jun 11, 2012 at 1:53 AM, Ian Smith smi...@nimnet.asn.au wrote: In freebsd-questions Digest, Vol 418, Issue 18, Message: 1 On Sun, 10 Jun 2012 17:43:39 +0800 Bill Yuan byc...@gmail.com wrote: how to allow by MAC in ipfw currently i set the rule like below 1 allow ip from any to any MAC any to MAC Address 1 1 allow ip from any to any MAC MAC Address 1 any 2 deny all from any to any i want to only allow the mac address to go through the freebsd firewall, but I found it is not working on my freebsd but it works on pfsense! so maybe that means the environment is not the same ? and how to setup the ipfw properly to support this ? Bill, you did get some good clues in the earlier thread, but it's not clear if you took note of them. There's also been some confusion .. Firstly, read up on layer2 (ethernet, MAC-level) filtering options in ipfw(8). Thoroughly, several times, until you've got it. Seriously. After enabling sysctl net.link.ether.ipfw=1 (add it to /etc/sysctl.conf) ipfw will be invoked 4 times instead of the normal 2, on every packet. Read carefully ipfw(8) section 'PACKET FLOW', and see that only on the inbound pass invoked from ether_demux() and the outbound pass invoked from ether_output_frame() can you test for MAC addresses (or mac-types); the 'normal' layer3 passes examine packets that have no layer2 headers. You could just add 'layer2' to any rules filtering on MAC addresses, and omit MAC addresses from all layer 3 (IP) rules, but I'd recommend using a method like shown there to separate layer2 and layer3 flows early on: # packets from ether_demux ipfw add 10 skipto 1000 all from any to any layer2 in # packets from ip_input ipfw add 10 skipto 2000 all from any to any not layer2 in # packets from ip_output ipfw add 10 skipto 3000 all from any to any not layer2 out # packets from ether_output_frame ipfw add 10 skipto 4000 all from any to any layer2 out So at (eg) 1000 and 4000 place your incoming and outgoing MAC filtering rules (remembering the reversed order of MAC addresses vs IP addresses, and to allow broadcasts as well), pass good guys and/or block bad guys, then deal with your normal IPv4|v6 traffic in a separate section(s). Or you could just split the flows into two streams, one for layer2 for your MAC filtering, the other for layer3, ie the rest of your ruleset. HTH, Ian [please cc me on any reply] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
upgrade from 7-stable to 8-stable
It is time to do the above for me. I have done several upgrades within the same major version but have not done a version hop yet. Aside from extra paranoia about backups and the need to rebuild all ports, are there other gotchas to watch out for? I am going to try it on a test VM system first. Brian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: kde4 on 8.3 and laptop
On May 29, 2012 10:28 PM, Gary Aitken free...@dreamchaser.org wrote: On 05/29/12 22:15, Jim Pazarena wrote: I had kde3 running just fine on 8.2 on my laptop. I have now installed 8.3 -and- kde4 on my laptop, and the kde system will not work as expected. when I type kdm (which is at /usr/local/kde4/bin/kdm) I get the expected login screen (however the mouse dies), and after I login, all I get is a small cli window in the top left corner. The mouse has gone dead, and the keyboard doesn't respond, altho there is a prompt in the cli window. All I can do at this point is hold the power button in to reboot. If I do not try running kdm, the normal cli works 100%, the ethernet works, and the mouse always seems alive (altho in the cli the mouse is of no value). Suggestions would be very appreciated. I don't know about the mouse dieing. I'm running 9.0 and I've seen that once or twice when first setting up X. You don't need to reboot. Do altFn to switch to a different vty. Log in on that vty, do a ps to find the process you used to start kdm, (ps -ax | grep kdm) and kill -TERM that process. That should get you back to a regular prompt on the original vty. Do altF1 to go back to that screen. Gary Ctr-alt-shift-backspace has also killed many a stuck x session. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: User can't login but /etc/(master.)passwd OK
On 5/9/2012 8:08 AM, Michael Sierchio wrote: On Wed, May 9, 2012 at 8:03 AM, Robert Bonomibon...@mail.r-bonomi.com wrote: Details are *IMPORTANT*grin What's the user's shell in the password file, and does that shell: exist? executable? In the /etc/shells file? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org The OP probably ought to look at /var/log files as well to see if anything is revealed there. Access can be denied for reasons other than passwords. BW ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
cvsup10.freebsd.org seems broken
Updating ports via cvsup against cvsup10.freebsd.org has shown no new files for at least a few days, if not longer (can't remember when I last attempted, but not more than a few weeks). I switched to cvsup4 (which was just as close) and got a bunch of new updates. Someone may want to check this out. Brian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
freebsd 8.2 lockups on Dell T610 w/ Perc 6/i
I have been running 8.2 Release patched with ZFS v28 support (via http://mfsbsd.vx.sk) since early September. In that time, we have gotten multiple errors every day regarding mfi timeouts (mfi0: COMMAND 0xff80007ba5b8 TIMEOUT AFTER 32 SECONDS) and we have experienced a full system lockup every 2-4 weeks. When the system locks up it will still respond to pings, but is totally unresponsive via ssh or directly from the console. After hard booting the system, everything comes back up without any issues. I have come across other users who have experienced similar issues (http://lists.freebsd.org/pipermail/freebsd-questions/2011-February/227650.html). In their cases, they were able to resolve the issue by disabling C-States, Turbo Mode, and setting the bios to Maximum Performance. We have made these changes and ensured that all of our device's firmware are up to date. We are still experiencing the issue however. Fortunately, iDrac continues to work during the lockup, so we have been able to power-cycle the server remotely, but it is still a big pain. If anyone has any suggestions, I would be very appreciative. Brian Gold System Administrator Bard College at Simon's Rock ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Static IP on a Bridge
Also, what MAC address does the DHCPREQUEST packet appear to be sourced from (from the view of your DHCP server, or on the wire somewhere between the two (SPAN PORT)) ~BAS This sounds familar. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: KVM - FreeBSD Network Problem
What can be the problem? Any suggestion? Show us: ifconfig -a arp -an netstat -rn netstat -i netstat -s Are other KVM guests on this hypervisor working? Are you briding or routing/NAT from your hypervisor? ~BAS ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: ICMP redirects and FreeBSD
On Sat, 17 Sep 2011, Brett Glass wrote: Here's a networking question: Does FreeBSD generate and accept ICMP redirects? Is it controllable via tuneables? How long do routing tables $ sysctl -d net.inet.ip.redirect net.inet.ip.redirect: Enable sending IP redirects Accepting them sounds like the job of a userland routing daemon. Only a few unsound routing/network topology configurations really depend on redirects these days; They can't be trusted because they can't be authenticated? ~BAS generated by ICMP redirects last? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: CARP on 9.0 (was no subject)
How about: %sudo netstat -s carp ...on both machines. A few years ago I submitted (or maybe it was Steve Polyack) a patch to add debugging to CARP, not sure if it ever got commited. Need-more-Cisco'sih-Debugging. ~BAS On Fri, 26 Aug 2011, Patrick Lamaiziere wrote: Le Fri, 26 Aug 2011 15:26:28 +, Johan Hendriks jo...@double-l.nl a ?crit : I am trying to set up CARP under 9.0 ... Also with a higer value like advskew 200 or 254 the role of the servers stays the same. Ok, there is something wrong so. Did you check that the sysctl net.inet.carp.suppress_preempt is equal to zero ? If yes, I don't have any more idea. Regards. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD reports incorrect amount of memory
trying to use memory that isn't there? How do I debug/fix this? Just curious, what was memtest86+ report? Can you install dmidecode(8) from /usr/ports/sysutils/dmidecode I'd be very suprised if GCC started misbehaving during compile ~BAS Didn't find anything with google. ___ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Link and network level in the tcp/ip stack
On 5/7/2011 6:41 PM, Erik Nørgaard wrote: So the question is which behaviour is correct, recommended or accepted? Stripping the link layer and reply according to the network layer, or keeping the link layer? This is the way it in every TCP/IP stack out there. The routing decision for the reply IP packet of the ICMP message is made independently of the upper-OSI-layer TCP state. In this instance, its a bit inconvenient for you, but having these layers abstracted makes for incredible flexibility in TCP/IP; the same thinking as small POSIX utilities work independently is more flexible. -- Brian A. Seklecki bsekle...@probikesllc.com CE-Pro Bikes, LLC 412-378-3823 (m) PGP Key Available Upon Request ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Quick question about sound drivers (esp. snd_hda)
It seems to me that under /dev, you can have the following sound-related device files: dspX dspX.Y (among others) I'm having some trouble getting my sound to work (Dell Inspiron E1705/Inspiron 9400 with Sigmatel STAC9220 codec). I've read the manpages for snd and snd_hda (which is the appropriate driver), and increased the verbosity of the drivers and read the kernel log and /dev/sndstat, but I still can't quite wrap my head around everything. What I'm wondering is: what exactly is the meaning of X and Y above? I'm assuming that X comes from the association numbers in the snd_hda driver, but I could be wrong. Please correct me! Thanks, Brian Waters ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Quick question about sound drivers (esp. snd_hda)
Yeah, I have tried all the basic stuff. At this point, I've basically accepted that solving the problem on my machine is going to involve a whole bunch of technical stuff that I don't have the patience for - reading the HDA spec and the codec datasheet, reading the driver code, and making changes to the driver and default settings where necessary. (The hardware does work fine with the Linux kernel.) So yeah... that's probably never going to happen. I'm still wondering where the numbers in the names for the device special files come from. And thanks, Frank. - BW On Fri, Mar 11, 2011 at 6:31 PM, Frank Shute fr...@shute.org.uk wrote: On Fri, Mar 11, 2011 at 03:29:44PM -0500, Brian Waters wrote: It seems to me that under /dev, you can have the following sound-related device files: dspX dspX.Y (among others) I'm having some trouble getting my sound to work (Dell Inspiron E1705/Inspiron 9400 with Sigmatel STAC9220 codec). I've read the manpages for snd and snd_hda (which is the appropriate driver), and increased the verbosity of the drivers and read the kernel log and /dev/sndstat, but I still can't quite wrap my head around everything. What I'm wondering is: what exactly is the meaning of X and Y above? I'm assuming that X comes from the association numbers in the snd_hda driver, but I could be wrong. Please correct me! Thanks, Brian Waters Have you tried setting the default unit: # sysctl hw.snd.default_unit=1 If that works, you can make it permanent with: # echo hw.snd.default_unit=1 /etc/sysctl.conf If it doesn't, you have to post the output of: $ cat /dev/sndstat Make sure your volume is turned up: mixer(8) HTH. Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Best Laptop to buy for Freebsd Without OS?
snip After deciding I could not really buy a computer locally, I ordered my latest machine from Freedom Included, Inc from in the US. http://freedomincluded.com/product/lemote-yeeloong/ It is a MIPS-based subnotebook shipping with gNewSense (Linux distro). I don't think it is what the OP was looking for since it won't even run Windows without qemu (3hour+ compile for all targets). It is also a relatively small machine (netbook size). I am also not sure if the wireless would be supported in freeBSD. freedomincluded@freedomincluded:~$ lsusb Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 003: ID 0bda:8189 Realtek Semiconductor Corp. RTL8187B Wireless 802.11g 54Mbps Network Adapter Bus 004 Device 002: ID 0bda:0158 Realtek Semiconductor Corp. USB 2.0 multicard reader Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub (Camera not listed) Regards, James Phillips I highly doubt the OP wants a Yeeloong. I have two (and cannot recommend Dan enough, he's a very cool guy) and I love them, both running OpenBSD. They don't run FreeBSD, kfreebsd-yeeloong notwithstanding (it was a GSoC project), however the wireless would work just fine, it's a urtw(4), which has been supported since 8.0. Actually, everything on the computer *would* work if FreeBSD was ported to it, but this is a non-trivial task and simply isn't going to happen until there are people willing to make it happen. With that said, the Yeeloong is not a good recommendation for anyone, with the exception of someone who wants to buy a nascent, possibly (hopefully) emerging architecture, to play with or to port software. Or someone who cares that much about free software and doesn't care about the limitations of the architecture. This isn't what the OP wants. ~Brian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Best Laptop to buy for Freebsd Without OS?
3) Buy a machine with the base Win 7 Home installed, decline the license, and request a refund. Be prepared to waste significant time on this, but it can be done. IANAL, but I have been informed by several lawyers that you cannot do this. The Windows 7 EULA, when preinstalled on a machine, states that the agreement is between you and the company selling you the computer, and By using the Software, you accept these terms. If you do not accept them, do not use the software. Instead, contact the manufacturer or installer to determine its return policy. You must comply with that policy, which might limit your rights or require you to return the entire system on which the software is installed. The major OEMs will say OK, then you must return the computer, and you have no option but to comply. This is true for the USA. If you want no-OS laptops, try Puget Systems www.pugetsystems.com or PCs for Everyone www.pcsforeveryone.com HTH ~Brian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Best Laptop to buy for Freebsd Without OS?
Those links both sport some pretty expensive prices. My comparable ASUS cost about half that, and came with Windows 7 installed (which I simply erased). Are those prices for real? -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com Oh, I have no doubt they're for real. That's the problem with smaller OEMs. You can't live on razor thin profit margins. ZaReason www.zareason.com also has no-OS options (they're a Linux vendor). Again, prices aren't the cheapest. I personally buy my laptops by going to Staples, Circuit City, Best Buy, etc. with the latest OpenBSD-current to check its dmesg (and I highly recommend this) and blasting Windows off the HD as soon as I get home, but the OP asked for no-OS laptops. ~Brian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: BSD Magazine PDFs
That looks right. BSDMag was a quarterly prior to 2010 and started in the middle of 2008, from what I remember. And they missed a month in 2010. ~Brian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Problem with freebsd-update on 7.3-RELEASE
Konstantin Vasilyev wrote: Hi all! I have installed %uname -a FreeBSD ota2.cellnetrix.com 7.3-RELEASE-p4 FreeBSD 7.3-RELEASE-p4 #3: Tue Jan 25 19:19:34 MSK 2011 kvasi...@ota2.cellnetrix.com:/usr/obj/usr/src/sys/GENERIC i386 I have @dailyfreebsd-update cron in root's crontab. Why does freebsd-update mail me the following? [...] Who can give me ideas what's happening? Have you checked the man page for freebsd-update(8) ? cron Sleep a random amount of time between 1 and 3600 seconds, then download updates as if the fetch command was used. If updates are downloaded, an email will be sent (to root or a different address if specified via the -t option or in the configuration file). Sounds exactly like the expected behavior to me. So, the cron subcommand only does the 'fetch' part of freebsd-update. You'll still need to run 'freebsd-update install' to actually install the updates. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Problem with freebsd-update on 7.3-RELEASE
Konstantin Vasilyev wrote: I know about how freedsd-update work. I use for a long time. But I don't understand why is freebsd-update going to update FreeBSD ota2.cellnetrix.com 7.3-RELEASE-p4 FreeBSD 7.3-RELEASE-p4 to The following files will be updated as part of updating to 7.3-RELEASE-p4:... Ah, I see the problem now. The only thing I can think of is that your kernel and world might be out of sync, but if you're used to freebsd-update that seems unlikely. What's the output of 'freebsd-update IDS' ? I've had luck running that to see what freebsd-update thinks is going on with the system. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
USB Stack/# of bytes to read?
All, I have a couple of quick questions about the USB stack in 8.x that I'm hoping someone with a bit more experience than I can answer. I am currently working on a device driver for a Velleman K8055 board. Basically, it does digital and analog I/O under the control of a PC via USB. I've got the basic driver working fine, and I'm moving data back and forth without issue. What I'd like to be able to do, however, is poll the driver to see how much data is sitting in the input buffer, or at least see how many packet/buffers are waiting. Looking through the control structures, it appears that something like sc-fifo.fp[USB_FIFO_TX]-used_q.ifq_len would be the right field, but it never appears to be set anywhere (and is always 0). Using something like USB_IF_POLL() on the used_q suggests there is something to write, but not how much. On a similar line of thinking, how about flushing the queue entirely? Should I call usb_fifo_reset() directly? Or should I just reimplement the logic? -B ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: /etc/rc.d/netif em interfaces
On Wed, Dec 1, 2010 at 11:15 AM, Brian McCann bjmcc...@gmail.com wrote: On Wed, Dec 1, 2010 at 10:51 AM, Brian McCann bjmcc...@gmail.com wrote: This isn't a Dell PoweEdge, but at least this is two platforms it's happening on now. Strangely, my VMWare virtual machines that use the em driver do not have this problem. TSO is disabled. I just tried adding up to the $ifconfig_emX lines in rc.conf, and it didn't help. What I discovered (and I'm still playing with a bit), is that it has to do with checksum offloading. If you run ifconfig emX -rxcsum, the interface comes back to life. I just added -rxcsum to the $ifconfig_emX lines in rc.conf, and I can run /etc/rc.d/netif restart now, and the NIC continues to work fine. I tried emailing the folks @ Intel that are mentioned in the man page for the em driver, but the mail bounced... --Brian -- Brian (and everyone else reading the thread), I just found this...the patch was submitted some time ago, but somehow didn't make it into 8.1. http://www.freebsd.org/cgi/query-pr.cgi?pr=141843 . I'm trying it now. I'll keep you posted. --Brian So, the patch didn't work against 8.1-RELEASE...it wouldn't compile since there were some new files in the driver package. So, I checked out the e1000 driver from HEAD and put it in my src tree (in addition to some supporting files that were necessary), and compiled that. I went through the SVN notes for the e1000 files, found the SVN version number, and updated all the files listed in the commit. Here's the link: http://svn.freebsd.org/viewvc/base?view=revisionrevision=209616 . Once I installed the new kernel module, all was well...no more problems. Hopefully this will be included in 8.2-RELEASE. Thanks, and good luck to all! --Brian -- _-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_ Brian McCann I don't have to take this abuse from you -- I've got hundreds of people waiting to abuse me. -- Bill Murray, Ghostbusters ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
/etc/rc.d/netif em interfaces
I'm having an interesting problem on a fresh 8.1-RELEASE1 install. I'll start by saying this didn't happen on 7.1 on the same exact machine. I've been fighting with this for 2 days now and have come up with no answers on my own, so I'm hoping one of you guys can have some insight here. When I run /etc/rc.d/netif restart (also happens with a stop / start) , I can no longer get to the server over the network. When I do a packet capture on my workstation, it looks like it's MAC address changed somehow. The first two bytes of the address are different. For example, the real MAC is 00:15:17:1b:cf:7a , but I'll see the replies from a MAC of 02:67:17:1b:cf:7a. After each run of /etc/rc.d/netif restart, the first two bytes will change again. I have to reboot the server to get it working again. The em cards in question are: dev.em.0.%desc: Intel(R) PRO/1000 Network Connection 7.0.5 dev.em.0.%pnpinfo: vendor=0x8086 device=0x108c subvendor=0x8086 subdevice=0x348d class=0x02 dev.em.1.%desc: Intel(R) PRO/1000 Legacy Network Connection 1.0.1 dev.em.1.%pnpinfo: vendor=0x8086 device=0x1076 subvendor=0x8086 subdevice=0x348d class=0x02 FWIW, this is on an Intel 1530 series server. Thanks in advance, --Brian -- _-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_ Brian McCann I don't have to take this abuse from you -- I've got hundreds of people waiting to abuse me. -- Bill Murray, Ghostbusters ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: /etc/rc.d/netif em interfaces
On Wed, Dec 1, 2010 at 8:42 AM, Brian McCann bjmcc...@gmail.com wrote: I'm having an interesting problem on a fresh 8.1-RELEASE1 install. I'll start by saying this didn't happen on 7.1 on the same exact machine. I've been fighting with this for 2 days now and have come up with no answers on my own, so I'm hoping one of you guys can have some insight here. When I run /etc/rc.d/netif restart (also happens with a stop / start) , I can no longer get to the server over the network. When I do a packet capture on my workstation, it looks like it's MAC address changed somehow. The first two bytes of the address are different. For example, the real MAC is 00:15:17:1b:cf:7a , but I'll see the replies from a MAC of 02:67:17:1b:cf:7a. After each run of /etc/rc.d/netif restart, the first two bytes will change again. I have to reboot the server to get it working again. The em cards in question are: dev.em.0.%desc: Intel(R) PRO/1000 Network Connection 7.0.5 dev.em.0.%pnpinfo: vendor=0x8086 device=0x108c subvendor=0x8086 subdevice=0x348d class=0x02 dev.em.1.%desc: Intel(R) PRO/1000 Legacy Network Connection 1.0.1 dev.em.1.%pnpinfo: vendor=0x8086 device=0x1076 subvendor=0x8086 subdevice=0x348d class=0x02 FWIW, this is on an Intel 1530 series server. Thanks in advance, --Brian I botched the problem description slightly. In the packet capture on the workstation, the server's MAC is always correct. The response (SYN/ACK packet) from the server is destined to the wrong MAC address. The first two bytes are wrong somehow. The arp table on the server is correct. If I run arp -ad, the problem remains. I've also produced this problem by doing ifconfig em1 down then ifconfig em1 up. To make this problem even stranger, I can make a connection from the server to a workstation without issue. It appears to only be incoming connections. Thanks again, --Brian -- _-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_ Brian McCann I don't have to take this abuse from you -- I've got hundreds of people waiting to abuse me. -- Bill Murray, Ghostbusters ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: /etc/rc.d/netif em interfaces
To make this problem even stranger, I can make a connection from the server to a workstation without issue. It appears to only be incoming We've seen something very similar to this; we assumed it was EEPROM corruption. Is this a Dell PowerEdge by chance? Do you have TSO enabled? (-tso or tso flag in $ifconfig_emX) Does appending up to the end of if $ifconfig_emX solve the problem? ~BAS connections. Thanks again, --Brian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: /etc/rc.d/netif em interfaces
On Wed, Dec 1, 2010 at 9:29 AM, Brian A. Seklecki (CFI NOC) sekle...@noc.cfi.pgh.pa.us wrote: To make this problem even stranger, I can make a connection from the server to a workstation without issue. It appears to only be incoming We've seen something very similar to this; we assumed it was EEPROM corruption. Is this a Dell PowerEdge by chance? Do you have TSO enabled? (-tso or tso flag in $ifconfig_emX) Does appending up to the end of if $ifconfig_emX solve the problem? ~BAS This isn't a Dell PoweEdge, but at least this is two platforms it's happening on now. Strangely, my VMWare virtual machines that use the em driver do not have this problem. TSO is disabled. I just tried adding up to the $ifconfig_emX lines in rc.conf, and it didn't help. What I discovered (and I'm still playing with a bit), is that it has to do with checksum offloading. If you run ifconfig emX -rxcsum, the interface comes back to life. I just added -rxcsum to the $ifconfig_emX lines in rc.conf, and I can run /etc/rc.d/netif restart now, and the NIC continues to work fine. I tried emailing the folks @ Intel that are mentioned in the man page for the em driver, but the mail bounced... --Brian -- _-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_ Brian McCann I don't have to take this abuse from you -- I've got hundreds of people waiting to abuse me. -- Bill Murray, Ghostbusters ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: /etc/rc.d/netif em interfaces
On Wed, Dec 1, 2010 at 10:51 AM, Brian McCann bjmcc...@gmail.com wrote: This isn't a Dell PoweEdge, but at least this is two platforms it's happening on now. Strangely, my VMWare virtual machines that use the em driver do not have this problem. TSO is disabled. I just tried adding up to the $ifconfig_emX lines in rc.conf, and it didn't help. What I discovered (and I'm still playing with a bit), is that it has to do with checksum offloading. If you run ifconfig emX -rxcsum, the interface comes back to life. I just added -rxcsum to the $ifconfig_emX lines in rc.conf, and I can run /etc/rc.d/netif restart now, and the NIC continues to work fine. I tried emailing the folks @ Intel that are mentioned in the man page for the em driver, but the mail bounced... --Brian -- Brian (and everyone else reading the thread), I just found this...the patch was submitted some time ago, but somehow didn't make it into 8.1. http://www.freebsd.org/cgi/query-pr.cgi?pr=141843 . I'm trying it now. I'll keep you posted. --Brian -- _-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_ Brian McCann I don't have to take this abuse from you -- I've got hundreds of people waiting to abuse me. -- Bill Murray, Ghostbusters ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Restarting network vlan interface = kernel memory corruption (if_vlan / conf/63700 redux)
[Originally from freebsd-hackers@ / Feb 2008; freebsd-net Jun 2010] All: pf conf/63700 got the ball rolling on fixing cloned/VLAN interface management with rc.d/netif, but a very specific problem still remains. For example, adding an alias to a VLAN and running: /etc/rc.d/netif restart /etc/rc.d/routing restart is a failure. --- Take the following rc.conf(4) config: hostname=sexdrugsandunix cloned_interfaces=vlan14 ifconfig_em0=up media 100baseTX mediaopt full-duplex -tso ifconfig_vlan14=inet 1.2.3.4 netmask 255.255.255.128 vlan 14 vlandev em0 up ifconfig_vlan14_alias0=inet 1.2.3.5 netmask 255.255.255.255 Change it to include a second alias without a reboot, instead run 'rc.d/netif restart', as works on a physical interface: hostname=sexdrugsandunix cloned_interfaces=vlan14 ifconfig_em0=up media 100baseTX mediaopt full-duplex -tso ifconfig_vlan14=inet 1.2.3.4 netmask 255.255.255.128 vlan 14 vlandev em0 up ifconfig_vlan14_alias0=inet 1.2.3.5 netmask 255.255.255.255 ifconfig_vlan14_alias1=inet 1.2.3.6 netmask 255.255.255.255 The result will be: % ifconfig vlan14 [bsekle...@sureshot ~]$ ifconfig vlan14 vlan14: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu inet 1.2.3.6 netmask 0x broadcast 192.168.158.152 inet 1.2.3.5 netmask 0x broadcast 192.168.158.255 1) I'm not sure where the .152 broadcast comes from. ?! 2) The new _alias1= data is now in the primary IP slot 3) The primary IP is lost, there is no routable IP 4) The original _alias0= data is now in the 1st alias slot 5) rc.d/routing fails because the interface lacks a routable IP with a valid netmask/broadcast combination. --- Problem #1: rc.d/netif::network_stop() The core problem is that rc.d/netif::network_stop() never calls network.subr::clone_down() in the same way that rc.d/netif::network_start() calls network.subr::cloned_up() I'd speculate that this is a design decision not to destroy network interfaces that certain userland daemons (DHCP, RTADVD, BPF) may be strictly bound to; I disagree. Even if you explicitly pass your VLAN interface to rc.d/netif, a stop doesn't call 'ifconfig [VL] destory', and, when 'rc.d/netif start' is called later, SIOCSETVLAN results. jail-host-80:/home/bseklecki% sudo ifconfig vlan666 destroy jail-host-80:/home/bseklecki% sudo ifconfig vlan666 create inet 1.2.3.4 netmask 255.255.255.0 vlan 666 vlandev em0 jail-host-80:/home/bseklecki% sudo ifconfig vlan666 create inet 1.2.3.4 netmask 255.255.255.0 vlan 666 vlandev em0 ifconfig: create: bad value A simple rc.d/network_stop() patch could fix this problem if we can avoid bikeshedding. -- Problem #2: VLAN interface kernel data structures maintain configuration data after being destroyed and re-created %ifconfig vlan666 vlan666: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=3RXCSUM,TXCSUM ether 00:0c:29:a1:4b:9d inet 192.168.15.54 netmask 0xff00 broadcast 192.168.15.255 media: Ethernet 1000baseT full-duplex status: active vlan: 666 parent interface: em0 %sudo ifconfig vlan666 destroy %sudo ifconfig vlan666 create %ifconfig vlan666 vlan666: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=3RXCSUM,TXCSUM ether 00:0c:29:a1:4b:9d !!** inet 192.168.15.54 netmask 0xff00 broadcast 192.168.15.255 **!! media: Ethernet 1000baseT full-duplex status: active vlan: 666 parent interface: em0 Now, that's something you don't see very day!! NOTE: I can't get that persistent IP data problem to happen consistently, but its highly reproducible. I also have no idea on the fixes, I'll check this weekend, but I have a work-around. To avoid destroying your routing table after adding an alias to a VLAN interface in rc.conf(5), simply run: $ sudo /etc/rc.d/netif [VLAN] start DO NOT RESTART, and you should be okay. ~BAS References: http://lists.freebsd.org/pipermail/freebsd-hackers/2008-February/023440.html http://www.freebsd.org/cgi/query-pr.cgi?pr=63700cat= (Circa 2004) http://lists.freebsd.org/pipermail/freebsd-net/2007-September/015447.html http://lists.freebsd.org/pipermail/freebsd-net/2010-June/025514.html -- Brian A. Seklecki bsekle...@collaborativefusion.com Collaborative Fusion, Inc. signature.asc Description: This is a digitally signed message part
Re: Mother board compatibility and CF card usage as main storage device for small DNS server
On 9/30/2010 4:11 AM, Kaya Saman wrote: I mean for a DNS server (all be it a small one) is it wise to use compact flash as storage?? For our GSLB DNS Slaves, we boot embedded/low power (or even VMs these days) systems with CF images off of flash, keep a shadow copy of /etc around, and program all file systems with R/W activity (/var/chroot/named/cache, where all zone files are fetched from Master NS) on MFS partitions, eliminating almost all write operations to the CF card. No swap, and RD / (/var, etc.) and MFS /usr extracted from a tarball via modified rc(8). /shadow is mounted noatime. Minimal writes to flash. The systems boot in about 30 seconds. We actually run NetBSD, but we've done similar models on FreeBSD. No CF card failures reported in five (5) years. We use Transcend Industrial series. Where it gets risky is if you just plain install a live functional FreeBSD on CF. A million inodes for /usr/src and CF is about as fast as an ESDI hard drive in an IBM XT. ~BAS ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Anyone client-bridge'ing with ath(4) ?
All: It's a bit hard to track where we stand with this issue. Is anyone having success running client-bridge (wifi0 in client mode, briding to wired interfaces)? From assorted posts, I understand ath(4) can't transmit from arbitrary source MACs or there's some limitation to the the 802.11 layer? It seems to work as long as the wifi(4) interface is in HostAP mode, but I havn't tested it (not looking to do this; well, maybe host-bridge-repeater) I do this all the time in DD-WRT on crappy Asus SOHO gear running Atheros 2xxx and 7xxx chips, so you would think it easy. ~BAS ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD vs YouTube
Depends on how you want to do it. You can use www/youtube_dl to get the movies, then watch on your player of choice. Or if you really want to watch in a browser can go to youtube.com/html5 and sign up for the HTML5 beta. Then on a (very) modern browser, any videos with HTML5 will work. Unfortunately, videos done in just HTML5 will have no sound but ones with HTML5 + WebM will have sound. I believe that the HTML5 + WebM for the moment is only available on HD movies. A word of caution though: the HTML5 youtube will only work well on high-powered computers, so don't expect it to work well/at all on older hardware. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: CVSUP
RELENG_8_0 Yes. This will give you the latest 8.0 release + desired patch level (critical security patches). This is almost certain what you want to be running before going to production status. I mean, you could use RELENG_8_0_RELEASE I suppose, but then the cvsup would be without merit. Dont use a tag with the ports supfile. ~BAS ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: where can i dl freebsd?
Check the FreeBSD website? There have been DVD releases since 7.1-RELEASE, if my memory serves. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Addition to BSDstats
On Tue, May 4, 2010 at 11:40 PM, Fbsd1 fb...@a1poweruser.com wrote: Marc G. Fournier wrote: On Tue, 4 May 2010, Marc G. Fournier wrote: Don't worry about it, found and fixed that bug ... it had to do with trying to masquarade behind haproxy, so it looked like all systems were coming in from Panama if they were running the newest code ... which means alot of ppl out there were running *old* code ... Basically, by setting up haproxy to load balance, all IPs hitting the backend were, as mentioned before, masquaraded ... but, of course, that means that when Geo::IP trying to determine country of origin, it always reports for the country of origin of the haproxy IP (Panama) ... I've fixed this ... still not recording IP, but at least the PHP script determing country basis it on the proper IP, not the haproxy IP ... No changes required on the client side, as things will normalize over the course of the next month as ppl report in ... If anyone on FreeBSD wishes to 'force an update': /usr/local/etc/periodic/monthly/300.statistics -nodelay will push it through ... Just did pkg_add -r bsdstats followed by /usr/local/etc/periodic/monthly/300.statistics -nodelay Still don't see any Freebsd systems listed for the Philippines on the website. What is YOUR definition of REAL-TIME. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org Actually, it's there. http://www.bsdstats.org/bt/countries.html?os=FreeBSD There you are, at the bottom. One system from the Philippines. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Bacula 5.0 compiler error (crypto.c)
On Mon, 2010-04-26 at 09:48 -0400, Brian A. Seklecki (CFI NOC) wrote: On 4/26/2010 9:05 AM, Efren Bravo wrote: I've OpenSSL 1.0.0 installed and ports up2date. My server is on production, so, What do you think I should do in my case? Okay yea you'll need 5.0.1 and a copy of KR or Stevens` APUE to help hold you down. [1] Efren: 5.0.2 was released two days ago and supposedly fixes bugs with ABI/API breakage in OpenSSL 1.x. ~~BAS -- This 5.0.2 version is primarily an important bug fix update to version 5.0.1. Please read the full ReleaseNotes. Compatibility: -- As always, both the Director and Storage daemon must be upgraded at the same time. Older 5.0.x and 3.0.x File Daemons are compatible with the 5.0.2 Director and Storage daemons. There should be no need to upgrade older File Daemons. Changes since 5.0.1 --- Bug fixes 1502 1511 1517 1524 1527 1532 1536 1541 1549 1551 1553 1559 1560 - Probable fix for SD crash bug #1553 - Fix #1559 problem when restoring pruned jobs with a regexp - Fix for bug #1560 bcopy cannot find Volume - Fix cancel crash bug #1551 - Check if sql backend is thread-safe - Correct Pool display in SD status. Fixes bug #1541 - Fix cancel crash reported by Stephen Thompson - Rewind on close to fix #1549 - Remove closelog() in bpipe fixes bug #1536 - Fix #1517 about missing Base level in .level command - Replace ASSERT in block.c with fail Job - Fix database locking calling db_lock and returning from function without calling db_unlock. - Add missing db_unlock to bvfs_update_cache. - Fix #1532 about permission on binaries - Fix #1527 about deadlock during migration - Another fix for OpenSSLv1 - Add -lrt to Solaris links - Fix tls.c for OpenSSLv1 - Fix #1511 when trying to insert more than 50.000 directories in bvfs - Fix plugin load not to stop if one plugin bad -- pointed out by James - Remove --without-qwt from configure statement. - Second correct fix to bug #1524 verify fails after adding or removing files - Fix bug #1524 verify fails after adding or removing files - Apply fix suggested by Andreas in bug #1502 for mediaview column sort problem - Fix OpenSSL 1.x problem in crypto.c on Fedora 12 - Display AllowCompress warning message only if compression used in FileSet Thanks for using Bacula :-) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
8.0-R failing to parse DHCP root-path or loader.conf/rc vars (Diskless NFS/PXE)
All: DHCP: option root-path 192.168.224.67:/export/tftpboot/root-db; loader.rc: set vfs.root.mountfrom=nfs set vfs.root.mountfrom.options=rw set boot.nfsroot.path=/export/tftpboot/root-web set boot.nfsroot.server=192.168.224.67 loader.conf: mfsroot_load=NO nfsclient_load=YES init_path=/stand/sysinstall autoboot_delay=2 The kernel fails to mount / as RW with: mount option export is unknown Then some mysterious file system that isnt' MFS and isn't NFS show up. I don't think any of the docs out there are up to date, and from mailing list discussion, the syntax appears to have changed in 8.0 Anyone out there running a diskless config? ~BAS ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Bacula 5.0 compiler error (crypto.c)
On 4/26/2010 9:05 AM, Efren Bravo wrote: I've OpenSSL 1.0.0 installed and ports up2date. My server is on production, so, What do you think I should do in my case? Okay yea you'll need 5.0.1 and a copy of KR or Stevens` APUE to help hold you down. [1] ~BAS 1. Down under water, until the thrashing stops. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Bacula 5.0 compiler error (crypto.c)
crypto.c: In function 'ASN1_OCTET_STRING* openssl_cert_keyid(X509*)': crypto.c:333: error: invalid conversion from 'const X509V3_EXT_METHOD*' to 'X509V3_EXT_METHOD*' crypto.c: In function 'CRYPTO_SESSION* crypto_session_new(crypto_cipher_t, alist*)': What's your uname -a look like? -current? 5.0.1 was a patch release for version of GNU/Linux that had recent OpenSSL versions? For example, 5.0.1 wouldn't compile on RHEL5/Fedora12, but 5.0.1 may be required for FreeBSD -current with OpenSSL 0.9.8n+ in -current ~BAS crypto.c:1102: error: cannot convert 'unsigned char*' to 'EVP_PKEY_CTX*' for argument '1' to 'int EVP_PKEY_encrypt(EVP_PKEY_CTX*, unsigned char*, size_t*, const unsigned char*, size_t)' crypto.c: In function 'crypto_error_t crypto_session_decode(const u_int8_t*, u_int32_t, alist*, CRYPTO_SESSION**)': crypto.c:1226: error: cannot convert 'unsigned char*' to 'EVP_PKEY_CTX*' for argument '1' to 'int EVP_PKEY_decrypt(EVP_PKEY_CTX*, unsigned char*, size_t*, const unsigned char*, size_t)' *** Error code 1 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
PXE + sysinstall(8) install.cfg: DHCP Attribute to map install config/policy to system MAC?
All: The install.cfg mechanism is pretty wicked. Unfortunately, there doesn't seem to be a really efficient way to provide new clients (or class of clients) an install.cfg without rebuilding an MFSROOT image. At least with pxeboot(8), in TFTP-only-mode, using dhcpd.conf(5) client{} entries, there isn't a way to differentiate policies. It's just going to go looking for /boot/loader.rc and /boot/loader.conf from wherever DHCP told PXE to fetch pxeboot(8) from. From there, you need to custom compile a 5 meg mfsroot image for each [class of] client. With an NFS stage-2 boot, I suppose you could set: option root-path /export/${client}Root etc., but then your 5 meg mfsroot is just extracted 1-per-client. Still seems a bit ugly. It seems like we could teach sysinstall(8) to fetch install.cfg by some standard mechanism. Possibly a TFTP or NFS URL passed from the DHCP server - boot loader - kernel sysctl - sysinstall(8). For example, the Sun SPARC4s would TFTP fetch their stage 1 boot loader via TFTP with a filename req of their MAC address in HEX format, so one could just put symlinks in place. Thoughts or other ideas? ~BAS PS: our in-tree tftpd(8) is an unending source of sorrow and misery and clinical despair. ports/net/freebsd-tftp is a lifesaver (it actually has debugging) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Debugging RLIMITs signals: SIGXFSZ and SIGXCPU
All: I've got a process that is mysteriously receiving a SIGTERM (or other signal. It's a RADIUS daemon; runs a non-Root (not privsep, unfortunately). Identical hardware, identical code, identical config on 6.3-PL is fine. On 8, the daemon is logging receipt of a non-HUP signal and exiting out. Our best theory at the moment are changes in default RLIMITs between RELENG_6and RELENG_8. For example: 6.3: open files (-n) 11095 8: open files (-n) 3520 Either that, or a memory/file handler/other leak that only manifests in RELENG_8. Either way, I'd like to debug the kernel handling of RLIMITs. The best I can find are references to: /usr/src/sys/kern/kern_resource.c::lim_cb() to SIGXCPU for RLIMIT_CPU /usr/src/sys/ufs/ffs/ffs_vnops.c::ffs_write() to SIGXFSZ or ... RLIMIT_FSIZE Not sure about RLIMIT_RSS, RLIMIT_AS, RLIMIT_NOFILE or others. Unfortunately, in the two places I see, the call 'psignal()' is used in leui of 'killproc()' to pass those custom RLIMIT's related signals and psignal() doesn't have any logging like killproc(). It would be really nice if there could be some standardized logging for RLIMIT* related resource exhaustion. For example: /usr/src/sys/vm/vm_pageout.c: killproc(bigproc, out of swap space); So my question are: 1) Anyone else interested in having this feature (RLIMIT debugging, possibly a sysctl(3))? 2) Does anyone have any idea how other RLIMIT_ exhaustion is handled? A lot of other checks in the code in kernel_resource.c seems to 'return (error);' on resource exhaustion. Thanks, ~BAS ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
FreeBSD 8, serial console problem
FreeBSD 8 uses the uart system to handle serial consoles, I changed mine over and I've been running into problems since. I have serial console access during the loader and boot process, but it freezes right after boot and posting of the date: Mon Mar 22 22:18:08 EDT 2010 Well, the kernel still outputs to the console, as evident when I plugged in a keyboard into the usb slot: ugen1.2: vendor 0x046d at usbus1 uhub5: vendor 0x046d G15 Keyboard Hub, class 9/0, rev 1.10/0.20, addr 2 on usbus1 (server.example.com) (ttyu0) login: uhub5: 4 ports with 2 removable, bus powered I typed 'root' and then it froze. Again, I plugged in the keyboard, but this time I couldn't type anything despite getting another login prompt. I even echoed to the console and it worked. Finally I typed kldload uart into my ssh terminal and poof: FreeBSD/i386 o(server.example.com) (ttyu0) u login: jhlgf e_register: module isa/uart already exists! Module isa/uart failed to register: 17 module_register: module pci/uart already exists! Module pci/uart failed to register: 17 I was able to login and everything worked fine. Notice how uart already exists.. it's compiled into the kernel. Right now the only way I've come up with to fix my broken console is to kldload, but I can only do it once per boot. If it breaks after that, I'm out of luck until I reboot. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
natd opening partition
Hey there, I run a test server here at the house that also runs natd to share internet across the network. The past few weeks my free space on /var was running dangerously low. After some investigation, I found out that the used space was actually an open file, and here is what lsof showed me: natd 1736 root4w VREG 0,84 410420438 23670 /var (/dev/ad4s1d) Normally, natd is only supposed to open it's log file: natd 34254 root4w VREG 0,84 218703 23582 /var/log/alias.log I've since disabled logging to alias.log and the problem has not re-occurred, however I would still like to know what I could have done to cause that, or if maybe it's some kind of bug. -Brian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
IPv6: rtsol must be run a second time after boot to pick up default route
I recently set up an HE.net tunnel using the following guides: http://www.freebsd.org/doc/handbook/network-ipv6.html http://www.freebsddiary.org/ipv6.php FreeBSD 7.2-p5 is used for the router and the host, and it works beautifully, except that the host will only pick up the IPv6 prefix on boot and set its IP accordingly (local network functions), but will NOT set the default route unless I wait up to 10 minutes for the advertisement, or manually run rtsol. The same problem happens with OS X 10.6.2, but not with Win7 (and Linux 2.6 remains untested at this time). The host has no firewall running currently, and there's no firewalling between the router and the host. Running rtsol with debugging doesn't show anything out of the ordinary, either during boot or after. Rtadvd is running on the router and my setup is identical to the guides other than device name: $ cat /etc/rtadvd.conf vr1:\ :addrs#1:addr=2001:470:::::prefixlen#64:tc=ether: Any suggestions? I've tried a few variations of rtadvd.conf without any changes in behavior. I'm inclined to think it's router-related, given the issue on multiple OSes, but I suppose it could go either way. I'd much prefer not to add in extra calls of rtsol in /etc/rc.local. Thanks. Brian Conway ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: IPv6: rtsol must be run a second time after boot to pick up default route
On Wed, 3 Feb 2010, Brian Conway wrote: I recently set up an HE.net tunnel using the following guides: http://www.freebsd.org/doc/handbook/network-ipv6.html http://www.freebsddiary.org/ipv6.php FreeBSD 7.2-p5 is used for the router and the host, and it works beautifully, except that the host will only pick up the IPv6 prefix on boot and set its IP accordingly (local network functions), but will NOT set the default route unless I wait up to 10 minutes for the advertisement, or manually run rtsol. The same problem happens with OS X 10.6.2, but not with Win7 (and Linux 2.6 remains untested at this time). The host has no firewall running currently, and there's no firewalling between the router and the host. Running rtsol with debugging doesn't show anything out of the ordinary, either during boot or after. Rtadvd is running on the router and my setup is identical to the guides other than device name: $ cat /etc/rtadvd.conf vr1:\ :addrs#1:addr=2001:470:::::prefixlen#64:tc=ether: Any suggestions? I've tried a few variations of rtadvd.conf without any changes in behavior. I'm inclined to think it's router-related, given the issue on multiple OSes, but I suppose it could go either way. I'd much prefer not to add in extra calls of rtsol in /etc/rc.local. Thanks. Brian Conway A few more (unusual) details as follow-up: - The missing route doesn't happen on Win7 or Linux 2.6 (Debian 5.0/Lenny) - The missing route still happens on both OS X 10.6.2 and FreeBSD 7.2-p5 - This ONLY happens after a warm reboot. Neither FreeBSD nor OS X have the issue with a cold boot. The boot-up's rtsol picks up the default route immediately. Weird. Brian Conway ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: ipv6 static route.
On 1/25/2010 12:15 PM, Peter Ankerstål wrote: How do I set a static ipv6 route in rc.conf? This command works: route add -inet6 -net 2003:16c8:dc1e:2:: -prefixlen 64 2003:16c8:dc1e::2 and I use this in rc.conf: ipv6_static_routes=2003:16c8:dc1e:2:: -prefixlen 64 2003:16c8:dc1e::2 Do it like IPv4 static routes with an itemized/serialized list: ipv6_static_routes=pitbpa0_0 pitbpa0_1 faith_0 faith_1 ipv6_route_pitbpa0_0=2607:f000:0010:0100::/56 2607:f000:10::4000 ipv6_route_pitbpa0_1=2607:f000:0010:0200::/56 2607:f000:10::4000 ipv6_route_faith_0=2607:f000:10:0::: -prefixlen 96 ::1 ipv6_route_faith_1=2607:f000:10:0::: -prefixlen 96 -ifp faith0 Keep the faith, yea? ~BAS but it does not set the correct routes. -- Peter Ankerstål pe...@pean.org http://www.pean.org/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Yahoo! moving to Linux???
http://m.de.yahoo.com was running YTS on Linux when last queried at 19-Dec-2009 19:12:25 GMT - refresh now Site Report Hard to stand, I'd expect FreeBSD get replaced by Windows because of MS/Yahoo! agreement, but Linux?? Its possible the frontend loadbalancer/L4 switch is an A10 at Yahoo!, and the A10 signature should resemble embedded GNU/Linux. Or does it go by server version string? ~BAS ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Specific interface to default route
Anthony M. Rasat wrote: Dear all, I have two (ethernet) network interface with IP address within the same subnet, call it msk0 and nfe0. Interface msk0 have IP address 192.168.0.2 and nfe0 192.168.0.3 and default router IP address is 192.168.0.1. route(8) takes a 'dev' argument, but the community wouldn't endorse what you're doing. Unless you're looking to ensure job security :} ~BAS ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Apache 2.2 mod_ldap refusing to work over SSL/TLS
As far as I can tell, it doesn't even get to the certificate verification phase even though the STARTTLS command is successful. Is there any level of debugging that can be increased on the Apache side ? Possibly a build/compile-time option for the module? Debugging apache code can always be tricky because of the threaded/child process nature. We use mod_authz_ldap and it works okay, but OpenLDAP an can be a real beyotch when it comes to SSL/TLS. E.g., we feel your pain. The only way out, is through. ~BAS Anyone have a clue on what could be causing this? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
pf nuttyness
I'm at the end of my rope here with PF. I have a ruleset loaded, that is long and complicated...but I've shortened to to a pass all rule. The box has 4 interfaces, one for pfsync, one for me to connect to it, and two bridged interfaces. The only traffic on the bridged interfaces is STP and IP multicast traffic from my EIGRP routers. When I run pfctl -s rules -v, the EIGRP multicast traffic never hits any rules...yet it's allowed. I'm on FreeBSD 7.1. Has anyone else come across this before? I'm ready to throw out FreeBSD 7.1 and try OpenBSD for pf use...which would be a shame since I use FreeBSD for all my other servers, and having 2 OpenBSD boxes would just be... weird... --Brian -- _-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_ Brian McCann I don't have to take this abuse from you -- I've got hundreds of people waiting to abuse me. -- Bill Murray, Ghostbusters ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: jail - beginner questions
I really think that it should be corrected to: cd /usr/src make distribution DESTDIR=$D That's almost certainly correct, but it notes: Notes [1] This step is not required on FreeBSD 6.0 and later. But then I get this error in syslog: bind: Can't assign requested address That's a general ntworking error. We'd need to see your ifconfig(8)/netstat(8) -rn and rc.conf(5) network settings to figure that out. ~BAS ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
atom based servers
I see supermicro and potentially others have atom servers available, anyone tried these on freebsd with success? Brian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: mfi(4) lockups and the adapter event log
with linux-megacli showed TONS of messages. Trying to clear them using linux-megacli seemed to cause a similar lockup, filled with command timeouts, but no fatal firmware error. Also, does anyone know if the mfiutil(8) util in RELENG_8 has the ability to purge the event log? Man page 'clear' command nukes the volume configuration :} We don't have RELENG_8 on a PowerEdge system yet. ~BAS ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Broadcom bce interface problems
On Wed, Oct 14, 2009 at 8:18 AM, H.Fazaeli faza...@sepehrs.com wrote: what type of blade switch you are using? Are you using HS21 onboard ports or an expansion card? Make sure the corresponding internal ports of the blade switch are at 'no shutdown' state. Brian McCann wrote: I'm having problems with the bce interface on a FreeBSD 7.2 install, using an IBM BladeCenter HS21 machine. The machine uses the NetXtreme II card. The really strange thing here is, the switch shows a link, but the card shows no carrier in the setup. It started working for a few seconds at one point when I reset the switch (at least, I think that's what I did), and it detected 1000BaseSX as the media and showed a status of active, but promptly went away. If I try setting the media type manually, that doesn't appear to work. Has anyone seen this or have any ideas? Thanks! --Brian -- Best regards. Hooman Fazaeli Yes, I'm using an HS21 onbaord card...the Broadcom. The internal ports show a link (using the Nortel manager...it's got a the Nortel L3-7 switch in it). I found http://www.freebsd.org/cgi/query-pr.cgi?pr=118238 last night...it looks like that change was never commited by anyone...I'm working on recompiling that into 7.1 now and plan on trying it once it's done. I'll post the results up here (and to freebsd-net as well if it works). I'm really hoping that works...since I really would like to avoid installing VMWare ESXi on 14 blades just to run 1 VM in each of them and loose performance. I'll keep y'all posted. --Brian -- _-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_ Brian McCann I don't have to take this abuse from you -- I've got hundreds of people waiting to abuse me. -- Bill Murray, Ghostbusters ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Broadcom bce interface problems
On Wed, Oct 14, 2009 at 12:24 PM, Diego F. Arias R. dak@gmail.com wrote: do you double-check the internal por assignement? How many switchs has that blade1 or 2? You can try running a linux live-cd or maybe Windows to discard a FreeBSD trouble with the nic. does Freebsd detects 1 or 2 nics, and how many does the blade have? On Wed, Oct 14, 2009 at 10:49 AM, Brian McCann bjmcc...@gmail.com wrote: On Wed, Oct 14, 2009 at 8:18 AM, H.Fazaeli faza...@sepehrs.com wrote: what type of blade switch you are using? Are you using HS21 onboard ports or an expansion card? Make sure the corresponding internal ports of the blade switch are at 'no shutdown' state. Brian McCann wrote: I'm having problems with the bce interface on a FreeBSD 7.2 install, using an IBM BladeCenter HS21 machine. The machine uses the NetXtreme II card. The really strange thing here is, the switch shows a link, but the card shows no carrier in the setup. It started working for a few seconds at one point when I reset the switch (at least, I think that's what I did), and it detected 1000BaseSX as the media and showed a status of active, but promptly went away. If I try setting the media type manually, that doesn't appear to work. Has anyone seen this or have any ideas? Thanks! --Brian -- Best regards. Hooman Fazaeli Yes, I'm using an HS21 onbaord card...the Broadcom. The internal ports show a link (using the Nortel manager...it's got a the Nortel L3-7 switch in it). I found http://www.freebsd.org/cgi/query-pr.cgi?pr=118238 last night...it looks like that change was never commited by anyone...I'm working on recompiling that into 7.1 now and plan on trying it once it's done. I'll post the results up here (and to freebsd-net as well if it works). I'm really hoping that works...since I really would like to avoid installing VMWare ESXi on 14 blades just to run 1 VM in each of them and loose performance. I'll keep y'all posted. --Brian -- _-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_ Brian McCann I don't have to take this abuse from you -- I've got hundreds of people waiting to abuse me. -- Bill Murray, Ghostbusters ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- mmm, interesante. Windows runs fine on them. I applied the changes mentioned the patch I just posted, and that fixed the problem...no throughput hit as a result. Thanks to all for the help! --Brian -- _-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_ Brian McCann I don't have to take this abuse from you -- I've got hundreds of people waiting to abuse me. -- Bill Murray, Ghostbusters ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Broadcom bce interface problems
I'm having problems with the bce interface on a FreeBSD 7.2 install, using an IBM BladeCenter HS21 machine. The machine uses the NetXtreme II card. The really strange thing here is, the switch shows a link, but the card shows no carrier in the setup. It started working for a few seconds at one point when I reset the switch (at least, I think that's what I did), and it detected 1000BaseSX as the media and showed a status of active, but promptly went away. If I try setting the media type manually, that doesn't appear to work. Has anyone seen this or have any ideas? Thanks! --Brian -- _-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_ Brian McCann I don't have to take this abuse from you -- I've got hundreds of people waiting to abuse me. -- Bill Murray, Ghostbusters ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Broadcom bce interface problems
On Tue, Oct 13, 2009 at 8:41 AM, Steve Bertrand st...@ibctech.ca wrote: Brian McCann wrote: I'm having problems with the bce interface on a FreeBSD 7.2 install, using an IBM BladeCenter HS21 machine. The machine uses the NetXtreme II card. The really strange thing here is, the switch shows a link, but the card shows no carrier in the setup. It started working for a few seconds at one point when I reset the switch (at least, I think that's what I did), and it detected 1000BaseSX as the media and showed a status of active, but promptly went away. If I try setting the media type manually, that doesn't appear to work. Has anyone seen this or have any ideas? Try forcing the interface to 'up': # ifconfig bce0 up If that works, add it to the /etc/rc.conf: # echo 'ifconfig_bce0=up' /etc/rc.conf Steve Thanks for the suggestion. I just tried it, but still get no carrier for the status. --Brian -- _-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_ Brian McCann I don't have to take this abuse from you -- I've got hundreds of people waiting to abuse me. -- Bill Murray, Ghostbusters ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD 6.3 installation hacked
On Tue, 2009-09-22 at 05:01 -0700, Aflatoon Aflatooni wrote: My server installation of FreeBSD 6.3 is hacked and I am trying to find out how they managed to get into my Apache 2.0.61. This is what I see in my http error log: [Mon Sep 21 02:00:01 2009] [notice] caught SIGTERM, shutting down [M According to Apache.org, there were vulns in 2.0.6x before 2.0.63. However, when you do your forensic analysis, you'll want to focus on code installed on your webserver that runs with the posix user 'www''s permissions. ~BAS This mail was sent via Mail-SeCure System. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Trying to make a mirror for a disconnected lab
On Tue, 2009-08-25 at 22:20 -0400, Duncan Hutty wrote: Q. ports/distfiles contains tarballs of multiple versions of each software; I assume that I only need one version of each tarball. And since this mirror as described comes to ~100GiB, how can I modify my For this you want portsclean(8) -D argument. Prunes out unused/unneeded distfiles. There's probably a way to do it with rsync based on date or whatnot; but it gets tricky. Every iteration of your sync script will bring back what you prune out. Q. ports/distfiles contains tarballs of multiple versions of each software; I assume that I only need one version of each tarball. And since this mirror as described comes to ~100GiB, how can I modify my rsync filter so I don't get anything more than either the latest tarball for each software package in distfiles or whichever version accords to the Makefiles provided by ports.tgz ~BAS rsync filter so I don't get anything more than either the latest tarball for each software package in distfiles or whichever version accords to the Makefiles provided by ports.tgz ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: ZFS Boot Support from Installer
On Mon, 2009-08-03 at 09:48 -0700, Tim Gustafson wrote: Hi, I was wondering if there was a plan or time line in place to support ZFS boot partitions in the installer. No one has gone near that stuff in years. We don't even have gmirror(8) creation support in there. Best not to use sysinst. The livefs image has all of the tools that you need to bootstrap a system. ~BAS ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: ZFS Boot Support from Installer
On Fri, 2009-08-14 at 08:58 -0700, Tim Gustafson wrote: then there's no reason that the functionality couldn't or shouldn't be built into the installer. With a few machines, yes. Once you get to 5 or 6, start building your own custom internal ISOs, and maintain your configuration templates in SVN or use Puppet. I make the suggestions because you're asking about an advanced topic, so I gave you an honest answer. ~BAS ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: bwi driver
On Fri, 2009-08-14 at 12:41 +, Eitan Adler wrote: I have a Lenovo G530 laptop with a broadcom wireless card. I downloaded the drivers referenced here: If the driver didn't attach because IBM chose some exotic OEM PCI ID, then the grep wont find it. You really should post the full pciconf(8) and dmesg(8) for us, as well as kldstat(8) -v. uname(1) -a would also be helpful. ~BAS However pciconf -lv|grep bwi produces no output and ifconfig does not mention any wireless cards. What should I try now? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Writing to a uhid device?
I picked up a Velleman K8055 digital I/O controller that connects to a PC via a USB port. FreeBSD picks up this device as a uhid, and I can see the following elements: bmcgover-pc# usbhidctl -f /dev/uhid2 -r Report descriptor: Collection page=Microsoft usage=0x0001 Input size=8 count=1 page=Microsoft usage=0x0001, logical range 0..255 Input size=8 count=1 page=Microsoft usage=0x0002, logical range 0..255 Input size=8 count=1 page=Microsoft usage=0x0003, logical range 0..255 Input size=8 count=1 page=Microsoft usage=0x0004, logical range 0..255 Input size=8 count=1 page=Microsoft usage=0x0005, logical range 0..255 Input size=8 count=1 page=Microsoft usage=0x0006, logical range 0..255 Input size=8 count=1 page=Microsoft usage=0x0007, logical range 0..255 Input size=8 count=1 page=Microsoft usage=0x0008, logical range 0..255 Output size=8 count=1 page=Microsoft usage=0x0001, logical range 0..255 Output size=8 count=1 page=Microsoft usage=0x0002, logical range 0..255 Output size=8 count=1 page=Microsoft usage=0x0003, logical range 0..255 Output size=8 count=1 page=Microsoft usage=0x0004, logical range 0..255 Output size=8 count=1 page=Microsoft usage=0x0005, logical range 0..255 Output size=8 count=1 page=Microsoft usage=0x0006, logical range 0..255 Output size=8 count=1 page=Microsoft usage=0x0007, logical range 0..255 Output size=8 count=1 page=Microsoft usage=0x0008, logical range 0..255 End collection Total input size 8 bytes Total output size 0 bytes Total feature size 0 bytes Reading from the device 8 bytes at a time does whats expected - I can see the digital and analog inputs, the counters, etc, and all is fine. However, I notice on the above output that the total output size is 0, and writing 8 bytes of information to the device seems to do nothing for the outputs. I'm guessing at this point that its an issue somewhere with the driver, but a quick look at uhid_do_write() looks like its doing something, although the behavior changes around sc-sc_oid and sc-sc_osize (possible issue with the 'total output size' being 0, above?). Does anyone have any thoughts or ideas, or better yet, experience with such devices, before I spend a couple of days of banging my head against the wall trying to figure out whats happening under the hood? Is there a special/magic process? Or should I just be able to write the 8 bytes, 1 for each output, as I read the input? -B ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
FIONREAD behavior possible on uhid?
All, I recently picked up a Velleman K8055, which is basically a Digital and analog I/O board that connects to a PC via a USB connection. So far, its worked fine w/FreeBSD, the uhid driver picks it up, and a simple cat /dev/uhid0 will start pulling the 8 bytes that represent the inputs and counters available. However, once the device is open, it polls several times per second, and uhid begins to buffer the board's output in a clist. Since I don't need that level of resolution, I'm looking to have the application back down to once per second, perhaps slower (every 5 seconds). However, in order to do this, I need to either stop the over sampling or flush the buffer, and then pick up the first new read. However, performing both a TIOCFLUSH (have ioctl flush the buffers) as well as a FIONREAD (return the number of bytes waiting so the application can read them and throw them away) fail. I also tried to add a FIONREAD to uhid_do_ioctl() and uhidioctl() at different times. My understanding is that with the ioctl calls, the infrastructure should be able to do the copy out, so a simple: case FIONREAD: { *addr = sc-sc_q.c_cc; break; } should have done the trick, and it compiles happily, but it fails with an invalid address error when the ioctl is called. I also tried using copyout directly, but from the little reading I did, addr is already supposed to be in the kernel address space, and it returns EFAULT. Its been about 10 years since I've played seriously in the kernel space, so I hope its something simple I've just forgotten. Can someone point me at a way to get this functionality, short have having to write a device-specific driver (a-la uvisor) ? -B ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Additional sa devices?
On Fri, 2009-07-10 at 11:52 +0700, Olivier Nicole wrote: Hi, My question is what the difference is between 'sa0.0' and 'sa0.[1-3]'. I can't seem to find it documented anywhere. Maybe submit a PR+Patch to the man page file? ~BAS From the top of my head, I think I remember devices sa0.[1-3] would represent different compression mode. Bests, ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Webcam problem - pwc
On Sat, 2009-07-04 at 22:12 +, Antonio Rieser wrote: ugen0: vendor 0x046d product 0x08dd, class 0/0, rev 1.10/1.00, addr 3 on uhub1 The driver didn't attach to the device. Look in the driver source code for product ID 0x08dd. Change/Add, then recompile the kernel and try again -- no promises. ~BAS ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Journal overflow panic
I've been having a problem for the past few weeks with a file server I have. It's recently started throwing a panic after about 24 hours of service (it's rare that it lasts longer then that...sometimes as low as 20 hrs): Panic String: Journal overflow (joffset=12964580764160 active=12964584978944 inactive=12964580737536) . I'm on FreeBSD 7.0. I've done some digging, and really can't come up with anything. I've checked the drives on the controller, and none of them are reporting any errors (3ware SATA RAID controller). Does anyone have any ideas or thoughts? Thanks! --Brian -- _-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_ Brian McCann I don't have to take this abuse from you -- I've got hundreds of people waiting to abuse me. -- Bill Murray, Ghostbusters ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Stability issues after upgrading to 7.1 - NFS related?
Hello all, We recently upgraded an NFS server from 7.0-p6 to 7.1-p6. The following Monday morning, we found the server's networking to be wedged, and console error messages that strongly resemble this post [1]. In an effort to try the mentioned fixes, we upgraded to 7-STABLE. This did not seem to help matters; the NFS server keeps wedging 1-2x a day, requiring soft reboots (via console) at times and hard reboots at others. Heavy NFS load seems to trigger everything. Initially, we thought there might be a problem with rpc.statd because we started seeing RPC: Port mapper failure - RPC : Timed out messages. All the hosts that timed out were previously-working Linux (CentOS) NFS clients. We have IPsec configured in transport mode between all FreeBSD and Linux NFS clients, but only see the RPC error for CentOS (not RHEL) hosts, (and no errors from FreeBSD clients). Before the system wedges completely, `top` reports that most nfsd processes are in the *ipsec state. These are all the troubleshooting steps we have taken: - disabled NFS locking on the Linux NFS clients - RPC timed out messages still appear - set up RPC to use static ports for NFS on our CentOS clients (to work better with our firewalls, which needed no such rules before) - RPC timed out messages still appear - added 'rpc_lockd_enable=NO' to /etc/rc.conf - after rebooting, `rpcinfo -p` showed no lock manager running, but the crashes persisted - added nooptions NFSLOCKD to the kernel configuration - this only caused things to crash faster (few minutes after boot, with very little NFS load) Unfortunately, one of the issues we've run into in debugging this problem is the lack of useful logs and debugging information. Some info we have managed to gather: - before one reboot, we noticed console messages about mbuf's filling up. Running `netstat -m` right before crashes seems to confirm this. If anyone could provide some insight into what's happening, or help us get more debugging information, it would be very helpful. [1] http://lists.freebsd.org/pipermail/freebsd-current/2009-May/006434.html -- Brian DeFreitas Lead Unix Systems Administrator Network Infrastructure, RSSP-IT UC Berkeley pgpW3JBwvnLhZ.pgp Description: PGP signature
Re: SSO solution in ports?
On Thu, 2009-07-16 at 10:52 -0400, John Almberg wrote: I am trying to build a set of web applications that are accessed through a web portal that uses a Single Sign On (SSO) solution. Combine your SSO (LDAP mostly, Kerberos is a waking nightmare) with a 2FA/TFA (Second Factor Authentication) solution such as grid cards, FOBs, or an OTP password list. I recommend Entrust IdentityGuard. Our pam_radius works fine with it, and web application can run NSS functionality out of LDAP and PAM functionality out of Entrust's SOAP-XML Authentication API. ~BAS ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Attempting ZFS Only Install of 7.2
On Thu, 2009-07-16 at 17:01 -0500, Jason Garrett wrote: LOADER_ZFS_SUPPORT=YES, as It wouldn't even boot the kernel before I did JG: Why don't we setup a public autobuild farm (amd64 only) and build with that flag set? The other option is to modify a LiveCD framework with it. ~BAS This mail was sent via Mail-SeCure System. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: fsck
On Tue, 2009-06-16 at 22:36 +0300, Peter wrote: When power goes down and file system gets corrupted and system becomes unbootable I need to login to the machine via console and run APC upsd(8) can auto-run 'shutdown -hp now' for you when your UPS is almost discharged. Then you an set your ACPI settings to default to power on state when power is restored. You can get a APC Backups 350 for ~ $50 retail. -- Brian A. Seklecki bsekle...@collaborativefusion.com Collaborative Fusion, Inc. signature.asc Description: This is a digitally signed message part
Re: Legato Client for freeBSD 7
On Thu, 2009-06-11 at 10:29 +0200, Gian Paolo Buono wrote: Hi, I have a server running freeBSD7 that needs the legato backup client Legato is no more. Legato and RSA are now EMC. Time to upgrade to Bacula! ~BAS ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD 7.1 opencrypto -- kern.cryptodevallowsoft
The openssl speed sub-command is a real PITA: Try: $ openssl speed -elapsed -evp aes-128-cbc (or des-ede3) Also goto /usr/src/tools/tools/crypto/ make Run those utils to extract useful statistics out of the driver's kernel data structures. ~BAS On Mon, 2009-05-18 at 11:21 +0100, Brendan Kennedy wrote: Hi Brian, Patrick, Thanks for your responses. I agree that it looks like a bug! I'm a bit of a newb to FreeBSD. Where should I go to log this? I ran (as root ;) ) openssl engine (padlock) VIA PadLock (no-RNG, no-ACE) (dynamic) Dynamic engine loading support (cryptodev) BSD cryptodev engine [RSA, DSA, DH] It can be seen only PKE functions are being shown as accelerated. 'kldstat' only shows cryptodev.ko, but that's because I have 'crypto' compiled as part of the kernel. I have found another issue here also - although 'openssl engine -c' shows correct accelerated functionality of the hardware driver, running a speed test (e.g. openssl speed des-ede3 -engine cryptodev) does not result in any messages being sent to the driver apart from the initial check for available algorithms. It seems only accelerated PKE functions are run through the driver. It may be that the symmetric functions are being run through the software device driver (cryptosoft)... Could it be down to cryptodev engine being loaded twice in OpenSSL? Or would cryptodev favour the software driver if CRYPTO_F_HARDWARE is not set? Regards, Brendan 2009/5/15 Brian A. Seklecki sekle...@noc.cfi.pgh.pa.us: On Tue, 2009-05-12 at 19:14 +0100, Brendan Kennedy wrote: Hi All, I'm trying to test a hardware crypto driver, but want to run my tests through the software driver first (and possibly use the software driver to validate results). I have set the following in my GENERIC conf file: What does kldstat(8) / openssl(1) return? % sudo openssl engine (dynamic) Dynamic engine loading support $ openssl engine (cryptodev) BSD cryptodev engine (padlock) VIA PadLock (no-RNG, no-ACE) (dynamic) Dynamic engine loading support $ kldstat |egrep -i 'cry|ub' 33 0xc0e06000 25b78crypto.ko 71 0xc64c9000 4000 cryptodev.ko 81 0xc6546000 a000 ubsec.ko Return? ~BAS device crypto device enc options IPSEC I have rebuilt the kernel, rebooted and set the kern.cryptodevallowsoft kernel variable to 1: FreeBSD_26# sysctl -a | grep crypto kern.cryptodevallowsoft: 1 However, when I try a test, I get the following: FreeBSD_26# /usr/src/tools/tools/crypto/cryptotest -va 3des cipher 3des keylen 24 CIOCGSESSION: Invalid argument FreeBSD_26# /usr/src/tools/tools/crypto/cryptotest -va des cipher des keylen 8 CIOCGSESSION: Invalid argument It seems the software crypto device is not available. Do I need to do any other steps to enable it? Is there another config option that makes sure it is build as part of Opencrypto framework? Do I need to build some other software driver instead? Best Regards, Brendan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org This mail was sent via Mail-SeCure System. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
freebsd-update: cannot open files/.gz: No such file or directory
I've been trying every few days to update from 7.1-P5 to 7.2 using freebsd-update. It always goes as follows: statler # freebsd-update upgrade -r 7.2-RELEASE Looking up update.FreeBSD.org mirrors... 6 mirrors found. Fetching metadata signature for 7.1-RELEASE from update5.FreeBSD.org... done. Fetching metadata index... done. Fetching 1 metadata patches. done. Applying metadata patches... done. Fetching 1 metadata files... done. Inspecting system... done. WARNING: This system is running a statler kernel, which is not a kernel configuration distributed as part of FreeBSD 7.1-RELEASE. This kernel will not be updated: you MUST update the kernel manually before running /usr/sbin/freebsd-update install. The following components of FreeBSD seem to be installed: src/base src/sys world/base world/dict world/games world/info world/manpages The following components of FreeBSD do not seem to be installed: kernel/generic src/bin src/cddl src/contrib src/crypto src/etc src/games src/gnu src/include src/krb5 src/lib src/libexec src/release src/rescue src/sbin src/secure src/share src/tools src/ubin src/usbin world/catpages world/doc world/proflibs Does this look reasonable (y/n)? y Fetching metadata signature for 7.2-RELEASE from update5.FreeBSD.org... done. Fetching metadata index... done. Fetching 1 metadata patches. done. Applying metadata patches... done. Fetching 1 metadata files... done. Inspecting system... done. Fetching files from 7.1-RELEASE for merging... done. Preparing to download files... done. /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory snip - this repeats 50 or 100 times Attempting to automatically merge changes in files... done. The following file could not be merged automatically: /etc/mail/mailer.conf Press Enter to edit this file in vi and resolve the conflicts manually... ^C Any thoughts? Thanks for your time! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Sun E250
On Mon, 2009-05-11 at 16:19 +0100, RAUL H C LOPES wrote: Hi, No. the A1000 does not require any special RAID controller. Freebsd 7.2 is freezing after message: Jumping to kernel entry at 0xc0078000 Okay, this erroneous behavior is happening much earlier than before the RAID controller probe. I would recommend asking about E250 support on freebsd-spar...@freebsd.org (CC'd) Make sure that you try this with a serial console attached to the unit. ~BAS I tried boot both with bootonly and install CDs. raul ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD 7.1 opencrypto -- kern.cryptodevallowsoft
On Tue, 2009-05-12 at 19:14 +0100, Brendan Kennedy wrote: Hi All, I'm trying to test a hardware crypto driver, but want to run my tests through the software driver first (and possibly use the software driver to validate results). I have set the following in my GENERIC conf file: What does kldstat(8) / openssl(1) return? % sudo openssl engine (dynamic) Dynamic engine loading support $ openssl engine (cryptodev) BSD cryptodev engine (padlock) VIA PadLock (no-RNG, no-ACE) (dynamic) Dynamic engine loading support $ kldstat |egrep -i 'cry|ub' 33 0xc0e06000 25b78crypto.ko 71 0xc64c9000 4000 cryptodev.ko 81 0xc6546000 a000 ubsec.ko Return? ~BAS device crypto device enc options IPSEC I have rebuilt the kernel, rebooted and set the kern.cryptodevallowsoft kernel variable to 1: FreeBSD_26# sysctl -a | grep crypto kern.cryptodevallowsoft: 1 However, when I try a test, I get the following: FreeBSD_26# /usr/src/tools/tools/crypto/cryptotest -va 3des cipher 3des keylen 24 CIOCGSESSION: Invalid argument FreeBSD_26# /usr/src/tools/tools/crypto/cryptotest -va des cipher des keylen 8 CIOCGSESSION: Invalid argument It seems the software crypto device is not available. Do I need to do any other steps to enable it? Is there another config option that makes sure it is build as part of Opencrypto framework? Do I need to build some other software driver instead? Best Regards, Brendan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
freebsd-update: cannot open files/.gz: No such file or directory
I've been trying every few days to update from 7.1-P5 to 7.2 using freebsd-update. It always goes as follows: statler # freebsd-update upgrade -r 7.2-RELEASE Looking up update.FreeBSD.org mirrors... 6 mirrors found. Fetching metadata signature for 7.1-RELEASE from update5.FreeBSD.org... done. Fetching metadata index... done. Fetching 1 metadata patches. done. Applying metadata patches... done. Fetching 1 metadata files... done. Inspecting system... done. WARNING: This system is running a statler kernel, which is not a kernel configuration distributed as part of FreeBSD 7.1-RELEASE. This kernel will not be updated: you MUST update the kernel manually before running /usr/sbin/freebsd-update install. The following components of FreeBSD seem to be installed: src/base src/sys world/base world/dict world/games world/info world/manpages The following components of FreeBSD do not seem to be installed: kernel/generic src/bin src/cddl src/contrib src/crypto src/etc src/games src/gnu src/include src/krb5 src/lib src/libexec src/release src/rescue src/sbin src/secure src/share src/tools src/ubin src/usbin world/catpages world/doc world/proflibs Does this look reasonable (y/n)? y Fetching metadata signature for 7.2-RELEASE from update5.FreeBSD.org... done. Fetching metadata index... done. Fetching 1 metadata patches. done. Applying metadata patches... done. Fetching 1 metadata files... done. Inspecting system... done. Fetching files from 7.1-RELEASE for merging... done. Preparing to download files... done. /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory snip - a bunch of these repeat Attempting to automatically merge changes in files... done. The following file could not be merged automatically: /etc/mail/mailer.conf Press Enter to edit this file in vi and resolve the conflicts manually... ^C Any thoughts? Thanks for your time! -- Brian Hoort ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Sun E250
On Mon, 2009-05-11 at 10:27 +0100, RAUL H C LOPES wrote: Hello, We've got a Sun server E250 with a disk array Storedge A1000. We'd like to Try a LiveCD on it? Also, does the Storedge A1000 require a special RAID controller or does it appear on the onboard HBA as a logical volume? In my experience, Sun has a limited set of RAID cards, but most RAIDs are DAS with a management interface (Ethernet mostly) ~BAS ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Configuring an IPv6 router to assign addresses
On Wed, 2009-05-06 at 14:30 +, af300...@gmail.com wrote: Hi, I've found in the handbook how to start up a v6 router and some other helpful links on this topic at the FreeBSD diary. However, I'm wondering, You want to the rtadvd(8) daemon. $ sudo grep -i rtadvd /etc/defaults/rc.conf rtadvd_enable=NO # Set to YES to enable an IPv6 router rtadvd_interfaces=# Interfaces rtadvd sends RA packets. To hand out DNS servers, you'll want DHCPv6, but most folks are okay with the DNS servers they're getting via IPv4 static/dhcp. I recommend purchasing ipvbook.ca. Great read. ~BAS how do I configure the router to assign addresses to hosts. Thanks, Andy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: filesystem: 12h to delete 32GB of data
On Wed, 2009-05-06 at 13:54 +0200, Olivier Mueller wrote: - it took about 12 hours to delete these 30GB of files and sub-directories (smarty cache files: many small files in many dirs). Haven't you ever had the pleasure of running Sendmail on Solaris? :) Move this data store to a separate partition. When it comes time to burn the queue, stop the service, unmount the partition, newfs it, remount, restart svc. Long live Pisces v2. ~BAS ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: HyperThreading
On Wed, 2009-05-06 at 02:20 -0400, APseudoUtopia wrote: Am I correct to assume that the above means that HTT is enabled? There is nothing in my loader.conf, sysctl.conf, or kernel config file related to hyperthreading. Yes, you are correct. Try: % sudo ps gauxww Or % sudo top You can see the currently assigned CPU for each proc/thread. ~BAS ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD on VMware ESXi
On Wed, 2009-05-06 at 13:44 +0300, Daniels Vanags wrote: We moved Hard Disk Drives from HP ProLiant DL 385 G2 with 4GB RAM, AMD Opteron processor to HP ProLiant DL 380 G5, 4GB RAM, Intel Xeon processor. Disks contain FreeBSD Virtual Machines running in VMware ESXi Server. When trying to boot, getting error: BTX halted. Please explain, how to start FreeBSD on different hardware. Well, assuming that HFUX's RAID, VMWare and Linux doesn't totally shit the bed from the hypervisor CPU type change, the VMs are controllable from the spiffy AJAX/.Net20 VMWare management console. There's plenty of debugging available from there. Presumably all of the virtual hardware presented to the VM will be the same, except the CPU details. ~BAS ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: 6.2 STABLE to 6.2 RELEASE problem
On Mon, 2009-04-13 at 16:29 -0230, Philip van Ulden wrote: One other weird thing is that it seems to mount /dev/md0 on /var as well which doesn't look right. That code happens for some reason in /etc/rc.d/var. That's all I have for you. Your downgrade plan sounds very Linux/Windows'y. Binary upgrades in general. -- Brian A. Seklecki bsekle...@collaborativefusion.com Collaborative Fusion, Inc. signature.asc Description: This is a digitally signed message part