problems with port upgrade consistency using portsnap
Hello, I am using portsnap to update my port collection on FreeBSD 9.1 the first time I ran it a few weeks ago I did| || |||portsnap fetch| || |and then portsnap exctract then I did a crontab script to update ports every night 0 3 * * * /usr/sbin/portsnap -I cron update pkg_version -vIL= Now after a few weeks pkg_version is reporting me a lot of ports which needs updating dbus-glib-0.100.1 needs updating (index has 0.100.2) desktop-file-utils-0.18needs updating (index has 0.21) dokuwiki-20121013 needs updating (index has 20130510) freetype2-2.4.11 needs updating (index has 2.4.12_1) intltool-0.41.1needs updating (index has 0.50.2) p5-HTML-Parser-3.70needs updating (index has 3.71) p5-LWP-Protocol-https-6.03 needs updating (index has 6.04) php5-5.4.14needs updating (index has 5.4.15) php5-dom-5.4.14needs updating (index has 5.4.15) php5-exif-5.4.14 needs updating (index has 5.4.15) php5-fileinfo-5.4.14 needs updating (index has 5.4.15) php5-gd-5.4.14 needs updating (index has 5.4.15) php5-iconv-5.4.14 needs updating (index has 5.4.15) php5-json-5.4.14 needs updating (index has 5.4.15) php5-ldap-5.4.14 needs updating (index has 5.4.15) php5-mbstring-5.4.14 needs updating (index has 5.4.15) php5-mcrypt-5.4.14 needs updating (index has 5.4.15) php5-mysql-5.4.14 needs updating (index has 5.4.15) php5-openssl-5.4.14needs updating (index has 5.4.15) php5-session-5.4.14needs updating (index has 5.4.15) php5-xml-5.4.14needs updating (index has 5.4.15) php5-zlib-5.4.14 needs updating (index has 5.4.15) py27-sqlite3-2.7.3_3 needs updating (index has 2.7.5_3) python27-2.7.3_6 needs updating (index has 2.7.5) roundcube-0.8.6,1 needs updating (index has 0.9.0,1) sendmail+tls+sasl2+db42-8.14.7 needs updating (index has 8.14.7_1) sendmail+tls+sasl2-8.14.7 needs updating (index has 8.14.7_1) shared-mime-info-1.0_2 needs updating (index has 1.1) wget-1.14 needs updating (index has 1.14_2) if I use portmaster to upgrade my ports collection it is telling me all packages are up to date... so there is something not working for example py27-sqlite3-2.7.3_3 needs updating (index has 2.7.5_3) but if I go into /usr/ports/lang/python27 and I look in Makefile, it reports PORTNAME= python27 PORTVERSION=2.7.3 PORTREVISION= 6 while it should be PORTNAME= python27 PORTVERSION=2.7.5 PORTREVISION= 3 Looks like the ports database is updated but the ports tree it is not... anyone could give me a hint on why this may happen ? I actually am unable to update my ports collection. thank you very much Rick || ___ 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: check variable content size in sh script
I say this from a FreeBSD context. It may entirely be possible that a Linux distro uses bash in /bin/sh Yes. For most (all?) linux distros as well as osx, /bin/sh is actually bash. When I say emulation mode I mean running a script with a #!/bin/sh header on a system that doesn't have a real copy of sh. Whatever shell ends up running the script is effectively emulating sh's environment, at least in my mind. Bash is well known for not complaining when you use bash-specific features in a script which uses a #!/bin/sh header. This trips up many a programmer and causes script failures on systems where sh is not actually bash in disguise. This is why I question some things as to whether they're *really* valid pure sh syntax and not something that just happens to work in whatever shell is pretending to be sh (which I thought was tcsh on this machine I just did that test on, but on second look maybe not). __ it has a certain smooth-brained appeal ___ 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: problems with port upgrade consistency using portsnap
On 19/05/2013 15:49, fddi wrote: Hello, I am using portsnap to update my port collection on FreeBSD 9.1 the first time I ran it a few weeks ago I did| || |||portsnap fetch| || |and then portsnap exctract then I did a crontab script to update ports every night 0 3 * * * /usr/sbin/portsnap -I cron update pkg_version -vIL= Now after a few weeks pkg_version is reporting me a lot of ports which needs updating py27-sqlite3-2.7.3_3 needs updating (index has 2.7.5_3) python27-2.7.3_6 needs updating (index has 2.7.5) That is correct. You are confusing two different things. portsnap updates the ports tree, which contains the files needed to compile the programs you install. It is only information about the programs and version with instructions to compile. portsnap does not install the programs for you. pkg_version is telling you that the ports tree has information on new versions available of programs you have installed. if I use portmaster to upgrade my ports collection it is telling me all packages are up to date... so there is something not working portmaster installs the binary programs for you. Look into this later if the later info doesn't fix it. for example py27-sqlite3-2.7.3_3 needs updating (index has 2.7.5_3) This is a python library to add access to sqlite db files. Don't confuse it with python itself. The Makefile for this will be in databases/py-sqlite3 but if I go into /usr/ports/lang/python27 and I look in Makefile, it reports PORTNAME= python27 PORTVERSION=2.7.3 PORTREVISION= 6 While this isn't the Makefile for py-sqlite3, pkg_version is telling you it knows about python 2.7.5 so this is not the Makefile that pkg_version is looking at, but it would appear to be the file that portmaster is looking at. It looks like you have two copies of the ports tree. Check /etc/portsnap.conf you may have an odd setting for PORTSDIR. Another possibility is you have an odd PORTSDIR defined in your environment, what does echo $PORTSDIR show? You may also have bad settings in cron - run portsnap fetch update manually and see if python27/Makefile changes Start by sorting out why pkg_version and portmaster are using different files before you progress further. ___ 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: More than 32 CPUs under 8.4-P
On 2013-05-18 19:13, Dennis Glatting wrote: I have a 4x16=64 core server running FreeBSD 8.4-P but only two of the CPUs (2x16=32) are enabled. Enabling the other 32 isn't as simple as changing MAXCPU in param.h (apparently) and recompiling. What do I need to do to enable the other 32 cores? Try FreeBSD 9.x. MAXCPU is 64 there. signature.asc Description: OpenPGP digital signature
9.1 - new install questions
I just installed 9.1 on a clean disk. The dmesg is at the end of this message. For the network configuration, I selected DHCP for IPv4 and SLAAC for IPv6. When I boot the PC, it appears that dhclient tries to load twice. Why does it try to load the second time? From the console log: May 18 17:53:15 a31p kernel: Starting dhclient. May 18 17:53:15 a31p kernel: DHCPREQUEST on fxp0 to 255.255.255.255 port 67 May 18 17:53:15 a31p kernel: DHCPREQUEST on fxp0 to 255.255.255.255 port 67 May 18 17:53:15 a31p kernel: DHCPACK from 10.20.1.1 May 18 17:53:15 a31p kernel: bound to 10.20.2.14 -- renewal in 36 seconds. May 18 17:53:15 a31p kernel: dhclient already running? (pid=1233). Also during the boot process, but earlier, is this message: (aprobe0:ata1:0:1:0): ATAPI_IDENTIFY. ACB: a1 00 00 00 00 40 00 00 00 00 00 00 (aprobe0:ata1:0:1:0): CAM status: Command timeout (aprobe0:ata1:0:1:0): Error 5, Retry was blocked run_interrupt_driven_hooks: still waiting after 60 seconds for xpt_config (aprobe0:ata1:0:1:0): ATAPI_IDENTIFY. ACB: a1 00 00 00 00 40 00 00 00 00 00 00 (aprobe0:ata1:0:1:0): CAM status: Command timeout (aprobe0:ata1:0:1:0): Error 5, Retry was blocked What is that trying to tell me? The disk appears to work fine, i.e., 9.1 loads up and runs OK. The above adds significantly to the boot time. If it is just informational, is there a way to bypass it? Thanks. dmesg: Copyright (c) 1992-2012 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 9.1-RELEASE #0 r243826: Tue Dec 4 06:55:39 UTC 2012 r...@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 CPU: Intel(R) Pentium(R) 4 Mobile CPU 1.70GHz (1698.61-MHz 686-class CPU) Origin = GenuineIntel Id = 0xf24 Family = f Model = 2 Stepping = 4 Features=0x3febf9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MC A,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM real memory = 1073741824 (1024 MB) avail memory = 1031213056 (983 MB) kbd1 at kbdmux0 ctl: CAM Target Layer loaded acpi0: IBM TP-1G on motherboard acpi_ec0: Embedded Controller: GPE 0x1c, ECDT port 0x62,0x66 on acpi0 acpi0: Power Button (fixed) acpi0: reservation of 0, a (3) failed acpi0: reservation of 10, 3ff0 (3) failed cpu0: ACPI CPU on acpi0 attimer0: AT timer port 0x40-0x43 irq 0 on acpi0 Timecounter i8254 frequency 1193182 Hz quality 0 Event timer i8254 frequency 1193182 Hz quality 100 atrtc0: AT realtime clock port 0x70-0x71 irq 8 on acpi0 Event timer RTC frequency 32768 Hz quality 0 Timecounter ACPI-safe frequency 3579545 Hz quality 850 acpi_timer0: 24-bit timer at 3.579545MHz port 0x1008-0x100b on acpi0 acpi_lid0: Control Method Lid Switch on acpi0 acpi_button0: Sleep Button on acpi0 pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0 pci0: ACPI PCI bus on pcib0 agp0: Intel 82845 host to AGP bridge on hostb0 pcib1: ACPI PCI-PCI bridge at device 1.0 on pci0 pci1: ACPI PCI bus on pcib1 vgapci0: VGA-compatible display port 0x3000-0x30ff mem 0xe800-0xefff,0xd010-0xd010 irq 11 at device 0.0 on pci1 uhci0: Intel 82801CA/CAM (ICH3) USB controller USB-A port 0x1800-0x181f irq 11 at device 29.0 on pci0 usbus0 on uhci0 uhci1: Intel 82801CA/CAM (ICH3) USB controller USB-B port 0x1820-0x183f irq 11 at device 29.1 on pci0 usbus1 on uhci1 uhci2: Intel 82801CA/CAM (ICH3) USB controller USB-C port 0x1840-0x185f irq 11 at device 29.2 on pci0 usbus2 on uhci2 pcib2: ACPI PCI-PCI bridge at device 30.0 on pci0 pci2: ACPI PCI bus on pcib2 cbb0: RF5C476 PCI-CardBus Bridge mem 0x5000-0x5fff irq 11 at device 0.0 on pci2 cardbus0: CardBus bus on cbb0 pccard0: 16-bit PCCard bus on cbb0 cbb1: RF5C476 PCI-CardBus Bridge mem 0x5010-0x50100fff irq 11 at device 0.1 on pci2 cardbus1: CardBus bus on cbb1 pccard1: 16-bit PCCard bus on cbb1 fwohci0: Ricoh R5C552 mem 0xd0201000-0xd02017ff irq 11 at device 0.2 on pci2 fwohci0: OHCI version 1.0 (ROM=0) fwohci0: No. of Isochronous channels is 4. fwohci0: EUI64 00:06:1b:00:10:00:6d:38 fwohci0: Phy 1394a available S400, 2 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: IEEE1394(FireWire) bus on fwohci0 fwe0: Ethernet over FireWire on firewire0 if_fwe0: Fake Ethernet address: 02:06:1b:00:6d:38 fwe0: Ethernet address: 02:06:1b:00:6d:38 fwip0: IP over FireWire on firewire0 fwip0: Firewire address: 00:06:1b:00:10:00:6d:38 @ 0xfffe, S400, maxrec 2048 dcons_crom0: dcons configuration ROM on firewire0 dcons_crom0: bus_addr 0x14a fwohci0: Initiate bus reset fwohci0: fwohci_intr_core: BUS reset fwohci0: fwohci_intr_core: node_id=0x, SelfID Count=1, CYCLEMASTER mode fxp0: Intel 82801CAM (ICH3) Pro/100 VE Ethernet port 0x8000-0x803f mem 0xd020-0xd0200fff irq 11 at device 8.0 on pci2 miibus0: MII bus on fxp0 inphy0: i82562ET 10/100 media interface PHY 1 on miibus0 inphy0: 10baseT,
does ifconfig see netgraph bridges?
I create a ng bridge but issuing ifconfig does not show the bridge. Running 9.1-RELEASE. Is this a bug? ___ 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: More than 32 CPUs under 8.4-P
On Sun, 2013-05-19 at 11:48 +0200, Tijl Coosemans wrote: On 2013-05-18 19:13, Dennis Glatting wrote: I have a 4x16=64 core server running FreeBSD 8.4-P but only two of the CPUs (2x16=32) are enabled. Enabling the other 32 isn't as simple as changing MAXCPU in param.h (apparently) and recompiling. What do I need to do to enable the other 32 cores? Try FreeBSD 9.x. MAXCPU is 64 there. Not an option. ZFS hangs on multi-socket systems (Tyan, Supermicro) under 9.1. ZFS does not hang under 8.4. This (and one other 4 socket) is a production 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: problems with port upgrade consistency using portsnap
hello, here is from portsnap.conf # PORTSDIR=/usr/ports so it is /usr/ports instead in my environment $PORTSDIR is undefined. Here is /usr/ports/lang/python27/Makefile PORTNAME= python27 PORTVERSION=2.7.3 PORTREVISION= 6 after I did portsnap fetch update everythign looks up to date so ther is something wrong in my crontab 0 3 * * * /usr/sbin/portsnap -I cron update pkg_version -vIL= the problem was in portsnap -I which updates only thr index files... thanks for helping me to identify the issue cheers Rick On 5/19/13 11:04 AM, Shane Ambler wrote: On 19/05/2013 15:49, fddi wrote: Hello, I am using portsnap to update my port collection on FreeBSD 9.1 the first time I ran it a few weeks ago I did| || |||portsnap fetch| || |and then portsnap exctract then I did a crontab script to update ports every night 0 3 * * * /usr/sbin/portsnap -I cron update pkg_version -vIL= Now after a few weeks pkg_version is reporting me a lot of ports which needs updating py27-sqlite3-2.7.3_3 needs updating (index has 2.7.5_3) python27-2.7.3_6 needs updating (index has 2.7.5) That is correct. You are confusing two different things. portsnap updates the ports tree, which contains the files needed to compile the programs you install. It is only information about the programs and version with instructions to compile. portsnap does not install the programs for you. pkg_version is telling you that the ports tree has information on new versions available of programs you have installed. if I use portmaster to upgrade my ports collection it is telling me all packages are up to date... so there is something not working portmaster installs the binary programs for you. Look into this later if the later info doesn't fix it. for example py27-sqlite3-2.7.3_3 needs updating (index has 2.7.5_3) This is a python library to add access to sqlite db files. Don't confuse it with python itself. The Makefile for this will be in databases/py-sqlite3 but if I go into /usr/ports/lang/python27 and I look in Makefile, it reports PORTNAME= python27 PORTVERSION=2.7.3 PORTREVISION= 6 While this isn't the Makefile for py-sqlite3, pkg_version is telling you it knows about python 2.7.5 so this is not the Makefile that pkg_version is looking at, but it would appear to be the file that portmaster is looking at. It looks like you have two copies of the ports tree. Check /etc/portsnap.conf you may have an odd setting for PORTSDIR. Another possibility is you have an odd PORTSDIR defined in your environment, what does echo $PORTSDIR show? You may also have bad settings in cron - run portsnap fetch update manually and see if python27/Makefile changes Start by sorting out why pkg_version and portmaster are using different files before you progress further. ___ 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: does ifconfig see netgraph bridges?
Hi, On 05/19/2013 04:57 PM, Joe wrote: I create a ng bridge but issuing ifconfig does not show the bridge. Running 9.1-RELEASE. Is this a bug? ifconfig is not supposed to know about a netgraph bridge. So this is by design. Also, since the bridge is supposed to be transparent to the network i wouldn't know what kind of information would be relevant to ifconfig, that is the netgraph bridge has no MAC, no IP etc. What info are you after? Nikos ___ 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
Acer Aspire One D250 special function keys
Hello, I'm running a 10-CURRENT r250588 on that laptop, which has some special function keys, for example Fn+Down and Fn+Up to control the sound volume; how could I manage to get them to work? On my other netbook, an Asus EeePC 900, I have to load the kmod acpi_asus.ko to get the corresponding keys (Fn+F8/F9) working. Thanks matthias -- Sent from my FreeBSD netbook Matthias Apitz | - No system with backdoors like Apple/Android E-mail: g...@unixarea.de | - Never being an iSlave WWW: http://www.unixarea.de/ | - No proprietary attachments, no HTML/RTF in E-mail phone: +49-170-4527211 | - Respect for open standards ___ 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: Acer Aspire One D250 special function keys
On Sun, 19 May 2013 20:33:14 +0200, Matthias Apitz wrote: Hello, I'm running a 10-CURRENT r250588 on that laptop, which has some special function keys, for example Fn+Down and Fn+Up to control the sound volume; how could I manage to get them to work? On my other netbook, an Asus EeePC 900, I have to load the kmod acpi_asus.ko to get the corresponding keys (Fn+F8/F9) working. Did you use xev to check if those keys generate a unique code or symbol? If not, try loading one of the present /boot/kernel/acpi_*.ko modules to see if one of them can enable the functionality. Of course none of the present ones look as if it would support a Acer Aspire One D250, but go ahead and try. :-) If the keys don't work per se (like for comparison the Fn+PageUp key on some IBM laptops to switch the keyboard light on and off - totally independent from the OS -, you need to make sure they emit a code or symbol (you can add that with xmodmap) and then have some program pick it up and act accordingly (e. g. calling mixer vol +10 and mixer vol -10 for the volume control). The x11/xev program from ports is a nice indicator to check what's working out of the box, compared to additional ACPI modules in action. For example, I found the Fn + cursor keys on an Lenovo R61i send specific key codes, but no action per default. Instead, the keyboard light does not send any key code, but works. Maybe volume and brightness keys are handled in a similar way on your machine... -- 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: Acer Aspire One D250 special function keys
El día Sunday, May 19, 2013 a las 08:42:51PM +0200, Polytropon escribió: Did you use xev to check if those keys generate a unique code or symbol? If not, try loading one of the present /boot/kernel/acpi_*.ko modules to see if one of them can enable the functionality. Of course none of the present ones look as if it would support a Acer Aspire One D250, but go ahead and try. :-) ... They do not give anything in xev(1), I tried this before posting already, and I was afraid of PANIC's just kldloading the acpi_* I will try this tomorrow in single user modus. Thanks matthias -- Sent from my FreeBSD netbook Matthias Apitz | - No system with backdoors like Apple/Android E-mail: g...@unixarea.de | - Never being an iSlave WWW: http://www.unixarea.de/ | - No proprietary attachments, no HTML/RTF in E-mail phone: +49-170-4527211 | - Respect for open standards ___ 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: More than 32 CPUs under 8.4-P
On 5/19/2013 10:51 AM, Dennis Glatting wrote: On Sun, 2013-05-19 at 11:48 +0200, Tijl Coosemans wrote: On 2013-05-18 19:13, Dennis Glatting wrote: I have a 4x16=64 core server running FreeBSD 8.4-P but only two of the CPUs (2x16=32) are enabled. Enabling the other 32 isn't as simple as changing MAXCPU in param.h (apparently) and recompiling. What do I need to do to enable the other 32 cores? Try FreeBSD 9.x. MAXCPU is 64 there. Not an option. ZFS hangs on multi-socket systems (Tyan, Supermicro) under 9.1. ZFS does not hang under 8.4. This (and one other 4 socket) is a production system. Does this seem to describe the problem? http://www.freebsd.org/cgi/query-pr.cgi?pr=177536 You can try switching to 9-stable. Looking at the source for 8.4, it's not being fixed in the 8 series. ___ 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
Unkillable processes
Hello there, I've had a process on state pfault and it was just unkillable, kill -9 had no effects and because the script was doing an infinite loop the machine was slower and slower so the only way to fix that was a reboot. Why kill -9 has still no effects on some bad processes? Regards, -- Demelier David ___ 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 install on a partition
On May 18, 2013, at 10:16 PM, kpn...@pobox.com wrote: On Sat, May 18, 2013 at 01:29:58PM +, Ivailo Tanusheff wrote: Not sure about your calculations, hope you trust them, but in my previous company we have a 3-4 months period when a disk fails almost every day on 2 year old servers, so trust me - I do NOT trust those calculations, as I've seen the opposite. Maybe it was a failed batch of disk, shipped in the country, but no one is insured against this. Yes, you can use several hot spares on the software raid, but: What calculations are you talking about? He posted the uncorrectable read error probabilities manufacturers put into drive datasheets. The probability of a URE is distinct from and very different from the probability of the entire drive failing. I think he is referring to the calculation I did based on uncorrectable error rate and whether you will run into that type of error over the life of the drive. 1 TB == 8,796,093,022,208 bits 10^15 (in bits) / 1 TB ~= 113.687 So if over the life of the drive you READ a TOTAL of 113.687 TB, then you will, statistically speaking, run into one uncorrectable read error and potentially return bad data to the application or OS. This does NOT scale with size of drive, it is the same for all drives with an uncorrectable error rate of 10^-15 bits. So if you read the entirety of a 1 TB drive 114 times or a 4 TB 29 times you get the same result. But this is a statistical probability, and some drives will have more (much more) uncorrectable errors and others will have less (much less), although I don't know if the distribution falls on a typical gaussian (bell) curve. -- Paul Kraus Deputy Technical Director, LoneStarCon 3 Sound Coordinator, Schenectady Light Opera Company ___ 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: problems with port upgrade consistency using portsnap
fddi wrote: [snip] so ther is something wrong in my crontab 0 3 * * * /usr/sbin/portsnap -I cron update pkg_version -vIL= See man portsnap, section TIPS - it shows example of correct way: 0 3 * * * root /usr/sbin/portsnap cron The TIPS section contains more details. [snip] -Mike ___ 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: More than 32 CPUs under 8.4-P
On May 19, 2013, at 11:51 AM, Dennis Glatting free...@pki2.com wrote: ZFS hangs on multi-socket systems (Tyan, Supermicro) under 9.1. ZFS does not hang under 8.4. This (and one other 4 socket) is a production system. Can you be more specific, I have been running 9.0 and 9.1 systems with multi-CPU and all ZFS with no (CPU related*) issues. * I say no CPU related issues because I have run into SATA timeout issues with an external SATA enclosure with 4 drives (I know, SATA port expanders are evil, but it is my best option here). Sometimes the zpool hangs hard, sometimes just becomes unresponsive for a while. My fix, such as it is, is to tune the zfs per vdev queue depth as follows: vfs.zfs.vdev.min_pending=3 vfs.zfs.vdev.max_pending=5 The defaults are 5 and 10 respectively, and when I run with those I have the timeout issues, but only under very heavy I/O load. I only generate such load when migrating large amounts of data, which thankfully does not happen all that often. -- Paul Kraus Deputy Technical Director, LoneStarCon 3 Sound Coordinator, Schenectady Light Opera Company ___ 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: Unkillable processes
On 5/19/2013 3:00 PM, David Demelier wrote: Hello there, I've had a process on state pfault and it was just unkillable, kill -9 had no effects and because the script was doing an infinite loop the machine was slower and slower so the only way to fix that was a reboot. Why kill -9 has still no effects on some bad processes? Regards, -- Demelier David A process can be unkillable if it's holding a lock, like reading from disk. Eventually, the lock will release and it should die. You can use limits to change how much CPU and memory a process can use. My guess is what happened is it started using a lot of memory, but you ran out and have a lot of swap. It was trying to run while using your hard drive instead of ram. With limits, you should be able to prevent it from using swap which could help, and cap the amount of ram and cpu. ___ 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: does ifconfig see netgraph bridges?
On May 19, 2013, at 11:32 AM, Nikos Vassiliadis wrote: Hi, On 05/19/2013 04:57 PM, Joe wrote: I create a ng bridge but issuing ifconfig does not show the bridge. Running 9.1-RELEASE. Is this a bug? ifconfig is not supposed to know about a netgraph bridge. So this is by design. Also, since the bridge is supposed to be transparent to the network i wouldn't know what kind of information would be relevant to ifconfig, that is the netgraph bridge has no MAC, no IP etc. What info are you after? To see the upper/lower links to a bridge, you want to execute (as root): ngctl ls -l The output is a bit cluttered, as there's no empty newline between the headers as it enumerates the different types. Just as traditional ls you can give it a path, however the path is not delimited by / but by : to separate the peers, etc. Start small by trying to ls your bridge (and then ls -l your bridge). If memory serves (on the go, so don't have a terminal to try this out before giving the tip): ngctl ls -l bridge0: Should perhaps show the connected links. When in doubt… go interactive… ngctl And try different combinations of ls and ls -l on the prompt. -- Devin _ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. ___ 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
ngctl list ?
When I issue ngctl list command on the host it only shows the socket for ngctl. I thought it would also show the real NIC interface device names. Am I wrong in thinking that? ___ 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
How to get kernel source code of free-BSD release 9.1
Hi, I have created a virtual machine of PC-BSD release 9.1 64 bit in VMware Player Version 5.0.0 build-812388 based on PCBSD9.1-x64-DVD.iso downloaded from ftp://mirrors.isc.org/pub/pcbsd/9.1/amd64/PCBSD9.1-x64-DVD.iso , and setup network configuration and installed Firefox 20.0 by AppCafe, and configured the network setting in Preference-Advanced of Firefox, and I could access Internet. Now I need to build my own customized kernel, but there is no src subdirectory in /usr, so here is my question: 1. Is there any way to install kernel source when I create the virtual machine from PCBSD9.1-x64-DVD.iso ? 2. Any BKM to get the kernel source after the Virtual Machine already created as my case now? Thanks! Regards, David ___ 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 get kernel source code of free-BSD release 9.1
Chou, David J wrote: Hi, I have created a virtual machine of PC-BSD release 9.1 64 bit in VMware Player Version 5.0.0 build-812388 based on PCBSD9.1-x64-DVD.iso downloaded from ftp://mirrors.isc.org/pub/pcbsd/9.1/amd64/PCBSD9.1-x64-DVD.iso , and setup network configuration and installed Firefox 20.0 by AppCafe, and configured the network setting in Preference-Advanced of Firefox, and I could access Internet. Now I need to build my own customized kernel, but there is no src subdirectory in /usr, so here is my question: 1. Is there any way to install kernel source when I create the virtual machine from PCBSD9.1-x64-DVD.iso ? Not sure about PCBSD as I haven't used it, but with regular FreeBSD I believe you can by selecting the appropriate package distribution group. Been a while since I've done an install, but even so the source will be the static RELEASE bits and not contain any security updates. 2. Any BKM to get the kernel source after the Virtual Machine already created as my case now? Yes - install the devel/subversion port. Go ahead and create the src directory under /usr. Then do: svn checkout svn://svn.freebsd.org/base/releng/9.1 /usr/src Once having checked out you can then issue a svn update /usr/src command to pull in security updates as they become available over time. There are also two US mirrors available such as: svn checkout svn://svn0.us-east.freebsd.org/base/releng/9.1 /usr/src svn checkout svn://svn0.us-west.freebsd.org/base/releng/9.1 /usr/src I have used the us-east one. There is also a project underway to add in to base an 'svnup', similar in scope to how csup replaced cvsup to make it easier in the future. I believe freebsd-update is also a possibility but I have no experience with it. At any rate, more details can be found in the Handbook. -Mike ___ 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 get kernel source code of free-BSD release 9.1
On Sun, May 19, 2013 at 4:03 PM, Chou, David J david.j.c...@intel.com wrote: Hi, I have created a virtual machine of PC-BSD release 9.1 64 bit in VMware Player Version 5.0.0 build-812388 based on PCBSD9.1-x64-DVD.iso downloaded from ftp://mirrors.isc.org/pub/pcbsd/9.1/amd64/PCBSD9.1-x64-DVD.iso , and setup network configuration and installed Firefox 20.0 by AppCafe, and configured the network setting in Preference-Advanced of Firefox, and I could access Internet. Now I need to build my own customized kernel, but there is no src subdirectory in /usr, so here is my question: 1. Is there any way to install kernel source when I create the virtual machine from PCBSD9.1-x64-DVD.iso ? mount_cd9660 /dev/acd0 /mnt tar -C / /mnt/usr/freebsd-dist/src.txz 2. Any BKM to get the kernel source after the Virtual Machine already created as my case now? fetch ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/9.1-RELEASE/src.txz -- 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: More than 32 CPUs under 8.4-P
On Sun, 2013-05-19 at 16:28 -0400, Paul Kraus wrote: On May 19, 2013, at 11:51 AM, Dennis Glatting free...@pki2.com wrote: ZFS hangs on multi-socket systems (Tyan, Supermicro) under 9.1. ZFS does not hang under 8.4. This (and one other 4 socket) is a production system. Can you be more specific, I have been running 9.0 and 9.1 systems with multi-CPU and all ZFS with no (CPU related*) issues. I have (down to) ten FreeBSD/ZFS systems. Five of them are multi-socket populated. All are AMD CPUs of the 6200 series. Two of those multi-socketed systems are simply workstations and don't do much file I/O, so I have yet to see them fault. The remaining three perform significant I/O in the 1-8TB (simultaneous) file range, including sorting, compression, backup, etc (ZFS compression is enabled on some data sets as is dedup on a few minor data sets). I also do iSCSI and NFS from one of these systems. Simply, if I run 9.1 on those three busy systems ZFS will eventually hang under load (within ten hours to a few days) whereas it does not under 8.3/4. Two of those systems are 4x16 cores, one 2x16, and two 2x8 cores. Multiple, simultaneous pbzip2 runs on individual 2-5TB ASCII files generally causes a hang within 10-20 hours. Hang means the system is alive and on the network but disk I/O has stopped. Run any command except statically linked executables on a memory volume and they will not run (no output or return to command prompt). This includes reboot, which never really reboots. The volumes where work is performed are typically 12-33TB RAIDz2 volumes. For example: root@mc:~ # zpool list disk-1 NAME SIZE ALLOC FREECAP DEDUP HEALTH ALTROOT disk-1 16.2T 5.86T 10.4T36% 1.32x ONLINE - root@mc:~ # zpool status disk-1 pool: disk-1 state: ONLINE scan: scrub repaired 0 in 21h53m with 0 errors on Mon Apr 29 01:52:55 2013 config: NAMESTATE READ WRITE CKSUM disk-1 ONLINE 0 0 0 raidz2-0 ONLINE 0 0 0 da2 ONLINE 0 0 0 da3 ONLINE 0 0 0 da4 ONLINE 0 0 0 da7 ONLINE 0 0 0 da5 ONLINE 0 0 0 da6 ONLINE 0 0 0 cache da0 ONLINE 0 0 0 errors: No known data errors * I say no CPU related issues because I have run into SATA timeout issues with an external SATA enclosure with 4 drives (I know, SATA port expanders are evil, but it is my best option here). Sometimes the zpool hangs hard, sometimes just becomes unresponsive for a while. My fix, such as it is, is to tune the zfs per vdev queue depth as follows: vfs.zfs.vdev.min_pending=3 vfs.zfs.vdev.max_pending=5 I've not tried those. Currently, these are mine: vfs.zfs.write_limit_override=1G vfs.zfs.arc_max=8G vfs.zfs.txg.timeout=15 vfs.zfs.cache_flush_disable=1 # Recommended from the net # April, 2013 vfs.zfs.l2arc_norw=0# Default is 1 vfs.zfs.l2arc_feed_again=0 # Default is 1 vfs.zfs.l2arc_noprefetch=0 # Default is 0 vfs.zfs.l2arc_feed_min_ms=1000 # Default is 200 The defaults are 5 and 10 respectively, and when I run with those I have the timeout issues, but only under very heavy I/O load. I only generate such load when migrating large amounts of data, which thankfully does not happen all that often. Two days ago when the 9.1 system hanged I was able to run a static procstat where it inadvertently(?) printed that da0 wasn't responsive on the console. Unfortunately I didn't have a static camcontrol ready so I was unable to query it. That said, according to the criteria from https://wiki.freebsd.org/AvgZfsDeadlockDebug that hang isn't a true ZFS problem, yet hung it was. I have since (today) updated the firmware of most of the devices in that system and it is currently running some tasks. Most of the disks in that system are Seagate but the un-updated devices include three WD disks (RAID1 OS and a swap disk) -- unupdated because I haven't been able to figure WD firmware download out) and a SSD where the manufacturer indicates the firmware diff is minor, though I plan to go back and flash it anyway. If my 4x16 system ever finishes I will be updating its device's firmware too but it is an 8.4-P system and doesn't give me any trouble. Another 4x16 system gave me ZFS trouble under 9.1 but when I downgraded to 8.4-P it has been stable as a rock for the past 22 days often under heavy load. ___ 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: ngctl list ?
On May 19, 2013, at 1:47 PM, Joe wrote: When I issue ngctl list command on the host it only shows the socket for ngctl. I thought it would also show the real NIC interface device names. Am I wrong in thinking that? No, you're not wrong, however one wrinkle is that ng_ether(4) has to be compiled-in to get the netgraph subsystem to attach to your real NIC interfaces. On the system where you're executing ngctl list (same thing as ngctl ls), can you execute: config -x `sysctl -n kern.bootfile` | grep NETGRAPH_ETHER and get back something like the following (which I get back from my system): options NETGRAPH_ETHER # ng_ether(4) (and on that system, I get the following for ngctl ls) r...@folsom.vicor.commailto:r...@folsom.vicor.com ~ # ngctl ls There are 16 total nodes: Name: em0 Type: ether ID: 0003 Num hooks: 0 Name: em1 Type: ether ID: 0004 Num hooks: 0 Name: em2 Type: ether ID: 0005 Num hooks: 0 Name: ng0_beefcakeType: eiface ID: 0018 Num hooks: 1 Name: ng0_stats Type: eiface ID: 000f Num hooks: 1 Name: ngctl21992 Type: socket ID: 005f Num hooks: 0 Name: ng0_cfg0_vlbxri Type: eiface ID: 0024 Num hooks: 1 Name: igb0bridge Type: bridge ID: 0008 Num hooks: 4 Name: ng0_ipu0a_vlbxr Type: eiface ID: 0037 Num hooks: 1 Name: ng0_ipm0_vlbxri Type: eiface ID: 002d Num hooks: 1 Name: igb1bridge Type: bridge ID: 001d Num hooks: 8 Name: ng0_oos0a_vlbxr Type: eiface ID: 0042 Num hooks: 1 Name: ng0_opm0_vlbxri Type: eiface ID: 004e Num hooks: 1 Name: ng0_wss0a_vlbxr Type: eiface ID: 005b Num hooks: 1 Name: igb0Type: ether ID: 0001 Num hooks: 2 Name: igb1Type: ether ID: 0002 Num hooks: 2 NOTE: Alternatively… if you don't get a response back from config(8) similar to the above,… does kldstat show an ng_ether entry? I think last time I tried to load ng_ether(4) as a module (versus compiled-in), it didn't list any of my ether devices (Type: ether in above ngctl ls output). -- Devin _ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. ___ 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: More than 32 CPUs under 8.4-P
Minutes after I typed that message 2x16 the system paniced with the following back trace: kdb_backtrace panic vdev_deadman vdev_deadman vdev_deadman spa_deadman softclock intr_event_execute_handlers ithread_loop fork_exit fork_trampoline I had just created a memory disk when that happened: root@iirc:~ # mdconfig -a -t swap -s 1g -u 1 root@iirc:~ # newfs -U /dev/md1 root@iirc:~ # mount /dev/md1 /mnt root@iirc:~ # cp -p procstat kgdb /mnt root@iirc:~ # cd /rescue/ root@iirc:/rescue # cp -p * /mnt On Sun, 2013-05-19 at 18:45 -0700, Dennis Glatting wrote: On Sun, 2013-05-19 at 16:28 -0400, Paul Kraus wrote: On May 19, 2013, at 11:51 AM, Dennis Glatting free...@pki2.com wrote: ZFS hangs on multi-socket systems (Tyan, Supermicro) under 9.1. ZFS does not hang under 8.4. This (and one other 4 socket) is a production system. Can you be more specific, I have been running 9.0 and 9.1 systems with multi-CPU and all ZFS with no (CPU related*) issues. I have (down to) ten FreeBSD/ZFS systems. Five of them are multi-socket populated. All are AMD CPUs of the 6200 series. Two of those multi-socketed systems are simply workstations and don't do much file I/O, so I have yet to see them fault. The remaining three perform significant I/O in the 1-8TB (simultaneous) file range, including sorting, compression, backup, etc (ZFS compression is enabled on some data sets as is dedup on a few minor data sets). I also do iSCSI and NFS from one of these systems. Simply, if I run 9.1 on those three busy systems ZFS will eventually hang under load (within ten hours to a few days) whereas it does not under 8.3/4. Two of those systems are 4x16 cores, one 2x16, and two 2x8 cores. Multiple, simultaneous pbzip2 runs on individual 2-5TB ASCII files generally causes a hang within 10-20 hours. Hang means the system is alive and on the network but disk I/O has stopped. Run any command except statically linked executables on a memory volume and they will not run (no output or return to command prompt). This includes reboot, which never really reboots. The volumes where work is performed are typically 12-33TB RAIDz2 volumes. For example: root@mc:~ # zpool list disk-1 NAME SIZE ALLOC FREECAP DEDUP HEALTH ALTROOT disk-1 16.2T 5.86T 10.4T36% 1.32x ONLINE - root@mc:~ # zpool status disk-1 pool: disk-1 state: ONLINE scan: scrub repaired 0 in 21h53m with 0 errors on Mon Apr 29 01:52:55 2013 config: NAMESTATE READ WRITE CKSUM disk-1 ONLINE 0 0 0 raidz2-0 ONLINE 0 0 0 da2 ONLINE 0 0 0 da3 ONLINE 0 0 0 da4 ONLINE 0 0 0 da7 ONLINE 0 0 0 da5 ONLINE 0 0 0 da6 ONLINE 0 0 0 cache da0 ONLINE 0 0 0 errors: No known data errors * I say no CPU related issues because I have run into SATA timeout issues with an external SATA enclosure with 4 drives (I know, SATA port expanders are evil, but it is my best option here). Sometimes the zpool hangs hard, sometimes just becomes unresponsive for a while. My fix, such as it is, is to tune the zfs per vdev queue depth as follows: vfs.zfs.vdev.min_pending=3 vfs.zfs.vdev.max_pending=5 I've not tried those. Currently, these are mine: vfs.zfs.write_limit_override=1G vfs.zfs.arc_max=8G vfs.zfs.txg.timeout=15 vfs.zfs.cache_flush_disable=1 # Recommended from the net # April, 2013 vfs.zfs.l2arc_norw=0 # Default is 1 vfs.zfs.l2arc_feed_again=0# Default is 1 vfs.zfs.l2arc_noprefetch=0# Default is 0 vfs.zfs.l2arc_feed_min_ms=1000# Default is 200 The defaults are 5 and 10 respectively, and when I run with those I have the timeout issues, but only under very heavy I/O load. I only generate such load when migrating large amounts of data, which thankfully does not happen all that often. Two days ago when the 9.1 system hanged I was able to run a static procstat where it inadvertently(?) printed that da0 wasn't responsive on the console. Unfortunately I didn't have a static camcontrol ready so I was unable to query it. That said, according to the criteria from https://wiki.freebsd.org/AvgZfsDeadlockDebug that hang isn't a true ZFS problem, yet hung it was. I have since (today) updated the firmware of most of the devices in that system and it is currently running some tasks. Most of the disks in that system are Seagate but the un-updated devices include three WD disks (RAID1 OS and a swap disk) -- unupdated because I haven't been able to figure WD firmware download out) and a SSD where the manufacturer indicates the firmware diff is minor, though I plan to go back and flash it anyway. If my 4x16 system ever finishes I