Re: slow down dd - how?
> Date: Fri, 9 Jul 2010 02:32:18 +0200 > From: Thomas > Cc: FreeBSD Mailing list > Subject: Re: slow down dd - how? > > On Thu, Jul 08, 2010 at 05:50:52PM +0200, Jozsi Avadkan wrote: > > Hi, > > > How can I slow down dd? > > > > you could use some creative shellscripting (probably in addition to idprio): > > dd if=/dev/zero bs=1024k | ( dd bs=1024k count=10; sleep 3 ) | dd bs=1024k > of=/dev/somewhere > > This pauses for 3 seconds for every 10MB written. ... I must be missing something. Doesn't that "dd ... ; sleep" in the sub-shell need to be in a _loop_ of some sort? I would expect the dd in the sub-shell to _exit_ after the first 10mb, whereupon the subshell would exit after the 3 second sleep, whereupon 'somebody" is going to holler about a 'broken pipe'. ___ 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: slow down dd - how?
On Thu, Jul 08, 2010 at 05:50:52PM +0200, Jozsi Avadkan wrote: Hi, > How can I slow down dd? > > I don't want to slow down the pc, when generating a big file [~40 > GByte]. > > Does ionice work properly? > > Thank you for any help! :\ you could use some creative shellscripting (probably in addition to idprio): dd if=/dev/zero bs=1024k | ( dd bs=1024k count=10; sleep 3 ) | dd bs=1024k of=/dev/somewhere This pauses for 3 seconds for every 10MB written. Try some variations of bs, count and sleep, until you find an acceptable compromise between speed and imposed load. Regards Thomas ___ 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 clustering ?
On 08/07/2010 09:21:53, Frank Bonnet wrote: > Could anybody recommend a rock solid software to build > an OpenLDAP cluster with FreeBSD 8.0 ? Well, you're off to a good start with FreeBSD and OpenLDAP. In fact, you don't really need much more than that. As mentioned else-thread, you can set up master-master replication between a couple of OpenLDAP instances quite readily: unlike say, M-M replication in MySQL, this is pretty robust[*] and you can write to the directory on either server. You can also expand to a ring topology with three or more servers, plus many other possibilities, and site-to-site replication also works pretty well over long distances, but that's probably getting beyond the scope of what you want. The really handy thing about LDAP is that you can do quite a reasonable High-Availability setup with no extra software or hardware -- it's a lot like DNS in that respect. Simply specify a series of LDAP servers in the ldap.conf (or pam-ldap.conf or nss-ldap.conf) on each client, and the client will try each in turn until it reaches one it can bind to successfully. This does introduce a little extra latency here and there, but nothing particularly drastic. There is also a method of distributing traffic using SRV records that can be managed centrally in the DNS but AFAIK, {nss,pam}-ldap.conf don't understand it -- other clients do and will work just fine. You can use CARP or relayd or HW load balancers or other technologies to make the H-A almost seamless, but frequently the extra complication just doesn't provide enough extra performance to justify the effort or the expense. Test early, and test often while working up your cluster. Cheers, Matthew [*] Partly this is due to the intrinsic nature of LDAP directories, where there tend to be far fewer uniqueness constraints, and partly its because LDAP servers generally service far more reads than writes -- more so than typical RDBMS usage. Mostly however, it's because LDAP replicates the modified data, rather than replaying a stream of update queries on the replication targets. -- 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: jls jail command
On 07/08/10 03:24, Aiza wrote: what is jls command syntax to list all jails a path location? jls -n shows path=/usr/jails/ thats my primary jail system. I have secondary jail system at /usr/jails.sys2/ "jls -n" will show all jails, with one line per jail. If you're just looking for the jail in a particular path, you could pipe it to "grep path='/usr/jails '" or something along those lines. I tried jls -j /usr/jails.sys2/ and jls -j /usr/jails.sys2/jailname and got core dump. The -j option expects either a jid or a jail name (which defaults to the jid unless explicitly specified). The core dump has been fixed in the upcoming 8.1 release - in 8.0 you can only specify jails by jid. - Jamie ___ 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: VPN IPsec Help
> % route add 192.168.10.24/32 200.x.x.x > % route add 192.168.201.196/32 200.x.x.x > % route add 10.115.90.236/32 200.x.x.x add net 192.168.10.24: gateway 200.x.x.x: Network is unreachable -- Matheus Weber da Conceição ___ 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"
troubles with my optical drive on old thinkpad....
guys, i only have a couple more black cd-r discs left; have wasted many since i WAS ABLE to install PC-BSD. the optical [dvd/cd] drive =does= read my ancient 5.3 CD set, but it reads nothing i burn. i have tried burning 8.0 bootonly.iso on the laptop (via k3b), and tried the same from my twin optical drives here on my desktop. can anybody suggest what i'm doing wrong? -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.83a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org 99 44/100% Guaranteed Novel ___ 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: slow down dd - how?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David Kelly wrote: > On Thu, Jul 08, 2010 at 06:44:38PM +0200, Roland Smith wrote: >> On Thu, Jul 08, 2010 at 05:50:52PM +0200, Jozsi Avadkan wrote: >>> How can I slow down dd? >> Play with the block size parameter (bs). Smaller block sizes means more >> reads. The default is 512 bytes, which is very small. >> >>> I don't want to slow down the pc, when generating a big file [~40 >>> GByte]. > > I don't think Jozsi wants to burn more CPU cycles, just slow the > process. Perhaps to attract less attention? Or interfere less with other > processes. > > Nice(1) is a good start but rtprio(1) is probably where he should look. > > Also consider that writing a program of your own to serve as a slow pipe > shouldn't be very hard. Think it would be a good exercise as an > introduction to Unix programming. Simply copy stdin to stdout with a > usleep(3) between. Pipe dd through your slowpipe program. > > Someone else has probably written a slow pipe. I haven't looked. > Indeed someone has, and I ported it a few months back: http://www.freshports.org/sysutils/pmt. Check the "throttle" subcommand. I also use idprio(1) (http://www.freebsd.org/cgi/man.cgi?query=idprio&sourceid=opensearch) to schedule processes that I don't want interfering with the rest of the system. Hope that helps, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFMNgqg0sRouByUApARAmsbAJ9ayMlkCUhJpJr0HsPxMmHQ1ToYzgCgrJGX uIeciRHWwaNYrchL4TjYnkA= =NKtY -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"
Re: slow down dd - how?
On Thu, Jul 08, 2010 at 06:44:38PM +0200, Roland Smith wrote: > On Thu, Jul 08, 2010 at 05:50:52PM +0200, Jozsi Avadkan wrote: > > How can I slow down dd? > > Play with the block size parameter (bs). Smaller block sizes means more > reads. The default is 512 bytes, which is very small. > > > I don't want to slow down the pc, when generating a big file [~40 > > GByte]. I don't think Jozsi wants to burn more CPU cycles, just slow the process. Perhaps to attract less attention? Or interfere less with other processes. Nice(1) is a good start but rtprio(1) is probably where he should look. Also consider that writing a program of your own to serve as a slow pipe shouldn't be very hard. Think it would be a good exercise as an introduction to Unix programming. Simply copy stdin to stdout with a usleep(3) between. Pipe dd through your slowpipe program. Someone else has probably written a slow pipe. I haven't looked. -- David Kelly N4HHE, dke...@hiwaay.net Whom computers would destroy, they must first drive mad. ___ 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: sort: write error with portsnap
Julien Cigar-2 wrote: > > Am I the only one to have sort: write errors since a few days with > portsnap ? : > Same here. FreeBSD 8.1-PRERELEASE #0 r209773 - Jakub Lach -- View this message in context: http://old.nabble.com/sort%3A-write-error-with-portsnap-tp29105763p29109444.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: slow down dd - how?
On Thu, Jul 08, 2010 at 05:50:52PM +0200, Jozsi Avadkan wrote: > How can I slow down dd? Play with the block size parameter (bs). Smaller block sizes means more reads. The default is 512 bytes, which is very small. > I don't want to slow down the pc, when generating a big file [~40 > GByte]. > > Does ionice work properly? I think ionice only works on Linux. Why not use nice(1)? Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgp35wKOI8yBH.pgp Description: PGP signature
slow down dd - how?
How can I slow down dd? I don't want to slow down the pc, when generating a big file [~40 GByte]. Does ionice work properly? Thank you for any help! :\ ___ 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: livefs hard links
On Thu, 8 Jul 2010, Anonymous wrote: But the mounted ISO filesystem doesn't show hard links as hard links: # ls -li /mnt/rescue 416796 -r-xr-xr-x 414 root wheel 4367520 Jun 9 14:49 [ 399564 -r-xr-xr-x 414 root wheel 4367520 Jun 9 14:49 atacontrol 399690 -r-xr-xr-x 414 root wheel 4367520 Jun 9 14:49 atmconfig 399816 -r-xr-xr-x 414 root wheel 4367520 Jun 9 14:49 badsect ... 414 is the number of hardlinks. Yes, but I was (poorly) pointing out the differing inode numbers. You can as well try to use iso9660 reader in libarchive, e.g. $ bsdtar xvf /dev/cd0 --include rescue/\* $ bsdtar xvf /path/to/blah.iso --include rescue/\* Much better! bsdtar recreates the hard links. It has a problem with only one directory on the ISO: # bsdtar xpf /tmp/FreeBSD-8.1-PRERELEASE-201006-i386-livefs.iso -C /tmp/freebsd/ bsdtar: Ignoring out-of-order file @340a6980 (usr/include/c++/4.2/ext/pb_ds/detail/basic_tree_policy) 4876288 < 5138432 bsdtar: Ignoring out-of-order file @340a6980 (usr/include/c++/4.2/ext/pb_ds/detail/basic_tree_policy) 4876288 < 5138432 bsdtar: Ignoring out-of-order file @340a6980 (usr/include/c++/4.2/ext/pb_ds/detail/basic_tree_policy) 4876288 < 5138432 bsdtar: Ignoring out-of-order file @340a6a80 (usr/include/c++/4.2/ext/pb_ds/detail/bin_search_tree_) 4878336 < 5138432 bsdtar: Ignoring out-of-order file @340a6b00 (usr/include/c++/4.2/ext/pb_ds/detail/binary_heap_) 4880384 < 5138432 bsdtar: Ignoring out-of-order file @340a6b80 (usr/include/c++/4.2/ext/pb_ds/detail/binomial_heap_) 4882432 < 5138432 ... Hard to tell if that's the ISO or a bug in libarchive. Thanks! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Get server's internal temperature from ACPI ?
On 7/7/10 12:38 PM, Chip Camden wrote: Quoth Frank Bonnet on Wednesday, 07 July 2010: Hello Is there an utility to get the internal temperature from a HP Proliant server with ACPI ??? sysctl -n hw.acpi.thermal.tz0.temperature I'm not sure if the Proliant has an Intel Core, but if it does then you can get per-cpu temperature info: kld coretemp kldload, of course. :-) for i in 0 1 2 3; sysctl -n dev.cpu.$i.temperature amdtemp(4) exists for K8, K10, and K11 AMD chips as well. Regards, -- Glen Barber ___ 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: VPN IPsec Help
On 2010.07.08 10:54, Steve Bertrand wrote: > On 2010.07.08 10:51, Steve Bertrand wrote: >> On 2010.07.08 10:00, Matheus Weber da Conceição wrote: It has been a long time since I've done IPSec on FBSD, but I'm willing to bet that this has to do with routing, possibly amongst other things. On peer 'B' (FBSD box), what internal IP range are you trying to access the A network from...the same ones (ie. are you trying to bridge the networks)? >>> The -peer A- doesn't need to access any -peer B- networks. >>> Do you have access to the Cisco gear? >>> No. >>> If so, on FreeBSD, post the output of: % netstat -rn >>> >>> Notes: >>> tun0 is my ppp pseudo-device >>> tun5 is my openvpn tunel (192.168.5.0/24) >>> >>> # netstat -rn >>> Routing tables >> >> [ big snip ] >> >> IIRC, you don't need a gre tunnel through IPSec, ...and, I meant to say gif interface, not gre tunnel. Steve ___ 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: VPN IPsec Help
On 2010.07.08 10:51, Steve Bertrand wrote: > On 2010.07.08 10:00, Matheus Weber da Conceição wrote: >>> It has been a long time since I've done IPSec on FBSD, but I'm willing >>> to bet that this has to do with routing, possibly amongst other things. >>> On peer 'B' (FBSD box), what internal IP range are you trying to access >>> the A network from...the same ones (ie. are you trying to bridge the >>> networks)? >>> >> The -peer A- doesn't need to access any -peer B- networks. >> >>> Do you have access to the Cisco gear? >> No. >> >>> If so, on FreeBSD, post the output of: >>> >>> % netstat -rn >> >> Notes: >> tun0 is my ppp pseudo-device >> tun5 is my openvpn tunel (192.168.5.0/24) >> >> # netstat -rn >> Routing tables > > [ big snip ] > > IIRC, you don't need a gre tunnel through IPSec, as you are simply > routing between two dissimilar networks. Don't quote me on this though, > as I said earlier, it has been a very long time. > > On the FreeBSD box, assuming that you *only* want to access the three > specific IPs you stated, do this: > > % route add 192.168.10.24/32 200.x.x.x > % route add 192.168.201.196/32 200.x.x.x > % route add 10.115.90.236/32 200.x.x.x > > On the Cisco side: D'oh! I wasn't paying enough attention! > % ip route 192.168.5.0 255.255.255.0 187.x.x.x.x This.^^^ should read 192.168.1.0 (by the looks of things). Steve ___ 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: VPN IPsec Help
On 2010.07.08 10:00, Matheus Weber da Conceição wrote: >> It has been a long time since I've done IPSec on FBSD, but I'm willing >> to bet that this has to do with routing, possibly amongst other things. >> On peer 'B' (FBSD box), what internal IP range are you trying to access >> the A network from...the same ones (ie. are you trying to bridge the >> networks)? >> > The -peer A- doesn't need to access any -peer B- networks. > >> Do you have access to the Cisco gear? > No. > >> If so, on FreeBSD, post the output of: >> >> % netstat -rn > > Notes: > tun0 is my ppp pseudo-device > tun5 is my openvpn tunel (192.168.5.0/24) > > # netstat -rn > Routing tables [ big snip ] IIRC, you don't need a gre tunnel through IPSec, as you are simply routing between two dissimilar networks. Don't quote me on this though, as I said earlier, it has been a very long time. On the FreeBSD box, assuming that you *only* want to access the three specific IPs you stated, do this: % route add 192.168.10.24/32 200.x.x.x % route add 192.168.201.196/32 200.x.x.x % route add 10.115.90.236/32 200.x.x.x On the Cisco side: % ip route 192.168.5.0 255.255.255.0 187.x.x.x.x If that works, on the FBSD side of things, add the following to /etc/rc.conf to make them persistent across reboots: static_routes="host1 host2 host3" route_host1="192.168.10.24/32 200.x.x.x" route_host2="192.168.201.196/32 200.x.x.x" route_host3="10.115.90.236/32 200.x.x.x" Steve ___ 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: Ports PHP 4.4.9 - GD Extension
On Thu, Jul 08, 2010 at 10:41:55AM -0400, Grant Peel wrote: > Hi all, > > I am attempting to insall the GD PHP extension on FreeBSD 8 and am getting > this at build time. (I need to have a php4 and mysql 4 server for > compatability reasons). > > It appears that the PNG version the port is trying to build has a security > issue. How can I work arround this (I really need the GD extension). > > Any help would be appreciated. > > ds9# pwd > /usr/ports/lang/php4-extensions > > ===> png-1.4.1_1 is forbidden: vulnerable to remote buffer overflow. png is currently at version 1.4.3 in ports. Try updating your ports tree and give it another go. Dan -- Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ pgpDHcEbj0W2p.pgp Description: PGP signature
Re: livefs hard links
In the last episode (Jul 08), Warren Block said: > On Thu, 8 Jul 2010, Anonymous wrote: > > Warren Block writes: > >> The FreeBSD livefs ISO filesystem hides hard links, so they can't be > >> accurately copied. > > > > Use `tar cf - | tar xf -' to copy them. > > That was my first thought, too. Well, second thought, after 'rsync -aH'. > > But the mounted ISO filesystem doesn't show hard links as hard links: > > # ls -li /mnt/rescue > 416796 -r-xr-xr-x 414 root wheel 4367520 Jun 9 14:49 [ > 399564 -r-xr-xr-x 414 root wheel 4367520 Jun 9 14:49 atacontrol > 399690 -r-xr-xr-x 414 root wheel 4367520 Jun 9 14:49 atmconfig > 399816 -r-xr-xr-x 414 root wheel 4367520 Jun 9 14:49 badsect > ... It looks like they're halfway hard links :) The link count is 414 for all those files so you know they are hardlinks, but because the inode number is different, there's no way to match up which links correspond to the same file. Each of those files might be unique, just hardlinked to the same names in 413 other identical subdirectories. Unlikely, but possible :) That's probably why tar and rsync can't recreate the links on the destination. I don't think the ISO filesytem format even has the concept of inode numbers, but according to http://lists.freebsd.org/pipermail/freebsd-fs/2006-October/002338.html , mkisofs from the cdrtools port should create hardlinked files with the same starting LBA number, and assuming FreeBSD's cd9660 driver uses that value for its inode number, everything should work. Either the ISOs aren't built with mkisofs, or the driver doesn't use the LBA number for the inode number. -- 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"
Ports PHP 4.4.9 - GD Extension
Hi all, I am attempting to insall the GD PHP extension on FreeBSD 8 and am getting this at build time. (I need to have a php4 and mysql 4 server for compatability reasons). It appears that the PNG version the port is trying to build has a security issue. How can I work arround this (I really need the GD extension). Any help would be appreciated. ds9# pwd /usr/ports/lang/php4-extensions ds9# make ===> Vulnerability check disabled, database not found ===> License check disabled, port has not defined LICENSE ===> Found saved configuration for php4-extensions-1.0 ===> Extracting for php4-extensions-1.0 ===> Patching for php4-extensions-1.0 ===> php4-extensions-1.0 depends on file: /usr/local/include/php/main/php.h - found ===> php4-extensions-1.0 depends on file: /usr/local/lib/php/20020429/gd.so - not found ===>Verifying install for /usr/local/lib/php/20020429/gd.so in /usr/ports/graphics/php4-gd ===> Vulnerability check disabled, database not found ===> License check disabled, port has not defined LICENSE ===> Found saved configuration for php4-gd-4.4.9_4 ===> Extracting for php4-gd-4.4.9_4 => MD5 Checksum OK for php-4.4.9.tar.bz2. => SHA256 Checksum OK for php-4.4.9.tar.bz2. ===> Patching for php4-gd-4.4.9_4 ===> Applying FreeBSD patches for php4-gd-4.4.9_4 ===> php4-gd-4.4.9_4 depends on file: /usr/local/bin/phpize - found ===> php4-gd-4.4.9_4 depends on file: /usr/local/libdata/pkgconfig/xpm.pc - found ===> php4-gd-4.4.9_4 depends on file: /usr/local/bin/autoconf-2.62 - found ===> php4-gd-4.4.9_4 depends on shared library: freetype.9 - found ===> php4-gd-4.4.9_4 depends on shared library: png.6 - not found ===>Verifying install for png.6 in /usr/ports/graphics/png ===> png-1.4.1_1 is forbidden: vulnerable to remote buffer overflow. *** Error code 1 Stop in /usr/ports/graphics/png. *** Error code 1 Stop in /usr/ports/graphics/php4-gd. *** Error code 1 Stop in /usr/ports/graphics/php4-gd. *** Error code 1 Stop in /usr/ports/lang/php4-extensions. *** Error code 1 Stop in /usr/ports/lang/php4-extensions. ds9# -Grant ___ 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: livefs hard links
Warren Block writes: > On Thu, 8 Jul 2010, Anonymous wrote: > >> Warren Block writes: >> >>> The FreeBSD livefs ISO filesystem hides hard links, so they can't be >>> accurately copied. >> >> Use `tar cf - | tar xf -' to copy them. > > That was my first thought, too. Well, second thought, after 'rsync > -aH'. > > But the mounted ISO filesystem doesn't show hard links as hard links: > > # ls -li /mnt/rescue > 416796 -r-xr-xr-x 414 root wheel 4367520 Jun 9 14:49 [ > 399564 -r-xr-xr-x 414 root wheel 4367520 Jun 9 14:49 atacontrol > 399690 -r-xr-xr-x 414 root wheel 4367520 Jun 9 14:49 atmconfig > 399816 -r-xr-xr-x 414 root wheel 4367520 Jun 9 14:49 badsect > ... 414 is the number of hardlinks. You can as well try to use iso9660 reader in libarchive, e.g. $ bsdtar xvf /dev/cd0 --include rescue/\* $ bsdtar xvf /path/to/blah.iso --include rescue/\* > > And rsync or tar never see a hard link to copy. ___ 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: VPN IPsec Help
> It has been a long time since I've done IPSec on FBSD, but I'm willing > to bet that this has to do with routing, possibly amongst other things. > On peer 'B' (FBSD box), what internal IP range are you trying to access > the A network from...the same ones (ie. are you trying to bridge the > networks)? > The -peer A- doesn't need to access any -peer B- networks. > Do you have access to the Cisco gear? No. > If so, on FreeBSD, post the output of: > > % netstat -rn Notes: tun0 is my ppp pseudo-device tun5 is my openvpn tunel (192.168.5.0/24) # netstat -rn Routing tables Internet: DestinationGatewayFlagsRefs Use Netif Expire default201.zzz.zzz.zzzUGS 0 16087385 tun0 127.0.0.1 127.0.0.1 UH 0 357142lo0 187.yyy.yyy.yyy127.0.0.1 UH 0 120lo0 192.168.1.0ff:ff:ff:ff:ff:ff UHLWb 11vr1 => 192.168.1.0/24 link#3 UC 00vr1 192.168.1.100:19:5b:71:9b:ed UHLW1 237725lo0 192.168.1.800:21:97:7e:0c:2a UHLW127981vr1975 192.168.1.900:27:0e:10:8d:52 UHLW133571vr1956 192.168.1.11 00:16:3e:2a:38:2b UHLW1 255820vr1 1192 192.168.1.21 00:19:d1:7c:a2:90 UHLW124792vr1 1165 192.168.1.22 00:1c:c0:ac:8e:16 UHLW1 2306vr1 1179 192.168.1.28 00:1a:92:e2:ab:fa UHLW122897vr1269 192.168.1.30 00:11:d8:91:36:ff UHLW136286vr1543 192.168.1.31 00:e0:4c:51:b7:e0 UHLW1 4784vr1 1167 192.168.1.40 00:1c:c0:54:c1:de UHLW1 136462vr1 1159 192.168.1.43 00:16:76:17:68:9c UHLW18vr1838 192.168.1.44 00:1a:92:d7:4c:ce UHLW1 1746vr1715 192.168.1.48 00:1c:c0:a6:10:66 UHLW126086vr1681 192.168.1.53 00:16:76:86:cd:ba UHLW110230vr1 1167 192.168.1.56 00:1c:c0:98:cd:9c UHLW114848vr1911 192.168.1.62 00:16:76:45:04:03 UHLW142472vr1966 192.168.1.69 00:16:3e:46:6b:3a UHLW1 14vr1964 192.168.1.71 00:1c:c0:48:4c:7f UHLW1 105652vr1 1134 192.168.1.72 00:1c:c0:4e:da:d0 UHLW177087vr1287 192.168.1.76 00:1e:8c:95:ae:98 UHLW1 8366vr1940 192.168.1.77 00:1c:c0:7b:0d:74 UHLW137699vr1281 192.168.1.78 00:1a:92:d7:48:2c UHLW145100vr1567 192.168.1.79 00:1a:92:8a:b2:b2 UHLW1 4275vr1766 192.168.1.84 00:24:1d:f1:89:1f UHLW121246vr1960 192.168.1.87 00:19:d1:ff:0e:6e UHLW1 474vr1 1149 192.168.1.93 00:1c:c0:48:4c:58 UHLW137041vr1 1191 192.168.1.94 00:21:27:d1:ac:f3 UHLW1 25vr1879 192.168.1.95 00:1c:c0:54:c2:e6 UHLW120753vr1969 192.168.1.100 00:1a:92:cb:c9:26 UHLW1 256433vr1 1192 192.168.1.103 00:13:02:02:69:00 UHLW152018vr1 1199 192.168.1.108 00:1c:c0:7b:0d:c4 UHLW1 708959vr1973 192.168.1.112 00:1e:65:68:0c:32 UHLW1 2133vr1 1186 192.168.1.115 00:1c:c0:9e:23:74 UHLW1 583vr1367 192.168.1.120 00:18:8b:e1:96:c7 UHLW1 310668vr1 68 192.168.1.122 00:27:0e:15:9b:bc UHLW171300vr1 1169 192.168.1.123 6c:f0:49:f7:fa:87 UHLW1 5818vr1 1113 192.168.1.124 00:1c:c0:7b:0d:85 UHLW1 2473vr1633 192.168.1.126 00:1c:c0:a6:10:5a UHLW110526vr1954 192.168.1.131 00:1f:d0:fd:dd:66 UHLW1 184009vr1943 192.168.1.141 00:1b:fc:2b:99:fe UHLW1 435409vr1485 192.168.1.144 00:27:0e:10:5a:21 UHLW1 866092vr1957 192.168.1.146 00:1c:c0:9e:23:93 UHLW1 764742vr1 1168 192.168.1.149 00:16:3e:73:6b:e3 UHLW126347vr1 1139 192.168.1.150 00:1c:c0:48:4c:44 UHLW145845vr1966 192.168.1.158 00:01:6c:ff:88:c4 UHLW110017vr1 1033 192.168.1.168 00:19:d1:a1:da:8d UHLW122734vr1 1120 192.168.1.170 00:1c:c0:5b:36:4d UHLW1 475881vr1 1186 192.168.1.172 00:24:1d:fb:35:ed UHLW1 431062vr1 1182 192.168.1.173 00:1c:c0:54:bb:a8 UHLW16vr1 1058 192.168.1.174 6c:f0:49:f8:b6:bf UHLW1 297497vr1 1181 192.168.1.175 6c:f0:49:f7:f9:97 UHLW1 1809vr1 1132 192.168.1.177 00:1c:c0:71:8c:c1 UHLW122740vr1 1050 192.168.1.178 00:1e:8c:95:ad:cd UHLW1 136704vr1288 192.168.1.
Re: please recommend wireless card for amd64 laptop (mini pci (pci-e) or pcmcia)
On Thu, 8 Jul 2010, Anton Shterenlikht wrote: On Thu, Jul 08, 2010 at 02:58:52PM +0200, herbs wrote: The best way to be sure about the compatibility is to take your laptop to the computer store and plug in the card of your choice. Some combinations just make trouble, thats why I recommend it. well.. that's why I'm asking. My laptop is HP Compaq 6715s. For example, I can see lots of iwn(4) pci-e cards on sale, but all I've seen say in big letters "not for HP ... laptops". HP and IBM have BIOS checks that limit which cards can be used. So I was hoping to hear from somebody who is using wireless on an amd64 laptop, perhaps even on 6715s, which, it seems, is quite popular, of a model that is proven to work ok, either pci-e or pcmcia. AFAIK, bwn(4)/bwi(4) should work on amd64. ___ 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: VPN IPsec Help
On 2010.07.07 18:28, Matheus Weber da Conceição wrote: > Hello guys; > > I'm using a FreeBSD 7.0 in my firewall/gateway, and I have to connect > via VPN to a Cisco box. > > The scene here is: > > * Peer A (Cisco): 200.xxx.xxx.xxx >IPs that Peer B need to access: > - 192.168.10.24 > - 192.168.201.196 > - 10.115.90.236 > > * Peer B (FreeBSD 7.0): 187.yyy.yyy.yyy (me) > > > How can I configure this scene without using gif0 interface? It has been a long time since I've done IPSec on FBSD, but I'm willing to bet that this has to do with routing, possibly amongst other things. On peer 'B' (FBSD box), what internal IP range are you trying to access the A network from...the same ones (ie. are you trying to bridge the networks)? Do you have access to the Cisco gear? If so, on FreeBSD, post the output of: % netstat -rn ...and the output to the following on the Cisco: % sh ip route stat Steve ___ 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: livefs hard links
On Thu, 8 Jul 2010, Anonymous wrote: Warren Block writes: The FreeBSD livefs ISO filesystem hides hard links, so they can't be accurately copied. Use `tar cf - | tar xf -' to copy them. That was my first thought, too. Well, second thought, after 'rsync -aH'. But the mounted ISO filesystem doesn't show hard links as hard links: # ls -li /mnt/rescue 416796 -r-xr-xr-x 414 root wheel 4367520 Jun 9 14:49 [ 399564 -r-xr-xr-x 414 root wheel 4367520 Jun 9 14:49 atacontrol 399690 -r-xr-xr-x 414 root wheel 4367520 Jun 9 14:49 atmconfig 399816 -r-xr-xr-x 414 root wheel 4367520 Jun 9 14:49 badsect ... And rsync or tar never see a hard link to copy. ___ 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: please recommend wireless card for amd64 laptop (mini pci (pci-e) or pcmcia)
On Thu, Jul 08, 2010 at 02:58:52PM +0200, herbs wrote: > > The best way to be sure about the compatibility is to take your laptop > to the computer store and plug in the card of your choice. Some > combinations just make trouble, thats why I recommend it. well.. that's why I'm asking. My laptop is HP Compaq 6715s. For example, I can see lots of iwn(4) pci-e cards on sale, but all I've seen say in big letters "not for HP ... laptops". So I was hoping to hear from somebody who is using wireless on an amd64 laptop, perhaps even on 6715s, which, it seems, is quite popular, of a model that is proven to work ok, either pci-e or pcmcia. many thanks anton > > #dmesg > - will show you what device the card is (i.e. ath0 for the Atheros > chipset) > > #ifconfig ath0 list scan > - should list a couple of access points > > If that works and if your laptop shows no errors while it boots you will > be fine with the certain card. > > Cheers > herbs > > On Thu, Jul 08, 2010 at 10:18:14AM +0100, Anton Shterenlikht wrote: > > I'd like to set up wireless on amd64 laptop. > > Can somebody recommend a mini pci (pci-e) or > > pcimcia device, that is proven to work? > > > > many thanks > > anton > > > > > > -- > > Anton Shterenlikht > > Room 2.6, Queen's Building > > Mech Eng Dept > > Bristol University > > University Walk, Bristol BS8 1TR, UK > > Tel: +44 (0)117 331 5944 > > Fax: +44 (0)117 929 4423 > > ___ > > 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" > > > > -- > *** Herbert Langhans, Warschau > *** Sprachtraining Langhans > *** http://www.langhans.com.pl > *** herbert at langhans.com.pl > *** NIP 526-229-61-51 > *** Regon 014911759 > *** Tel. 603 341 441 -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423 ___ 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: please recommend wireless card for amd64 laptop (mini pci (pci-e) or pcmcia)
On Thu, Jul 8, 2010 at 9:18 AM, Anton Shterenlikht wrote: > I'd like to set up wireless on amd64 laptop. > Can somebody recommend a mini pci (pci-e) or > pcimcia device, that is proven to work? Look into ath(4) manual page. Just dont buy newest stuff from atheros because there is no 100% support for it. > > many thanks > anton > > > -- > Anton Shterenlikht > Room 2.6, Queen's Building > Mech Eng Dept > Bristol University > University Walk, Bristol BS8 1TR, UK > Tel: +44 (0)117 331 5944 > Fax: +44 (0)117 929 4423 > ___ > 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: [6.3] Get e-mail when CTRL-ALT-DEL is used?
On Thu, 08 Jul 2010 12:12:27 +0200 Gilles wrote: > Hello > > This is on a remote 6.3 host: I'd like to get an e-mail if a user hits > the CTRL-ALT-DEL to reboot the server. > > Googling told me that the use of the three-key combo can be > enabled/disabled when compiling a new kernel, but not how to manage > this feature when it's enabled in a running kernel. > If you put hw.syscons.kbd_reboot=0 in /etc/sysctl.conf, reboot by CTRL-ALT-DEL is disabled. ___ 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"
sort: write error with portsnap
Hello, Am I the only one to have sort: write errors since a few days with portsnap ? : jci...@bebif ports % sudo portsnap fetch update Looking up portsnap.FreeBSD.org mirrors... 5 mirrors found. Fetching snapshot tag from portsnap2.FreeBSD.org... done. Fetching snapshot metadata... done. Updating from Thu Jul 8 08:48:04 CEST 2010 to Thu Jul 8 10:08:38 CEST 2010. Fetching 1 metadata patches. done. Applying metadata patches... done. Fetching 0 metadata files... done. Fetching 1 patches. done. Applying patches... done. Fetching 0 new ports or files... done. sort: write failed: standard output: Broken pipe sort: write error Removing old files and directories... done. Extracting new files: (...) Building new INDEX files... done. Julien -- 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: [6.3] Get e-mail when CTRL-ALT-DEL is used?
On Thu, Jul 08, 2010 at 12:12:27PM +0200, Gilles wrote: > This is on a remote 6.3 host: I'd like to get an e-mail if a user hits > the CTRL-ALT-DEL to reboot the server. > > Googling told me that the use of the three-key combo can be > enabled/disabled when compiling a new kernel, but not how to manage > this feature when it's enabled in a running kernel. > > Is there a configuration file somewhere that would let me add e-mail > support for this action? Assuming you want to know whether the server was rebooted (as opposed to whether a user invoked a given key combination), adding something along the lines of the following to root's crontab(5) should suffice: @reboot echo "`hostname` rebooted" \ | mail -s "`hostname` rebooted" gil...@example.org -- George ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: [6.3] Get e-mail when CTRL-ALT-DEL is used?
On 07/08/2010 14:12, Gilles wrote: Hello This is on a remote 6.3 host: I'd like to get an e-mail if a user hits the CTRL-ALT-DEL to reboot the server. Googling told me that the use of the three-key combo can be enabled/disabled when compiling a new kernel, but not how to manage this feature when it's enabled in a running kernel. Is there a configuration file somewhere that would let me add e-mail support for this action? 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" Maybe you can use the /etc/rc.shutdown script, there's a line at the end of it: ... # Insert other shutdown procedures here ... Best wishes, Dmitry. ___ 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"
[6.3] Get e-mail when CTRL-ALT-DEL is used?
Hello This is on a remote 6.3 host: I'd like to get an e-mail if a user hits the CTRL-ALT-DEL to reboot the server. Googling told me that the use of the three-key combo can be enabled/disabled when compiling a new kernel, but not how to manage this feature when it's enabled in a running kernel. Is there a configuration file somewhere that would let me add e-mail support for this action? 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 clustering ?
Ok, thank you for the info ! On 07/08/2010 11:54 AM, Ruben de Groot wrote: On Thu, Jul 08, 2010 at 10:21:53AM +0200, Frank Bonnet typed: Hello Could anybody recommend a rock solid software to build an OpenLDAP cluster with FreeBSD 8.0 ? Master-master replication is well documented on the openldap website. For failover, you can use carp(4) or an external loadbalancer. Ruben ___ 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: Openldap clustering ?
On Thu, Jul 08, 2010 at 10:21:53AM +0200, Frank Bonnet typed: > Hello > > Could anybody recommend a rock solid software to build > an OpenLDAP cluster with FreeBSD 8.0 ? Master-master replication is well documented on the openldap website. For failover, you can use carp(4) or an external loadbalancer. Ruben ___ 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: Global backup solution for FBSD & Ubuntu
On 8 July 2010 05:10, Francisco Reyes wrote: > bsd writes: > > I am trying to build a global backup solution for couple of strategic >> servers (7) based on two operating systems : >> > > Depending on how much data you are trying to backup and whether an internet > backup solution would work, you may want to take a look at tarsnap: > http://www.tarsnap.com/ > > Works on both FreeBSD and Linux. It has deduplication capabilities within a > server. You can do several backups as "full" and the service will only store > what has changed. > > ___ > 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" > In my experience dedup requires a fairly large amount of juice so if your backups are large I hope you machines are big 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"
jls jail command
what is jls command syntax to list all jails a path location? jls -n shows path=/usr/jails/ thats my primary jail system. I have secondary jail system at /usr/jails.sys2/ I tried jls -j /usr/jails.sys2/ and jls -j /usr/jails.sys2/jailname and got core dump. ___ 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"
please recommend wireless card for amd64 laptop (mini pci (pci-e) or pcmcia)
I'd like to set up wireless on amd64 laptop. Can somebody recommend a mini pci (pci-e) or pcimcia device, that is proven to work? many thanks anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423 ___ 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"
Openldap clustering ?
Hello Could anybody recommend a rock solid software to build an OpenLDAP cluster with FreeBSD 8.0 ? Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
freebsd-questions@freebsd.org
Anonymous wrote: > Dmitry Lunts writes: > > > Hello,All! > > There is debugfs program dealing with ext2/ext3/ext4 filesystems. > > Is there some tool in FreeBSD with functionality analogous to debugfs > > which can operate on UFS2? > > Not sure but fsdb(8) may help. Before the development of fsck, its job was split between two utilities -- icheck and dcheck -- which in addition to their principal use for fixing corrupted filesystems also provided the ability to do exactly this sort of thing. I have no idea how much the filesystem data structures may have changed since, but if you can track down their sources and get them to compile they might still be useful. ___ 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"