Postmap Issue
Hi All, Has anyone seen this error when running postmap on FreeBSD 8.X? mail# postmap /usr/local/etc/postfix/transport /libexec/ld-elf.so.1: Shared object libmysqlclient.so.18 not found, required by postmap If not, does anyone have some advice on better places to look? Google search has been fruitless. P.S. mySQL is installed, and postfix was installed with mySQL support. Thanks! Mark *** Travelex - www.travelex.com Travelex Outsourcing Pty Limited [Currency Select businesss] is a limited company registered in Australia with company number: 127 747 586. Information in this email including any attachment ('email') is confidential, may be privileged and is intended solely for the addressee. Unauthorised recipients are requested to preserve the confidentiality of this email, advise the sender immediately of any error in transmission, and then delete the email from the recipient's mailbox without making copies. Any disclosure, copying, distribution or action taken, or omitted to be taken, in reliance upon the contents of this email by unauthorised recipients is prohibited and may be unlawful. Please note that no contracts or commitments may be concluded on behalf of Travelex Outsourcing Pty Limited [Currency Select businesss] or its groups of companies ('Travelex') by means of email, and no statement or representation made in this email is binding on behalf of Travelex. DISCLAIMER: Whilst this message has been scanned for viruses, Travelex disclaims any responsibility or liability for viruses contained therein. It is therefore recommended that all emails should be scanned for viruses. *** ___ 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 find out which version of PF a given box is using...
List, Is there an easy way to find out what version of PF a given FreeBSD version is using? Currently I'm doing this: grep -iE '\bpf\b' /usr/src/UPDATING Just wondering if I'm missing something. I didn't see any '--version' flag in pfctl. -Modulok- ___ 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 find out which version of PF a given box is using...
On 21/09/2011 07:34, Modulok wrote: Is there an easy way to find out what version of PF a given FreeBSD version is using? Currently I'm doing this: grep -iE '\bpf\b' /usr/src/UPDATING Just wondering if I'm missing something. I didn't see any '--version' flag in pfctl. Uh -- bpf is a different thing to PF. bpf is Berkeley Packet Filter which isn't anything to do with firewalling, but used eg. by tcpdump to select certain packets from the wire. As far as I know, bpf doesn't have a separate version number; it just uses the OS version number. It's been part of BSD Unices since dinosaurs roamed the earth. PF is the firewalling code imported from OpenBSD. Again, it's part of the base system in OpenBSD so it just uses the OpenBSD version number. Every so often there will be a new import from OpenBSD -- I believe most released versions of FreeBSD are using PF from OpenBSD 4.2, but there is an update to OpenBSD 4.mumble in the works for the upcoming FreeBSD 9.0 release. You'ld have to check the commit history in CVS or SVN to be sure. 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
Re: Postmap Issue
First things first. _PLEASE_ !!! Do not post from an account that includes these _stupid_ and *LEGALLY*WORTHLESS* quote disclaimers unquote. They are not worth the electrons they're printed on. They _do_ accomplish ONE thing -- they make the sender look like an idiot, and =discourage= some people (those who _know_ what garbage those disclaimers are) from offering helpful information. People too uninformed to recognize that such nonsense is being attached to their messages, or too incompetent as to seek out an email service that does _not_ perform msuch sutpidities, are _unlikely_ to be mentally alert enough to profit from advice offered. /rant Date: Wed, 21 Sep 2011 16:17:03 +1000 From: Van Der Meulen, Mark mark.vandermeu...@travelex.com.au Subject: Postmap Issue ** * Travelex - www.travelex.com Travelex Outsourcing Pty Limited [Currency Select businesss] is a limited company registered in Australia with company number: 127 747 586. Information in this email including any attachment ('email') is confidential, may be privileged and is intended solely for the addressee. Unauthorised recipients are requested to preserve the confidentiality of this email, advise the sender immediately of any error in transmission, and then delete the email from the recipient's mailbox without making copies. Any disclosure, copying, distribution or action taken, or omitted to be taken, in reliance upon the contents of this email by unauthorised recipients is prohibited and may be unlawful. Please note that no contracts or commitments may be concluded on behalf of Travelex Outsourcing Pty Limited [Currency Select businesss] or its groups of companies ('Travelex') by means of email, and no statement or representation made in this email is binding on behalf of Travelex. DISCLAIMER: Whilst this message has been scanned for viruses, Travelex disclaims any responsibility or liability for viruses contained therein. It is therefore recommended that all emails should be scanned for viruses. ** * Hi All, Has anyone seen this error when running postmap on FreeBSD 8.X? mail# postmap /usr/local/etc/postfix/transport /libexec/ld-elf.so.1: Shared object libmysqlclient.so.18 not found, required by postmap If not, does anyone have some advice on better places to look? Google search has been fruitless. P.S. mySQL is installed, and postfix was installed with mySQL support. This may be a 'version mismatch' between an existing 'libmysqlclient.so' and what postmap expects run a find(1) for libmysqlclient.so**' and see what it reports, an in what directories. use option '-ls' so you can see permissions as well as mere file existeance. See also 'man ldconfig'. ___ 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 find out which version of PF a given box is using...
On 21/09/2011 08:34, Matthew Seaman wrote: On 21/09/2011 07:34, Modulok wrote: Is there an easy way to find out what version of PF a given FreeBSD version is using? Currently I'm doing this: grep -iE '\bpf\b' /usr/src/UPDATING Just wondering if I'm missing something. I didn't see any '--version' flag in pfctl. Uh -- bpf is a different thing to PF. bpf is Berkeley Packet Filter which isn't anything to do with firewalling, but used eg. by tcpdump to select certain packets from the wire. As far as I know, bpf doesn't have a separate version number; it just uses the OS version number. It's been part of BSD Unices since dinosaurs roamed the earth. One of these days I'll learn not to send e-mail before coffee. Please ignore the above -- red herring. PF is the firewalling code imported from OpenBSD. Again, it's part of the base system in OpenBSD so it just uses the OpenBSD version number. Every so often there will be a new import from OpenBSD -- I believe most released versions of FreeBSD are using PF from OpenBSD 4.2, but there is an update to OpenBSD 4.mumble in the works for the upcoming FreeBSD 9.0 release. You'ld have to check the commit history in CVS or SVN to be sure. In fact, the last import listed as such in the CVS history was from OpenBSD 4.1 but that was around 2007 when FreeBSD was on version 6.x -- long time ago. There's been plenty of updates since (which, IIRC, made the FreeBSD code pretty much equivalent to what is in OpenBSD 4.2), but no wholesale reimport until about 2 months ago, when OpenBSD 4.5 code was imported into head. http://svnweb.freebsd.org/base?view=revisionrevision=223637 AFAIK, that is not a candidate for MFC to stable/8 or earlier, as it modifies KBIs. 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
Re: OpenLDAP + CARP
Le Tue, 20 Sep 2011 13:02:47 +0200, Rafael NAVAZA rnav...@hotmail.com a écrit : Hello, As far as I know CARP will not check if the slapd is running correctly; that could be a problem if the CARP Master has a failing slapd. Do I have to monitor slapd with a third party software (like Monit) ? Can I configure CARP and OpenLDAP to watch each other more closely ? You can use ifstated (port net/ifstated) for this. 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: How to find out which version of PF a given box is using...
On 21 September 2011 09:05, Matthew Seaman m.sea...@infracaninophile.co.ukwrote: On 21/09/2011 08:34, Matthew Seaman wrote: On 21/09/2011 07:34, Modulok wrote: Is there an easy way to find out what version of PF a given FreeBSD version is using? Currently I'm doing this: grep -iE '\bpf\b' /usr/src/UPDATING Just wondering if I'm missing something. I didn't see any '--version' flag in pfctl. Uh -- bpf is a different thing to PF. bpf is Berkeley Packet Filter which isn't anything to do with firewalling, but used eg. by tcpdump to select certain packets from the wire. As far as I know, bpf doesn't have a separate version number; it just uses the OS version number. It's been part of BSD Unices since dinosaurs roamed the earth. One of these days I'll learn not to send e-mail before coffee. Please ignore the above -- red herring. PF is the firewalling code imported from OpenBSD. Again, it's part of the base system in OpenBSD so it just uses the OpenBSD version number. Every so often there will be a new import from OpenBSD -- I believe most released versions of FreeBSD are using PF from OpenBSD 4.2, but there is an update to OpenBSD 4.mumble in the works for the upcoming FreeBSD 9.0 release. You'ld have to check the commit history in CVS or SVN to be sure. In fact, the last import listed as such in the CVS history was from OpenBSD 4.1 but that was around 2007 when FreeBSD was on version 6.x -- long time ago. There's been plenty of updates since (which, IIRC, made the FreeBSD code pretty much equivalent to what is in OpenBSD 4.2), but no wholesale reimport until about 2 months ago, when OpenBSD 4.5 code was imported into head. http://svnweb.freebsd.org/base?view=revisionrevision=223637 AFAIK, that is not a candidate for MFC to stable/8 or earlier, as it modifies KBIs. 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 If its been syncd to openbsd 4.5 version of pf, its still quite a way behind openbsd's version in the latest release as they are not on 4.9 with 5.0 imminent. Looking at the docs there were quite a lot of changes when openbsd was bumped to 4.7 ___ 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: Postmap Issue
On 21/09/2011 07:17, Van Der Meulen, Mark wrote: mail# postmap /usr/local/etc/postfix/transport /libexec/ld-elf.so.1: Shared object libmysqlclient.so.18 not found, required by postmap What version of mysql client do you have installed? libmysqlclient.so.18 comes from databases/mysql55-client which became the default MySQL version about 6 months ago. There are two ways you can get this problem: 1) Incompatible version of MySQL client installed: If you use binary packages from the FreeBSD ftp servers, they will be compiled against mysql55 shared libs nowadays. If you instal from ports, it will automatically link against whatever version of MySQL client you have installed. However, if you had installed an older version of MySQL it wouldn't automatically get upgraded to MySQL 5.5.x -- that you'ld have to do manually. So updating via pkgs could lead to the situation you see -- except you should have run into it about 6 months ago... As I recall, the MySQL 5.1 to 5.5 upgrade is not particularly onerous, but if you're upgrading MySQL server at the same time, you need to take the DB down while you're doing the updates, and you need to run the 'mysql-after-upgrade' stuff to applie various changes to the standard DB schema. 2) Correct version of mysql-client installed, but ld.so can't find the libmysqlclient shlib So, assuming you've got mysql-client-5.5.x installed -- The MySQL ports install their shlibs into /usr/local/lib/mysql/ and add that to the default list of paths for ld.so to search. That should be automatic, but maybe something went wrong. What does: ldconfig -r | grep 'search directories' return? How about ldconfig -r | grep 'mysql' ? If /usr/local/lib/mysql/libmysqlclient.so.18 is missing from the above, then you can fix things up by: ldconfig -m /usr/local/lib/mysql 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
Re: How to find out which version of PF a given box is using...
On 21/09/2011 09:17, krad wrote: If its been syncd to openbsd 4.5 version of pf, its still quite a way behind openbsd's version in the latest release as they are not on 4.9 with 5.0 imminent. Looking at the docs there were quite a lot of changes when openbsd was bumped to 4.7 Yes. However I believe this does solve the incompatibility between PF and vimage, which is fantastic. There's been a lot of work gone into FreeBSD network stack to add capabilities that OpenBSD simply doesn't have -- mostly to do with fine-grained locking, multiprocessing support and virtualization -- all of which makes the importing process pretty non-trivial. Cheers, Matthew PS. Mac OS X Lion now uses PF for firewalling too. Apparently it's even older than the PF in FreeBSD: http://quigon.bsws.de/papers/2011/pf10yrs/mgp00078.html -- 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
Run different kernel subsystems with different priorities
Hi! Q1: Is it possible to set different NICE priorities on different kernel subsystems? For example, can I prioritize the interrupt handling of the NIC bge1 ([irq23: bge1]) over the interrupt handling of NIC bge0 ([irq22: bge0])? ...and can I make the usb subsystem ([usb0], [usb1], [usb2], [usb3]) less prioritized than pretty much everything else? When running 'ps faxuwl', I see that all processess on my system is running with NICE value 0. Q2: When assigning custom NICE priotities to my userland processes, what levels should one use? Is there any recommendation to follow? If I intend to have three levels, high, medium and unimportant, should I use the values 0 10 20 or 0 1 2or 0 50 100 or -1 0 1or -1 5 10 or something different? /Elof ___ 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: OpenLDAP + CARP
I'm indeed using the built in failover capability of LDAP clients. It works just fine when the first LDAP server is powered off, but it does not work that well when slapd becomes a zombi ( because the clients take about 1 min to try the second LDAP server, for each request, every time ... ) It is for that reason I'm interested in building a HA cluster for OpenLDAP. Could this help in your situation? http://www.liquidx.net/blog/2006/04/03/nss_ldap-undocumented-nss_reconnect_tries/ Hello Brandon, That is a client side solution for Linux and I have several other OSs that use LDAP. But I remember some users at work that sometimes had udev timeout when booting their CentOS 5 workstation, thank you for the link. Rafael. ___ 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: OpenLDAP + CARP
Hello Patrick, As far as I know CARP will not check if the slapd is running correctly; that could be a problem if the CARP Master has a failing slapd. Do I have to monitor slapd with a third party software (like Monit) ? Can I configure CARP and OpenLDAP to watch each other more closely ? You can use ifstated (port net/ifstated) for this. Ok, I'll watch at what ifstated can do to monitor carp and slapd 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: OpenLDAP + CARP
On 21/09/2011 10:34, Rafael NAVAZA wrote: Could this help in your situation? http://www.liquidx.net/blog/2006/04/03/nss_ldap-undocumented-nss_reconnect_tries/ That is a client side solution for Linux and I have several other OSs that use LDAP. No -- it's OS independent. You obviously won't get udev timeouts on FreeBSD, but 'bind_policy soft' is a solution to similar timeouts you'ld get in FreeBSD. In fact, it's the standard advice on FreeBSD lists when setting up a box to use LDAP. 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
UFS journal size
Quoting the manpage: -s jsize Specifies size of the journal if only one provider is used for both data and journal. The default is one gigabyte. Size should be chosen based on provider's load, and not on its size; recommended minimum is twice the size of the physical memory installed. It is not recommended to use gjournal for small file systems (e.g.: only few gigabytes big). My question is: if I have 4 or 8 GB of RAM should I create 8 or even 16 GB journals?.. This seems huge especially if the fs size without journal is only 10 gigs. Or the recommended minimum is for systems low on RAM? ___ 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: UFS journal size
On 21/09/2011 10:48, Ross wrote: Quoting the manpage: -s jsize Specifies size of the journal if only one provider is used for both data and journal. The default is one gigabyte. Size should be chosen based on provider's load, and not on its size; recommended minimum is twice the size of the physical memory installed. It is not recommended to use gjournal for small file systems (e.g.: only few gigabytes big). My question is: if I have 4 or 8 GB of RAM should I create 8 or even 16 GB journals?.. This seems huge especially if the fs size without journal is only 10 gigs. Or the recommended minimum is for systems low on RAM? How much churn do you expect in the data on that partition? A journal that's about the same size as the actual filesystem in question and on the same physical device is not really going to get you any advantages. If it's mostly going to be read rather than written, then you wouldn't fill up that size of journal in any case. The 'twice physical RAM' advice is all about achieving maximum performance on large filesystems with lots of data writes: if write performance is not actually a limiting factor, then you could get away with a much smaller or even no journal at all. You might just as well use plain UFS+Softupdates. Softupdates to provide the meta-data ordering feature, so that if you do crash and need to fsck the filesystem, there's not going to be any really nasty stuff to fix. Plain UFS because a filesystem of that size will take about as long to fsck as it would to replay all the journalled but uncommitted updates. 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
Using RPM to extract file
I am attempting to obtain a PPD file for a Brother MFC-9560CDW printer. According to this URL: http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/index.html, I can download a file from: http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#MFC-9560CDW for this printer. Unfortunately, the file is only available in either RPM or DEB format. I cannot figure out how to extract the PPD from RPM file. I have read man rpm; however, I am still confused. I tried following the instruction given on the site for extracting the files; however, that only issued a warning about an incorrect operating system. Perhaps someone has some advice on how to go about this. I contacted Brother in regards to this but they said they only support Windows (obviously), Linux and Debian. According to them, support for other operating systems in not being considered presently due to a lack of consumer demand and the overhead involved. -- Carmel ✌ carmel...@hotmail.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: Using RPM to extract file
On 2011/09/21 13:17, Carmel wrote: I am attempting to obtain a PPD file for a Brother MFC-9560CDW printer. According to this URL: http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/index.html, I can download a file from: http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#MFC-9560CDW for this printer. Unfortunately, the file is only available in either RPM or DEB format. I cannot figure out how to extract the PPD from RPM file. I have read man rpm; however, I am still confused. I tried following the instruction given on the site for extracting the files; however, that only issued a warning about an incorrect operating system. First use rpm2cpio of archivers/rpm to get a cpio package. Then continue with standard cpio(1). BR, Oli ___ 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
Blacklisting DOS IPs
I'm currently using a pfSense box as a gateway and I was recently victim of a DNS DOS attack. That made me think how I could blacklist those IPs automatically. I looked through the pf documentation and the thing that seemed more like it was the max-src-conn-rate option, but then I realized that it's useless with UDP when some hosts send you vast amounts of packets. I'm thinking about making an script using awk and pftop output to watch for states that have more than 1Mb of traffic (regular DNS queries aren't that big) and put those hosts in a table for blocking. My question is if it is there some other more efficient solution for this problem. Thanks in advance -- Saludos de Mauricio López-Quintana Conesa Administrador de Redes Dirección de Patrimonio Oficina del Historiador ___ 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
Pci express ZFS card?
Hi, i have this used pci express industrial card (PCIe 2.0 x4) with 1GB: http://www.ieiworld.com/product_groups/industrial/content.aspx?gid=1101cid=08141333914287007902id=0A263601401161285688 I want to install a NanoBSD with ZFS and 3 Sata disks. Unfortunately i know nothing about this topic. Does anynone know if this type of cards can be connected to a server? Can i access the zfs raidz on it througth the pci express interface? The card documentation says nothing about its use on normal pc as expansion card, only on pci express backplanes. TIA ___ 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: UFS journal size
On Wed, 21 Sep 2011 11:41:08 +0100 Matthew Seaman wrote: On 21/09/2011 10:48, Ross wrote: My question is: if I have 4 or 8 GB of RAM should I create 8 or even 16 GB journals?.. This seems huge especially if the fs size without journal is only 10 gigs. Or the recommended minimum is for systems low on RAM? The 'twice physical RAM' advice is all about achieving maximum performance on large filesystems with lots of data writes: IIRC the original justification for 2*ram was as a crude rule-of-thumb to avoid panics. I think the idea was that writing the whole ram into one of the two journalling areas was an extreme case. You might just as well use plain UFS+Softupdates. Softupdates to provide the meta-data ordering feature, so that if you do crash and need to fsck the filesystem, there's not going to be any really nasty stuff to fix. And in 9.x UFS filesystems (even existing ones) will be able to use journalled soft-updates. This should give a fast fsck without the overheads of full data journalling or background fsck. Plain UFS because a filesystem of that size will take about as long to fsck as it would to replay all the journalled but uncommitted updates. FWIW fsck doesn't replay the journal, it just does a quick check for orphaned files and marks the filesystem as clean - uncommitted updates are left for gjournal. ___ 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: UFS journal size
On 21/09/2011 11:48, Ross wrote: Quoting the manpage: -s jsize Specifies size of the journal if only one provider is used for both data and journal. The default is one gigabyte. Size should be chosen based on provider's load, and not on its size; recommended minimum is twice the size of the physical memory installed. It is not recommended to use gjournal for small file systems (e.g.: only few gigabytes big). My question is: if I have 4 or 8 GB of RAM should I create 8 or even 16 GB journals?.. This seems huge especially if the fs size without journal is only 10 gigs. Or the recommended minimum is for systems low on RAM? You are probably missing that gjournal does full data journaling, not just metadata as is more common with other systems, so you need a journal which can hold *at least* everything you can hold in RAM, and then twice as much since one half may be replaying while other is being filled up. Even this is an estimate since it's heavily load-dependant. Or you can wait for 9.0 with metadata journaling. signature.asc Description: OpenPGP digital signature
Re: UFS journal size
On Wed, Sep 21, 2011 at 12:48:25PM +0300, Ross wrote: Quoting the manpage: -s jsize Specifies size of the journal if only one provider is used for both data and journal. The default is one gigabyte. Size should be chosen based on provider's load, and not on its size; recommended minimum is twice the size of the physical memory installed. It is not recommended to use gjournal for small file systems (e.g.: only few gigabytes big). My question is: if I have 4 or 8 GB of RAM should I create 8 or even 16 GB journals?.. This seems huge especially if the fs size without journal is only 10 gigs. Or the recommended minimum is for systems low on RAM? My experience has shown that speed of the underlying filessystem has a huge impact on the required size of the journal. I have a system running hardware RAID-10 on a 3Ware SATA controller. On a 100G partition, rsync would regularly cause a panic until I got my journal up above 10G. This particular host has only 1G of RAM and a single 3.4GHz P4 CPU. Sizing this particular box using gjournal was painful until I got the journal sizes large enough. It turns out the journals had to be so large (for the infrequent write burst) that a significant amount of disk was chewed up for journals that were mostly unused. If I had to do it over again, I would have not used gjournal and simply used softupdates. YMMV -- Regards, Doug ___ 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: Using RPM to extract file
On Wed, 21 Sep 2011 13:43:51 +0200 kron24 articulated: On 2011/09/21 13:17, Carmel wrote: I am attempting to obtain a PPD file for a Brother MFC-9560CDW printer. According to this URL: http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/index.html, I can download a file from: http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#MFC-9560CDW for this printer. Unfortunately, the file is only available in either RPM or DEB format. I cannot figure out how to extract the PPD from RPM file. I have read man rpm; however, I am still confused. I tried following the instruction given on the site for extracting the files; however, that only issued a warning about an incorrect operating system. First use rpm2cpio of archivers/rpm to get a cpio package. Then continue with standard cpio(1). Using rpm2cpio was easy enough; however, I just cannot figure out how to get cpio to extract just the one file I want. Either it just hangs or issues an error message. The man page is just about useless. No useful example is given. -- Carmel ✌ carmel...@hotmail.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: Using RPM to extract file
On Wed, 21 Sep 2011 18:58:08 +0200 Vaclav Kadlcik articulated: On 2011/09/21 18:19, Carmel wrote: On Wed, 21 Sep 2011 13:43:51 +0200 kron24 articulated: On 2011/09/21 13:17, Carmel wrote: I am attempting to obtain a PPD file for a Brother MFC-9560CDW printer. According to this URL: http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/index.html, I can download a file from: http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#MFC-9560CDW for this printer. Unfortunately, the file is only available in either RPM or DEB format. I cannot figure out how to extract the PPD from RPM file. I have read man rpm; however, I am still confused. I tried following the instruction given on the site for extracting the files; however, that only issued a warning about an incorrect operating system. First use rpm2cpio of archivers/rpm to get a cpio package. Then continue with standard cpio(1). Using rpm2cpio was easy enough; however, I just cannot figure out how to get cpio to extract just the one file I want. Either it just hangs or issues an error message. The man page is just about useless. No useful example is given. $ rpm2cpio mfc9560cdwcupswrapper-1.1.1-5.i386.rpm | cpio -ivd ./usr/local/Brother/Printer/mfc9560cdw/cupswrapper/brcupsconfpt1 ./usr/local/Brother/Printer/mfc9560cdw/cupswrapper/cupswrappermfc9560cdw ./usr/local/Brother/Printer/mfc9560cdw/cupswrapper/mfc9560cdw.ppd 85 blocks I found a nearly identical example while Googling right after I posted. It would be nice if a simple example like that were included n the man page. -- Carmel ✌ carmel...@hotmail.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: Using RPM to extract file
On 2011/09/21 18:19, Carmel wrote: On Wed, 21 Sep 2011 13:43:51 +0200 kron24 articulated: On 2011/09/21 13:17, Carmel wrote: I am attempting to obtain a PPD file for a Brother MFC-9560CDW printer. According to this URL: http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/index.html, I can download a file from: http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#MFC-9560CDW for this printer. Unfortunately, the file is only available in either RPM or DEB format. I cannot figure out how to extract the PPD from RPM file. I have read man rpm; however, I am still confused. I tried following the instruction given on the site for extracting the files; however, that only issued a warning about an incorrect operating system. First use rpm2cpio of archivers/rpm to get a cpio package. Then continue with standard cpio(1). Using rpm2cpio was easy enough; however, I just cannot figure out how to get cpio to extract just the one file I want. Either it just hangs or issues an error message. The man page is just about useless. No useful example is given. $ rpm2cpio mfc9560cdwcupswrapper-1.1.1-5.i386.rpm | cpio -ivd ./usr/local/Brother/Printer/mfc9560cdw/cupswrapper/brcupsconfpt1 ./usr/local/Brother/Printer/mfc9560cdw/cupswrapper/cupswrappermfc9560cdw ./usr/local/Brother/Printer/mfc9560cdw/cupswrapper/mfc9560cdw.ppd 85 blocks HTH, Oli ___ 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: Blacklisting DOS IPs
On Wednesday 21 September 2011 14:06:08 Mauricio López wrote: I'm thinking about making an script using awk and pftop output to watch for states that have more than 1Mb of traffic (regular DNS queries aren't that big) and put those hosts in a table for blocking. My question is if it is there some other more efficient solution for this problem. Thanks in advance Hi Mauricio, I dont know if this will help you, but this is a script I made years ago that I use on my machines. I call the script using cron once a day and let IPFW do the filtering for me HTH Peg #!/bin/sh #automatically fetch the spamhaus zone ban list cd /root /usr/bin/fetch http://www.spamhaus.org/drop/drop.lasso #Let drop all of set 11 from the firewall /sbin/ipfw delete set 11 #Starting Rule Number Counter=1000 #lets parse the file and cut out the piece we want for i in `cut -d -f 1 drop.lasso | grep -v ;` do echo Adding rule for: $i Counter=`expr $Counter + 1` ##Lets add the rule into set 11 /sbin/ipfw add $Counter set 11 deny ip from $i to any Counter=`expr $Counter + 1` /sbin/ipfw add $Counter set 11 deny ip from any to $i done ___ 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 9-BETA2 on a Dell Latitude D630
Good Day; I wish to post a successful installation of FreeBSD 9.0 on a Dell Latitude D630 laptop. Base installation was from binaries on the -amd64 dvd.iso. Xorg and gnome from ports fetched via portsnap on 09/18/11. csup'd kernel and userland source yesterday. This is a fresh built custom kernel without debugging, SCSI or RAID modules. I do not know what this means 'GEOM_PART: Partition 'ada0p3' not suitable for kernel dumps (wrong type?)'. I am still investigating why Perl 5.12.4 dumped core at the end but otherwise the machine seems to be operating well. # dmesg | more Copyright (c) 1992-2011 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.0-BETA2 #0: Wed Sep 21 17:08:56 CDT 2011 michael@*.*.net:/usr/obj/usr/src/sys/KERNEL_092111 amd64 CPU: Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz (1994.48-MHz K8-class CPU) Origin = GenuineIntel Id = 0x6fd Family = 6 Model = f Stepping = 13 Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE Features2=0xe3bdSSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM AMD Features=0x20100800SYSCALL,NX,LM AMD Features2=0x1LAHF TSC: P-state invariant, performance statistics real memory = 1073741824 (1024 MB) avail memory = 1003618304 (957 MB) Event timer LAPIC quality 400 ACPI APIC Table: DELL M08 FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs FreeBSD/SMP: 1 package(s) x 2 core(s) cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0: Changing APIC ID to 2 ioapic0 Version 2.0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: DELL M08 on motherboard hpet0: High Precision Event Timer iomem 0xfed0-0xfed003ff on acpi0 Timecounter HPET frequency 14318180 Hz quality 950 Event timer HPET frequency 14318180 Hz quality 450 Event timer HPET1 frequency 14318180 Hz quality 440 Event timer HPET2 frequency 14318180 Hz quality 440 acpi0: reservation of 0, 9f000 (3) failed acpi0: reservation of 10, 3f55b800 (3) failed Timecounter ACPI-fast frequency 3579545 Hz quality 900 acpi_timer0: 24-bit timer at 3.579545MHz port 0x1008-0x100b on acpi0 cpu0: ACPI CPU on acpi0 cpu1: ACPI CPU on acpi0 pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0 pci0: ACPI PCI bus on pcib0 vgapci0: VGA-compatible display port 0xeff8-0xefff mem 0xfea0-0xfeaf,0xe000-0xefff irq 16 at device 2.0 on pci0 agp0: Intel GM965 SVGA controller on vgapci0 agp0: aperture size is 256M, detected 7676k stolen memory vgapci1: VGA-compatible display mem 0xfeb0-0xfebf at device 2.1 on pci0 uhci0: Intel 82801H (ICH8) USB controller USB-D port 0x6f20-0x6f3f irq 20 at device 26.0 on pci0 uhci0: LegSup = 0x2f00 usbus0: Intel 82801H (ICH8) USB controller USB-D on uhci0 uhci1: Intel 82801H (ICH8) USB controller USB-E port 0x6f00-0x6f1f irq 21 at device 26.1 on pci0 uhci1: LegSup = 0x2f00 usbus1: Intel 82801H (ICH8) USB controller USB-E on uhci1 ehci0: Intel 82801H (ICH8) USB 2.0 controller USB2-B mem 0xfed1c400-0xfed1c7ff irq 22 at device 26.7 on pci0 usbus2: EHCI version 1.0 usbus2: Intel 82801H (ICH8) USB 2.0 controller USB2-B on ehci0 hdac0: Intel 82801H High Definition Audio Controller mem 0xfe9fc000-0xfe9f irq 21 at device 27.0 on pci0 pcib1: ACPI PCI-PCI bridge at device 28.0 on pci0 pci11: ACPI PCI bus on pcib1 pcib2: ACPI PCI-PCI bridge at device 28.1 on pci0 pci12: ACPI PCI bus on pcib2 wpi0: Intel(R) PRO/Wireless 3945ABG mem 0xfe8ff000-0xfe8f irq 17 at device 0.0 on pci12 pcib3: ACPI PCI-PCI bridge at device 28.5 on pci0 pci9: ACPI PCI bus on pcib3 bge0: Broadcom NetXtreme Gigabit Ethernet Controller, ASIC rev. 0x00a002 mem 0xfe7f-0xfe7f irq 17 at device 0.0 on pci9 bge0: CHIP ID 0xa002; ASIC REV 0x0a; CHIP REV 0xa0; PCI-E miibus0: MII bus on bge0 brgphy0: BCM5755 1000BASE-T media interface PHY 1 on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow bge0: Ethernet address: 00:21:70:91:6a:a5 uhci2: Intel 82801H (ICH8) USB controller USB-A port 0x6f80-0x6f9f irq 20 at d--More--(byte 3800) evice 29.0 on pci0 uhci2: LegSup = 0x2f00 usbus3: Intel 82801H (ICH8) USB controller USB-A on uhci2 uhci3: Intel 82801H (ICH8) USB controller USB-B port 0x6f60-0x6f7f irq 21 at device 29.1 on pci0 uhci3: LegSup = 0x2f00 usbus4: Intel 82801H (ICH8) USB controller USB-B on uhci3 uhci4: Intel 82801H (ICH8) USB controller USB-C port 0x6f40-0x6f5f irq 22 at device 29.2 on pci0 uhci4: LegSup = 0x2f00 usbus5: Intel 82801H (ICH8) USB controller USB-C on uhci4 ehci1: Intel 82801H (ICH8) USB 2.0 controller USB2-A mem 0xfed1c000-0xfed1c3ff irq 20 at device 29.7 on pci0 usbus6: EHCI version 1.0 usbus6: Intel 82801H (ICH8) USB 2.0 controller USB2-A on ehci1
Dynamic Window Manager install with patch(es)
Hi all, First time poster to the lists! Using dwm, loving the minimalism and it's forcing me to learn stuff the hard way which is all good. But I can't seem to figure out how to apply a patch to it. According to the instructions listed here: http://dwm.suckless.org/patches/ I figured I'm to use the tarball method as that's how ports fetches dwm. I tried applying the method to /usr/ports/x11-wm/dwm/work/dwm-5.9 but it didn't work (malformed patch). I've used ubuntu for about a year but for all intents and purposes I'm still a beginner with UNIX-like, and I've never used patch or diff before. But, I remembered that these are ports and wonder if these patches would work on FreeBSD source? Would I have to apply the patch to the tarball while it's in distfiles before it gets 'ported' to freebsd? Or am I talking crazy? Any help would be appreciated. andy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Chinese and Asian Languages Translation, Localization and DTP, Trados 7.0
New Language Service Your Complete Asian Language Translation, Localization, and DTP Service Provider New Language Service is a professionalTranslation and Typesetting (DTP)company located inShanghaiChina. We provide translation and DTP services including document translation, proofreading, transcription, software localization and DTP inChinese (Simplified and Traditional), most Asian and European languages with highly skilled, qualified native translators who have more than five years experience in their native languages. When we commit to a project, we guarantee work of exceptional quality, delivered on time and on budget. We are fully experienced in translations for the following fields: — Automotive / Engineering / Shipping / Oil Gas — General offshore, shipping, oil and gas, oil and gas trade, including magazines and publications related, consumer goods, electronics, household appliances, packaging machinery, food processing (meat cut) machinery and tooling, meat/poultry/materials cutting devices and tools, maintenance, shop procedures, automotive, trucks, truck parts catalogues, shop, manufacturing and repair procedures, bulletins and manuals, CNC machinery, machine-tools, tooling, presses, press-brakes, shears, injection molding machines, welding, cutting and positioning equipment, REACH (New Chemical Industry Regulations for European Union, and more), technical manuals and Web site, — IT / Telecommunications — General inquiries and surveys, devices, Web site software localization, commercial material, Help, equipment documentation and manuals and more, mobile devices, general telecom equipment, consumer appliances, household utilities and alike, — Business Communications — Lectures, Conferences, Quality, Surveys, Questionnaires, Business Administration, Consulting, Audit, Counseling, CRM, ERP, SAP, general e-commerce, e-learning, training, Tourism, Leisure, Travel, Hotel, Theme Parks and more, — Printing and Publishing— Books, catalogues, folders, ads, user manuals and more, — Government, — Legal — Contracts, Legal Correspondence, Disclaimers, Terms and Conditions of several kinds and industries, Regulations, Environmental Standards and more, — Human Resources— Surveys, Polls, Opinion Questionnaires, Manuals, Codes of Conduct, Employee Guidelines and Policies/Manuals, and more, — Economics — Finance — Banking — Marketing — Publicity and Advertising and more areas. Services: Translation Editing/Proofreading Website Localization Software Localization DTP CAT tools: TRADOS 7.0 SDLX DTP tools: QuarkExpress FrameMaker PageMaker InDesign Illustrator Translation Rates(EUR/Word) Language Pairs Translation Editing English Simplified Chinese (Mandarin) 0.045 0.02 English Traditional Chinese (Cantonese) 0.045 0.02 English Japanese, Korean 0.09 0.03 English Vietnamese, Thai, Malay, Indonesian 0.08 0.03 EnglishBurmese/ Lao/ Bengali /Gujarati /Hindi /Kannada /Marathi /Nepali /Urdu /Gujarati /Punjabi /Tamil /Telugu /Sinhalese /Khmer (Cambodian) /Turkish /Tagalog (Pilipino) /Sinhalese 0.09 0.03 English Arabic /Russian /Ukrainian /Kazakh /Czech /Hebrew /Persian (Farsi) 0.08 0.03 English German, French, Italian, Spanish, Portuguese, Dutch 0.08 0.03 English Hungarian / Polish / Swedish / Danish / Finnish / Greek/ Norwegian 0.1 0.035 German /French /Italian /Spanish /Portuguese- Chinese 0.06 0.02 1) Rates are negotiable and depend on the subject, volume and complexity. 2) Please inquire for other language pairs and services. 3) DTP services also available. DTP Price List Multilingual DTP PC Mac Software Page Rate �o:p Page Rate �o:p PageMaker 4 5 FrameMaker 4 5 QuarkXpress 5 6 Illustrator 4 5 InDesign 4 5 Daily Output: 3500-5000 words Minimum charge: EUR25 Hourly rate: EUR30 DISCOUNTS: More than 10,000 words – 5 % More than 100,000 words – 10 % Payment method: We accept payments through: PayPal, Moneybookers,Western Union or Bank Transfer. We look forward to doing business with you. Contact us for a free quote todayi...@xylanguage.com. Yours faithfully, Frank Zhu New Language Service Tel: +86-21- 63765800 Fax: +86-21-61927233 Email:i...@xylanguage.com Website:http://www.xylanguage.com/en/index.html Address: 18F, Building 5, Lane 413,Lujiabang Road,Shanghai,China Languages: Afrikaans , Akan , Albanian , Arabic , Armenian , Assamese , Balochi , Belarusian , Bengali , Bhili , Bulgarian , Burmese , Cantonese , Chinese , Czech , Danish , Dutch , English , Filipino , Finnish , French , German , Greek , Gujarati , Hakka , Hebrew , Hindi , Hungarian , Indonesian , Italian , Japanese , Kannada , Kongo , Korean , Kurdish , Lombard , Malay , Malayalam , Marathi , Mongolian , Neapolitan , Nepali , Norwegian , Oriya , Pashto , Persian , Polish , Portuguese , Punjabi , Romanian , Russian , Santali , Sindhi , Sinhalese , Slovak , Somali
Reading DLT tapes with very large block sizes.
Hi all, I've been given a set of DLT tapes written with data in fixed 8Mb blocks. I have been unable to convince any OS to read these tapes, and yet I need to read them. Most tape drivers refuse to work with block sizes that are even a fraction of this blocksize. The tapes were created on a Linux machine several years ago using the AMANDA tape backup system. Can anyone offer davice on how I might go about reading these tapes. I'm fine with patching code and installing an altered sa driver, but I lack sufficient knowledge of how the scsi tape driver functions. I'm entirely willing and able to build a machine specifically to read these tapes. Any help, clues, guidance, etc would be wonderful. Thanks, Mike Voorhis (mvoor...@cs.wpi.edu) ___ 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