NFS client over private network
Hello I have some trouble on a mail server running 9.0-RELEASE-p3 Last week I set up a NFS mounted partition containing 1 Tb of IMAP folders the NFS mount is done through a private network link on a dedicated giga ethernet link with the following config : 10.0.0.1/24 -- 10.0.0.2/24 mailhub NFS NetAPP 3210 server I use MBOX format on this server ( Postfix + Dovecot 2 ) Since I used this configuration a lock problem occured on some INBOXes here is an example of the problem. Nov 30 23:59:26 mail postfix/local[35280]: 3YCr470N6MzYmp0: to=x...@esiee.fr, orig_to=x...@esiee.fr, relay=local, delay=1527, delays=1470/39/0/19, dsn=4.2.0, status=deferred (cannot update mailbox /var/mail/xxx for user xxx. unable to lock for exclusive access: Resource temporarily unavailable) I don't think Postfix or Dovecot are responsible because when I do not use the private NFS link this does not happen ... I mean when the partition is NFS mounted with public IP addess. Thanks for any info if you have some ... ___ 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: NFS client over private network
Hi, I have some trouble on a mail server running 9.0-RELEASE-p3 Last week I set up a NFS mounted partition containing 1 Tb of IMAP folders the NFS mount is done through a private network link on a dedicated giga ethernet link with the following config : 10.0.0.1/24 -- 10.0.0.2/24 mailhub NFS NetAPP 3210 server I use MBOX format on this server ( Postfix + Dovecot 2 ) There is something somewhere saying don't use mbox format on NFS. It's simply wont work. It may work, but someday you'll face some issue. Time to change for maildir format :) Bon courage. Olivier Since I used this configuration a lock problem occured on some INBOXes here is an example of the problem. Nov 30 23:59:26 mail postfix/local[35280]: 3YCr470N6MzYmp0: to=x...@esiee.fr, orig_to=x...@esiee.fr, relay=local, delay=1527, delays=1470/39/0/19, dsn=4.2.0, status=deferred (cannot update mailbox /var/mail/xxx for user xxx. unable to lock for exclusive access: Resource temporarily unavailable) I don't think Postfix or Dovecot are responsible because when I do not use the private NFS link this does not happen ... I mean when the partition is NFS mounted with public IP addess. Thanks for any info if you have some ... ___ 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: NFS client over private network
On 12/03/2012 10:11 AM, Olivier Nicole wrote: Hi, I have some trouble on a mail server running 9.0-RELEASE-p3 Last week I set up a NFS mounted partition containing 1 Tb of IMAP folders the NFS mount is done through a private network link on a dedicated giga ethernet link with the following config : 10.0.0.1/24 -- 10.0.0.2/24 mailhub NFS NetAPP 3210 server I use MBOX format on this server ( Postfix + Dovecot 2 ) There is something somewhere saying don't use mbox format on NFS. It's simply wont work. It may work, but someday you'll face some issue. Time to change for maildir format :) Bon courage. Olivier A mbox -- maildir convertion on this server will take ~24 hours ... I cannot stop it so long for now ( I have to wait until holidays ... ) Since I used this configuration a lock problem occured on some INBOXes here is an example of the problem. Nov 30 23:59:26 mail postfix/local[35280]: 3YCr470N6MzYmp0: to=x...@esiee.fr, orig_to=x...@esiee.fr, relay=local, delay=1527, delays=1470/39/0/19, dsn=4.2.0, status=deferred (cannot update mailbox /var/mail/xxx for user xxx. unable to lock for exclusive access: Resource temporarily unavailable) I don't think Postfix or Dovecot are responsible because when I do not use the private NFS link this does not happen ... I mean when the partition is NFS mounted with public IP addess. Thanks for any info if you have some ... ___ 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: dual boot winxp 9.1-rc3
On Mon, Dec 3, 2012 at 5:40 AM, Fbsd8 fb...@a1poweruser.com wrote: On an old 20gb hard drive I first installed winxp on the first half of the HD. winxp booted fine. Then I installed 9.1-rc3 on the second half of the HD. Now when I boot the HD I only get 9.1-rc3. Winxp created mbr and installed winxp into first dos partition. 9.1-rc3 uses bsdinstall which uses gpart to create the slice as gpart show displays as see below... = 63 39862305 ada0 MBR (19G) 63 19928097 1 ntfs (9.5G) 19928160 19933137 2 freebsd [active] (9.5G) 39861297 1071- free - (535k) = 0 19933137 ada0s2 BSD (9.5G) 0 18933760 1 freebsd-ufs (9.0G) 18933760995328 2 freebsd-swap (486M) 19929088 4049 - free - (2M) Now I want to add BSD dual boot to the MBR. Is this all I need? fdisk -B -b /boot/boot0 ada Yes, you should install bootmanager (boot0) to the MBR of your HDD. You probably better use boot0cfg (man boot0cfg ) BTW you could also use windows boot manager (fetch MBS and configure boot.ini to work with it) but boot0 is, probably, better. Ilya. ___ 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
gpart and FreeBSD 8.x
For anyone interested, Posted a new blog with regards to gpart on FreeBSD 8.x (with a link to one of Warren's blog posts): http://blog.hostileadmin.com/2012/12/03/freebsd-partitions-and-filesystems-with-gpart/ -- Take care Rick Miller ___ 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: gpart and FreeBSD 8.x
On 12/03/2012 13:31, Rick Miller wrote: For anyone interested, Posted a new blog with regards to gpart on FreeBSD 8.x (with a link to one of Warren's blog posts): http://blog.hostileadmin.com/2012/12/03/freebsd-partitions-and-filesystems-with-gpart/ gpart is in BASE on 8.x so there is nothing to install -- No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. ___ 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: gpart and FreeBSD 8.x
On Mon, Dec 3, 2012 at 7:49 AM, Julien Cigar jci...@ulb.ac.be wrote: gpart is in BASE on 8.x so there is nothing to install Thanks, Julien! I added a comment to this effect on the post! -- Take care Rick Miller ___ 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
redirect incoming telnet to com port
hello everybody i have freebsd8.2. i want to redirect incoming telnet from telnet port to a com port. i mean if somebody telnet to my system with a specific port (or 22 which is default telnet port), connect to com port and can talk to modem (something like cisco). is it possible or not? any hints or comments are really appreciated. ___ 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: redirect incoming telnet to com port
hello everybody i have freebsd8.2. i want to redirect incoming telnet from telnet port to a com port. i mean if somebody telnet to my system with a specific port (or 22 which is default telnet port), connect to com port and can talk to modem (something like cisco). is it possible or not? any hints or comments are really appreciated. Are your talking about reverse telnet cisco functionality? Try to use comserv: http://www.freebsd.org/cgi/ports.cgi?query=comservstype=all .Additionally, comservd can serve up local serial ports to remote systems... Ilya. ___ 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: redirect incoming telnet to com port
In the last episode (Dec 03), saeedeh motlagh said: hello everybody i have freebsd8.2. i want to redirect incoming telnet from telnet port to a com port. i mean if somebody telnet to my system with a specific port (or 22 which is default telnet port), connect to com port and can talk to modem (something like cisco). (Port 23 is telnet, btw. Port 22 is ssh) is it possible or not? There are probably a dozen ports that do this, all in the comms category of the ports tree. You can choose anything from a dumb telnet interface with no line control (comserv, ser2net, tcpser), to a RFC-2217 interface that gives you full low-level control over a remote serial port (sredird), to a managed system like with optional encryption and per-user access control (conserver). -- Dan Nelson dnel...@allantgroup.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
bash pipe redirection gets stuck
Dear all, I stumbled upon a problem where multiple pipe redirection occasionally get stuck when trying to get sha256 sum of a stream. You can try to reproduce the problem if you have /usr/ports/shells/bash installed (output redirection used in this command is possible only in bash). Create temporary test file with command: dd if=/dev/urandom of=/tmp/file1 bs=1k count=10 And the command I'm using is: /usr/local/bin/bash -c 'cat /tmp/file1 | tee (/sbin/sha256 /tmp/file1.sha256) /tmp/file1.copy' ; echo $status Command gets stuck about once in 20 executions. top output when command gets stuck (irrelevant processes removed): PID USERNAMETHR PRI NICE SIZERES STATE C TIME WCPU COMMAND 84073 HappyUser 1 520 17612K 2268K wait0 0:00 0.00% bash 84154 HappyUser 1 520 10084K 844K fifoow 1 0:00 0.00% tee And more strangely, I can reproduce this problem on 9.0-RELEASE and 7.4-RELEASE-p6, but couldn't reproduce on 8.2-RELEASE-p4. Thanks for any pointers/explanations, Normunds ___ 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: pkg upgrade?
On Mon, 03 Dec 2012 06:32:48 +, Matthew Seaman wrote: On 02/12/2012 21:51, Walter Hurry wrote: Copied from terminal and pasted here: -- $ sudo pkg upgrade Updating repository catalogue Repository catalogue is up-to-date, no need to fetch fresh copy The following packages will be upgraded: Upgrading gcc: 4.6.4.20121102 - 4.6.4.20121123 The installation will free 1 GB 88 MB to be downloaded Proceed with upgrading packages [y/N]: y gcc-4.6.4.20121123.txz 100% 88MB 6.8MB/s 6.0MB/s 00:13 Checking integrity... done Upgrading gcc from 4.6.4.20121102 to 4.6.4.20121123... done $ -- OK, fine. But what's this about 1GB being freed? That's what pkg has calculated as the change in disk space usage resulting from replacing one version by another. It certainly looks suspicious on the face of it: given the package size of 88MB and presuming the previous package wasn't orders of magnitude different in size it's hard to see where that size of change would come from. Do you still have the gcc-4.6.4.20121102 package around look in /var/cache/pkg/All)? Can you try pkg info -s -F gcc-4.6.4.20121102.txz and pkg info -s -F gcc-4.6.4.20121123.txz please? Curiouser and curiouser. This is from another machine, with gcc not yet upgraded but otherwise identical: -- $ cd /var/cache/pkg $ cd All cd: All: No such file or directory $ ls -l gcc* -rw--- 1 root wheel 92395460 29 Nov 15:22 gcc-4.6.4.20121102.txz -rw--- 1 root wheel 4360 29 Nov 15:32 gccmakedep-1.0.2.txz $ sudo pkg info -s -F gcc-4.6.4.20121102.txz gcc-4.6.4.20121102 flat size is: 0 B gcc-4.6.4.20121102 package size is: 0 B $ cd /var/db/pkg $ sqlite3 local.sqlite SQLite version 3.7.14.1 2012-10-04 19:37:12 Enter .help for instructions Enter SQL statements terminated with a ; sqlite select version, flatsize from packages where name = 'gcc'; 4.6.4.20121102|596779179 sqlite .quit $ sqlite3 repo.sqlite SQLite version 3.7.14.1 2012-10-04 19:37:12 Enter .help for instructions Enter SQL statements terminated with a ; sqlite select version, pkgsize, flatsize from packages where name = 'gcc'; 4.6.4.20121102|92395460|596779179 sqlite .quit $ sudo pkg update Updating repository catalogue repo.txz100% 261KB 260.9KB/s 260.9KB/s 00:00 $ sqlite3 repo.sqlite SQLite version 3.7.14.1 2012-10-04 19:37:12 Enter .help for instructions Enter SQL statements terminated with a ; sqlite select version, pkgsize, flatsize from packages where name = 'gcc'; 4.6.4.20121123|92316676|595326810 sqlite .quit $ sudo pkg upgrade Updating repository catalogue Repository catalogue is up-to-date, no need to fetch fresh copy The following packages will be upgraded: Upgrading gcc: 4.6.4.20121102 - 4.6.4.20121123 The installation will free 1 GB 88 MB to be downloaded Proceed with upgrading packages [y/N]: y gcc-4.6.4.20121123.txz 100% 88MB 6.8MB/s 10.7MB/s 00:13 Checking integrity... done Upgrading gcc from 4.6.4.20121102 to 4.6.4.20121123... done $ sqlite3 local.sqlite SQLite version 3.7.14.1 2012-10-04 19:37:12 Enter .help for instructions Enter SQL statements terminated with a ; sqlite select version, flatsize from packages where name = 'gcc'; 4.6.4.20121123|595326810 sqlite .quit $ cd /var/cache/pkg $ ls -l gcc* -rw--- 1 root wheel 92395460 29 Nov 15:22 gcc-4.6.4.20121102.txz -rw--- 1 root wheel 92316676 3 Dec 14:46 gcc-4.6.4.20121123.txz -rw--- 1 root wheel 4360 29 Nov 15:32 gccmakedep-1.0.2.txz $ sudo pkg info -s -F gcc-4.6.4.20121123.txz gcc-4.6.4.20121123 flat size is: 0 B gcc-4.6.4.20121123 package size is: 0 B $ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: pkg upgrade?
On 03/12/2012 15:34, Walter Hurry wrote: $ sudo pkg info -s -F gcc-4.6.4.20121102.txz gcc-4.6.4.20121102 flat size is: 0 B gcc-4.6.4.20121102 package size is: 0 B Ah. It turns out that querying any pkgng package directly for its installed size always returns 0 at the moment. You'ld need to use the repo catalogue to get some sort of reasonable answer. I can't remember off hand if pkgs are meant to know what their installed size is; will look into that tonight after work. Recommend to use pkg search for querying repo catalogues rather than using sqlite directly, but whatever. Seems there is clearly a bug in calculating the change in disk space usage -- looks like it's added the 500MB flatsize of both package versions together rather than subtracting. Cheers, Matthew ___ 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: pkg upgrade?
On Mon, 03 Dec 2012 15:49:48 +, Matthew Seaman wrote: On 03/12/2012 15:34, Walter Hurry wrote: $ sudo pkg info -s -F gcc-4.6.4.20121102.txz gcc-4.6.4.20121102 flat size is: 0 B gcc-4.6.4.20121102 package size is: 0 B Ah. It turns out that querying any pkgng package directly for its installed size always returns 0 at the moment. You'ld need to use the repo catalogue to get some sort of reasonable answer. I can't remember off hand if pkgs are meant to know what their installed size is; will look into that tonight after work. snip Thanks, Matthew. pkg query against the .txz file in the cache appears to work though, as does pkg info against the installed package: --- $ pwd /var/cache/pkg $ sudo pkg query -F gcc-4.6.4.20121123.txz %sh 567 MB $ pkg info -s gcc gcc-4.6.4.20121123 size is: 567 MB $ --- ___ 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: bash pipe redirection gets stuck
On Mon, 3 Dec 2012 16:35:15 +0200 (EET) l...@rule.lv articulated: Dear all, I stumbled upon a problem where multiple pipe redirection occasionally get stuck when trying to get sha256 sum of a stream. You can try to reproduce the problem if you have /usr/ports/shells/bash installed (output redirection used in this command is possible only in bash). Create temporary test file with command: dd if=/dev/urandom of=/tmp/file1 bs=1k count=10 And the command I'm using is: /usr/local/bin/bash -c 'cat /tmp/file1 | tee (/sbin/sha256 /tmp/file1.sha256) /tmp/file1.copy' ; echo $status Command gets stuck about once in 20 executions. top output when command gets stuck (irrelevant processes removed): PID USERNAMETHR PRI NICE SIZERES STATE C TIME WCPU COMMAND 84073 HappyUser 1 520 17612K 2268K wait0 0:00 0.00% bash 84154 HappyUser 1 520 10084K 844K fifoow 1 0:00 0.00% tee And more strangely, I can reproduce this problem on 9.0-RELEASE and 7.4-RELEASE-p6, but couldn't reproduce on 8.2-RELEASE-p4. Thanks for any pointers/explanations, Normunds For starters, what version of Bash? FreeBSD is still a few patches behind the current patch level, so that is also a possibility. I would suggest you visit: https://lists.gnu.org/mailman/listinfo/bug-bash, subscribe to the list and then ask your question bug-b...@gnu.org. -- Jerry ♔ Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __ Communicate! It can't make things any worse. ___ 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: redirect incoming telnet to com port
From owner-freebsd-questi...@freebsd.org Mon Dec 3 07:14:37 2012 From: saeedeh motlagh saeedeh.motl...@gmail.com Date: Mon, 3 Dec 2012 16:42:07 +0330 Subject: redirect incoming telnet to com port To: freebsd-questions freebsd-questions@freebsd.org hello everybody i have freebsd8.2. i want to redirect incoming telnet from telnet port to a com port. i mean if somebody telnet to my system with a specific port (or 22 which is default telnet port), connect to com port and can talk to modem (something like cisco). is it possible or not? Possible, yes, but you do NOT want to do it THAT way. It bypasses all system access controls. set up a special purpose userid with a login script that runs a terminal program (via 'exec') like kermit with a start-up script for that program that selects the proper port and then sets the needed serial settings, and goes into 'connect' mode. whed they exit the terminal session, they're automatically logged off the system. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: bash pipe redirection gets stuck
On 03.12.12 15:35, l...@rule.lv wrote: [...] I stumbled upon a problem where multiple pipe redirection occasionally get stuck when trying to get sha256 sum of a stream. You can try to reproduce the problem if you have /usr/ports/shells/bash installed (output redirection used in this command is possible only in bash). Create temporary test file with command: dd if=/dev/urandom of=/tmp/file1 bs=1k count=10 And the command I'm using is: /usr/local/bin/bash -c 'cat /tmp/file1 | tee (/sbin/sha256 /tmp/file1.sha256) /tmp/file1.copy' ; echo $status Command gets stuck about once in 20 executions. top output when command gets stuck (irrelevant processes removed): PID USERNAMETHR PRI NICE SIZERES STATE C TIME WCPU COMMAND 84073 HappyUser 1 520 17612K 2268K wait0 0:00 0.00% bash 84154 HappyUser 1 520 10084K 844K fifoow 1 0:00 0.00% tee And more strangely, I can reproduce this problem on 9.0-RELEASE and 7.4-RELEASE-p6, but couldn't reproduce on 8.2-RELEASE-p4. It maybe couldn't gather more randomness from /dev/random? The random(4) manpage suggests that there's (theoretically) indeed a chance that it blocks - see the section about 'kern.random.sys.seeded'. So in fact - when you think the command gets stuck - it's probably not bash related at all. cheers, Frank Reppin -- 43rd Law of Computing: Anything that can go wr fortune: Segmentation violation -- Core dumped ___ 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: bash pipe redirection gets stuck
long at rule.lv writes: Dear all, I stumbled upon a problem where multiple pipe redirection occasionally get stuck when trying to get sha256 sum of a stream. You can try to reproduce the problem if you have /usr/ports/shells/bash installed (output redirection used in this command is possible only in bash). Create temporary test file with command: dd if=/dev/urandom of=/tmp/file1 bs=1k count=10 And the command I'm using is: /usr/local/bin/bash -c 'cat /tmp/file1 | tee (/sbin/sha256 /tmp/file1.sha256) /tmp/file1.copy' ; echo $status ... Do you get stuck with this ? Does it make any difference ? /usr/local/bin/bash -c 'cat /tmp/file1 | tee /tmp/file1.copy | /sbin/sha256 \ /tmp/file1.sha256' ; echo $status jb ___ 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: pkg upgrade?
On Mon, 03 Dec 2012 16:14:08 +, Walter Hurry wrote: pkg query against the .txz file in the cache appears to work though It seems to have got the difference calculation right this time: --- $ sudo pkg upgrade Updating repository catalogue repo.txz100% 260KB 260.5KB/s 260.5KB/s 00:00 The following packages will be upgraded: Upgrading tcl-modules: 8.5.12_2 - 8.5.13 Upgrading tcl: 8.5.12_2 - 8.5.13 Upgrading tk: 8.5.12 - 8.5.13 The installation will require 7 kB more space 1 MB to be downloaded Proceed with upgrading packages [y/N]: y tcl-modules-8.5.13.txz 100% 45KB 45.3KB/s 45.3KB/s 00:00 tcl-8.5.13.txz 100% 902KB 901.8KB/s 901.8KB/s 00:00 tk-8.5.13.txz 100% 904KB 904.4KB/s 904.4KB/s 00:00 Checking integrity... done Upgrading tcl-modules from 8.5.12_2 to 8.5.13... done Upgrading tcl from 8.5.12_2 to 8.5.13... done Upgrading tk from 8.5.12 to 8.5.13... done $ cd /var/cache/pkg $ sudo pkg query -F tk-8.5.12.txz %sb 5052562 $ sudo pkg query -F tk-8.5.13.txz %sb 5058022 $ sudo pkg query -F tcl-modules-8.5.12_2.txz %sb 171187 $ sudo pkg query -F tcl-modules-8.5.13.txz %sb 173149 $ sudo pkg query -F tcl-8.5.12_2.txz %sb 5971408 $ sudo pkg query -F tcl-8.5.13.txz %sb 5971395 $ --- I wonder if there is some kind of overflow problem with the calculations on larger packages? ___ 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
Postgrey eats 100% CPU
Hello, FreeBSD 9.1 amd64, postgrey-1.34_4, perl-5.14.2_2 Here from time to time and since one or two months, postgrey starts to eat 100% of CPU, it always occurs juste after it cleans its bases. Then it does not accept any connection: Dec 2 03:11:49 net-110 postgrey[2252]: cleaning up old logs... Dec 2 03:11:49 net-110 postgrey[2252]: cleaning up old entries... The last time it occured, I deleted its bases because it didn't start at all. Does postgrey work for you? Any clue? I have used it for years without any problem :( Thanks. Regards. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: bash pipe redirection gets stuck
jb jb.1234abcd at gmail.com writes: ... Do you get stuck with this ? Does it make any difference ? I missed a redirector - sorry about that; the entry should be: /usr/local/bin/bash -c 'cat /tmp/file1 | tee /tmp/file1.copy | /sbin/sha256 \ /tmp/file1.sha256' ; echo $status jb ___ 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
CTM status
With cvs having support ending next year and svn becoming the main work horse, Just what is the status of CTM? I would think its more out dated than cvs. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ctm.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: bash pipe redirection gets stuck
On 03.12.12 15:35, l...@rule.lv wrote: [...] I stumbled upon a problem where multiple pipe redirection occasionally get stuck when trying to get sha256 sum of a stream. You can try to reproduce the problem if you have /usr/ports/shells/bash installed (output redirection used in this command is possible only in bash). Create temporary test file with command: dd if=/dev/urandom of=/tmp/file1 bs=1k count=10 And the command I'm using is: /usr/local/bin/bash -c 'cat /tmp/file1 | tee (/sbin/sha256 /tmp/file1.sha256) /tmp/file1.copy' ; echo $status Command gets stuck about once in 20 executions. top output when command gets stuck (irrelevant processes removed): PID USERNAMETHR PRI NICE SIZERES STATE C TIME WCPU COMMAND 84073 HappyUser 1 520 17612K 2268K wait0 0:00 0.00% bash 84154 HappyUser 1 520 10084K 844K fifoow 1 0:00 0.00% tee And more strangely, I can reproduce this problem on 9.0-RELEASE and 7.4-RELEASE-p6, but couldn't reproduce on 8.2-RELEASE-p4. It maybe couldn't gather more randomness from /dev/random? The random(4) manpage suggests that there's (theoretically) indeed a chance that it blocks - see the section about 'kern.random.sys.seeded'. So in fact - when you think the command gets stuck - it's probably not bash related at all. cheers, Frank Reppin -- 43rd Law of Computing: Anything that can go wr fortune: Segmentation violation -- Core dumped Thanks for your answer, but randomly generated file is created fine (it is only for illustrative purpose). As far as I understand, thing that blocks is tee inside bash command or pipeline. Thanks and best regards, Normunds ___ 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: pkg upgrade?
On 03/12/2012 15:49, Matthew Seaman wrote: On 03/12/2012 15:34, Walter Hurry wrote: $ sudo pkg info -s -F gcc-4.6.4.20121102.txz gcc-4.6.4.20121102 flat size is: 0 B gcc-4.6.4.20121102 package size is: 0 B Ah. It turns out that querying any pkgng package directly for its installed size always returns 0 at the moment. You'ld need to use the repo catalogue to get some sort of reasonable answer. I can't remember off hand if pkgs are meant to know what their installed size is; will look into that tonight after work. Curious. I can't reproduce the problem on my dev system: worm:...cache/pkg/All:# pkg info -s -F git-1.7.11.5.txz git-1.7.11.5 10 MB I wonder... I'm using portmaster to build packages on my dev box, and poudriere on my work machine. Could poudriere be at fault? cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey JID: matt...@infracaninophile.co.uk signature.asc Description: OpenPGP digital signature
Re: pkg upgrade?
On 03/12/2012 18:18, Walter Hurry wrote: I wonder if there is some kind of overflow problem with the calculations on larger packages? It's not an overflow: the size is stored as the ascii representation of an integer value in the pkg tarball and read into an int64_t variable (good for file sizes up to exabyte scales) and stored in sqlite columns equivalent in size to that. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey JID: matt...@infracaninophile.co.uk signature.asc Description: OpenPGP digital signature
Re: CTM status
Hi, Fbsd8 wrote: With cvs having support ending next year and svn becoming the main work horse, Just what is the status of CTM? I would think its more out dated than cvs. You havent grasped what CTM is: A method of distributing trees man ctm:source code mirror program The trees of sources comprise collections of cvs, svn, src*, ports. See ctm* lists listed here: http://lists.freebsd.org/mailman/listinfo Users list ctm-us...@freebsd.org is referenced here http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ctm.html Read recent announcements in archive of ctm-annou...@freebsd.org Summary: CVS by CTM will stop, 1 of 2 SVN by CTM will stop. CTM will continue. Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultant, Munich http://berklix.com Reply below not above, like a play script. Indent old text with . Send plain text. Not: HTML, multipart/alternative, base64, quoted-printable. ___ 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: pkg upgrade?
On Mon, 03 Dec 2012 20:51:59 +, Matthew Seaman wrote: Curious. I can't reproduce the problem on my dev system: worm:...cache/pkg/All:# pkg info -s -F git-1.7.11.5.txz git-1.7.11.5 10 MB I wonder... I'm using portmaster to build packages on my dev box, and poudriere on my work machine. Could poudriere be at fault? I think there's a problem with 'pkg info' irrespective of how the package is built. $ pkg info -s -F gcc-4.6.4.20121123.txz gcc-4.6.4.20121123 flat size is: 0 B gcc-4.6.4.20121123 package size is: 0 B $ pkg query -F gcc-4.6.4.20121123.txz %sh 567 MB $ It seems that 'pkg info' is looking at one measure, while 'pkg query' is looking at another. Maybe portmaster is populating both correctly, but poudriere is only doing one of the two. I'm using a straightforward 'pkg create' to build my package files, by the way. But why should there be two (apparently discrete) measures? ___ 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
i am new with this
hello there i am new with this software never used it yet but would like to try it i want to ask if this software supports MAC and Windows applications to installation i would like to ask after if this software freebsd supports FMS and ASP net applications if not i would like to give me ideas if possible to build a new application to run flash media server and a great webserver similar as MAC Admin tools i want to run a server from home running open source software and easy to manage it like in 3 clicks and done the site is up and running if possible the developers to build a new freebsd and use skins like the plasma TV that type of black colour skins and all the freebsd be like that and build one application like IIS 7 or mac admin tools for easy up and run sites another application is one listview to add all the websites hostes on the server like add folder name to the disk disk www folder chat folder hosting folder business folder family listview details IP addressServerHost Domain Name date / time directory 123.023.02 localhost www.freebsd20.12.02 12h 23m www/videos i hope you understand ___ 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: i am new with this
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/3/2012 4:41 PM, BOY RULES wrote: hello there i am new with this software never used it yet but would like to try it i want to ask if this software supports MAC and Windows applications to installation i would like to ask after if this software freebsd supports FMS and ASP net applications if not i would like to give me ideas if possible to build a new application to run flash media server and a great webserver similar as MAC Admin tools i want to run a server from home running open source software and easy to manage it like in 3 clicks and done the site is up and running if possible the developers to build a new freebsd and use skins like the plasma TV that type of black colour skins and all the freebsd be like that and build one application like IIS 7 or mac admin tools for easy up and run sites another application is one listview to add all the websites hostes on the server like add folder name to the disk disk www folder chat folder hosting folder business folder family listview details IP address Server Host Domain Name date / time directory 123.023.02 localhost www.freebsd 20.12.02 12h 23m www/videos i hope you understand ___ 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 Hi you can't natively install/run windows apps but you can install wine and use that to run your programs. -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.17 (MingW32) Comment: Using GnuPG with undefined - http://www.enigmail.net/ iQEcBAEBAgAGBQJQvS0/AAoJEAGnn5Nn8qWUAKgIAJhWEra0KDlRt2dnCStQ7zZM QuSK+c5J/outxTPDPaYUUch8GIHC3vcmZgybaygs3o4l5HszduHJp71Uv5pmm674 KHbEEDPhbJk4ZBmMkOJcGecNyfxeWExDxBDfYXqsNS7Gu8CLBk+dq5aeXO5QVaZ8 9d6qUfk7VsMoykqvhkDVvuOE/pLRh6gKFFj24DpOo8dAC5RJoI9hbDeyykIe5STH 6b+gcCbDVflMctW2CGiv2jMi5YED9eXOvfmKhlk/2lL5mnQsX1QOBubq3cmR75z0 vqEJvb9eo69mbxGr+qTyaDQoZyubtMLItBQiE72Xmmw+rdDrCiuGXGqStfEXWcQ= =VLps -END PGP SIGNATURE- ___ 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
[solved] Cannot boot - creating partition and installing FreeBSD is [solved]
On Linux I switched from GRUB legacy to GRUB 2. To transform menu.lst into grub.cfg: SYNOPSIS grub-menulst2cfg [INFILE [OUTFILE]] To boot FreeBSD: menuentry FreeBSD{ set root=(hd0,msdos1) chainloader +1 } ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: i am new with this
Hi, On Mon, 3 Dec 2012 22:41:06 + BOY RULES boyru...@live.com wrote: i want to run a server from home running open source software and easy to manage it like in 3 clicks and done the site is up and running three clicks? Not really. It is a bit more. if possible the developers to build a new freebsd and use skins like the plasma TV that type of black colour skins and all the freebsd be like that It is possible but do developers want this? and build one application like IIS 7 or mac admin tools for easy up and run sites The majority uses Apache for this purpose anyway. another application is one listview to add all the websites hostes on the server like add folder name to the disk disk www folder chat folder hosting folder business folder family listview details IP addressServerHost Domain Name date / timedirectory 123.023.02 localhost www.freebsd20.12.02 12h 23m www/videos At least my webserver does something like this. But I get a bit of more information. i hope you understand I hope so too. Erich ___ 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
getpwnam_r returns EINVAL on FreeBSD 8.3
After upgrading a server from FreeBSD 7.3 to FreeBSD 8.3 I noticed this bug. Since upgrading, getpwnam_r is acting inconsistently. If I look up a user that does not exist and the name is 16 characters or less, getpwnam_r returns 0 and the result is NULL. If the name is more than 16 characters, getpwnam_r returns EINVAL. Everything works correctly for users that exist. This only happens when the nsswitch.conf passwd: line contains files. You need to use files if you are using another module such as msql or ldap. The problem exists without the other modules listed. For example: passwd: files Below is a simple test program. Set passwd: to files in nsswitch.conf and run the program. Any idea how to fix this bug with getpwnam_r? #include stdio.h #include sys/types.h #include pwd.h main() { lookup(doesnotexist); lookup(doesnotexisty); } int lookup( char *name) { struct passwd pwd; char buffer[1024]; struct passwd *result; int err; printf(\nLooking up: %s\n, name); err = getpwnam_r(name, pwd, buffer, sizeof(buffer), result); if( err != 0 ){ printf(Return code: %d\n, err); }else if( result == 0 ){ printf(Returned no result!\n); }else{ printf(Returned: %s (%d)\n, result-pw_name, result-pw_uid); } } ___ 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: i am new with this
On Mon, 3 Dec 2012 22:41:06 +, BOY RULES wrote: hello there i am new with this software never used it yet but would like to try it You will appreciate this step. i want to ask if this software supports MAC and Windows applications to installation I doubt there will be enough compatibility with Mac OS X software (I assume this is what you mean by MAC), but Windows software is supported surprisingly well. There are different means to do it, for example using the software wine, or one of the virtualisation solutions such as VirtualBox or VMWare. Depending on the complexity of the software you wish to install, one solution might be better than the other. Attention: Licensing restrictions may apply! i would like to ask after if this software freebsd supports FMS and ASP net applications I have no idea about that, sorry. if not i would like to give me ideas if possible to build a new application to run flash media server and a great webserver similar as MAC Admin tools Flash suffers from degrading support on the _client_ side, so I doubt it's worth investing into this dying technology. Because media server can mean a lot, let me answer in a broad way: There are lots of server tools for FreeBSD: web and streaming servers, plus web based administration tools for them. i want to run a server from home running open source software and easy to manage it like in 3 clicks and done the site is up and running While the default configuration of most software pacakges provides you with everything you should need to run, edge cases might force you to install additional stuff. Furthermore, from a security point of view, 3 clicks and done doesn't sound to carry the required trust and knowledge. Basically, it's about _your_ security and the security of your customers / clients / users. Those running FreeBSD based servers know this very well and spend some time _learning_ to build and administrate a server properly. if possible the developers to build a new freebsd and use skins like the plasma TV that type of black colour skins and all the freebsd be like that You can add skins and styles to whatever you like. FreeBSD is free in this regards, as is the software that you install on it. For example, desktop environments can be themed, and many preprogrammed web content providing systems can also be styled in any manner you wish. and build one application like IIS 7 or mac admin tools Honestly, nobody with a working brain wants IIS. :-) For FreeBSD there are various servers (web servers, mail servers and media streaming servers) that can be combined if required. They are usually fast and secure, easy to configure, to update, and they come with source code -- the opposite of IIS. for easy up and run sites If you don't want to deal with technical details, knowledge and neccessary basics (such as terminology, protocols etc.), why not use a free hosting provider and rely on _their_ solution? another application is one listview to add all the websites hostes on the server like add folder name to the disk disk www folder chat folder hosting folder business folder family listview details IP addressServerHost Domain Name date / time directory 123.023.02 localhost www.freebsd20.12.02 12h 23m www/videos This remotely looks like what you can achieve with Apache's configuration file (httpd.conf), but would also apply if you'd choose to employ jails to maintain web servers on a per-jail basis. I'm almost sure there is a web-based administration tool for the typical Apache + PHP + MySQL combination that offers such kind of interface. i hope you understand It's possible, thanks. :-) -- 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: pkg upgrade?
On 03/12/2012 22:10, Walter Hurry wrote: I think there's a problem with 'pkg info' irrespective of how the package is built. $ pkg info -s -F gcc-4.6.4.20121123.txz gcc-4.6.4.20121123 flat size is: 0 B gcc-4.6.4.20121123 package size is: 0 B $ pkg query -F gcc-4.6.4.20121123.txz %sh 567 MB $ It seems that 'pkg info' is looking at one measure, while 'pkg query' is looking at another. Maybe portmaster is populating both correctly, but poudriere is only doing one of the two. No -- the data is stored in the pkg structure in memory in exactly the same way irrespective of the program used to access it. The problem would occur as a fault in converting the value as it is read into or out of that structure. The poudriere devs tell me that poudriere doesn't do anything different when creating packages -- it just uses 'make package' in the usual way from the ports. So I now doubt that is the problem. The fact that 'pkg info' gets it wrong, but 'pkg query' gets it right implies the problem is localised to 'pkg info'. That I'm not seeing it on my dev system, which is running pretty much the latest from the git repo, suggests that the problem may already have been fixed, although I can't see a relevant commit message. I'm using a straightforward 'pkg create' to build my package files, by the way. But why should there be two (apparently discrete) measures? It's clear that there is a flaw somewhere, but it's not where I first thought. I need to recheck things more thoroughly on my work machine which I believe was showing the same symptoms. Starting to doubt what I saw yesterday. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey JID: matt...@infracaninophile.co.uk signature.asc Description: OpenPGP digital signature