Re: 9.0, Samba and two NICs
On Fri, Feb 24, 2012 at 3:45 PM, Da Rock wrote: > On 02/24/12 21:39, Ronny Mandal wrote: >> >> Hi! >> >> I have been running Samba on FreeBSD 9.0 with a wireless card. A share >> is connected to my W7 computer. To get more speed between the >> computers, I decided to activate the 1GBit- Ethernet on the FreeBSD >> and establish a direct connection (cross-link) to the W7. I gave the >> new connection a static IP/subnet: 10.0.0.2/255.0.0.0 for the FreeBSD >> and 10.0.0.1/255.0.0.0 for the W7. SSH works fine, however Samba is >> utilizing the wireless card. >> >> My smb.conf looks something like this: >> >> .. >> ;The 192-address is the wireless, ath0. 10.0.0.2 is age0 >> interfaces = 127.0.0.1 192.168.0.232 10.0.0.2 >> bind interfaces only = yes >> ; the two latter is the IPs of the W7 >> hosts allow = 127.0.0.1 192.168.0.117 10.0.0.1 >> >> >> If I remove the 192* in the hosts allow, my W7 looses access via smb. >> >> netstat tells me that it is listening to both interfaces. >> >> What might be wrong? > > What address is the w7 using? > > If it is using 192.X, that could be the problem. That or some variation... > such as the w7 using wireless and 192.x? Sorry about the late answer and missing info. The W7 is using both, i.e. wireless and wired. Strangely enough, it works now. Here is what I did: The interface parameter; I put the 10.* before the 192.* and stopped and started the samba-service. After that, the wired card were utilized when I copied to and from the share. interfaces = 192.168.0.232 10.0.0.2 127.0.0.1 changed to interfaces = 10.0.0.2 192.168.0.232 127.0.0.1 (I tried this earlier, but it seems that /usr/local/etc/rc.d/samba restart did not properly re-read the configuration.) Regards, Ronny Mandal ___ 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"
Recurring "rescan already queued" message
Hello! I am trying to install 9.0-RELEASE from standard amd64 memstick image. During the install huge amount of "rescan already queued" messages breaks installer interface. (noperiph:ata1:0:-1:-1): rescan already queued (noperiph:ata1:0:-1:-1): rescan already queued (noperiph:ata1:0:-1:-1): rescan already queued (noperiph:ata1:0:-1:-1): rescan already queued So, I have 2 questions: 1) Are these messages harmless? 2) Messages are a little bit annoying. So, is there any way to suppress them? Some remarks: 1) I am trying to install FreeBSD on HP ProBook 4730s, which seems to be affected by a recent Intel bug: http://ixbtlabs.com/articles3/cpu/intel-6x-chipset-bug-p1.html 2) HDD is ada0 on ata0. 3) The messages are genetared constantly: # dmesg | grep "rescan already queued" | wc -l 98 # uptime ... 14 mins ... 4) I've tried to suppress messages by setting "hint.ata.1.disabled=1", but this had no effect (may be due to my mistake?) 5) Verbose kernel log has the following part: (aprobe0:ata1:0:0:0): SOFT_RESET. ACB: 00 00 00 00 00 00 00 00 00 00 00 00 (aprobe0:ata1:0:0:0): CAM status: Selection Timeout (aprobe0:ata1:0:1:0): SOFT_RESET. ACB: 00 00 00 00 00 00 00 00 00 00 00 00 (aprobe0:ata1:0:1:0): CAM status: Selection Timeout ata1: SATA reset: ports status=0x00 ata1: p0: SATA connect timeout status=0004 ata1: p1: SATA connect timeout status= ata1: DISCONNECT requested ata1: SATA reset: ports status=0x00 ata1: p0: SATA connect timeout status=0004 ata1: p1: SATA connect timeout status= ata1: DISCONNECT requested ata1: SATA reset: ports status=0x00 ata1: p0: SATA connect timeout status=0004 ata1: p1: SATA connect timeout status= (noperiph:ata1:0:-1:-1): rescan already queued ata1: DISCONNECT requested 6) vmstat -i gives the following: interrupt total rate irq1: atkbd0 653 4 irq9: acpi0 417 2 irq14: ata0 164 1 irq16: ehci0 ehci1 12335 81 cpu0:timer 75201498 irq256: hdac0 12 0 cpu1:timer 92952615 cpu2:timer 74159491 cpu3:timer 97503645 Total 353396 2340 ___ 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"
NTP Autokey configuration
Hi, I have a two servers both of which are not public, I want to configure one of them as a server and the other as a client for ntpd. What is the exact configuration required in both client and servers to get the autokey protocol working? I shall be thankful if you could send a ntp.conf file which works for a scenario described above. Arindam ___ 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: NTP Autokey configuration
On 27/02/2012 14:18, Misra, Arindam wrote: Hi, I have a two servers both of which are not public, I want to configure one of them as a server and the other as a client for ntpd. What is the exact configuration required in both client and servers to get the autokey protocol working? I shall be thankful if you could send a ntp.conf file which works for a scenario described above. Arindam i presume you've tried: http://support.ntp.org/bin/view/Support/ConfiguringAutokey#Section_6.7.2.2. (you'll likely need to use 'freeBSD' paths for /etc/ i.e /usr/local/etc/ if installed from ports). I particulalrly liked *6.7.1 (How to use this guide*) 1. Perform the server set-up before performing the client set-up 2. Follow each step in this guide ___ 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" -- - Paul Macdonald IFDNRG Ltd Web and video hosting - t: 0131 5548070 m: 07970339546
Re: NTP Autokey configuration
Hi, A good start is the manpage of ntp.conf http://www.freebsd.org/cgi/man.cgi?query=ntp.conf&apropos=0&sektion=0&manpath=FreeBSD+9.0-RELEASE+and+Ports&arch=default&format=html The authentification support is described. You have the handbook page for the basics : http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-ntp.html Regards, Alexandre On Mon, Feb 27, 2012 at 3:18 PM, Misra, Arindam wrote: > Hi, > > > I have a two servers both of which are not public, I want to configure one > of them as a server and the other as a client for ntpd. What is the exact > configuration required in both client and servers to get the autokey > protocol working? I shall be thankful if you could send a ntp.conf file > which works for a scenario described above. > > Arindam > > > > ___ > 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: Email issues, relay failure, perhaps Jails is causing it.
Hello Can anybody assist me with pfctl on freebsd? I have pfctl running as adaptive. It is blocking some smtp mail. I am uncertain about flushing the states or machining some of the TIMEWAITING constraints go away. Which is really blocking my email. Can anyone assist? Thanks -Original Message- From: Bernt Hansson [mailto:b...@bananmonarki.se] Sent: Sunday, February 26, 2012 2:20 AM To: Bender, Chris Cc: freebsd-questions@freebsd.org Subject: Re: Email issues, relay failure, perhaps Jails is causing it. 2012-02-26 00:54, Bender, Chris skrev: > Hi Brent > > Yes the system we are calling X, is jailed by another system. > > Here is the jailer system: > > zs1# netstat -aptcp | grep smtp > tcp4 0 0 tools2.smtp10.156.31.20.45081 > SYN_RCVD > tcp4 0 0 tools2.smtp*.* LISTEN > tcp4 0 0 rt3.smtp *.* LISTEN > tcp4 0 0 npims.smtp *.* LISTEN > tcp4 0 0 wiki.smtp *.* LISTEN > tcp4 0 0 localhost.smtp *.* LISTEN Here is about jails; http://www.uk.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails.html Have you tried to telnet into the other jailed hostnames and ip-addresses, like telnet rt3.* 25 What does it say? Can you connect? There seems to be either a jail problem or a routing problem You can look at your routing table with netstat -r ___ 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: Email issues, relay failure, perhaps Jails is causing it.
Does anybody have an idea on how to clear the bruteforCE TABLE ON PFCTL ? An adaptive fw or pftcl device is blocking some of my email? Thanks -Original Message- From: Bernt Hansson [mailto:b...@bananmonarki.se] Sent: Sunday, February 26, 2012 2:20 AM To: Bender, Chris Cc: freebsd-questions@freebsd.org Subject: Re: Email issues, relay failure, perhaps Jails is causing it. 2012-02-26 00:54, Bender, Chris skrev: > Hi Brent > > Yes the system we are calling X, is jailed by another system. > > Here is the jailer system: > > zs1# netstat -aptcp | grep smtp > tcp4 0 0 tools2.smtp10.156.31.20.45081 > SYN_RCVD > tcp4 0 0 tools2.smtp*.* LISTEN > tcp4 0 0 rt3.smtp *.* LISTEN > tcp4 0 0 npims.smtp *.* LISTEN > tcp4 0 0 wiki.smtp *.* LISTEN > tcp4 0 0 localhost.smtp *.* LISTEN Here is about jails; http://www.uk.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails.html Have you tried to telnet into the other jailed hostnames and ip-addresses, like telnet rt3.* 25 What does it say? Can you connect? There seems to be either a jail problem or a routing problem You can look at your routing table with netstat -r ___ 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: Email issues, relay failure
On 2/25/12 1:39 PM, Bender, Chris wrote: Thanks. There aren't any firewalls between the devices but they are far apart. On 2/27/12 11:12 AM, Bender, Chris wrote: > Can anybody assist me with pfctl on freebsd? > I have pfctl running as adaptive. It is blocking some smtp mail. ! BTW, pfctl is the program for controlling the firewall. The actual firewall is generally referred to as pf. So if you just turn PF off for a bit, does e-mail suddenly flow? -- --Jon Radel j...@radel.com
RE: Email issues, relay failure
Yes after a few minutes the email in question begins to flow. AT some point in the past some of the postfix boxes behind the firewall Where turned off. This caused the fw, I believe to think it was being Attacked because it had nowhere to push the smtp traffic. I believe that is why on several IPs I see TIME_WAITING for the connections. I was thinking about just reloading the pf.conf but I have never worked with pf so I am worried other things might break. My thought was by doing that the Adaptive part of the pfctl would be restarted? Does that make sense would reloading the rules wash the adaptive behavior away or Would all that still be in some sort of bruteforce file to protect the firewall? Thanks -Original Message- From: Jon Radel [mailto:j...@radel.com] Sent: Monday, February 27, 2012 11:39 AM To: Bender, Chris; freebsd-questions@freebsd.org Subject: Re: Email issues, relay failure On 2/25/12 1:39 PM, Bender, Chris wrote: > Thanks. There aren't any firewalls between the devices but they are far apart. On 2/27/12 11:12 AM, Bender, Chris wrote: > Can anybody assist me with pfctl on freebsd? > I have pfctl running as adaptive. It is blocking some smtp mail. ! BTW, pfctl is the program for controlling the firewall. The actual firewall is generally referred to as pf. So if you just turn PF off for a bit, does e-mail suddenly flow? -- --Jon Radel j...@radel.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"
Cloning a FreeBSD system
Hello all! I'm relatively new to FreeBSD but I'm enjoying it so far. I have FreeBSD 9.0 installed as a VirtualBox guest, and I plan on cloning it repeatedly to set up a fake network for me to toy with (e.g. setting up clusters of replicated databases, web server pools, etc). Here's the list of things I need to change on each new clone, am I missing anything obvious? Or are there any gotchas to what I'm trying? 1) I have to change the hostname in rc.conf 2) I have to change the IP address in rc.conf (I'm using static IPs) 2a) I saw (on the internet) some people having problems because VirtualBox generates a new MAC address for cloned "machines", which somehow screws up the naming of the network interfaces (e.g. they get renumbered, thereby ignoring any configuration you have set up). Now I can't find it anymore, at least not for FreeBSD. Some Linux forums have info about "/etc/udev/rules.d/70-persistent-net.rules" which doesn't exist in FreeBSD as far as I can tell. Is this a concern? I don't seem to be having a problem but TBH I'd rather understand what is going on than just be lucky. 3) Create new SSH keys 3a) For host keys, I can delete the existing ones in /etc/ssh/ and reboot, is there a better way? 3b) Should I bother changing the SSH keys for any users I have? It is basically one user (I use to log in with) which will be the same across the board anyway. Thanks for any insight! -- Stephen ___ 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: Email issues, relay failure
On 2/27/12 11:45 AM, Bender, Chris wrote: I was thinking about just reloading the pf.conf but I have never worked with pf so I am worried other things might break. My thought was by doing that the Adaptive part of the pfctl would be restarted? Any pf.conf file I've ever seen does something sensible after reload. I suspect one could write something perverse that blows up on restart, but that would making rebooting the machine problematic Does that make sense would reloading the rules wash the adaptive behavior away or Would all that still be in some sort of bruteforce file to protect the firewall? pf can load data from files when it starts or just manage things in a fashion that is transient upon restart. Hard to say what's happening in your case w/o a clue as to what's in pf.conf. I'd suggest that you at the very least whitelist internal SMTP speakers that you expect to get e-mail from on a regular basis, even if you do throttling of SMTP connections in general. Much less messy -- --Jon Radel j...@radel.com
RE: Email issues, relay failure
How would I whitelist SMTP speakers? I am thinking it would be ok to reload the rules, would that clear the issue with SMTP users for now? Whats the harm? Thanks -Original Message- From: Jon Radel [mailto:j...@radel.com] Sent: Monday, February 27, 2012 11:58 AM To: Bender, Chris Cc: freebsd-questions@freebsd.org Subject: Re: Email issues, relay failure On 2/27/12 11:45 AM, Bender, Chris wrote: > I was thinking about just reloading the pf.conf but I have never worked > with pf so > I am worried other things might break. My thought was by doing that the > Adaptive part of the pfctl would be restarted? Any pf.conf file I've ever seen does something sensible after reload. I suspect one could write something perverse that blows up on restart, but that would making rebooting the machine problematic > > Does that make sense would reloading the rules wash the adaptive > behavior away or > Would all that still be in some sort of bruteforce file to protect the > firewall? pf can load data from files when it starts or just manage things in a fashion that is transient upon restart. Hard to say what's happening in your case w/o a clue as to what's in pf.conf. I'd suggest that you at the very least whitelist internal SMTP speakers that you expect to get e-mail from on a regular basis, even if you do throttling of SMTP connections in general. Much less messy -- --Jon Radel j...@radel.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"
Re: Email issues, relay failure
On 2/27/12 12:00 PM, Bender, Chris wrote: How would I whitelist SMTP speakers? You're invited to read the documentation. The Book of PF: A No-Nonsense Guide to the OpenBSD Firewall, 2nd ed., is also rather informative, although one has to keep in mind that the version of PF in FreeBSD lags that in OpenBSD. I am thinking it would be ok to reload the rules, would that clear the issue with SMTP users for now? Whats the harm? The universe might grind to a halt. This would upset a great many people. This outcome, however, is exceedingly unlikely. Again, with no clue as to what's in pf.conf, I could offer only the vaguest guesses based in part on my judged competence of the author of your pf.conf. Since your pf.conf appears to have possibly destroyed your e-mail infrastructure, the preliminary assessment is a bit shaky. -- --Jon Radel j...@radel.com
Re: Cloning a FreeBSD system
On 2/27/12 5:54 PM, Stephen Cook wrote: > Hello all! > > I'm relatively new to FreeBSD but I'm enjoying it so far. > > I have FreeBSD 9.0 installed as a VirtualBox guest, and I plan on > cloning it repeatedly to set up a fake network for me to toy with (e.g. > setting up clusters of replicated databases, web server pools, etc). [snip] > 3) Create new SSH keys > 3a) For host keys, I can delete the existing ones in /etc/ssh/ and > reboot, is there a better way? > 3b) Should I bother changing the SSH keys for any users I have? It > is basically one user (I use to log in with) which will be the same > across the board anyway. > Why bother changing keys if this is only a "fake network for you to toy with" ? Let them be. ___ 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 SDcard behaviour in freebsd-9.0-R
Hi list, I recently upgraded from 8.2-R to 9.0-R via freebsd-update and noticed different behaviour when I plug in my Nikon D50 via the usb port. I'm using the generic kernel while I try to sort this. It is the same in all but identity. 8.2 behaviour used to create a device /dev/da(x)s1 depending on what else was also connected to the USB subsystem. Typically the system would see the card whilst it was still in the camera as /dev/da5s1 and I could then mount it with mount_msdosfs. 9.0 behaviour just shows the following in /var/log/messages: Feb 26 09:18:02 potato kernel: ugen4.6: at usbus4 Feb 26 09:18:02 potato kernel: umass2: on usbus4 Feb 26 09:18:02 potato kernel: umass2: SCSI over Bulk-Only; quirks = 0x4100 Feb 26 09:18:02 potato kernel: umass2:5:2:-1: Attached to scbus5 and nothing corresponding to the device in /dev What am I doing wrong? thanks, -- freebsd at growveg dot net ___ 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 SDcard behaviour in freebsd-9.0-R
Forgive the naive question, but on one of my Nikons, it is possible to present the device itself, or the SD card as a USD drive. Which are you doing? No doubt there is no driver for the D50 in the kernel, but the generic umass driver should handle the device. On Mon, Feb 27, 2012 at 9:47 AM, John wrote: > Hi list, > > I recently upgraded from 8.2-R to 9.0-R via freebsd-update and noticed > different behaviour when I plug in my Nikon D50 via the usb port. I'm > using the generic kernel while I try to sort this. It is the same in all > but identity. > > 8.2 behaviour used to create a device /dev/da(x)s1 depending on what > else was also connected to the USB subsystem. Typically the system would > see the card whilst it was still in the camera as /dev/da5s1 and I could > then mount it with mount_msdosfs. > > 9.0 behaviour just shows the following in /var/log/messages: > > Feb 26 09:18:02 potato kernel: ugen4.6: at usbus4 > Feb 26 09:18:02 potato kernel: umass2: rev 2.00/1.00, addr 6> on usbus4 > Feb 26 09:18:02 potato kernel: umass2: SCSI over Bulk-Only; quirks = 0x4100 > Feb 26 09:18:02 potato kernel: umass2:5:2:-1: Attached to scbus5 > > and nothing corresponding to the device in /dev > > What am I doing wrong? > > thanks, > -- > freebsd at growveg dot net > ___ > 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: Cloning a FreeBSD system
On Mon, Feb 27, 2012 at 10:54 AM, Stephen Cook wrote: > >2a) I saw (on the internet) some people having problems because > VirtualBox generates a new MAC address for cloned "machines", which somehow > screws up the naming of the network interfaces (e.g. they get renumbered, > thereby ignoring any configuration you have set up). Now I can't find it > anymore, at least not for FreeBSD. Some Linux forums have info about > "/etc/udev/rules.d/70-**persistent-net.rules" which doesn't exist in > FreeBSD as far as I can tell. Is this a concern? I don't seem to be having > a problem but TBH I'd rather understand what is going on than just be lucky. > You can set the MAC address statically in the VB machine. I don't know if it changes it by cloning a system, but even if it does you can change to what you want even with the GUI tools. FreeBSD doesn't use udev, and you should be thankful for it. What a nightmare when you want to do advanced things with your NIC's. What I'm guessing your reading about are people who have multiple nic's in the Vbox guest, and upon cloning mac addresses are changed for the devices. Since Linux device detection doesn't enumerate things the same way each time they created udev so devices would appear to have this. Well as you've seen evidence of, this doesn't work so well when tryin to script things on unknown devices. All this trouble to save a few seconds of boot time. > 3) Create new SSH keys >3a) For host keys, I can delete the existing ones in /etc/ssh/ and > reboot, is there a better way? > ssh-keygen(1) is the typical method. -- Adam Vande More ___ 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: clang vs gcc linking problem
On Sun, Feb 26, 2012 at 1:03 AM, Julian H. Stacey wrote: > Artifex Maximus wrote: > > Hello! > > > > Absolutely not a flame war but would like to switch to clang in a > > project. Project uses ncurses. gcc works well but the executable fails > > when compiled other than -O0. Then I think I should change to clang > > which will becomes the default compiler in FreeBSD. With clang at > > linking time I got the following error: > > > > /usr/local/bin/ld: display/libsub_display.a(canvas.o): undefined > > reference to symbol 'keypad' > > /usr/local/bin/ld: note: 'keypad' is defined in DSO > > /usr/local/lib/libtinfow.so.6.0 so try adding it to the linker command > > line > > /usr/local/lib/libtinfow.so.6.0: could not read symbols: Invalid > operation > > clang: error: linker command failed with exit code 1 (use -v to see > invocation) > > *** Error code 1 > > > > With exactly the same flags gcc links successful. Any idea where is > > the problem and what is the solution? > > > > Thanks, > > There have been quite a number of discussions on Gcc & Clang > of various lists since efforts to transition started, > I don't see a specific list here, >http://lists.freebsd.org/mailman/listinfo > but this may interest >http://wiki.freebsd.org/BuildingFreeBSDWithClang > Thanks. I did not found any related information on link but finally found a solution. I have to add -ltinfo to LDFLAGS. I still do not know why gcc works without and why clang needs that. Bye, a ___ 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: Cloning a FreeBSD system
On 2/27/12 7:05 PM, Adam Vande More wrote: > On Mon, Feb 27, 2012 at 10:54 AM, Stephen Cook wrote: > >> 3) Create new SSH keys >>3a) For host keys, I can delete the existing ones in /etc/ssh/ and >> reboot, is there a better way? >> > > ssh-keygen(1) is the typical method. > Or just delete the existing keys and sshd will recreate them at first boot ;) ___ 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: Current way of downloading sources
csup -h cvsup.your_country.freebsd.org/usr/share/examples/cvsup/stable-supfile works for ports as well 2012/2/21 Fernando Apesteguía > On Tue, Feb 21, 2012 at -h10:33 PM, Polytropon wrote: > > > On Tue, 21 Feb 2012 21:18:41 +0100, Fernando Apesteguía wrote: > > > Hi all, > > > > > > Before 9.0 I used to use sysinstall to download sources for several > > > distributions including kernel and libraries. However, this doesn't > seem > > to > > > work anymore. Whatever source distribution I try to download I get the > > > error that it doesn't exist in the server. > > > > > > The handbook[1] still says sysinstall can be used to do the job. Is it > > > right? If so, what could be my mistake. > > > > The easiest way to get the RELEASE sources is to download > > them using FTP: > > > > ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/9.0-RELEASE/src.txz > > > > (and for amd64 architecture respectively) > > > > Leaving the discussion "old vs. new installer" aside, this > > method should always work. > > > > Thanks for the URL. Should I file a PR about the handbook issue? > > > > > > > > > > -- > > Polytropon > > Magdeburg, Germany > > Happy FreeBSD user since 4.0 > > Andra moi ennepe, Mousa, ... > > > ___ > 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: Cloning a FreeBSD system
On Mon, Feb 27, 2012 at 10:21 AM, Damien Fleuriot wrote: >> ssh-keygen(1) is the typical method. >> > > Or just delete the existing keys and sshd will recreate them at first > boot ;) No, sshd will not create the keys. They are created by /etc/rc.d/sshd, which invokes ssh-keygen if it doesn't find the key files. ___ 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"
netisr traffic bad distribution between CPUs
http://piccy.info/view3/2678766/170dd8875b0a18e00b00445d373e64a6/orig/ http://piccy.info/view3/2678742/4f522bdf95d34e6ddbb3502bb5f5caaf/orig/ abruptly problems 20-00: traffic fall, CPU load raise with no changes at traffice type. but no problems at 17-00 even with more traffice flow problem also abruptly disappears after some time: two or three hours # netstat -Q Configuration: SettingCurrentLimit Thread count 44 Default queue limit25610240 Direct dispatch disabled n/a Forced direct dispatchdisabled n/a Threads bound to CPUs disabled n/a Protocols: Name Proto QLimit Policy Flags ip 1 1024 flow --- igmp 2256 source --- rtsock 3256 source --- arp7256 source --- ip6 10256 flow --- Workstreams: WSID CPU Name Len WMark Disp'd HDisp'd QDrops Queued Handled 0 0 ip 401 102400 2620979 2131108484 2131107410 0 0 igmp 0 000000 0 0 rtsock 0 1620007861078610 0 0 arp0 9000 189978 189978 0 0 ip60 2000 832 832 1 1 ip 0 744000 805541655 805541655 1 1 igmp 0 000000 1 1 rtsock 0 000000 1 1 arp0 40009659996599 1 1 ip60 1000 2602 2602 2 2 ip25 102400 8173 1817809104 1817809050 2 2 igmp 0 000000 2 2 rtsock 0 000000 2 2 arp020000 278757 278757 2 2 ip60 1000 1095 1095 3 3 ip82 102400 187757 1551553992 1551553909 3 3 igmp 0 000000 3 3 rtsock 0 000000 3 3 arp0 8000 562346 562346 3 3 ip60 30001084310843 FreeBSD 9.0-CURRENT FreeBSD 9.0-CURRENT #4: Fri Jun 10 01:30:12 UTC 2011 @:/usr/obj/usr/src/sys/PAE_KES i386 ___ 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: Email issues, relay failure
Hi Joe So from the rules below, I can see my network to and from in tables to . However when pfctl is enabled that traffic fails with # tcpdump -ni bge0 host 10.156.81.10 and port 25 tcpdump: listening on bge0, link-type EN10MB 14:26:50.220591 10.156.81.10.60809 > 172.19.4.41.25: S 3154136673:3154136673(0) win 64240 (DF) [tos 0xb8] 14:26:50.244314 10.156.81.10.60809 > 172.19.4.41.25: R 3154136674:3154136735(61) ack 1245040067 win 0 (DF) [tos 0xb8] 14:27:11.233494 10.156.81.10.60809 > 172.19.4.41.25: S 3154136673:3154136673(0) win 64240 (DF) [tos 0xb8] 14:27:11.245057 10.156.81.10.60809 > 172.19.4.41.25: R 0:61(61) ack 1 win 0 (DF) [tos 0xb8] SO from traffic aboveon the inbound interface I can see this failed. OUCH. But I don't know what rule is killing it. Here is table table { 10.200.82.16 , 10.200.104.15 , 172.19.4.41 , 198.211.94.23 } table { 10.13.0.0/21 , 10.13.224.0/21 , 10.13.226.0/23 , 10.150.0.0/16 , 10.156.0.0/16 , 10.158.0.0/16 , 10.166.0.0/16 , 10.196.0.0/16 , 10.198.0 .0/16 , 10.200.104.0/24 , 172.16.0.0/16 , 172.19.4.0/24 , 172.19.11.0/24 , 172.19.20.0/24 , 172.19.50.0/24 , 172.19.51.0/24 , 172.19.52.0/24 , 172.19.53.0/24 , 172.19.100.0/29 , 172.19.231.0/24 , 172.19.232.0/24 , 172.31.0.0/16 } Rest of pf.conf since you asked which I have removed confidential info The key is what is blocking SMTP. I am not sure yet? Thanks # # Prolog script # set loginterface bge0 set state-defaults pflow nat-anchor "ftp-proxy/*" rdr-anchor "ftp-proxy/*" nat-anchor "relayd/*" rdr-anchor "relayd/*" anchor "relayd/*" anchor "ftp-proxy/*" # # End of prolog script # set skip on bridge10 set skip on tun579 set skip on tun138 set skip on tun148 set skip on tun10 set skip on bridge138 set skip on bridge148 # # Scrub rules # match in all scrub (no-df ) match out all scrub (random-id max-mss 1460) # Tables: (26) table persist file "/home/admin/BlackList.txt" table persist file "/home/admin/BlackList-internet.txt" # Rule 0 (global) # BlackList Rule block in log quick inet from to any no state label "RULE 0 -- DROP " block out log quick inet from to any no state label "RULE 0 -- DROP " # # Rule 1 (global) # BlackList Rule block in log quick inet from any to no state label "RULE 1 -- DROP " block out log quick inet from any to no state label "RULE 1 -- DROP " # # Rule 2 (global) # BlackList Servers going to Internet block in log quick inet from to 127.0.0.1 no state label "RULE 2 -- DROP " block out log quick inet from to 127.0.0.1 no state label "RULE 2 -- DROP " # # Rule 3 (bge1) # BlackList Servers going to Internet block out log quick on bge1 inet from to any no state label "RULE 3 -- DROP " # # Rule 4 (bge1) # BlackList Internet Ports block out log quick on bge1 inet proto tcp from any to any port { 25, 465 } no state label "RULE 4 -- DROP " # # Rule 5 (global) BLOCKED FOR CONFIIDENTIALITY # Rule 6 (bge1,bge0) # FTP Proxy Loopback Pule pass in log quick on { bge0 bge1 } inet proto tcp from any to 127.0.0.1 port 8021 flags any modulate state ( pflow ) label "RULE 6 -- ACCEPT " # # Rule 7 (bge0,vlan579) pass in log quick on { bge0 vlan579 } inet proto tcp from to 127.0.0.1 port 2021 flags any modulate state ( pflow ) label "RULE 7 -- ACCEPT " # # Rule 8 (bge0,vlan579) pass in log quick on { bge0 vlan579 } inet proto tcp from to 127.0.0.1 port 3128 flags any modulate state ( pflow ) label "RULE 8 -- ACCEPT " # # Rule 9 (global) pass in log quick inet from any to any tagged FTPPROXY keep state ( pflow ) label "RULE 9 -- ACCEPT " pass out log quick inet from any to any tagged FTPPROXY keep state ( pflow ) label "RULE 9 -- ACCEPT " # # Rule 10 (bge1) # Allow ESP, AH, IKE and NAT-T for IPSEC # # Rule 11 (bge1) # BLOCKED FOR CONFIDENTIALITY # # Rule 12 (bge1) # PPTP Traffic BLOCKED FOR CONFIDENTIALITY # # Rule 13 (bge1) # PPTP Traffic BLOCKED FOR CONFIDENTIALITY# # Rule 14 (bge1) # PPTP Traffic pass out log quick on bge1 inet proto 47 from 172.19.231.128/27 to any label "RULE 14 -- ACCEPT " # # Rule 15 (global) Blocked for confidentiality # # Rule 16 (bge0) pass in log quick on bge0 inet proto tcp from to 172.19.231.149 port 1723 flags any modulate state label "RULE 16 -- ACCEPT " pass in log quick on bge0 inet proto 47 from to 172.19.231.149 label "RULE 16 -- ACCEPT " # # Rule 17 (global) pass in log quick inet from to 10.10.11.0/24 label "RULE 17 -- ACCEPT " pass out log quick inet from to 10.10.11.0/24 label "RULE 17 -- ACCEPT " # # Rule 18 (global) pass in log quick inet proto udp from 172.19.231.128/27 to 212.9.21.214 port { 500, 4500 } label "RULE 18 -- ACCEPT " pass in log quick inet proto 50 from 172.19.231.128/27 to 212.9.21.214 label "RULE 18 -- ACCEPT " pass in log quick inet proto 51 from 172.19.231.128/27 to 212.9.21.214 label "RULE 18 -- ACCEPT " pass out log quick inet proto udp from 172.19.231.128/27 to 212.9.21.214
Re: Installing Samsung CLX-2160 color laser printer on USB using CUPS
On Sun, 26 Feb 2012 22:29:12 +0100, Jerome Herman wrote: > Not at all, the web admin for adding a printer is basically an html > version of lpadmin. It is just easier with the web site. Easier as in: It leaves _essential_ options aside so that you can't perform some of the tasks. :-) > OK this means the ppd does not handle everything. Might get a little > complicated. When I use the foo2qpdl-wrapper which I assume does use the same PPD file, it works as intended. > They did, then they got bought by Apple... I should make myself more familiar with the command line tool. Still I hope I won't need CUPS anytime soon. :-) > No, please don't blame CUPS, it is earnestly trying to cope with > everything thrown at him (stupid printers, gnome DBus autoconfig, Apple > Mac OSX and so on), and it is doing a fairly good job at it. I know that printing currently isn't as easy as I (with my simple mind) assume. I've been using CUPS in the _past_ without major trouble, and even "impossible" things (like using parallel dotmatrix printers) were easily configurable even through the web interface. Seems that some parts got disimproved to please a certain audience... > I for one > do not want to go back to the time where one had to learn 2 lines long > LPD command just to print in color, double side, with an ICM profile. I have several printers for varying _how_ to print. However, I like the idea of selecting duplex / no duplex in the printing dialog (which I currently do by selecting a different "virtual" printer: Laserjet = b/w two-sided, Laserjet-nodup = b/w single-sided, Samsung = color single-sided). > Getting back to your problem. Apparently you are using an old version of > foo2qpdl, you may want to grab it from the web site directly and compile > it by hand (One of the very rare case where using the default > package/port is not a good idea at all) > You can find the howto here : http://foo2qpdl.rkkda.com/ > You will need to download and link the ICM profile to have acceptable > print quality. The latest PPD is 24 874 bytes in size. I will try that. I have installed the packages foo2zjs-20110609 foomatic-db-20090530_2 foomatic-db-engine-4.0.7,2 gutenprint-foomatic-5.2.4_2 where foo2qpdl and foo2qpdl-wrapper come from. I'm happy that I now have the "fallback method" of stopping CUPS, starting lpd, and using -PSamsung in order to use the color printer (not often required, it's my _first_ one, I've never needed one, really). Using a Linksys Wireless-G WPS54GU2 print server (WLAN, LAN, USB, parallel) - following Jerry's suggestion - I'll try tp get rid of the USB cable at the next step. Wireless printing isn't urgently needed (as I'm happily wired here), but real networking is much better than this local fiddling with USB (so I can print to the color printer from all of my systems when it's _real_ networked, just as the HP Laserjet 4000d which even runs its own lpd "server"). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ 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: Installing Samsung CLX-2160 color laser printer on USB using CUPS
On Mon, 27 Feb 2012 22:24:32 +0100 Polytropon articulated: > Using a Linksys Wireless-G WPS54GU2 print server (WLAN, LAN, > USB, parallel) - following Jerry's suggestion - I'll try tp > get rid of the USB cable at the next step. I spoke to an associate yesterday who claims he used a USB to Ethernet adapter on an older Canon printer and it worked fine. Everything was detected automatically. Obviously, that was on a Windows machine, WinXP to be exact. I still think it should work on FreeBSD although it will undoubtedly need a lot more user intervention. The router was a Netgate wireless model. He did not remember which model. Good luck! -- Jerry ♔ Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __ ___ 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"
"find" not traversing all directories on a single zfs file system
Summary: I am executing the command "find . > ../file_list" and it is not traversing all the subdirectories it encounters along the way. There is no separate file system mounted along the path. Long version: I'm new to FreeBSD and ZFS (many years of linux experience though), so my apologies if I'm missing something straightforward here. This is a tile server which has tens of millions of mostly small files. I'm logged in as root, and there is no networked file system anywhere in the mix. I'm using the version of find installed with FreeBSD 9.0-RELEASE amd64. cd /zfs_mount_point/mydir find . &> ../file_list I would presume that file_list contains a list of every file and directory inside of /zfs_mount_point/mydir, however some directories contain only the directory entry without any of the file and subdirectories it contains. As an example, file_list contains: ./dataset_tiles ./dataset_tiles/token1 ./dataset_tiles/token1/kml ./dataset_tiles/token1/kml/kml.png ./dataset_tiles/token2 ./dataset_tiles/token3 ./dataset_tiles/token3/kml ... The problem is "./dataset_tiles/token2" is a directory, and none of its entries appear anywhere in the file_list. Yet if I do the following: find ./dataset_tiles/token2 I get a list of everything that I would expect to have been in file_list, but did not. "ls -l" shows the entry type character as 'd'. token2 is just a subdirectory of dataset_tiles, not a separate mount point. I should have all the requisite permissions to access the files in that directory, and I can run find successfully if I specify any of the directories which do not seem to be working. Here's an actual 'ls -ld' on one of the directories not working: ls -ld 967c4f32-8a9e-0459-8e94-c911e41be43b/ drwxr-xr-x 10 root wheel 10 Feb 4 21:45 967c4f32-8a9e-0459-8e94-c911e41be43b/ The only other tidbit of information I can think to add is I also tried running "find -d ." with no overall change in output other than the order the directories were searched. Any idea what's going on? Thanks! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Installing Samsung CLX-2160 color laser printer on USB using CUPS
On 27/02/2012 22:24, Polytropon wrote: On Sun, 26 Feb 2012 22:29:12 +0100, Jerome Herman wrote: Not at all, the web admin for adding a printer is basically an html version of lpadmin. It is just easier with the web site. Easier as in: It leaves _essential_ options aside so that you can't perform some of the tasks. :-) Technically speaking, it doesn't leaves essential options aside, it just forgets to mention them. But I get your point. OK this means the ppd does not handle everything. Might get a little complicated. When I use the foo2qpdl-wrapper which I assume does use the same PPD file, it works as intended. Nope, the wrapper is just used to convert ps to QPDL in a plain file. The PPD does a lot more, including a bit of dialog with the printer to make sure it is configured correctly. Most of the time it also helps handling different parameters such as paper size and orientation, color or B&W etc. They did, then they got bought by Apple... I should make myself more familiar with the command line tool. Still I hope I won't need CUPS anytime soon. :-) No, please don't blame CUPS, it is earnestly trying to cope with everything thrown at him (stupid printers, gnome DBus autoconfig, Apple Mac OSX and so on), and it is doing a fairly good job at it. I know that printing currently isn't as easy as I (with my simple mind) assume. I've been using CUPS in the _past_ without major trouble, and even "impossible" things (like using parallel dotmatrix printers) were easily configurable even through the web interface. Seems that some parts got disimproved to please a certain audience... Well Apple way of handling devices : if it doesn't work the way we want, it doesn't exist. I for one do not want to go back to the time where one had to learn 2 lines long LPD command just to print in color, double side, with an ICM profile. I have several printers for varying _how_ to print. However, I like the idea of selecting duplex / no duplex in the printing dialog (which I currently do by selecting a different "virtual" printer: Laserjet = b/w two-sided, Laserjet-nodup = b/w single-sided, Samsung = color single-sided). Normally that is what PPD is for, giving you a bit of control on all those parameters, so you do not have to create dozens of config per printer. (This said quite a lot of my users love to have dozens of configure for one printer, even under windows and mac. They prefer choosing a printer called Graphic_A3_Color_2side than having to choose options themselves) Getting back to your problem. Apparently you are using an old version of foo2qpdl, you may want to grab it from the web site directly and compile it by hand (One of the very rare case where using the default package/port is not a good idea at all) You can find the howto here : http://foo2qpdl.rkkda.com/ You will need to download and link the ICM profile to have acceptable print quality. The latest PPD is 24 874 bytes in size. I will try that. I have installed the packages foo2zjs-20110609 foomatic-db-20090530_2 foomatic-db-engine-4.0.7,2 gutenprint-foomatic-5.2.4_2 where foo2qpdl and foo2qpdl-wrapper come from. I'm happy that I now have the "fallback method" of stopping CUPS, starting lpd, and using -PSamsung in order to use the color printer (not often required, it's my _first_ one, I've never needed one, really). Using a Linksys Wireless-G WPS54GU2 print server (WLAN, LAN, USB, parallel) - following Jerry's suggestion - I'll try tp get rid of the USB cable at the next step. Wireless printing isn't urgently needed (as I'm happily wired here), but real networking is much better than this local fiddling with USB (so I can print to the color printer from all of my systems when it's _real_ networked, just as the HP Laserjet 4000d which even runs its own lpd "server"). On small printers, nothing beats socket connections. But the USB to ethernet transform can be quite tricky sometimes. Usually QPDL is well supported, it is after all a real interpreter. ___ 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: "find" not traversing all directories on a single zfs file system
On 27/02/2012 21:52, Robert Banfield wrote: > Long version: I'm new to FreeBSD and ZFS (many years of linux > experience though), so my apologies if I'm missing something > straightforward here. This is a tile server which has tens of millions > of mostly small files. I'm logged in as root, and there is no networked > file system anywhere in the mix. I'm using the version of find > installed with FreeBSD 9.0-RELEASE amd64. > > cd /zfs_mount_point/mydir > find . &> ../file_list > > I would presume that file_list contains a list of every file and > directory inside of /zfs_mount_point/mydir, however some directories > contain only the directory entry without any of the file and > subdirectories it contains. These are all actual directories -- no symbolic link or anything like that? I assume permissions are not the problem? All directories have at least mode r_x for your user id? (Hmmm... but you are logged in as root -- can't be that then.) How about ACLs? Are you using those at all on your filesystem? The symptoms you are observing are definitely incorrect, and not at all what the vast majority of find(1) users would experience. Something is definitely a bit fubar on your machine. It would be useful to try and establish if it is the find(1) program giving bogus results, or whether it is some other part of the system. Do other methods of printing out the filesystem contents suffer from the same problem -- eg. 'ls -R .' or 'tar -cvf /dev/null .' Is there anything in the system log or printed on the console? (Note: I always find it useful to enable the console.log and all.log by uncommenting the relevant lines in /etc/syslog.conf and following the other instructions there.) Also, is this 9.0-RELEASE straight from the installation media, or did you compile it yourself? If you compiled it yourself, what compiler did you use (gcc or clang)? What optimization and what architecture settings -- trying to tweak such things for maximum optimization frequently leads to dissapointment. If you installed onto ZFS, what procedure did you follow, given that bsdinstall doesn't have that capability yet? Was it by following one of the well-known recipes like http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot ? 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 signature.asc Description: OpenPGP digital signature
Is it worthy upgrading to 9.0 ?
>uname -a FreeBSD mybsd.zsoft.com 8.2-RELEASE FreeBSD 8.2-RELEASE #3: Fri Sep 30 15:23:56 CST 2011 r...@mybsd.zsoft.com:/media/G/usr/obj/media/G/usr/src/sys/MYKERNEL i386 I am using 8.2 for a long time. And it works VERY well. Any suggestion is appreciated! - e^(π.i) + 1 = 0 -- View this message in context: http://freebsd.1045724.n5.nabble.com/Is-it-worthy-upgrading-to-9-0-tp5520494p5520494.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Installing amanda 3.2 from ports
I'm in the process of installing amanda 3.2 (misc/amanda-server) using ports with an Overland AIT-3 library as the storage medium. So far I haven't had a problem with going through the "Build a Basic Configuration" instructions on wiki.zmanda.com. I did have to create a different "amanda" login entry which allowed for "su - amanda" in order to follow the instructions (using "su - amanda"). The server is running 8.3-PRERELEASE/amd64 at this point; the clients will be a CENTOS 6.2 server, a FreeBSD 8.3-STABLE client, and three XP SP3 PCs. I will eventually try to add a Mac client. If there's anyone who's done this before, especially 3.x, and who has words of wisdom I'd very much appreciate the information. Mike Squires mikes at siralan.org UN*X at home since 1986 ___ 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: "find" not traversing all directories on a single zfs file system
On 02/27/2012 05:53 PM, Matthew Seaman wrote: These are all actual directories -- no symbolic link or anything like that? I assume permissions are not the problem? All directories have at least mode r_x for your user id? (Hmmm... but you are logged in as root -- can't be that then.) How about ACLs? Are you using those at all on your filesystem? There are no symbolic links, nor any ACLs at all anywhere on the system. All the directories have rwx for root, and permissions are not a problem. The symptoms you are observing are definitely incorrect, and not at all what the vast majority of find(1) users would experience. Something is definitely a bit fubar on your machine. It would be useful to try and establish if it is the find(1) program giving bogus results, or whether it is some other part of the system. Do other methods of printing out the filesystem contents suffer from the same problem -- eg. 'ls -R .' or 'tar -cvf /dev/null .' ls -R appears to be traversing all subdirectories. Is there anything in the system log or printed on the console? (Note: I always find it useful to enable the console.log and all.log by uncommenting the relevant lines in /etc/syslog.conf and following the other instructions there.) da0 runs the operating system. da1-12 are set up as a RAIDZ2 with 2 hot spares. # zpool status pool: tank0 state: ONLINE scan: none requested config: NAME STATE READ WRITE CKSUM tank0ONLINE 0 0 0 raidz2-0 ONLINE 0 0 0 label/zfsdisk1 ONLINE 0 0 0 label/zfsdisk2 ONLINE 0 0 0 label/zfsdisk3 ONLINE 0 0 0 label/zfsdisk4 ONLINE 0 0 0 label/zfsdisk5 ONLINE 0 0 0 label/zfsdisk6 ONLINE 0 0 0 label/zfsdisk7 ONLINE 0 0 0 label/zfsdisk8 ONLINE 0 0 0 label/zfsdisk9 ONLINE 0 0 0 label/zfsdisk10 ONLINE 0 0 0 spares label/zfsdisk11AVAIL label/zfsdisk12AVAIL # glabel status Name Status Components gptid/d49367f4-5cfc-11e1-be4b-000423b4b110 N/A da0p1 label/zfsdisk1 N/A da1 label/zfsdisk2 N/A da2 label/zfsdisk3 N/A da3 label/zfsdisk4 N/A da4 label/zfsdisk5 N/A da5 label/zfsdisk6 N/A da6 label/zfsdisk7 N/A da7 label/zfsdisk8 N/A da8 label/zfsdisk9 N/A da9 label/zfsdisk10 N/A da10 label/zfsdisk11 N/A da11 label/zfsdisk12 N/A da12 These messages appear in the output of dmesg: GEOM: da1: the primary GPT table is corrupt or invalid. GEOM: da1: using the secondary instead -- recovery strongly advised. (repeat for da2 - da12) GEOM: da1: corrupt or invalid GPT detected. GEOM: da1: GPT rejected -- may not be recoverable. GEOM: da1: corrupt or invalid GPT detected. GEOM: da1: GPT rejected -- may not be recoverable. (repeat for da2-da12) GEOM: label/zfsdisk1: corrupt or invalid GPT detected. GEOM: label/zfsdisk1: GPT rejected -- may not be recoverable. Could this be related, or a separate issue? Also, is this 9.0-RELEASE straight from the installation media, or did you compile it yourself? If you compiled it yourself, what compiler did you use (gcc or clang)? What optimization and what architecture settings -- trying to tweak such things for maximum optimization frequently leads to dissapointment. This is straight from the 64-bit memstick install. I have used both the standard install /usr/bin/find as well as a compiled /usr/src/usr.bin/find/ and both give the same results. I have no tweaks for zfs other than to zfs_enable on boot. Because this machine has 16GB of RAM, I believe prefetch is automatically enabled. I have some additional information that I didnt see before actually digging into the log file. It is quite interesting. There are 82,206 subdirectories in one of the folders. Like this: /zfs_mount/directoryA/token[1-82206]/various_tileset_files When looking at the output of find, here is what I see: Lines 1-9996943: The output of find, good as good can be Lines 9996944-10062479: Subdirectory entries only, it traversed none of them. Notice 10062479-9996944+1 = 65536 = 2^16 So, of the 82206 subdirectories, the first 82206-2^16 were traversed, and the final 2^16 were not. The plot thickens... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "free
Re: "find" not traversing all directories on a single zfs file system
On 02/27/2012 09:21 PM, Robert Banfield wrote: ls -R appears to be traversing all subdirectories. Scratch that... ls -R fails to traverse the same directories that find does. Is there a subdirectory limit in ZFS? ___ 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 SDcard behaviour in freebsd-9.0-R
On 27/02/2012 17:55, Michael Sierchio wrote: Forgive the naive question, but on one of my Nikons, it is possible to present the device itself, or the SD card as a USD drive. Which are you doing? No doubt there is no driver for the D50 in the kernel, but the generic umass driver should handle the device. Hi, Yes, on freebsd 8.2 the camera has only ever presented itself as storage and it has only ever been the sd card within the camera that has been visible to freebsd. On 9.0 I can see umass output in /var/log/messages but not any corresponding disk descriptor like /dev/da5s1 so I have no way of accessing the sd card. -- freebsd at growveg dot net ___ 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"
DTrace userland
I'm using FreeBSD 9.0 on amd64 in VMware Fusion and trying to DTrace userland programs. I think I must be doing something wrong. I recompiled my kernel and world, following the instructions at http://wiki.freebsd.org/DTrace and I've read http://wiki.freebsd.org/DTrace/userland: The test.c pid provider example worked fine for me: $ sudo dtrace -s pid.d -c ./test dtrace: script 'pid.d' matched 2 probes dtrace: buffer size lowered to 1m CPU IDFUNCTION:NAME 0 43030 main:entry 0 43031 sleep:entry 0 43031 sleep:entry 0 43031 sleep:entry As does a simple probe of test.c specified with the -n option: [marca@freebsd9-0 ~]$ sudo dtrace -n 'pid$target:test:main:entry' -c ./test dtrace: description 'pid$target:test:main:entry' matched 1 probe dtrace: buffer size lowered to 1m CPU IDFUNCTION:NAME 0 43030 main:entry When I start trying to dtrace other programs, things don't go so well... $ sudo dtrace -n ":::entry" -c /usr/local/bin/python Python 2.4.5 (#2, Dec 5 2011, 15:19:09) [GCC 4.2.1 20070831 patched [FreeBSD]] on freebsd9 Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> os.getpid() 1603 >>> dtrace: failed to control pid 1603: process exited with status 0 $ sudo dtrace -n 'pid$target:::entry' -c '/bin/cat hello_world.txt' dtrace: description 'pid$target:::entry' matched 3315 probes dtrace: buffer size lowered to 1m CPU IDFUNCTION:NAME 0 43448 _rtld_bind:entry 0 43903 rlock_acquire:entry 0 43125def_thread_set_flag:entry (Had to hit Ctrl-C to exit; it never displayed hello_world.txt to stdout) [marca@freebsd9-0 /usr/ports/sysutils/coreutils]$ sudo make install ... [marca@freebsd9-0 /usr/ports/sysutils/coreutils]$ sudo dtrace -n 'pid$target:::entry' -c '/usr/local/bin/gcat config.log' dtrace: description 'pid$target:::entry' matched 3823 probes dtrace: buffer size lowered to 1m CPU IDFUNCTION:NAME 0 43524 _rtld_bind:entry 0 43979 rlock_acquire:entry 0 43201def_thread_set_flag:entry ^C $ sudo dtrace -n 'pid$target:cat:main:entry' -c '/bin/cat hello_world.txt' causes a kernel panic. According to the core.txt file, it was a "Fatal trap 10: trace trap while in kernel mode" and here's the KDB backtrace: KDB: stack backtrace: #0 0x8089025e at kdb_backtrace+0x5e #1 0x80858ce7 at panic+0x187 #2 0x80b4bf20 at trap_fatal+0x290 #3 0x80b4c540 at trap+0x180 #4 0x80b36963 at calltrap+0x8 #5 0x8162583d at dtrace_assfail+0x2d #6 0x8188aa2e at fasttrap_provider_free+0x1de #7 0x8188ad13 at fasttrap_pid_cleanup_cb+0x1c3 #8 0x8086dfa1 at softclock+0x3a1 #9 0x8082d724 at intr_event_execute_handlers+0x104 #10 0x8082eee4 at ithread_loop+0xa4 #11 0x8082a34f at fork_exit+0x11f #12 0x80b36e8e at fork_trampoline+0xe [marca@freebsd9-0 /usr/ports/sysutils/coreutils]$ sudo dtrace -n 'pid$target:gcat::entry' -c '/usr/local/bin/gcat config.log' (Another kernel panic) I can provide full crash dumps if necessary. Any idea what's going on here? Cheers, Marc ___ 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: DTrace userland
Another strange behavior: [Tab 1] $ /bin/sleep 300 & [1] 1806 [Tab 2] $ sudo dtrace -n 'pid1806:sleep::entry' $ echo $? 158 [Tab 1] [1]+ Killed: 9 /bin/sleep 300 Something seems very wrong that DTrace is killing processes and causing kernel panics. Marc On Mon, Feb 27, 2012 at 10:22 PM, Marc Abramowitz wrote: > I'm using FreeBSD 9.0 on amd64 in VMware Fusion and trying to DTrace > userland programs. I think I must be doing something wrong. > > I recompiled my kernel and world, following the instructions at > http://wiki.freebsd.org/DTrace and I've read > http://wiki.freebsd.org/DTrace/userland: > > The test.c pid provider example worked fine for me: > > $ sudo dtrace -s pid.d -c ./test > dtrace: script 'pid.d' matched 2 probes > dtrace: buffer size lowered to 1m > CPU IDFUNCTION:NAME > 0 43030 main:entry > 0 43031 sleep:entry > 0 43031 sleep:entry > 0 43031 sleep:entry > > As does a simple probe of test.c specified with the -n option: > > [marca@freebsd9-0 ~]$ sudo dtrace -n 'pid$target:test:main:entry' -c > ./test > dtrace: description 'pid$target:test:main:entry' matched 1 probe > dtrace: buffer size lowered to 1m > CPU IDFUNCTION:NAME > 0 43030 main:entry > > When I start trying to dtrace other programs, things don't go so well... > > $ sudo dtrace -n ":::entry" -c /usr/local/bin/python > Python 2.4.5 (#2, Dec 5 2011, 15:19:09) > [GCC 4.2.1 20070831 patched [FreeBSD]] on freebsd9 > Type "help", "copyright", "credits" or "license" for more information. > >>> import os > >>> os.getpid() > 1603 > >>> > dtrace: failed to control pid 1603: process exited with status 0 > > $ sudo dtrace -n 'pid$target:::entry' -c '/bin/cat hello_world.txt' > dtrace: description 'pid$target:::entry' matched 3315 probes > dtrace: buffer size lowered to 1m > CPU IDFUNCTION:NAME > 0 43448 _rtld_bind:entry > 0 43903 rlock_acquire:entry > 0 43125def_thread_set_flag:entry > (Had to hit Ctrl-C to exit; it never displayed hello_world.txt to stdout) > > [marca@freebsd9-0 /usr/ports/sysutils/coreutils]$ sudo make install > ... > [marca@freebsd9-0 /usr/ports/sysutils/coreutils]$ sudo dtrace -n > 'pid$target:::entry' -c '/usr/local/bin/gcat config.log' > dtrace: description 'pid$target:::entry' matched 3823 probes > dtrace: buffer size lowered to 1m > CPU IDFUNCTION:NAME > 0 43524 _rtld_bind:entry > 0 43979 rlock_acquire:entry > 0 43201def_thread_set_flag:entry > ^C > > $ sudo dtrace -n 'pid$target:cat:main:entry' -c '/bin/cat hello_world.txt' > causes a kernel panic. > According to the core.txt file, it was a "Fatal trap 10: trace trap while > in kernel mode" and here's the KDB backtrace: > > KDB: stack backtrace: > #0 0x8089025e at kdb_backtrace+0x5e > #1 0x80858ce7 at panic+0x187 > #2 0x80b4bf20 at trap_fatal+0x290 > #3 0x80b4c540 at trap+0x180 > #4 0x80b36963 at calltrap+0x8 > #5 0x8162583d at dtrace_assfail+0x2d > #6 0x8188aa2e at fasttrap_provider_free+0x1de > #7 0x8188ad13 at fasttrap_pid_cleanup_cb+0x1c3 > #8 0x8086dfa1 at softclock+0x3a1 > #9 0x8082d724 at intr_event_execute_handlers+0x104 > #10 0x8082eee4 at ithread_loop+0xa4 > #11 0x8082a34f at fork_exit+0x11f > #12 0x80b36e8e at fork_trampoline+0xe > > [marca@freebsd9-0 /usr/ports/sysutils/coreutils]$ sudo dtrace -n > 'pid$target:gcat::entry' -c '/usr/local/bin/gcat config.log' > (Another kernel panic) > > I can provide full crash dumps if necessary. > > Any idea what's going on here? > > Cheers, > Marc > > > > ___ 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"
Delete files let FreeBSD crashes.
i installed freebsd 9 on virtualbox, when i try to delete a directory with following command: rm -rf ./zf2 the system will halt , then restart. i had using fsck -y to check the filesystem, but seems not work. following the output: - bsd# cd /root/repos/ bsd# ls -l total 8 drwxr-xr-x 12 root wheel 1024 Feb 28 14:26 httpd drwxr-xr-x 4 root wheel 512 Feb 28 14:53 zf2 bsd# fsck -y ** /dev/ada0p2 (NO WRITE) USE JOURNAL? no ** Skipping journal, falling through to full fsck SETTING DIRTY FLAG IN READ_ONLY MODE UNEXPECTED SOFT UPDATE INCONSISTENCY ** Last Mounted on / ** Root file system ** Phase 1 - Check Blocks and Sizes INCORRECT BLOCK COUNT I=332256 (2688 should be 768) CORRECT? no 1393793 DUP I=332265 UNEXPECTED SOFT UPDATE INCONSISTENCY 1393794 DUP I=332265 UNEXPECTED SOFT UPDATE INCONSISTENCY 1402537 DUP I=332266 UNEXPECTED SOFT UPDATE INCONSISTENCY INTERNAL ERROR: dups with softupdates UNEXPECTED SOFT UPDATE INCONSISTENCY ** Phase 1b - Rescan For More DUPS 1402537 DUP I=331641 UNEXPECTED SOFT UPDATE INCONSISTENCY 1393793 DUP I=332080 UNEXPECTED SOFT UPDATE INCONSISTENCY 1393794 DUP I=332080 UNEXPECTED SOFT UPDATE INCONSISTENCY ** Phase 2 - Check Pathnames DUP/BAD I=331641 OWNER=root MODE=100600 SIZE=3011 MTIME=Feb 28 14:59 2012 FILE=/root/.history UNEXPECTED SOFT UPDATE INCONSISTENCY REMOVE? no DUP/BAD I=332080 OWNER=root MODE=100600 SIZE=9115 MTIME=Feb 28 14:58 2012 FILE=/root/.viminfo UNEXPECTED SOFT UPDATE INCONSISTENCY REMOVE? no DIRECTORY CORRUPTED I=332254 OWNER=root MODE=40755 SIZE=512 MTIME=Feb 28 14:33 2012 DIR=? UNEXPECTED SOFT UPDATE INCONSISTENCY SALVAGE? no MISSING '.' I=332254 OWNER=root MODE=40755 SIZE=512 MTIME=Feb 28 14:33 2012 DIR=? UNEXPECTED SOFT UPDATE INCONSISTENCY FIX? no DIRECTORY CORRUPTED I=332277 OWNER=root MODE=40755 SIZE=512 MTIME=Feb 28 14:33 2012 DIR=? UNEXPECTED SOFT UPDATE INCONSISTENCY SALVAGE? no MISSING '.' I=332277 OWNER=root MODE=40755 SIZE=512 MTIME=Feb 28 14:33 2012 DIR=? UNEXPECTED SOFT UPDATE INCONSISTENCY FIX? no UNALLOCATED I=332089 OWNER=root MODE=0 SIZE=0 MTIME=Feb 28 14:51 2012 NAME=/root/repos/zf2/.git/objects/pack/tmp_pack_KboUfa UNEXPECTED SOFT UPDATE INCONSISTENCY REMOVE? no SETTING DIRTY FLAG IN READ_ONLY MODE UNEXPECTED SOFT UPDATE INCONSISTENCY SETTING DIRTY FLAG IN READ_ONLY MODE UNEXPECTED SOFT UPDATE INCONSISTENCY DIRECTORY CORRUPTED I=332275 OWNER=root MODE=40755 SIZE=512 MTIME=Feb 28 14:33 2012 DIR=? UNEXPECTED SOFT UPDATE INCONSISTENCY SALVAGE? no MISSING '.' I=332275 OWNER=root MODE=40755 SIZE=512 MTIME=Feb 28 14:33 2012 DIR=? UNEXPECTED SOFT UPDATE INCONSISTENCY FIX? no DIRECTORY CORRUPTED I=426347 OWNER=root MODE=40755 SIZE=512 MTIME=Feb 28 14:33 2012 DIR=? UNEXPECTED SOFT UPDATE INCONSISTENCY SALVAGE? no MISSING '.' I=426347 OWNER=root MODE=40755 SIZE=512 MTIME=Feb 28 14:33 2012 DIR=? UNEXPECTED SOFT UPDATE INCONSISTENCY FIX? no BAD INODE NUMBER FOR '.' I=426361 OWNER=root MODE=40755 SIZE=512 MTIME=Feb 28 14:33 2012 DIR=? UNEXPECTED SOFT UPDATE INCONSISTENCY FIX? no BAD TYPE VALUE I=426374 OWNER=root MODE=100644 SIZE=4289 MTIME=Feb 28 14:33 2012 FILE=?/pngtest UNEXPECTED SOFT UPDATE INCONSISTENCY FIX? no BAD TYPE VALUE I=426375 OWNER=root MODE=100644 SIZE=11439 MTIME=Feb 28 14:33 2012 FILE=?/zlib UNEXPECTED SOFT UPDATE INCONSISTENCY FIX? no BAD TYPE VALUE I=426376 OWNER=root MODE=100644 SIZE=5444 MTIME=Feb 28 14:33 2012 FILE=?/libpng UNEXPECTED SOFT UPDATE INCONSISTENCY FIX? no UNALLOCATED I=439236 OWNER=root MODE=0 SIZE=0 MTIME=Feb 28 14:33 2012 NAME=/root/repos/zf2/library/Zend/Feed/Writer/AbstractFeed.php UNEXPECTED SOFT UPDATE INCONSISTENCY REMOVE? no UNALLOCATED I=439237 OWNER=root MODE=0 SIZE=0 MTIME=Feb 28 14:33 2012 NAME=/root/repos/zf2/library/Zend/Feed/Writer/Deleted.php UNEXPECTED SOFT UPDATE INCONSISTENCY REMOVE? no UNALLOCATED I=439238 OWNER=root MODE=0 SIZE=0 MTIME=Feb 28 14:33 2012 NAME=/root/repos/zf2/library/Zend/Feed/Writer/Entry.php UNEXPECTED SOFT UPDATE INCONSISTENCY REMOVE? no ** Phase 3 - Check Connectivity UNREF DIR I=441064 OWNER=root MODE=40755 SIZE=1024 MTIME=Feb 28 14:51 2012 RECONNECT? no UNREF DIR I=441056 OWNER=root MODE=40755 SIZE=512 MTIME=Feb 28 14:51 2012 RECONNECT? no UNREF DIR I=426361 OWNER=root MODE=40755 SIZE=512 MTIME=Feb 28 14:33 2012 RECONNECT? no UNREF DIR I=426347 OWNER=root MODE=40755 SIZE=512 MTIME=Feb 28 14:33 2012 RECONNECT? no UNREF DIR I=332275 OWNER=root MODE=40755 SIZE=512 MTIME=Feb 28 14:33 2012 RECONNECT? no UNREF DIR I=363375 OWNER=root MODE=40755 SIZE=512 MTIME=Feb 28 14:51 2012 RECONNECT? no UNREF DIR I=332277 OWNER=root MODE=40755 SIZE=512 MTIME=Feb 28 14:33 2012 RECONNECT? no UNREF DIR I=332254 OWNER=root MODE=40755 SIZE=512 MTIME=Feb 28 14:33 2012 RECONNECT? no UNREF DIR I=332253 OWNER=root MODE=40755 SIZE=512 MTIME=Feb 28 14:33 2012 RECONNECT? no ** Phase 4 - Check Reference Counts UNREF FILE I=194795 OWNER=operator MODE=100400 SIZE=2048 MTIME=Feb 28 13:11 2012 RECONN