Re: switching timezone within crontab?
On 3/4/06, Noel Jones [EMAIL PROTECTED] wrote: Pretty sure the above will only set the timezone for your job, and not alter the schedule time. But I don't know a solution to your problem. How about running cron with the TZ environment set? Ie. setting TZ=UTC in /etc/rc.d/cron I haven't tried this myself. Well, if I only ever wanted to schedule cron jobs in a single time zone, that might work. For my current case, its trying to transfer files over in a timely manner. I figured my local time zone hits last night's UTC midnight at 4pm or 5pm, depending on DST (this would be trivial if my UTC offset was static . . . DST is the most stupid kludge ever perpetrated . . .) . . . so, I just schedule the cron at 6pm, which is always at least an hour after midnight. (, delicious paradox. :) Thanks, -danny -- http://dannyman.toldme.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
switching timezone within crontab?
Hey, So, we have systems running in Eastern and Pacific time zones as their local time, not to mention DST. So, we like to schedule a few things with UTC to save our sanity. If a system is not running UTC as its locale, but I want to schedule a UTC cron job in crontab, is it sufficient to put a little: TZ=UTC Right before the job? I will of course discover this by trial-and-error, but it is nicer to hear from someone who has wrestled with this before. :) http://widell.fulhack.nu/bd/dst/ is fun, but dated. Thanks, -danny -- http://dannyman.toldme.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Time Zone
On Tue, Jan 17, 2006 at 01:32:01AM -0400, Carlos A. Carnero Delgado wrote: On 1/16/06, Ian Lord [EMAIL PROTECTED] wrote: What is the prefered time zone for a web server Is it better to keep it GMT or local timezone ? Both ;) Set the machine's clock to GMT (actually, UTC.) Then set the correct timezone for your location. Actually, the SYSTEM CLOCK is UTC, right? Unless you're supporting a Weeendows dual-boot environment. Timezone is then a locale setting. I like to leave the timezone alone, and let uers or applications set the time zone to whatever they please. What time zone should you use? Whatever time zone you like. If you set the zone to EST5EDT then then the system locale will adapt DST for you automatically. -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
ssh -X yields Error: Can't open display:
Hello, I'm trying to run xfig, but the version on this Fedora laptop is jacked. So, I installed xfig on one of the FreeBSD servers, to forward over SSH, with ssh -X, right? I can ssh -X and run X apps on other Linux hosts. But here I have a problem: 10:10 [EMAIL PROTECTED] ~$ ssh -X -i ~/.ssh/mito.key castor Last login: Wed Dec 21 09:57:51 2005 from cobra Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.3-RELEASE (GENERIC) #0: Fri Nov 5 04:19:18 UTC 2004 0-10:11 [EMAIL PROTECTED] ~ xfig Error: Can't open display: Huh! I've dug through my .tcshrc, my .login ... nothing is clobbering any DISPLAY variables. SSH_CLIENT=192.168.1.128 34586 22 SSH_CONNECTION=192.168.1.128 34586 192.168.1.28 22 SSH_TTY=/dev/ttyp2 Let's see ... I went through sshd_config, but it appears that by default: #X11Forwarding yes #X11DisplayOffset 10 #X11UseLocalhost yes I ... have no idea ... anyone run into this before? I'll try uncommenting the defauilt options, just in case sshd got configured funny, but ... dunno ... Thanks, -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ssh -X yields Error: Can't open display:
Ahhh ... 10:22 [EMAIL PROTECTED] ~$ ssh -v -X -i ~/.ssh/mito.key castor [...] debug1: Requesting X11 forwarding with authentication spoofing. debug1: Remote: No xauth program; cannot forward with spoofing. :) 0-10:25 [EMAIL PROTECTED] /usr/ports# find /usr/ports -name pkg-plist | xargs grep -l xauth /usr/ports/lang/sml-nj/pkg-plist /usr/ports/news/nntpcache/pkg-plist /usr/ports/shells/zsh/pkg-plist /usr/ports/shells/zsh-devel/pkg-plist /usr/ports/x11/XFree86/pkg-plist /usr/ports/x11/XFree86-4-clients/pkg-plist /usr/ports/x11/xorg-clients/pkg-plist 1-10:25 [EMAIL PROTECTED] /usr/ports# portinstall x11/xorg-clients [ ... portinstall crashes, burns ... ] 1-10:29 [EMAIL PROTECTED] /usr/ports# pkg_add -r xorg-clients Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-5.3-release/Latest/xorg-clients.tbz: File unavailable (e.g., file not found, no access) pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-5.3-release/Latest/xorg-clients.tbz' by URL 1-10:30 [EMAIL PROTECTED] /usr/ports# cd x11/xorg-clients 0-10:30 [EMAIL PROTECTED] /usr/ports/x11/xorg-clients# make clean install [ ... ] do_traps.c:113: error: syntax error before '*' token do_traps.c:113: warning: type defaults to `int' in declaration of `traps' do_traps.c:113: error: ISO C forbids data definition with no type or storage class do_traps.c: In function `InitFixedTraps': do_traps.c:129: error: `XTrap' undeclared (first use in this function) do_traps.c:129: error: (Each undeclared identifier is reported only once do_traps.c:129: error: for each function it appears in.) do_traps.c:129: error: `curTrap' undeclared (first use in this function) do_traps.c:130: warning: ISO C90 forbids mixed declarations and code do_traps.c:144: error: syntax error before ')' token do_traps.c:207: warning: value computed is not used do_traps.c: In function `DoFixedTraps': do_traps.c:248: warning: implicit declaration of function `XRenderAddTraps' *** Error code 1 Stop in /usr/ports/x11/xorg-clients/work/xc/programs/x11perf. Well, I suppose I'll puzzle this one out too. :) Thanks, -danny ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ssh -X yields Error: Can't open display:
On Wed, Dec 21, 2005 at 10:32:39AM -0800, Danny Howard wrote: 1-10:29 [EMAIL PROTECTED] /usr/ports# pkg_add -r xorg-clients Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-5.3-release/Latest/xorg-clients.tbz: File unavailable (e.g., file not found, no access) pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-5.3-release/Latest/xorg-clients.tbz' by URL So ... the way you get around that, is, you look in ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/`uname -r`/packages/All/ for the package name, then: pkg_add -r ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/5.3-RELEASE/packages/All/xorg-clients-6.7.0_4.tbz And now I can run xfig. :) -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Status of 6.0 for production systems
On Thu, Nov 10, 2005 at 03:14:25AM -0500, Kris Kennaway wrote: As I understand it, 6.0 is primarily concentrating on improving some of the major stuff introduced in 5.x, and shouldn't take nearly as long to become a stable platform. Even so, conventional wisdom generally warns against using any X.0 release for critical applications, but that depends on your definition of critical and your level of tolerance for excitement. You really shouldn't think of 6.0 as like a usual .0 release, so handle with care, but more like 5.4 plus extra optimization and stability fixes. We spent nearly 6 months during the release cycle on stress-testing and fixing stability bugs, and that hard work resulted in a lot of fixes to long-standing bugs that have existed since FreeBSD 5.x. In addition to the improved stability, performance is much better than 5.4 in several areas. Naturally there may be some regressions, but in the average case 6.0 seems to be an outstanding release of FreeBSD no matter what version number you give it. So ... I am genuinely curious ... if 6.0 is basically 5.4 plus improvements, why isn't it called 5.5? -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Status of 6.0 for production systems
On Thu, Nov 10, 2005 at 10:10:28AM -0800, Colin Percival wrote: Danny Howard wrote: So ... I am genuinely curious ... if 6.0 is basically 5.4 plus improvements, why isn't it called 5.5? FreeBSD numbers releases based on compatibility, not based on features. You can take programs compiled for FreeBSD 5.3 (the first release from the 5-stable branch) and run them on FreeBSD 5.4 and know that they will all work; but if you want to run them on FreeBSD 6.0, you might need to recompile them. So, the 6.0 denotes some note-worthy realignment of the symbol table or such. Thank you for an excellent answer, Colin. Some of us were secretly worried that FreeBSD was catching a case of the Sun Marketing. :) Cheers, -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: how do I tell FreeBSD to sync, for real ?
On Tue, Nov 08, 2005 at 04:34:04PM -0500, user wrote: Sometimes you delete a large batch of files, or you do some other serious FS operations and the output of `df` does not tell you immediately of the new disk space, etc. If you run something like: sync Or even: sync ; sync user, can you describe a reproducible phenomenon? Did you delete something from /var/log and you're waiting for df to reflect that? This is a common one ... if a process has a filehandle open, and you delete the file, the blocks on disk are not freed until the process closes that filehandle. If this is what's thwarting you, check out lsof. :) Cheers, -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Carp and Apache
Dave, Yes. The trick with CARP is that it is an IP-level heartbeat, so if you are running Apache, you want to carp up after you start apache, and carp down before you stop Apache. From some test boxes, web0: ifconfig_fxp1=inet 192.168.1.210 netmask 255.255.255.0 defaultrouter=192.168.1.1 cloned_interfaces=carp0 carp1 Then, web0 application config file: export CARP_PASS=mekmitasdigoat # MASTER export CARP_carp0_IP=192.168.1.206 export CARP_carp0_VHID=1 # SLAVE export CARP_carp1_IP=192.168.1.207 export CARP_carp1_VHID=2 export CARP_carp1_SKEW=100 Next, the Application control script: # CARP carp_ifs=`ifconfig -l | tr ' ' '\n' | grep carp` # Set up CARP for carp_if in $carp_ifs; do eval carp_ip=\$CARP_${carp_if}_IP eval carp_vhid=\$CARP_${carp_if}_VHID eval carp_skew=\$CARP_${carp_if}_SKEW if [ -n $carp_vhid ]; then carp_vhid=vhid $carp_vhid fi if [ -n $carp_skew ]; then carp_skew=advskew $carp_skew fi if [ -n ${carp_ip} -a -n ${carp_vhid} ]; then ifconfig $carp_if pass $CARP_PASS $carp_vhid $carp_skew $carp_ip ifconfig $carp_if down else echo WARNING: $carp_if but missing CARP_${carp_if}_IP or CARP_${carp_if}_VHID! fi done [... later ...] if [ $status -eq 0 ]; then echo Apache successfully ${cmd}ed echo Ready to CARP UP! if [ -n ${carp_ifs} ]; then for carp_if in $carp_ifs; do eval carp_ip=\$CARP_${carp_if}_IP eval carp_vhid=\$CARP_${carp_if}_VHID if [ -n ${carp_ip} -a -n ${carp_vhid} ]; then ifconfig $carp_if up fi done sysctl net.inet.carp.preempt=1 fi else echo Apache failed to $cmd exit 2 fi Okay, so that's really quite a mess, but basically: * Set cloned_interfaces in rc.conf to create carpn at boot. * One IP alias and VHID per CARP IP. * Set up the backup server with higher advskew. * For availability, teach you apachectl script to ifconfig the carp interfaces, ifconfig down, start apache, ifconfig up, and ifconfig down before stopping / restarting apache. Cheers, -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: gmirror clearing configuration
On Fri, Nov 04, 2005 at 06:30:45PM -0500, Dave wrote: Hello, I'm trying to set up raid1 on fbsd 5.4-RELEASE no patches yet installed just a vanilla release box. I've messed up somewhere, the primary drive is smaller than the secondary drive and i'm using Ralf's second procedure. My problem is i can't clear the metadata from either the first or second drive so i can start again, i load gmirror then issue a gmirror clear and it says it can't clear the metadata. Any help appreciated. Dave, I have not run in to your problem, but someone did post a comment to my gmirror blog entry at http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/#comment-9276 ... here is the text: ok gmirror can do the work here is how, if you have tried and failed using various methods of gmirror, you will likely have data tagged at the end sectors of ad4 and ad6 or whatever the first the disks are in your array. before trying dannys method above, you need to clear these sectors. To do this succesfully you must be logged in as root, you cant clear the sectors on a live system so you must install a minimal instance of freebsd [if you havent already] on as least two disks on your server, then use the following command ### while booted from ad4 ### while logged in as root gmirror clear ad6 ### while booted from ad6 ### while logged in as root gmirror clear ad4 ### then you will be able to proceed with each and every step in Dannys crib, to be safe do a clean install on ad4, [this is in the crib] ### urfx HTH, -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: bizar problem with a Dell latitude D600's onboard nic
Uhm. Ditto here never having trouble with D600. Just for sanity's sake, have you: - Tried a different ethernet cable? - Tried a different switched port, or whatever you are plugging in to? I'd say the easiest solution is to sweet-talk your friend into swapping hardware. You might also try the wireless, which works great once you set up NDIS. Also, please please please get off 5.2.1 ... cvsup, make world, etc, and get up to 5.4 or 5_RELENG or whatever STABLE is called these days. Cheers, -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ng_one2many v.s. AFT (NIC Fault Tolerance/Fail Over/Redundancy Revisited)
On Mon, Oct 17, 2005 at 08:52:24AM -0400, Jonathan Donaldson wrote: Essentially, a single layer 3 IP address needs to be visible in a switch fault tolerant or adapter fault tolerant configuration. A userland-level daemon could be scripted, and it has been done before: [...] jonathan Will CARP work between two interfaces on the same server? I always thought it was positioned for two separate devices. If it did work on the one server, the only down side I can really see is having to have 3 ip addresses for each 1 real address you want. Also, there might be some issues with getting this to work with Jails / jonathan I have played a bit with CARP for web server pooling, and I have some test equipment on hand this week. I want to pace my new ethernet switches and hardware, so I think I can set up a test. I think this will not work, because you don't tell CARP which device to ride ... I think it just looks for the parent device configured for the same network, and takes the first found. Though, maybe this is not a difficult or unreasonable feature to add to CARP: a parent device flag. So: ifconfig carp0 create ifconfig carp0 vhid 1 pass mekmitasdigoat 192.168.1.1/24 iface fxp0 ifconfig carp1 create ifconfig carp0 vhid 1 advskew 100 pass mekmitasdigoat 192.168.1.1/24 iface fxp1 SHIFTING GEARS While it is nice to have a clean OS feature to handle this, if it doesn't exist just now, and you want to get something out the door, then configuring an IP heartbeat might be the way to go ... ping ... ping .. ping ... the next hop? If ping goes away, run an iflip script that moves your IPs from one interface to another. Opens up the possibility of flapping and thrashing ... (For my purposes, I will likely be implementing manual failover procedure since a switch failure will be disruptive anyway. :) Cheers, -danny ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Loki Linux Games on FreeBSD
On Tue, Oct 11, 2005 at 07:54:35AM -0700, Norbert Papke wrote: On October 10, 2005 09:33 am, Sean wrote: Of the several I have the ones in particular I would be most interested in getting to work are Sim City 3000, Railroad Tycoon II, and Civ: Call To Power. Have a look at /usr/ports/games/HeroesOfMightAndMagic for an example. Additionally, my experience with CivCTP was to ignore the CD's install script and instead copy the files manually. After installation, flag the executable as coming from a Linux system using % brandelf -t Linux civctp Of course, this assumes that Linux emulation is enabled and that you have all the dependencies installed. Note that I had some issues running this game as an unpriviledged user but haven't bothered to figure out why. As memory serves, this is pretty much what I had to do to get RT2 running as well. You might also try out simutrans, which is a freeware thing: http://forum.simutrans.com/ -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: GRE tunnels anyone?
On Tue, Oct 11, 2005 at 01:06:58PM -0500, Joshua Weaver wrote: The company I work for uses a lot of multicast tunnels, usually with a QOS/GRE implementation with quite pricy hardware. I googled around a bit, it looks like basic vpn is supported for FreeBSD. I guess my questions are 1.)Does FreeBSD play well with vpn-capable routers (like a 3Com 5012) 2.)Would getting acceptable latency tunneling multicast mean hardware that's just as expensive as a router costing thousands? Joshua, We run a tunnel using gif interfaces, managed by racoon. The performance is less than super, but I think that's a constraint of our network resources. My answer would be: Why not grab a spare box and try it out? If the day's diversion may lead you to saving thousands, then please spend a little more effort and write a brief article on a blog or a journal somewhere to help the next person who comes along asking your question. :) The handbook has a great chapter on how-to-setup-a-tunnel-from-scratch, though it sounds like you don't need a lot of hand-holding. I would LIKE to think that if we spent a bit of cash on proper VPN hardware, that tunnel maintenance would be easier and performance might be better. Well, that's an aside. Good Luck, -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD Support (Commerical)
On Thu, Oct 06, 2005 at 12:55:58PM -0400, Christian Kuhtz wrote: Yeah, but also the most irrelevant when it comes to supply chain folk. Supply-chain folk? Is that a euphemism for suits? My employer is audited by clients on a regular basis. If you have your internal documentation and processes together, it doesn't seem to bother any of the corporate-types we run up against in the health-care industry that we are running a freely-available, open-source OS. If you require commercial support I'd like to think there is a commercial entity that can lease such an option to you. The FreeBSD foundation hasn't gone down that road yet, unlike some other projects. Maybe someday, but if you need a commercial support option that is co-branded with your Operating System, you could do worse than Solaris, or Red Hat Enterprise. -danny On 10/6/05, Ansar Mohammed [EMAIL PROTECTED] wrote: I guess I am interested in finding out if there is support that is offered by the FreeBSD project, not from third party vendors. FreeBSD offers non-commercial support through mailing-lists and doc-project (FAQs and Handbooks) which is probably the most comprehensive, active and effective support there is. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Firefox won't stay as default browser ...
On Tue, Sep 27, 2005 at 01:04:09PM -0700, Garrett Cooper wrote: Kiffin Gish wrote: Every time I fire up firefox it claims it is not the default browser. If I click on yes to make it the default browser or go into Prferences | General and hit the Default Browser [Check Now]-button and/or I restart firefox, I still get the message that it is NOT the default browser. Nothing I do helps -- what got stuch?! What desktop environment/window manager are you using? I use fvwm2. It is seriously obnoxious. But I see another posted a thing to turn the checking bit off, so I'll do that. :) Silly Mozilla ... -danny ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Mutt weirdness
On Tue, Oct 04, 2005 at 06:15:14PM -0400, Bob Hall wrote: I did portupgrade -ar last night. When I tried to use mutt this morning, it was behaving weirdly. Mutt wasn't one of the upgrades. I'm pretty sure this command isn't recursive: 0-15:47 [EMAIL PROTECTED] /usr/ports/mail/mutt make run-depends-list /usr/ports/converters/libiconv /usr/ports/devel/gettext /usr/ports/misc/mime-support /usr/ports/security/openssl XFree86-Server-4.5.0_1needs updating (port has 4.5.0_3) docbook-xsl-1.68.1needs updating (port has 1.69.1) gd-2.0.33_1,1 needs updating (port has 2.0.33_2,1) gtk-2.6.8 needs updating (port has 2.6.10_1) libwmf-0.2.8.3needs updating (port has 0.2.8.4) libxml2-2.6.21needs updating (port has 2.6.22) netpbm-10.26.14 needs updating (port has 10.26.16) openssl-0.9.7gneeds updating (port has 0.9.8) p5-Compress-Zlib-1.37 needs updating (port has 1.39) p5-Digest-1.10needs updating (port has 1.12) p5-MIME-Tools-5.417,2 needs updating (port has 5.418,2) p5-Scalar-List-Utils-1.14,1needs updating (port has 1.17,1) p5-Test-Simple-0.60 needs updating (port has 0.61) p5-Time-HiRes-1.72,1 needs updating (port has 1.74,1) pure-ftpd-1.0.20_3needs updating (port has 1.0.20_4) t1lib-5.0.1,1 needs updating (port has 5.1.0,1) tiff-3.7.3needs updating (port has 3.7.4) tightvnc-1.2.9needs updating (port has 1.2.9_1) unzip-5.52_1 needs updating (port has 5.52_2) xterm-204 needs updating (port has 205_1) OpenSSL? ARE YOU RUNNING IN AN XTERM? It may be that the newer xterm has some weird curses intereaction ... last week or so I hit a situation where if I change font size in xterm, the window resizes, and if I drag to resize the window, the geometry is in pixels instead of characters. Huh? This vintag of xterm sucks rocks, and I wouldn't be surprised if it was plaguing your mutt as well. ;) -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Reccomendations for FC-attached storage appliance?
[NOTE: cross-posting to freebsd-scsi and -questions ... please reply direct to me, or followup to just ONE list. I may post summary after.] Hello, I have spent the past few weeks confusing around with different vendors to find a cool external disk solution that might offer high performance, and high availability for our production database. My questio is two-fold: 1) Would anyone like to share a preferred storage solution? My dream is something where I can connect two FC controllers to two FreeBSD servers. If one controller fails, or if one server fails, I can still mount the same disks via the redundant server or controller. It sounds like most solutions have the disks on one controller or the other, so if a controller fails, the disks are inaccessible until you swap out the failed controller. The Applex Xserve RAID comes to mind. 2) Would anyone like to share a preferred HBA? I am constantly frustrated by suggested solutions because it seems that every disk appliance only ever supports one HBA. For example, the Apple ... only supports LSI7202XP. My research has found zero evidence that this is supported by FreeBSD. So, if that wont work, I should just run Linux? Or has someone stress-tested their favorite HBA and found it to be totally robust in some configuration ... ? Thanks a bunch! Sincerely, -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Which games are good, and easy to install?
On Sat, Sep 10, 2005 at 11:42:29AM -0400, WOB wrote: Other games were client-server based, and it wasn't immediately obvious how to get them running. Free, open-source games are hard to write in the first place, and so they tend to have poor documentation. A few games just core dump, like flightgear. I'm using FreeBSD 6.0-B4. Yeah, well, you're on the bleeding edge, so anything you do it going to be less stable. ;) I've been hooked on Simutrans the past weeks. There's binaries online for Windows, Linux, and BeOS. I'm told the Linux version runs fine under emulation. I find it addicting because I'm a total SimCity / Railroad Tycoon freak, and this has the added dimension of very little documentation. :) -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Thinkpad Accelerometer driver new Version 0.5
On Tue, Sep 13, 2005 at 02:14:15PM +0200, [EMAIL PROTECTED] wrote: ok. It's the base of the IBM Active Protection System (APS). At the moment there is NO protection of any kind but you can use it as an input device for X. (I get a slow right drift after heavy use) ... so, you jiggle your computer around to play some sort of game? -d ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Fibre Channel disks to two Systems?
[NOTE: If posting followup, please mind the cross-post to -questions and -scsi.] Hello, We host our PostgreSQL database on FreeBSD. Until now, we have just built the beefiest DB server we can spec, and then dump the data every thirty minutes to a backup DB server, so if the primary DB server fails, we load the database on the backup and fail over to the backup server. But I'd rather offload the disk to an external storage device, then I can have two identical DB servers, and if one fails, I swap the disks over to the other DB server, mount the filesystem, possibly run data consistency checks, and proceed from there. From my research, I am thus far most impressed with the SANbloc 2Gb, which holds fourteen FC drives in a 3U rackmount. It can be had with redundant RAID controllers, or as a JBOD. There are similar products from other vendors as well. I could concievably do the RAID in software by running a gstripe across a set of gmirrors. As I understand it, I can have an FC loop with one or more drives, connected to two servers, and either server can talk to one or the other drives exclusively. My QUESTION is: how is the arbitration done in FreeBSD? You run camcontrol on either server and activate / deactivate drives in the loop? What happens if say, the primary server locks up in some weird manner? Can it block the backup server from talking to the drives? (We can always have a NOC tech turn off a badly failed primary database, and power-cycle the disk array, if needed ...) A really far-out idea I had was that with fourteen drive bays I could have two hot spares, and then set up a stripe across four mirrored pairs (4x2 = 8-disk RAID10) and then with the remaining four drives assign each to be a third component of the gmirrored pairs, let the gmirrors sync up, then detach those drives from the gmirrors, mount them on the backup database, gstripe those containers together, and have a point-in-time snapshot of the drive array that could be mounted on the backup server, from which I could run database dumps, or conduct failover tests, etc. (I could kick this around -geom. :) Uhmmm, has anyone done similar? Suggestions? Feedback? Advice? Or, should I try to get a NetApp, or similar device, even though FreeBSD does not support iSCSI, because NFS performance over GigE may still beat FC? Also, does anyone have a FreeBSD-friendly storage systems integrator or other vendor they can reccomend, particularly one near the San Francisco area? I keep contacting various vendors who then fail to get back to me. :( Thanks for all feedback and suggestions! Sincerely, -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: chrooting SSH users into their home directories
On Fri, Sep 02, 2005 at 04:50:17PM -0400, Brian Kaczynski wrote: I was wondering how you could lock a user into their home with chroot when using SSH, similar to what the /etc/ftpchroot file does for FTP users. The ssh server is sshd. Brian, Check out: rssh -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: cloning installed packages?
On Mon, Aug 29, 2005 at 05:53:27AM -0400, Wolfgang Lausenbart wrote: I want to setup a FreeBSD 5.4 Server, which should have all packages, as an older 4.11 based Server. What is the best way of providing the same packages to as installed on the 4.11 based? Note that it must not be *exactly* the same :o) Is there any option to sysinstall/pkg_* to import a list of packages? Well, the ports collection might then be cvsupd'd... Wolfgang, How about: pkg_info -oa | grep / You can feed that to portinstall, or such: pkg_info -oa | grep / manifest.txt ... copy manifest.txt to your new system ... cd /usr/ports/sysutils/portupgrade make install rehash portinstall -p `cat manifest.txt` Cheers, -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: HP Servers (Blade SAN)
On Mon, Aug 29, 2005 at 10:34:25PM -0300, Marc G. Fournier wrote: I've been starting to investigate migrating from individual servers to a more infrastructure approach to our servers ... namely, blade servers to run the applications on, with a SAN backend for the data ... Specifically, I've been looking at the HP Blade / SAN hardware ... but, of course, like everyone else, HP doesn't support (or plan to support) FreeBSD ... So, I'm curious as to what experiences ppl have had with HP ... I have no personal experience, but http://people.freebsd.org/~jcagle/ looked promising. -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: limits puzzle - different limits on similar machines
On Wed, Aug 24, 2005 at 09:46:44PM -0400, Chuck Swiger wrote: Danny Howard wrote: On Tue, Aug 23, 2005 at 06:52:28PM -0600, Chad Leigh -- Shire.Net LLC wrote: On Aug 23, 2005, at 5:56 PM, Danny Howard wrote: # bump max datasize options MAXDSIZ=(1024*1024*1024) options MAXSSIZ=(1024*1024*1024) options DFLDSIZ=(1024*1024*1024) Might this not be it? unlimited is really limited by the kernel sys params [ ... ] We can't tune the kernel limits through sysctl, eh? :) No, but see /boot/default/loader.conf, you can tune it there without having to rebuild the kernel... That much I know, but what variables? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: dump(8), incremental backups, Tower of Hanoi sequence, don't get it
On Wed, Aug 24, 2005 at 12:32:38PM +0100, Scott Mitchell wrote: Another useful rsync option is --link-dest: --link-dest=DIR This option behaves like --copy-dest, but unchanged files are hard linked from DIR to the destination directory. The files must be identical in all preserved attributes (e.g. permissions, possibly ownership) in order for the files to be linked together. I use this to rsync each backup into a new directory on the backup volume, named for the date of the backup. The result is a directory for each backup run, apparently containing every file from the source tree - but most of them are just hard links to some previous backup. This saves a *lot* of disk space as you only ever copy files that have changed since the last backup. You also have the complete file tree for each backup, so it's trivial to restore the version of a file that existed on any particular date. All this great discussion got me researchinng. I haven't tried this out but it looks like rsnapshot integrates a lot of features like this into a single configurable, cronable script. It is in ports as well. A lot of systems make use of cp -al ... well, for us FreeBSD people that means gcp from coreutils. rsnapshot looks like a lightweight, OS/FS-portable method of building rotating filesystem-wide snapshots via hardlinks, but can be made to operate on limited sets of directories, etc. It can create local snaphots of remote directories, but not, apparently, remote copies of local directories. One trick I gleaned from http://burd.info/gary/2003/03/snapshot-backup-using-rsync-and-ssh.html is to invoke rsync with --rsync-path which points to a script which performs maintenence functions and then passes off to rsync proper, so you could probably set up a client-triggered rsnapshot configuration if you were, say, doing backups of a Windows laptop client. :) -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: limits puzzle - different limits on similar machines
On Tue, Aug 23, 2005 at 06:52:28PM -0600, Chad Leigh -- Shire.Net LLC wrote: On Aug 23, 2005, at 5:56 PM, Danny Howard wrote: # bump max datasize options MAXDSIZ=(1024*1024*1024) options MAXSSIZ=(1024*1024*1024) options DFLDSIZ=(1024*1024*1024) Might this not be it? unlimited is really limited by the kernel sys params Chad, Ayup, though I swear yesterday I was getting unlimited values for root across the board, and only seeing limits for users. But now I always see the same limits for root. So ... yeah, its the kernel. We can't tune the kernel limits through sysctl, eh? :) -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: dump(8), incremental backups, Tower of Hanoi sequence, don't get it
On Fri, Aug 19, 2005 at 05:15:35PM +0300, Ilari Laitinen wrote: Hello. Lately I have been getting more and more worried about data on my FreeBSD box at home. I am forming a real small-scale backup policy with two different big USB harddrives (yet to buy) storing regular incremental backups (yet to figure out). The idea is to have those harddrives mirror each other for extra security. Ilari, Three suggestions: 1) Use gmirror to mirror the hard drives, instead of manually mirroring them. 2) If all you have to deal with are static files and a not-super-giant-filesystem, use rsync. rsync -avz --delete once a night will mirror your data between drives or between machines without any trouble. The only disadvantage is there is no file retention if you want to restore a corrupt / deleted file after the fact. Maybe you could rsync between the USB disks prior to rsyncing your backups, then you have two iterations of data ... 3) Look into using AMANDA, which I think can be run without a tape device, if it regards your disks as long-term holding disks. It is probably overkill for you, but at least then you get to learn a more powerful backup package which you might want to have experience with for the future, and you won't have to worry about Towers of Hanoi or anything because AMANDA is smart enough to figure this out itself. Though, honestly, probably all that you need is to do 0 1 1 1 or such. Or possibly, mount filesystem snapshots and if you get acceptible performance just dump level 0 every night. Or ... really it depends what you want and what you've got. Do you want to be able to restore deleted files from the week prior? If not, then you can get away with nightly full dump or nightly full mirror strategies. Otherwise, yes, you need to rig up some multiple-dumplevel magic. Cheers, -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
limits puzzle - different limits on similar machines
Hello, We have a process that runs fine on one machine but then dies on another, spitting an out-of-memory error. Interestingly, the limits for the user are higher on the working machine and lower on the other. So, I try to puzzle out why, reading all about login.conf, but login.conf is the same on every machine I visit, and it sets datasize=unlimited ... 1-16:35 [EMAIL PROTECTED] ~ uname -a grep datasize /etc/login.conf limits FreeBSD mito.sr._.com 5.4-STABLE FreeBSD 5.4-STABLE #3: Fri Jul 29 16:05:16 PDT 2005 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/MITO i386 :datasize=unlimited:\ # :datasize-cur=22M:\ # :datasize=8M:\ # :datasize=12M:\ # :datasize=infinity:\ # :datasize=infinity:\ # :datasize-cur@:\ # :datasize-cur=64M:\ # :datasize=2M:\ Resource limits (current): cputime infinity secs filesize infinity kb datasize 524288 kb stacksize 65536 kb coredumpsize infinity kb memoryuseinfinity kb memorylocked infinity kb maxprocesses 3632 openfiles7264 sbsize infinity bytes vmemoryuse infinity kb Okay, but on a different machine, the machine that runs the tricky process: 1-16:36 [EMAIL PROTECTED] ~ uname -a grep datasize /etc/login.conf limits FreeBSD bali.web.sr._.com 4.8-STABLE FreeBSD 4.8-STABLE #1: Mon Apr 21 1 3:36:32 PDT 2003 [EMAIL PROTECTED]:/local0/world/obj/local0/wor ld/src/sys/BALI i386 :datasize=unlimited:\ # :datasize-cur=22M:\ # :datasize=8M:\ # :datasize=12M:\ # :datasize=infinity:\ # :datasize=infinity:\ # :datasize-cur@:\ # :datasize-cur=64M:\ # :datasize=2M:\ Resource limits (current): cputime infinity secs filesize infinity kb datasize 1048576 kb stacksize 1048576 kb coredumpsize infinity kb memoryuseinfinity kb memorylocked infinity kb maxprocesses 5547 openfiles 11095 sbsize infinity bytes vmemoryuse infinity kb Others? 0-19:37 [EMAIL PROTECTED] ~ uname -a grep datasize /etc/login.conf limits FreeBSD web3.web._.com 4.10-RELEASE-p2 FreeBSD 4.10-RELEASE-p2 #1: Thu O ct 21 18:39:52 EDT 2004 [EMAIL PROTECTED]:/local0/world/obj/local0 /world/src/sys/WEB3 i386 :datasize=unlimited:\ # :datasize-cur=22M:\ # :datasize=8M:\ # :datasize=12M:\ # :datasize=infinity:\ # :datasize=infinity:\ # :datasize-cur@:\ # :datasize-cur=64M:\ # :datasize=2M:\ Resource limits (current): cputime infinity secs filesize infinity kb datasize 524288 kb stacksize 65536 kb coredumpsize infinity kb memoryuseinfinity kb memorylocked infinity kb maxprocesses 5547 openfiles 11095 sbsize infinity bytes vmemoryuse infinity kb 0-16:21 [EMAIL PROTECTED] ~ uname -a grep datasize /etc/login.conf limits FreeBSD rahu.web.sr._.com 4.9-STABLE FreeBSD 4.9-STABLE #1: Mon Mar 22 1 3:38:20 PST 2004 [EMAIL PROTECTED]:/local0/world/obj/local0/wor ld/src/sys/RAHU i386 :datasize=unlimited:\ # :datasize-cur=22M:\ # :datasize=8M:\ # :datasize=12M:\ # :datasize=infinity:\ # :datasize=infinity:\ # :datasize-cur@:\ # :datasize-cur=64M:\ # :datasize=2M:\ Resource limits (current): cputime infinity secs filesize infinity kb datasize 524288 kb stacksize 65536 kb coredumpsize infinity kb memoryuseinfinity kb memorylocked infinity kb maxprocesses 5547 openfiles 11095 sbsize infinity bytes vmemoryuse infinity kb I originally suspected that the login class was being set differently on different systems based on whether the system was a NIS client or if the user was in master.passwd ... in neither case have I bothered setting a login class ... but in the above output, rahu and bali are NIS clients, web3 and mito are not ...and mito has differing maxprocesses and openfiles from other 5.x hosts .. why? Could it be the kernel build? 0-16:46 [EMAIL PROTECTED] ~ diff /usr/src/sys/i386/conf/GENERIC /usr/src/sys/i386/conf/MITO 2c2 # GENERIC -- Generic kernel configuration file for FreeBSD/i386 --- # MITO -- Generic kernel configuration file for FreeBSD/i386 19c19 # $FreeBSD: src/sys/i386/conf/GENERIC,v 1.413.2.13 2005/04/02 16:37:58 scottl Exp $ --- # $FreeBSD: src/sys/i386/conf/MITO,v 1.413.2.8 2004/10/24 17:42:08 scottl Exp $ 25c25 ident GENERIC --- ident MITO 28c28 #hintsGENERIC.hints # Default places to look for devices. --- #hintsMITO.hints# Default places to look for devices. 61c61 deviceapic# I/O APIC --- device
Re: All about netgraph
On Fri, Aug 12, 2005 at 06:29:22PM +0200, Peter Blok wrote: Hi, I was looking for the all-about-netgraph document on www.daemonnews.org http://www.daemonnews.org/ , but DNS ( even a root server ) doesn't resolve the name anymore? Does somebody know what is going on? Does somebody have the document copied somewhere? Google is your friend. As it for all-about-netgraph and it will offer you its cached copy: http://66.102.7.104/search?q=cache:FXkI_JexHj4J:ezine.daemonnews.org/23/netgraph.html+all-about-netgraphhl=en ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
multiport serial reccomendations?
Hello, I'm looking to build a nanny box to provide maintenance services to my servers. One of these services ought to be serial console access. I've currently got an old Cyclades box in service, but I'm curious to just sport a multiport serial card and run conserver directly on the nanny box. So: Can anyone recommend an 8-port or so serial card that works under FreeBSD? Or if you want to give feedback on a console server, I'm happy to hear that as well. I am especially curious if anyone has experienbce with Opengear, as their hardware appears to be VERY competetively priced ... perhaps some can confirm that MP4066R work with puc(4)? Thanks, -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Support for HP Intel Servers
On Tue, Aug 02, 2005 at 06:09:55PM +0200, Yacoob Patel wrote: Hi I am currently working on a proposal for a customer that is using FreeBSD .Information is required for FreeBSD compatibility with the current HP Blade servers. Hello, I was researching blade servers last week, and the spiel seems to be that FreeBSD works just fine, but is not formally supported. And then I found: http://people.freebsd.org/~jcagle/ That supplies stuff like BIOS upgrades for HP servers that can run in FreeBSD! Cool! Any feedback that I hear about FreeBSD and HP Blade servers I'd really dig! Thanks! -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: how to run 2 instance of memcached from rc.conf?
On Tue, Jul 26, 2005 at 11:59:59PM -0700, Lei Sun wrote: Yeah, the tricky part is not to what to do, but how to do it. I know I need to configure 2 ip or 2 ports. As the memcached.sh is using run_rc_command, and somehow, even if when I am giving it 2 arguments with different port, it still can only start up 1 process instead of 2. How are you giving anything different arguments? I only see one service configured in your rc.conf. So how do I use the same script to run 2 instance of memcached? So, you have memcached1.sh : #!/bin/sh # # PROVIDE: memcached1 # REQUIRE: NETWORKING # # Add the following lines to /etc/rc.conf to run memcached: # # memcached1_enable=YES # memcached1_flags= # . /etc/rc.subr name=memcached1 rcvar=`set_rcvar` command=/usr/local/bin/memcached command_args=-du nobody ${memcached1_flags} load_rc_config $name run_rc_command $1 And then you have memcached2.sh : #!/bin/sh # # PROVIDE: memcached2 # REQUIRE: NETWORKING # # Add the following lines to /etc/rc.conf to run memcached: # # memcached2_enable=YES # memcached2_flags= # . /etc/rc.subr name=memcached2 rcvar=`set_rcvar` command=/usr/local/bin/memcached command_args=-du nobody ${memcached2_flags} load_rc_config $name run_rc_command $1 And you set memcached1_flags and memcached2_flags in rc.conf where you were setting memcache_flags formerly. However, unless you really know what you are doing, if you are trying to run TWO memchached instances, I'd suspect, as another has asserted, that your understanding of memcached is flawed. I'd check with the memcached community to see if there isn't a better way to get things done in the first place. Sincerely, -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sterminal or alternative
On Wed, Jul 27, 2005 at 09:07:35AM +0200, Maarten wrote: Is anyone aware if there have been efforts to port sterminal? If not, are there any ported alternatives which I have overlooked? Maarten, Perhaps you can get it ported easily. :) http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/ Thank you for contributing, and good luck! Sincerely, -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Crypto Accelerators?
Hello, Does anyone have suggestions as to preferred hardware crypto accelerators? I want to improve performance of our SSL-based web application, and making it easier for the web server to spew encrypted ought to help. :) Based on http://www.freebsd.org/releases/5.4R/hardware-i386.html#CRYPTO-ACCEL and the notes at http://www.openbsd.org/crypto.html#hardware I get the impression that the Broadcom stuff is probably best, as they have had the friendliest history of driver support, and there are a bunch of different cards listed under the FreeBSD page. Anyone like to confirm or amend this impression? Vouch for a particular card? Thanks, -danny ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
CARP Load-Balancing? (Or, HTTP peer load balancing?)
Hello, I am looking at building a tiered web application (web layer, DB layer) and am wondering about configuring automatic failover for the web layer. If possible, I'd like to avoid having to implement a third firewall / balancing tier, but if I must, I shall do that ... I am looking at CARP. The documentation seems soarse, and it sounds like the load balancing option isn't much of an option. On the other hand, I could set multiple vhids, one per web server, and rig it up so that if one web server drops its interface, another will answer for it. Then load balancing is as simple as putting multiple web server IPs in for the A record ... (With CARP basically functioning as a heartbeat monitor ...) Does that sound sensible? I'm feeling a bit wary of this approach. Any suggestions for handling failover of HTTP among peers? Thanks, -danny ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Kerberos support in sudo?
Hello, First off, I'll admit up front that PAM makes no sense to me whatever. So, maybe the anser is in my PAM config. I have a 5.3 system running in a Kerberos 5 environment. I have configured ssh to authenticate against Kerberos just fine. And ksu works just right too. But sudo, I can not get working ... it just can't confirm a password for a user when it is run. I changed the /etc/pamd.d/system file to look like my /etc/pam.d/sshd file. That doesn't seem to help. I went into the port and slipped --with-kerb5 into the CONFIGURE_ARGS, and reinstalled sudo, but still, I got no love. Anyone know how to get this working? Thanks, -danny ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
g4u and growfs? (Was Make Image of Hard Drive)
On Sun, Jul 10, 2005 at 11:42:26PM +0100, Iu hh wrote: You can try ghost for unix (g4u, here: http://www.feyrer.de/g4u/). It's a very powerful network based cloning software, just pop in the bootable disk/cd, and then upload/download the image to your local ftp server. I'm using it to clone 5 identical webservers, works great. Holy noodle, that looks like awesome stuff! The only limitation would seem to be systems with varying hard disk size. But then I think. You could set up a system with a smallish /usr/local as the last slice, then ghost it on to your clients, and have a script to growfs /usr/local to the end of the disk. But, I don't know for growfs, and I'm concerned that you'd have to do some magic to the partition table first. Maybe someone is already doing something of similar cleverosity? (And would care to comment.) Thanks, -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: port to Ardent Titan?
On Mon, Jul 11, 2005 at 02:01:12PM -0700, Keira Chekel wrote: Is a porting of FreeBSD available for this Ardent Titan? Thanks, Jim You have such a legendary beast? From http://en.wikipedia.org/wiki/Ardent : Ardent was a graphics minicomputer manufacturing company, one of a very few 3rd parties to base their designs on the MIPS CPU's and the associated MIPS OS, using additional Intel i860's as graphics co-processors. The company went through a series of mergers and re-organizations and changed names several times as their venture capital funders attempted to find a market niche for their graphics supercomputers. After a series of machines that were not particularly successful in the marketplace, they used parts of their design to create graphics subsystems for other workstations, notably DEC machines, but eventually shut down completely in February 1995. Learn something new each day ... -danny ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Software RAID-1 - Swap partition
John Oxley wrote: Hi, I followed http://people.freebsd.org/~rse/mirror/ to create a software RAID mirror. I have two 75G drives in the machine. I allocated 74G to the filesystem on each drive and 1 G to swap. When I blanked ad1 and created ad1s1, I didn't notice that it had taken up the whole of the drive. Can I shrink the mirror partition and have two swap partitions, or if that is not possible, how would I go about creating a mirrored swap partition? Your swap partition ought to be mirrored already. From a similar system: 0-11:01 [EMAIL PROTECTED] ~ swapinfo Device 1K-blocks UsedAvail Capacity /dev/mirror/gm0s1b 41674880 4167488 0% 0-11:01 [EMAIL PROTECTED] ~ grep swap /etc/fstab /dev/mirror/gm0s1b noneswapsw 0 0 -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: dhclient.conf for wireless interface
Erik Nørgaard wrote: Hi, I am trying to configure dhclient to associate with the correct accesspoint, I use FreeBSD Current with the new dhclient ported from OpenBSD. The examples I can find mentions that I should create an entry in my dhclient.conf like this: interface ath0 { media ssid AP1 mode 11g, ssid AP2 mode 11g; } and dhclient will then first try to associate with AP1 and then AP2. The problem is that with that setup dhclient enters into an aparently infinite loop bringing up and down the interface, until I break it. I have to manually run 'ifconfig ssid AP1 mode 11g' first. Erik, FWIW, it looks like you are doing the right thing. Maybe you have hit a bug? There may be a tweak for dhclient's configuration to extend the amount of time it will attempt a profile before giving up and trying the next. I would like to think that mode 11g is superflous, and that you can just set that before-hand, or at a lower level ... Good Luck, -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Linksys WMP11 on Freebsd 4.3
Jamie Ann P. Zamodio wrote: Hi, I would just like to ask if there is any way at all that I can configure the Linksys wireless PCI card (WMP11) to work on Freebsd 4.3? I know the card's not compatible, but if I can't make it work I'll have to buy a wireless card that IS compatible and I'm hoping I wouldn't have to do that. Jamie, If you can get ahold of the Windows drivers, and if NDIS is available for 4.3 (else you'll want to upgrade your OS to something more current) then you can you NDIS to set up Windows drivers. I have blogged a howto at http://dannyman.toldme.com/2005/01/05/freebsd-howto-ndisulate-windows-drivers/ Good Luck, -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: raid1 with gmirror (some questions left)
On Fri, Jul 01, 2005 at 12:13:50PM +0200, P.U.Kruppa wrote: swapoff=YES into /etc/rc.conf -since it was recommended. It is still there can I remove it now or will there be any problems? I think they might have fixed that in 5.4, but it doesn't huirt to have it there. I've been careful to run shutdown command instead of halt ... If you get the same output as I do, I'd say you're alright. -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: RAID Cards
Bob Bomar wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am looking to build a new file server. I have used Promise cards exclusivly in the past, but I am looking at Highpoint cards for this machine. Anybody have any opinions on RAID cards? My 2c: RAID cards suck, because they are difficult to monitor consistently. For a lot of my systems, I've been deploying gmirror, which can mirror a pair of drives, even at the system level. Works great, easy to monitor through standard tools, no firmware / driver / kernel version / userland conflicts and generally better performance. YMWV, -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: raid1 with gmirror (some questions left)
P.U.Kruppa wrote: As far as I can see, booting from gm0 works fine. There are only two questions left: 1) I installed FreeBSD 5.4 -RELEASE and thus I put - as recommended (or was that only for 5.3 ???) - swapoff=YES into my /etc/rc.conf . Now my raid1 device doesn't show any swap partition. Is this o.k., or should it be reactivated somehow? Uhmmm, can you elaborate on that? Here's what my system looks like: 0-13:14 [EMAIL PROTECTED] ~ gmirror list Geom name: gm0 State: COMPLETE Components: 2 Balance: round-robin Slice: 4096 Flags: NONE SyncID: 2 ID: 2016858745 Providers: 1. Name: mirror/gm0 Mediasize: 250059349504 (233G) Sectorsize: 512 Mode: r6w6e2 Consumers: 1. Name: ad4 Mediasize: 250059350016 (233G) Sectorsize: 512 Mode: r6w6e3 State: ACTIVE Priority: 0 Flags: DIRTY SyncID: 2 ID: 2809681815 2. Name: ad6 Mediasize: 250059350016 (233G) Sectorsize: 512 Mode: r6w6e3 State: ACTIVE Priority: 0 Flags: DIRTY SyncID: 2 ID: 2997441133 Geom name: gm0.sync 0-13:14 [EMAIL PROTECTED] ~ mount /dev/mirror/gm0s1a on / (ufs, local) devfs on /dev (devfs, local) /dev/mirror/gm0s1g on /local0 (ufs, local, soft-updates) /dev/mirror/gm0s1e on /tmp (ufs, local, soft-updates) /dev/mirror/gm0s1f on /usr (ufs, local, soft-updates) /dev/mirror/gm0s1d on /var (ufs, local, soft-updates) 0-13:14 [EMAIL PROTECTED] ~ swapinfo Device 1K-blocks UsedAvail Capacity /dev/mirror/gm0s1b 41674880 4167488 0% 2) In case one of my disks fails (let's say ad2), what is the correct procedure to exchange it? My guess: - power down my machine If you have hot-swap drive bays, you can skip this step. - insert new disk - # gmirror configure -a gm0 - # gmirror insert gm0 /dev/ad2 - wait until # gmirror list shows both disks active again You should only need the insert command, and you can certainly use the system while the disks are syncing, you'll just have impaired performance. Cheers, -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: RAID Cards
On Thu, Jun 30, 2005 at 04:48:18PM -0400, Simon wrote: Just because there is no monitoring tool available due to lack of support, doesn't mean the card itself is bad. I much prefer hardware implementation than software. True hardware RAID frees up a lot of CPU time if you have heavy IO and software just can't keep up if you utilize CPU intensive apps. When you have a dual Xeon setup, you are more likely to be bound by disk than CPU. And a RAID that you can not monitor is a BAD RAID. The biggest thing that bothers me about my current environment is that I have remotely-deployed machines with RAIDs and I can't tell when a disk goes bad unless I visit the datacenter. Last time I was there I had a RAID card throwing an audible alarm, even though nothing was wrong. I had to reboot a critical system to fix that. If you can implement it in software, then its worth the headaches you'll avoid with hardware dependencies. If you're concerned at CPU overhead, spend the cash you would have spent on a RAID card and upgrade your CPU. Sincerely, -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: dvd+rw on freebsd 4.10
[EMAIL PROTECTED] wrote: Do drives like the nec 3520 dvd-r,rw,... work ok under freebsd 4.x (9 or 10) as well as growisofs or do they require the 5.x branch? FWIW, I recently procured a nice Sony DVD+RW off Amazon.com for about $120 or so. Works like a charm in FreeBSD 4.x but you'll want to re-compile your kernel (see Handbook) to support the thing under SCSI for growisofs. I'd give the model no but Amazon.com is broken at the moment. Came with Nero which is nice if you've got a Windows box in need of burning software ... dmesg says: acd0: DVD-R SONY DVD RW DRU-720A at ata0-master UDMA33 cd0 at ata0 bus 0 target 0 lun 0 cd0: SONY DVD RW DRU-720A JY01 Removable CD-ROM SCSI-0 device cd0: 33.000MB/s transfers cd0: Attempt to query device size failed: NOT READY, Medium not present -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ipf blocking pass rule
James Bowman Sineath, III wrote: James, You should send messages to the list directly. When you start your question by hitting reply to a question about shell accounts, your message will be lumped under there in a lot of mail clients, and is less likely to be see. I have the following rule in my ipf.rules: pass in log first quick on xl0 proto tcp from any to any port = 25 keep state for some reason it will pass the first connection but block the next. A log is below. Any ideas on why this is happening would be much appreciated. I'm no IPF expert, but I'd wonder if pass in log FIRST quick is doing exactly what you describe correctly ... -d -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: syslogd and pipe to email
Jim Pazarena wrote: I would rather have a script which waits at least 30 seconds before terminating rather than after one line, because some of the records I am looking for are multi-line, and I'm not sure if a script can be made to timeout. Jim, Even without setting up some sort of fancy interrupt thing, of course you can get a script to time out. In fact, I think you'd WANT the script to time out, even if it was getting input from syslog, because if syslog were spewing warning messages, you'd want the script to let go and send its warnings. Script would look something like: to=30 while( to 0 ) output .= STDIN sleep 1 to-- do send-email Cheers, -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: which raid option in FreeBSD 5.X?
Jev wrote: Hi All, We have a new box with 4 200GiG IDE disks, we wish to set it up using software raid, and I'm aware there are many options, from vimum, gvinum, various other geom classes... What is the best option looking to the future, that is usable for now? We are looking for data safety over speed. You might set up a RAID10, which is a stripe across two mirrors. Mirrors are the best way to preserve data -- very simple to implement, and if a disk crashes, rebuild is just a matter of copying data from the known good disk. If RAID10 is too complicated, I'd say set up a pair of RAID1 volumes via gmirror. That will give you 400G total data. It is not the best way to utilize your capacity, but then, I assume you have 200G drives because disk is cheap these days. Cheers, -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How do I run this cron job?
Odhiambo Washington wrote: Perhaps trivial How do I run a cron job at the end of every month? Type: man 5 crontab [...] # run at 2:15pm on the first of every month -- output mailed to paul 15 14 1 * * $HOME/bin/monthly [...] When you are ready to rock, type: crontab -e Good Luck. -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: which raid option in FreeBSD 5.X?
On Thu, May 19, 2005 at 04:01:29PM -0700, Jev wrote: Danny Howard wrote: You might set up a RAID10, which is a stripe across two mirrors. Mirrors are the best way to preserve data -- very simple to implement, and if a disk crashes, rebuild is just a matter of copying data from the known good disk. Hi danny, thanks for the reply. What do you use for RAID0? I'm aware of geom mirror, and raid3 classes... If you want it done for the boot system, it gets tricky. I've always done it with hardware. If you already have a way to boot, then gvinum, or some comination of gmirror and gstripe ought to work for you. -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: daily log reports
[EMAIL PROTECTED] wrote: That is not my IP address or what is assigned, i was just using it for simplicity... How can I change the address it sends mail to? I rather change it to [EMAIL PROTECTED] instead or [EMAIL PROTECTED] I can probably do that by changing /etc/aliases but it's strange since I didn't need to do this in 5.3 Well, ahem, the default MTA is Sendmail ... so, this is kind of a postfix question, yes? I'd say make reinstall Postfix and be sure you answer yes to the mailer.conf question. Also, check /usr/local/etc/portfix/aliases. -d -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Pico editor for 5.3
Dixit, Viraj wrote: I am installing Pico on BSD 5.3, the installation for Pico goes up to ver. 4. Will this work or is there another solution. I have vi installed already but I have Pico user here. Viraj, You might try ports or packages. Or, you might try nano, which I understand is like pico, but without all the yucky UW code. Cheers, -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: gmirror losing drive
Andrea, I have no idea, sorry, but I do notice that your gmirror list looks somewhat different from mine, so I'll include that output, in case we might learn something. I wish you all the best in cracking this nut ... :/ On Tue, Apr 19, 2005 at 02:38:33PM +0200, Andrea Venturoli wrote: Geom name: gm0 State: COMPLETE Components: 2 Balance: split Slice: 2048 Flags: NONE SyncID: 5 ID: 2253479574 Providers: 1. Name: mirror/gm0 Mediasize: 36778544640 (34G) Sectorsize: 512 Mode: r3w3e2 Consumers: 1. Name: da1 Mediasize: 36778545152 (34G) Sectorsize: 512 Mode: r3w3e3 State: ACTIVE Priority: 0 Flags: DIRTY SyncID: 5 ID: 4069582681 2. Name: da0 Mediasize: 36778545152 (34G) Sectorsize: 512 Mode: r3w3e3 State: ACTIVE Priority: 0 Flags: DIRTY SyncID: 5 ID: 4172309470 Geom name: gm0.sync Geom name: gm0 State: COMPLETE Components: 2 Balance: round-robin Slice: 4096 Flags: NONE SyncID: 2 ID: 21500713 Providers: 1. Name: mirror/gm0 Mediasize: 250059349504 (233G) Sectorsize: 512 Mode: r7w7e2 Consumers: 1. Name: ad4 Mediasize: 250059350016 (233G) Sectorsize: 512 Mode: r7w7e3 State: ACTIVE Priority: 0 Flags: DIRTY SyncID: 2 ID: 107796709 2. Name: ad6 Mediasize: 250059350016 (233G) Sectorsize: 512 Mode: r7w7e3 State: ACTIVE Priority: 0 Flags: DIRTY SyncID: 2 ID: 3458394720 Geom name: gm0.sync ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: gmirror on local + nfs volume
Feczak Szabolcs wrote: I have read about this some months ago on the list, but I can not find it now. Can someone explain how to make a Geom mirror with one local and one remote component ? (so basicly syncronize two volumes between machines automagically) Feczak, I saw that too ... my searching turns up: man -k ggate Good luckl making it go. Sincerely, -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Suggestions for post rm -rf /etc/*
Glen Smith wrote: Anyone have a suggestion for fixing a machine three states away after you rm -rf * dir/* inside of /etc or am I just screwed. I even had zsh ask me if that's what I really want to do. ::sob:: Glen, I'm glad this worked out for you. I thought I might chime in that this is an excellent example of the idea that if something is broken on Unix try rebooting can often be a destructive solution. I too once thought I had typed rm -rf /tmp/* late at night, then realised it was /etc/*!! Copied the scripts over from another machine. This is a useful story to have for the occasional Interview Question, tell me about a time when you messed up, and how you went about recovering from it. The best answer is one of these situations where, by not panicking, you turn a lethal problem into an interesting triumph. :) Cheers, -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: gmirror losing drive
Andrea Venturoli wrote: Hello. I'm almost happily using gmirror on da0 and da1. The problem is after every reboot da0 is gone and I have to issue: gmirror forget gm0 gmirror insert gm0 da0 Then it will synchronize automatically. Why? How do I resolve? Should I save the configuration in any way after issuing the previous commands? Andrea, I'm not entirely sure on this one ... you have RTFM? There's gmirror configure -a ... but that is about synchronization. What does gmirror info says before you forget / insert? My hunch is that you are not rebooting cleanly, so when the system comes up, gmirror thinks it has to re-sync the disks, but it is not configured to do so automatically? What command / process did you use to set up your mirror? -d -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Adaptec 1210SA
Daniel Martin-Fabiani wrote: Hello, I want to install latest version of FreeBsd in my box with two disks plugged into an Adaptec1210SA (Serial ATA) in order to have a mirror. I create the mirror at the Adaptec BIOS, but FreeBsd installation program doesn't notice about it and shows me only two devices where to install. Daniel, I do not know about your hardware, but nowadays it is pretty easy to set up a system-level disk mirror in FreeBSD itself. Saves you the hassle of figuring out a way to monitor the the Adaptec stuff. :) Check out gmirror. I put a howto on my web site: http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/ Good Luck. Sincerely, -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SATA drives and hotplug capability
Frederic Andres wrote: Hi, I'm using FreeBSD 5.2.1 and I have an Asus motherboard with an embedded Promise 20378 controller. I want to plug/unplug a SATA drive when the system is up. The drive is a data drive, I don't want to use RAID capabilities of my Promise controller. Can someone have any experience doing this? Do you have info about SATA drives and hotplug capabilities on FreeBSD 5.X ? If memory serves, I went ahead and tried this, with a gmirror setup. Just yanked the drive, and gmirror did the right thing ... I do this with my laptop all the time, but when pulling the battery and inserting the DVD+RW device it is needed: sudo atacontrol reinit 1 Good luck, -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
(LONG) ATA Benchmark: 5.x Reads Slower than Writes
Hello, BACKGROUND I need to purchase a new system for our developers, for use as a Postgres database test server. Having a RAID, probably RAID1, is desirable for performance and reliability. I have recently set up a system with a gmirror-based software RAID1 on a pair of 250GB ATA drives. I would like to stick with gmirror, because: - We save money on extra hardware. - Since gmirror is part of FreeBSD, maintenance is a lot easier than with a hardware solution. SUMMARY But before I go balls out, I should see how well it compares to hardware RAID. So, I do some benchmarks with bonnie++. Since this simulates create, write and read on thousands of random files, this sounds like a good approximation of what Postgres does. :) I don't have the time and hardware to do very scientific tests, but I have been able to run a series of benchmarks using bonnie++ on some systems I have available to me. The ATA-based gmirror performs extremely well, compared to a few Adaptec RAIDs that we have, EXCEPT that the sequential and random reads are MUCH SLOWER than the hardware solution, and even *slower than the preceding write operations*. This is counter-intuitive, especially since RAID1 implies slowed writes and faster reads. I tried the benchmark on my workstation (single 2.5 IDE in a laptop) and got comparable write-faster-than-read results. DATA I was able to make use of the following test systems. I ran tests in multi-user, but tried to favor times when there wasn't much background activity: mito: (lone 2.5 ATA) 5.4-PRERELEASE CPU: Intel(R) Pentium(R) M processor 1.50GHz (1495.16-MHz 686-class CPU) atapci0: Intel ICH4 UDMA100 controller ata0: channel #0 on atapci0 ata1: channel #1 on atapci0 ad0: 28615MB TOSHIBA MK3021GAS/GA129D [58140/16/63] at ata0-master UDMA100 amun: (gmirror RAID1 2 x WD250GB High Intensity) FreeBSD 5.3-RELEASE CPU: Intel(R) Xeon(TM) CPU 2.80GHz (2799.22-MHz 686-class CPU) atapci0: SiI 3112 SATA150 controller ata2: channel #0 on atapci0 ata3: channel #1 on atapci0 ad4: 238475MB WDC WD2500SD-01KCB0/08.02D08 [484521/16/63] at ata2-master SATA150 ad6: 238475MB WDC WD2500SD-01KCB0/08.02D08 [484521/16/63] at ata3-master SATA150 atapci1: SiI 3112 SATA150 controller acd0: CDROM CD-224E/1.9A at ata1-master UDMA33 janus: (Adaptec RAID1 2 x 72G 10,000 RPM SCSI) FreeBSD 4.10-STABLE CPU: Intel(R) Xeon(TM) CPU 2.40GHz (2399.33-MHz 686-class CPU) [DUAL] aac0: Adaptec SCSI RAID 2120S mem 0xf800-0xfbff irq 16 at device 1.0 on pci2 aac0: i960RX 100MHz, 48MB cache memory, optional battery present aac0: Kernel 4.0-0, Build 6011, S/N baec64 aac0: Supported Options=1f7eCLUSTERS,WCACHE,DATA64,HOSTTIME,RAID50,WINDOW4GB,SOFTERR,NORECOND,SGMAP64,ALARM,NONDASD aacd0: RAID 1 (Mirror) on aac0 aacd0: 69998MB (143357184 sectors) db2: (Adaptec RAID10 4 x 36G 15,000 RPM SCSI) FreeBSD 4.8-STABLE CPU: Intel(R) Xeon(TM) CPU 3.06GHz (3065.81-MHz 686-class CPU) [DUAL] aac0: Adaptec SCSI RAID 2120S mem 0xf800-0xfbff irq 18 at device 2.0 on pci5 aac0: i960RX 100MHz, 48MB cache memory, optional battery present aac0: Kernel 4.0-0, Build 6008, S/N b97ce8 aac0: Supported Options=1f7eCLUSTERS,WCACHE,DATA64,HOSTTIME,RAID50,WINDOW4GB,SOFTERR,NORECOND,SGMAP64,ALARM,NONDASD aacp0: SCSI Passthrough Bus on aac0 The raw data can be viewed at http://dannyman.toldme.com/scratch/benchmarks/ ANALYSIS Unfortunately, my hardware RAIDs are on FreeBSD 4, and gmirror is on 5. My hardware RAIDs are on dual CPU systems, with 2G RAM, and my gmirror is on a single hyperthreaded CPU with 512M. Yes, sorry, not especially scientific. Maybe the changes in FreeBSD make a big difference? Maybe RAM makes a big difference? The first results show a serious advantage for the gmirror setup: Sequential output (char) gmirror ATA RAID1: avg 320K/s Adaptec SCSI RAID1: avg 222K/s Adaptec SCSI RAID10: avg 202K/s Sequential input (char) gmirror ATA RAID1: avg 617K/s Adaptec SCSI RAID1: avg 345K/s Adaptec SCSI RAID10: avg 336K/s Sequential Output (block) gmirror ATA RAID1: avg 37893K/s Adaptec SCSI RAID1: avg 13829K/s Adaptec SCSI RAID10: avg 40440K/s The gmirror sees slightly poorer performance in random seeks: Rndom Seeks gmirror ATA RAID1: avg 4144/s Adaptec SCSI RAID1: avg 5428/s Adaptec SCSI RAID10: avg 13302/s That all sounds great if I was streaming video, but I want to run a database, opening and closing, reading, writing, and rewriting several small files. This is where things seem to go rotten. We see the ATA performance go to heck on the File Create tests: Sequential Create laptop 2.5 ATA: avg 101/s gmirror ATA RAID1: avg 365/s Adaptec SCSI RAID1: avg 160/s Adaptec SCSI RAID10: avg 412/s Sequential Read laptop 2.5 ATA: avg 76/s # SLOWER than write! gmirror ATA RAID1: avg 251/s # SLOWER than write! Adaptec SCSI RAID1: avg 7862/s Adaptec SCSI RAID10: avg 7618/s Random Create laptop 2.5 ATA: avg 124/s gmirror ATA RAID1: avg 354/s Adaptec SCSI RAID1: avg 155/s Adaptec SCSI RAID10: avg 504/s
Re: Securely allowing just one application via telnet
Anthony, Securely and telnet is an oxymoron. This is mainly because any data, including passwords, sent through a non-encrypted connection, can be sniffed by anyone who can access any of the intervening networks. Your question is really very open-ended and vague. The correct question may be I need to facilitate FOO. and then go about solving that. When you ask I need to do something with telnet, I am inclined to say I bet you are asking the wrong question. One (easier) way is to use a traditional login shell and set the config file to pass execution to your application. For example, if the user is set to use csh, you can put exec fooprog in his .login. An advantage of this is that you can set environment variables and stuff before handing execution to this application. If you do this, and you can not trust your user (he's using telnet, so his password is easy to steal,) then you want to look at how your development system handles signals. You don't want him sending some clever signal to your system that lets them sneak out in to something else. That said, if you set a user's shell (See /etc/master.passwd and the excellent pw program,) to your executable, then that is the program that will be executed as the user's login shell. (I once set up a user on my system to launch freeciv on the remote terminal so some friends and I could play this game in my dorm laboratory from the workstation in my dorm room. I think I just set the shell init file to exec freeciv and disabled the user when we weren't playing games. :) Another way is to put the program in inetd.conf ... you just telnet to some port, and things happen. This is like putting the program in as the user shell, but there are fewer insecure layers (telnet tends to have security advisories crop up) but you wont have telnet asking for a password for you. Anyway, good luck. Sincerely, -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Digital Cameras
Anthony Atkielski wrote: You might be better off removing the card and using a card reader. Card reader specs are much more generalized and consistent than digital camera specs. If the type of card/reader your camera uses is unsupported by FreeBSD, at least you have a better chance of getting support for it in the future than you would for a specific model of a specific camera. Hello, I second this suggestion! Get a USB media adaptor, plug it in, the device should pop right up, then you use the mount command and add it like a disk drive, copy your photos, clean up the disk, unmount, and you are done! (I have no idea if this works with memory sticks, but say, Canon cameras are always putting an MSDOS filesystem on the CF card.) Another tip: reading the data is only half the battle. Personally, managing pictures is one of the three things I do with my Windows computer. (The other two are games and Quicken.) The XP/2k file browser in thumbnail mode is very nice for managing pictures. And you can download stuff like Picasa. (Though, Flickr is a lot like online Picasa but you have to pay a yearly subscription fee, and the photo manipulation stuff depends on Flash plugin, so, for now, you need Windows to rotate your uploaded images ) Cheers, -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
FAQ: How to Measure Swap in FreeBSD
Hello, I tried to get an answer to this question last year but failed. Today, I think I have it. Q: How do you measure swap utilization in FreeBSD? (Assuming you are writing a script to gather performance metrics.) A: If you are writing a C program, check kvm_getswapinfo(3) and maybe take a gander at the bottom of /usr/src/usr.bin/top/machine.c. A: If you are writing a Perl script: Measure swap activity: sysctl vm.stats.vm.v_swapin vm.stats.vm.v_swapout vm.stats.vm.v_swappgsin vm.stats.vm.v_swappgsout (I believe these results are COUNTER type values, like you get from netstat -inb. You could establish swap activity by plotting changes in this value.) Measure swap size: 0-13:38 [EMAIL PROTECTED] ~ swapinfo Device 1K-blocks UsedAvail Capacity /dev/ad0s1b 1040 104 0% 0-13:38 [EMAIL PROTECTED] ~ swapctl -l Device: 1024-blocks Used: /dev/ad0s1b 104 0 If you are trying to accomodate n+1 swap devices, try this: 0-13:44 [EMAIL PROTECTED] ~ swapctl -lsk Device: 1024-blocks Used: /dev/ad0s1b 104 0 Total: 104 0 Now, perhaps the next poor soul to Google this topic may get a slightly better answer. :) Thanks, -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: cannot boot 5.3 after power failure - major bug?
stheg olloydson wrote: Thanks for the reply. I had tried that and kept getting the invalid format error. I am puzzled by the fact that I can get a directory list, but the boot loader thinks the format is wrong. Also it seems to be looking in /kernel and not /boot/kernel/. stheg, Is this a system that has been upgraded? My guess is that your boot loader was installed or configured for an earlier version of FreeBSD, where /kernel used to be the place to go ... and maybe you just don't reboot all the much, or something got knocked loose in the times before the power outage. At any rate ... check the handbook for how to replace your MBR (typically needed after installing Windows) which might do the trick. Otherwise, it is maybe missing some crucial hint from a file that got clobbered from the /boot or /kernel directories or something? I'd like to think that that will get fixed when you upgrade to 5.4. :) (If you really want to know the answer, find a good resource on FreeBSD bootstrap process. There have been changes these past few years, so I'm pretty sure people have been writing about this ...) Best Wishes, -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Mount a tar archive?
Andrew P. wrote: Hello! I have a 80G tar archive which I have nowhere to extract to. Could I mount it as a filesystem? Read-only would suffice. Andrew, Short of that solution, why not tar -t to get a list of files in the archive, then you can tar -x the files you actually want. You ought to be able to: tar -t foo.tar list.txt edit list.txt cat list.txt | xargs tar -x foo.tar -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: shell stdin redirection: possible for ssh-password input?
Rob wrote: I take for granted that my password will be there in clear text! Are there other options? Rob, Check out expect. There's even a Perl module for it. Expect is the bad old way we used to handle such problems. It is this funky sub-language designed for completing interactive sessions in an automated way. Also, please post from a legitimate e-mail address, in case someone were sufficiently good-natured to hit Reply instead of Reply All. Good luck. -danny ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Postfix and Queues
Vladimir Dvorak wrote: Well, is there any chance to reduce queue to one mail in active queue ? The system runs postfix-19991231pl08-29 - I know its very old. Vladimir, I know you can do this in qmail, but not obvious way for me to do with with Postfix. Perhaps you can find the Postfix list and ask there? Vietse is very helpful -- he will scold you as to just which part of the documentation you should have read before asking him. :) Sincerely, -danny ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Scripting oddness (sh)
David J. Weller-Fahy wrote: * David J. Weller-Fahy [EMAIL PROTECTED] [2005-03-23 20:36 +0100]: Anyone have any ideas on how to troubleshoot? It helps if I include the script. Bonus points if you inline the relevant portion, or at least name your attachment something like foo.sh. -d ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: wow ! 5.3 - 5.4 -
Alex D'Elia wrote: Hello dear people @ freebsd something wonderfull ( at least in my case ) happened since the last update of the base system on a sony vaio laptop ( CPU: Intel Pentium III (694.84-MHz 686-class CPU) ) before, when the machine was compiling, it was getting at 82 degrees with 100% CPU now, with 100% CPU it gets at maximum 52 degrees. Hello, Totally un-scientific, but I have been watching tempurature the past few days with gkrellm. I thought your report sounded pretty fantastic, so I HAD to try it out. I made world, etc. And while making world, tempurature climbed rapidly to top tempurature of 144.5F. Since booting in to the new world, and running portmanager -u, as well as streaming, plenty of work to keep the system quite loaded, it took some time to get past 120F, and now seems to top out around ... 142.7F it says now. It took a long time to get past 140F. It seems that if thre IS a difference, that maybe it takes longer to build up heat now? Ah well . . . Thanks, -danny ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: $100 SATA RAID Card 5.3 compatible
On Wed, Mar 16, 2005 at 07:52:46PM -0600, Mike Loiterman wrote: Is your solution better? You can deliver your own opinion, my resolution is at: http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/ I was able to make the atacontrol method work flawlessly via a simulated disk failure (formated it and did a atacontrol rebuild). Is gmirror more reliable? I'd say that if it aint broke, don't fix it. I still don't understand gmirror, how it works and how to properly set one up. That's probably why I'm resistant to working with it. I think atacontrol scared me a bit because it is the ATA device driver program and this inbreeding between managing hard disks and managing RAIDs bothered me, and gmirror wsa new and shiny and not-so-well-documented, so I figured I'd make that work. It seems like there are a bunch of competing interfeces to the new geom stuff and eventually a few of them will turn out to be the popular ones, and the others will become this funky weird appendices like systat. And we'll look back on our respective decisions nostalgically. -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: $100 SATA RAID Card 5.3 compatible
Mike Loiterman wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Can anyone recommend a SATA RAID card that is compatible with 5.3? The 3ware ones listed in the hardware notes are pretty expensive...over a hundred dollars for the lowest end card. Is 5.3 compatible with any of the adpatec or promise cards? What kind of RAID do you want? For a simple system-level RAID1, skip the hardware and go with gmirror. -danny ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: $100 SATA RAID Card 5.3 compatible
On Tue, Mar 15, 2005 at 05:53:30PM -0600, Mike Loiterman wrote: Can anyone recommend a SATA RAID card that is compatible with 5.3? The 3ware ones listed in the hardware notes are pretty expensive...over a hundred dollars for the lowest end card. Is 5.3 compatible with any of the adpatec or promise cards? What kind of RAID do you want? For a simple system-level RAID1, skip the hardware and go with gmirror. RAID1. I'm looking into gmirror, but it seems like it might be messy if one of the drives dies. Mike, Messy how? You keep an eye on gmirror list and it will tell you if one of the disks has died. If a disk dies, you swap in an RMA, and rebuild the mirror. If swap in the RMA involves downtime, then gmirror will see the new disk at boot and DTRT. Or have you seen too many horror stories on the mailing lists? Currently, I have a whole bunch of systems with one-off 3ware or Adaptec controllers, and I don't know how to monitor them reliably. I tried doing a 3ware a month or two back, and there was this crazy race between how old the binary versus the kernel module versus the firmware was and I just gave up. Grr! As RAID1 solutions go, gmirror take a lot of the headache out of administration. IMO, YMMV, and I have daily backups ... -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: $100 SATA RAID Card 5.3 compatible
On Tue, Mar 15, 2005 at 07:37:24PM -0600, Mike Loiterman wrote: I tried following the instructions at: http://people.freebsd.org/~rse/mirror/ and couldn't make it work. I ended up installing a minimal installation on one disk, reooting to the new install, doing atacontrol create RAID1 ad4 ad6, then rebooting to the install CD and installing into ar0. This seems to have worked. This all sounds extremely familiar. I did all of this, and it made me very quesy. So, I ripped it out and tried again. Is your solution better? You can deliver your own opinion, my resolution is at: http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/ Cheers, -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: firefox share profile in freebsd and windows!
Ean Kingston wrote: At the worst, you could export your bookmarks from one and import them into the other. Then you would just have to go through the preferences and make sure the settings are the same otherwise. I have been using Amazon's a9.com which has a browser bar for Firefox that facilitates storing bookmarks on a9.com. This way, I can do bookmarks on my FreeBSD Firefox, and pull them up on my Windows Firefox, or any computer if I visit their site. There are probably other server side bookmarks services out there. The a9 makes it a little nicer with the toolbar thingus, plus it wraps around Google's search engine, Amazon's products search engine, and Amazon.com will give you a modest discount for helping test out their wonky new feature. (The bookmark management is a little weird, because it is implemented as a web interface.) As far as duplicating profiles, I'm with Ean in figuring that trying to get the profiles to work on two utterly different platforms sounds like more trouble than it would likely be worth. I know that in the old days the Netscape folks were keen on a project to store metadata in an LDAP server ... perhaps the Mozilla foundation has some similar fetish, but you would be better off asking the Mozilla folks, who are all about cross-platform magic. -danny ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
probe dmesg status of RAIDs -- twe and amr
Hello, I have a bunch of FreeBSD systems, many with hardware RAIDs. The problem is, I have no easy way of checking to see that they are okay. I tried once to get the 3ware binary to work with the 3ware kernel module to get to work with the 3ware firmware update that I had to ... ARGHH! It was awful. On the other hand, in /var/run/dmesg : twed0: TwinStor, Normal on twe0 twed0: 114472MB (234439600 sectors) twe0: command interrupt Or, on another system: amrd0: LSILogic MegaRAID logical drive on amr0 amrd0: 140012MB (286744576 sectors) RAID 5 (optimal) I know from experience that the Normal on the twed0 means nothing broken and I like to think the optimal on the amrd0 means RAID5 is doing fine. This is enough information for me . . . if a RAID is in a failure state, I can live with gracefully failing a server, if need be, and booting in to the BIOS to get the real information. The problem is, I only get these messages when I boot . . . and I don't boot very often, of course. I have tried poking around sysctl, atacontrol, camcontrol . . . all to see how I might probe out these messages on a regular basis, but I can not figure it out. Can someone give me a tip on how to pull up bits of dmesg output while the system is running? Or if someone has better advice on checking up on the status of various flavors of RAID . . . Thanks in Advance, -danny ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
FreeBSD HOWTO: Software Mirror System Disk
[ From http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/ ] A new feature of FreeBSD 5.3 is the ability to set up a software mirror of your system disk. This allows you to boot off either of a pair of hard disks, which will then function as a RAID1, which will ensure system uptime in the face of a single disk failure. As the documentation is a bit sketchy, heres a quick cheat sheet for setting this up with gmirror: (This crib sheet assumes you have a pair of identical IDE (in my case, SATA) drives identified as ad4 and ad6.) 1. Install FreeBSD on to ad4. 2. Reboot with the Install CD. 3. Enter Fixit mode, using Install CD disc2 as the live filesystem 4. # *chroot /dist* # *mount_devfs devfs /dev* # *gmirror label -v -b round-robin gm0 /dev/ad4* # *gmirror insert gm0 /dev/ad6* # *mount /dev/mirror/gm0s1a /mnt* # *echo geom_mirror_load=YES /mnt/boot/loader.conf* # *echo swapoff=YES /mnt/etc/rc.conf* 5. Edit /mnt/etc/fstab to convert ad4 - mirror/gm0 6. Reboot Thanks to the few dozen people who have come before me, and posted crucial hints to the mailing lists. Thanks also to Ralf S. Engelschall who has a far more verbose explanation of how to do this sort of thing with mis-matched disks. [See http://people.freebsd.org/~rse/mirror/ ] http://people.freebsd.org/%7Erse/mirror/ You should definately look over the gmirror man page, and review the output of *gmirror list gm0* when swapping out drives. You can disable automatic rebuild, etc. It is quite nice. Sincerely, -danny ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD HOWTO: Software Mirror System Disk
Danny Howard wrote: As the documentation is a bit sketchy, heres a quick cheat sheet for setting this up with gmirror: (This crib sheet assumes you have a pair of identical IDE (in my case, SATA) drives identified as ad4 and ad6.) Let me apologize for Thunderbird formatting my mail goofy. (I only use it for mailing lists, silly vim weenie.) Here's a little clean-up: 1. Install FreeBSD on to ad4. 2. Reboot with the Install CD. 3. Enter Fixit mode, using Install CD disc2 as the live filesystem 4. # chroot /dist # mount_devfs devfs /dev # gmirror label -v -b round-robin gm0 /dev/ad4 # gmirror insert gm0 /dev/ad6 # mount /dev/mirror/gm0s1a /mnt # echo geom_mirror_load=YES /mnt/boot/loader.conf # echo swapoff=YES /mnt/etc/rc.conf 5. Edit /mnt/etc/fstab to convert ad4 - mirror/gm0 6. Reboot -danny ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: mouse wheel
dusan wrote: hi there. can somebody tell me the best way how to configure mouse wheel on freebsd ?? thx alt dusan, Someone already has: http://www.gsoft.com.au/~doconnor/x-wheel.html -danny ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Remote terminal sessions lock up and daemons flake out
This last problem has started to happen only lately. I log in from my FreeBSD workstation, on an xterm, via ssh to a remote machine running 4.9. I often sudo -s. I'm using tcsh. Lately, I leave the session for a while and come back and the session is locked up. I can't exit or anything. I kill the xterm and restart. I reconnect to the box, and there's no hanging session ... any advice? Possibly related. This is a Plesk box. The httpd and spamd frequently fail. I've got a duct-tape script in cron to check these demons and restart. Pointers on where I might look, perhaps in sysctl, to pinpoint what might be happening? Thanks, -danny -- Danny Howard[EMAIL PROTECTED] Technical Support Manager (312)829- x235 Server Central Network http://www.servercentral.net/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Remote terminal sessions lock up and daemons flake out
Danny Howard wrote: This last problem has started to happen only lately. I log in from my FreeBSD workstation, on an xterm, via ssh to a remote machine running 4.9. I often sudo -s. I'm using tcsh. Lately, I leave the session for a while and come back and the session is locked up. I can't exit or anything. I kill the xterm and restart. I reconnect to the box, and there's no hanging session ... any advice? To clarify, This happens only when the session is idle. I CAN ~. out of the ssh connection, and get my xterm back. -d -- Danny Howard[EMAIL PROTECTED] Technical Support Manager (312)829- x235 Server Central Network http://www.servercentral.net/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Cannot log into 4.10 machine via ssh
Peter Ulrich Kruppa wrote: Recently this doesn't work any more: We can type in our login names, but there won't be any password prompt. Even locally from the server's terminal itself nothing happens. What happens when you try to ssh? It is good to describe what error you are seeing beyond it does not work. Everything else (pinging the machine, Samba service) works fine. What can be done? Is sshd running? ps auxww | grep sshd Maybe sshd died or needs to be restarted or something. ;) -danny -- Danny Howard[EMAIL PROTECTED] Technical Support Manager (312)829- x235 Server Central Network http://www.servercentral.net/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Remote terminal sessions lock up and daemons flake out
Nathan Kinkade wrote: Perhaps you are behind some sort of stateful firewall that drops dynamic rules after a certain period of idle time? Nathan, Good call! I got ipfw in there just last week. Time to RTFM. (Yeah, this is kind of like a crappy NAT ...) And yes, I discovered the sessions are still on the box. kill -1 -1 is handy for that, though. Thanks, -danny -- Danny Howard[EMAIL PROTECTED] Technical Support Manager (312)829- x235 Server Central Network http://www.servercentral.net/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Pulling measurements of system memory?
David Thakur wrote: Take a look at rrdtool: http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/ It does graphs of system statistics. If you need to get just the variables, check the shell scripts from this package http://www.ag0ny.com/graphs/ I use this on FreeBSD to generate graphs for my server. Thanks, David. I pulled the memory measurement bits from your shell script. I couldn't find where you were measuring swap - which sysctls do you check? Sincerely, -danny -- Danny Howard[EMAIL PROTECTED] Technical Support Manager (312)829- x235 Server Central Network http://www.servercentral.net ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Pulling measurements of system memory?
What's the easiest command to read to get good information on memory usage? I played with /sbin/sysctl -n hw.physmem hw.usermem vm.kvm_size vm.kvm_free yesterday but I have the feeling that these are not the numbers I think they are, because they add up wrong. There's some pretty good stuff at the top of top, but I'd be happier with output in raw numbers of bytes, to feed to my graphing program. This would also save the trouble of reinterpreting M into * 1024^2. Thanks in advance for any tips. Sincerely, -danny -- Danny Howard[EMAIL PROTECTED] Technical Support Manager (312)829- x235 Server Central Network http://www.servercentral.net ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
How do I calculate the size and utilization of my VM from sysctl?
Phil Schulz wrote: Danny Howard wrote: What's the easiest command to read to get good information on memory usage? I played with /sbin/sysctl -n hw.physmem hw.usermem vm.kvm_size vm.kvm_free yesterday but I have the feeling that these are not the numbers I think they are, because they add up wrong. There's some pretty good stuff at the top of top, but I'd be happier with output in raw numbers of bytes, to feed to my graphing program. This would also save the trouble of reinterpreting M into * 1024^2. [...] Are you looking for vmstat(8)? Actually, I'm looking for: How do I calculate the size and utilization of my VM from sysctl? vm.kvm_size is not consistent with the size of swap output by top. But then, I'm not sure what kvm is supposed to be anyway. I've looked at vm.stats.vm.v_page_size * vm.stats.vm.v_page_count but that aint right either ... ? Thanks, -danny -- Danny Howard[EMAIL PROTECTED] Technical Support Manager (312)829- x235 Server Central Network http://www.servercentral.net ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Sendmail deferred email?
JJB wrote: I see in mail log some deferred email being held. Is there a way to clear this email from sendmail? Maybe so sendmail sub command? sendmail -q -- Danny Howard[EMAIL PROTECTED] Technical Support Manager (312)829- x235 Server Central Network http://www.servercentral.net ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: /var/log/messages question
Mike Jackson wrote: I pipe those, and other messages to a virtual terminal, like this: syslog.conf -- *.err;kern.debug;auth.notice/dev/ttyv3 ... and then what do you do with this virtual terminal? Just check alt+f3 every so often? -- Danny Howard[EMAIL PROTECTED] Technical Support Manager (312)829- x235 Server Central Network http://www.servercentral.net ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: mail/majorcool
On Sat, Jul 20, 2002 at 06:32:26PM +0600, éÌØÑ ûÉÐÉÃÉÎ wrote: Dear Sirs, after installing the port I see the following message in httpd-error.log: [Sat Jul 20 18:31:15 2002] [error] [client 212.57.175.94] Premature end of script headers: /usr/local/www/cgi-bin/majordomo what should I check ? Look in /var/log/apache-error. It maybe be called httpd-error. Anyway, when a CGI spews anything to STDOUT, it gets recorded there. You'll likely get a clue as to why majorcool is bombing out on you. -danny -- http://dannyman.toldme.com/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message