Re: Where I can find boot's dmesg
At 17:31 27.01.2005 +0700, Supote Leelasupphakorn wrote: Hi cali, Sorry for my bad English. I mean how can I find the booting message that shown at boot time before login: prompt such as CPU MHz Memory KBytes Take a look at /var/run/dmesg.boot Alexander -- Alexander Haderer Charite Berlin - Germany ___ 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 add a local patch to a port?
At 13:04 09.03.2004 -0500, Shaun T. Erickson wrote: Shaun T. Erickson wrote: ... I looked at the porter's handbook, and it says that simply dropping the patch into the files directory should get it automatically applied, but it's not. The patch is named patch-aa and is relative to the WRKSRC directory. Suggestions? Patching the wrong file? Patching an already patched file? Patching in wrong direction: old --- new exchanged by accident? directory for patch ok? shouldn't it be relative to extracted sources dir within WRKSRC? Just what came in my mind... Alexander ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How do I add a local patch to a port?
At 13:41 09.03.2004 -0500, Shaun T. Erickson wrote: ... Well, cd'ing into the work directory and then into the source directory and saying: patch patchfile correctly patches the file ./dir/file2bepatched So, if patchfile is in the files directory, it ough to just work, yes? But it isn't. Just another guess: Probably it makes a difference if the patchfile patches ./dir/tobepatched and dir/tobepatched. A brief look into other ports shows me that the latter is used. I don't know if it have to be this way or not. Alexander ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: How to deal with package conflicts (apache)?
At 03:21 14.02.2004 +1030, Wayne Sierke wrote: Kris Kennaway wrote: On Mon, Feb 09, 2004 at 05:24:32PM +1030, W. Sierke wrote: How should I deal with package conflicts such as apache13/apache13-mod_ssl... I've installed apache13-mod_ssl but a couple of other ports I want to install want apache13 (specifically apache-1.3.29_1) which complains of a package conflict (with apache+mod_ssl-1.3.29+2.8.16) so I'll have to force the installation. Is there a way of convincing the new packages that apache13-mod_ssl is an adequate substitute for apache13? Set the APACHE_PORT variable (to www/apachewhatever) in /etc/make.conf. This will only work with ports, not packages, for which one can only use the default settings. Ok, does it matter that the port I want to install doesn't have any references to APACHE_PORT in its Makefile? Grepping through /usr/ports I can see that many ports do, but the port I want to install (mail/squirrelmail) doesn't. If squirrelmail has a direct dependecy like BUILD_DEPEND=...www/apache13 then it does matter. If squirrelmail depends on other ports that have this kind of dependency then it does matter too, if these other ports have their dependency set via APACHE_PORT then it does not matter. Here we had a similar problem with apache13 packages: We have different setups for workstations/servers, some have mod_ssl apache some have apache13 only. All setup is done via packages, not ports. We have a compile workstation that creates the packages to install. Our solution: Ports may have subversions, which allows dependend packages to refer to the port and accept all subversions as a valid dependency (with a warning). Example: You can install the popular postgresql database either as server or as client only. All deps to postgres client will be fullfilled by both packages. To build mod-ssl apache13 package as a variant of the apache13 I renamed www/apache13-modssl to www/apache13 (necessary for pkg-database) and modified the Makefile like this: diff Makefile.orig Makefile 8,9c8,9 PORTNAME= apache+mod_ssl PORTVERSION= ${VERSION_APACHE}+${VERSION_MODSSL} --- PORTNAME= apache PORTVERSION= ${VERSION_APACHE} 16a17 PKGNAMESUFFIX=-modssl The last line make the variant of apache13: apache13-modssl. Well, this is of course a hack, because modifications of the ports usually are not such a good idea: If you cvsup all modifications will be lost. Our focus was to have precompiled packages for automated setup. We modified the ports Makefiles because we believe that we know what we are doing (and others will know better and roll the eyes :-). Most probably there is a better solution for this scenario but I didn't found one and I wanted to learn more about the ports system so I did it this way. Alexander ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: swap space
At 09:43 12.12.2003 -0500, M.D. DeWar wrote: I seem to be running out of swap space swapinfo shows 80-95% filled. Mostly from mrtg. is there a way to see whats else is eating it up ? top -o size man top Alexander ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Stupid vinum questions
At 17:57 10.12.2003 +0100, Peter Ulrich Kruppa wrote: I have got some old and small SCSI harddisks left. 1) Can I use vinum to make them look like one big ufs slice (or is it more like a partition, which can be sliced)? Its like a partition/partitions that you newfs and mount like: mount /dev/vinum/bigdrive /lotofdisks 2) Can I boot from such a thing, or do I need a seperate disk? This depends which version of FreeBSD you are using. Older versions need some tricks, but there is a doc in /usr/share/doc/en/articles/vinum/ which descibes how to setup this. I am not sure, but 4.9R and/or 5.1R may be able to boot directly via vinum. man 4 vinum man 8 vinum http://www.vinumvm.org/ 3) Is there some fine manual around, that could be used as a starting point for reading? (I had a look at at my copy of The Complete FreeBSD, but I guess I wouldn't ask these questions, if I had understood it.) See above, plus FreeBSD handbook Alexander ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: UDMA ICRC Error
At 17:04 03.11.2003 +0100, Tomas Nyman wrote: Hi! I have a serious problem with 3 of my harddrives, the fail to enter DMA mode on boot, I can force them into udma5 using atacontrol but after a few reads I will get the same error and they will fall back into PIO4 mode. The 3 disks are in a Vinum array consisting of 6 drives, the other 3 are working fine. Sometimes when I try to boot I get this error: Fatal trap 12: page fault while in kernel mode fault code = supervisor read, page not present ... DMESG: Copyright (c) 1992-2003 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.9-RELEASE #1: Thu Oct 30 19:09:30 CET 2003 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/SOPP . atapci1: Promise TX2 ATA100 controller port 0xa400-0xa40f,0xa000-0xa003,0x9c00-0x9c07,0x9800-0x9803,0x9400-0x9407 mem 0xdb00-0xdb003fff irq 7 at device 11.0 on pci0 ata2: at 0x9400 on atapci1 ata3: at 0x9c00 on atapci1 ad6: 194481MB Maxtor 6Y200P0 [395136/16/63] at ata3-master UDMA100 ad7: 194481MB Maxtor 6Y200P0 [395136/16/63] at ata3-slave UDMA100 ... Maybe this is related with http://www.freebsd.org/cgi/query-pr.cgi?pr=35461. Although I answered that the problem still exists the PR gets closed. Probably because others were not able to reproduce this or were not affected. Another disk related trap 12 problem is: http://www.freebsd.org/cgi/query-pr.cgi?pr=58391 Can you reproduce this? Does the problem still occur if you remove one of the two Promise controllers? Probably you should reopen the PR 35461. Sorry, no real answers... Alexander ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: writing pdfs
At 08:31 10.10.2003 -0400, William O'Higgins wrote: I have grown tired of using MS Word as my standard document output format. I haven't gotten OpenOffice to work under FreeBSD (and it isn't my favourite tool by a long shot) and I am most happy generating text in vi. PDF is eminently portable, and I think that it would suit my purposes nicely. I had some thoughts about generating PDFs, but I was hoping for advice about which tools to use. Should I just learn how to mark up a text page manually (I write HTML almost as quickly as plain text)? I think no, because: - modern pdf uses compression - pdf has/may have a non linear contents: page one may be located somewhere in the pdf. - Expect pdf readers that behave strange when displaying odd pdf files Should I learn TeX or some variant and translate it? My opinion: yes. Learn the basics of LaTeX and use pdflatex instead of latex to create pdf files directly from your tex source. The old way of generating pdf via tex-dvi-ps-pdf via the classic (la)tex commands has the disadvantage that you have to deal with different ps-fontencodings (type 1 / type 3 or Pixelfont vs. Outline font) with the bad sideeffect that your pdfs have crippled and slow display on screen while printing works fine. google is full of messages regarding this topic. Advantages of (la)tex: the possibility to include images into your documents without problem and tables and footnotes and index and table of X and ... pdflatex is part of the (almost) complete tex distribution teTeX: /usr/ports/print/teTeX. This port has lots of documentation onboard. For more information about tex see: http://www.ctan.org/ If you think tex is much too fat for your needs because you only want to write some lines of text consider using groff (base system) with ps output and then convert this output to pdf via ps2pdf (part of /usr/ports/print/ghostscript-gnu-XXX) Alexander ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: writing pdfs
At 07:59 10.10.2003 -0600, Tillman Hodgson wrote: On Fri, Oct 10, 2003 at 03:06:23PM +0200, Alexander Haderer wrote: My opinion: yes. Learn the basics of LaTeX and use pdflatex instead of latex to create pdf files directly from your tex source. The old way of generating pdf via tex-dvi-ps-pdf via the classic (la)tex commands has the disadvantage that you have to deal with different ps-fontencodings (type 1 / type 3 or Pixelfont vs. Outline font) with the bad sideeffect that your pdfs have crippled and slow display on screen while printing works fine. google is full of messages regarding this topic. I agree with the recommendation to learn LaTeX. It's probably the best way to generate PDF output and it's widely used for document generation. I disagree that one needs to use pdflatex, though. Those side-effects you mention are trivial to get rid of: 1. \usepackage{times} (or palatino or bookman or whatever font package you like) Does this work without _any_ problems when you want to use the (tex-default) computer modern fonts? My experiences over the last years with different platforms and latex installations are, that you alway have to google-around to get this working. I use LaTeX/pdf output only from time to time so I am not the big expert, but using pdflatex a while ago was the first time I got the CMR fonts into a pdf without any display/print problems. I just made some slight modifications to my latex file necessary for pdflatex (mentioned in the pdflatex doc) and whoops, there it was. Alexander ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: make package with deps?
At 09:35 09.10.2003 -0400, Lowell Gilbert wrote: [EMAIL PROTECTED] writes: Is it possible to make also the dependant packages when doing a make package command. make package-recursive (as Kris Kennaway has already posted here several times this week) I think this is because 4.8R (and older?) neither have this package-recursive target nor it is mentioned in the docs (4.8R handbook/faq/porters handbook). Should I write a PR to add this topic into the faq? Alexander ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: port for batch image manipulation?
At 22:34 02.10.2003 -0600, Warren Block wrote: On Fri, 3 Oct 2003, JacobRhoden wrote: Does anyone know of a good port which will simply resize a directory of jpg's to a specified (proportional) size? I'm pretty sure graphics/ImageMagick will do it; probably the mogrify command. (It's not on this machine or I'd check...) Yes, ImageMagick's convert command will do the job. If you downscale images to icons you should compare the resulting image qualtity with icons generated with graphics/netpbm tools (pnmscale). Another tool to scale images may be graphics/xv Alexander ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Simple Make question.
At 14:54 23.09.2003 +0200, Michael Vondung wrote: This is one of those questions that label me as a complete neophyte, but, how does one specify a paramter for the Make tool? When trying to make install the port of the Qt version of licq (net/licq-qt-gui), a message said that I could compile this port with KDE support by defining WITH_KDE. I've tried this with make WITH_KDE install, make -WITH_KDE install and make -WITH_KDE=yes install, but none of these worked. How can I achieve this? make WITH_KDE=yes install ? Alexander ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: What's the meaning of these arp messages...
At 08:23 19.09.2003 -0700, RA Cohen wrote: Hi, I have a FBSD 4.8 box running Samba in my network. Lately I am noticing some strange messages at the console concerning my firewall. The messages basically say the MAC address of my linux firewall's internal ip address has changed...and 15 minutes later changed again (to the original MAC address)...and so on. Sounds like the IP address of your firewall is used by another machine. Alexander ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Script doesn't complete via Cron
At 14:26 12.09.2003 -0400, Gerard Samuel wrote: ... scp -q foo.zip server_name: rm -rf foo_dev foo.zip -- Cron job - -- # export, zip up and scp foo source to server_name 17 14 * * * /home/bar/bin/export-foo 2 /dev/null /dev/null -- When I execute the script by hand, it completes without any problems. When I let a cronjob handle it, it doesn't scp the zip file to the remote server. I don't get any errors in /var/log/auth.log or /var/log/messages Anyone has any ideas on how to fix this up? We had a similar problem with scp if I remember right. The problem was the remote server where a message was echoed during login with ssh (some echo stuff in the .profile or something like this). It seemed to be that scp got this echo-message too and then failed to operate. After removing the echo commands everything worked fine. Note: I may be wrong, its long time ago. Alexander -- -- Alexander Haderer Charite Campus Virchow-Klinikum Tel. +49 30 - 450 557 182Strahlenklinik und Poliklinik Fax. +49 30 - 450 557 117Sekr. Prof. Felix Email [EMAIL PROTECTED]Augustenburger Platz 1 www http://www.charite.de/rv/str/ 13353 Berlin - Germany -- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Monitoring tool
At 09:23 14.08.2003 -0400, Ben Dover wrote: I am looking for a monitoring tool that will notify my cell phone when my FreeBSD box is down or off line. It could be as simple as an application that runs on another FreeBSD box or Win box and pings the server and when it doesn't respond to pings it sends and alert to my cell phone. I'm sure there are more sophisticated programs out there to alert server status and I would be interested in those too but something basic to get started would be fine. Thanks Take a look at Nagios: http://www.nagios.org It in the ports tree. Their homepage also mention other monitoring tools. Alexander ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Script help needed please
At 08:49 14.08.2003 -0500, Jack L. Stone wrote: ... When we started providing the articles 6-7 years ago, folks used browsers to read the articles. Now, the trend has become a more lazy approach and there is an increasing use of those download utilities which can be left unattended to download entire web sites taking several hours to do so. Multiply this by a number of similar downloads and there goes the bandwidth, denying those other normal online readers the speed needed for loading and browsing in the manner intended. Several hundred will be reading at a time and several 1000 daily. A possible solution? What comes to my mind: - Offer zip/tar.gz archives via an ftp server to your customers. - allow customer's server to mirror your ftp-server - probably: setup a mailing list to inform your customers about changes/updates Of course you can additionally install some bandwith limitation stuff. (But I don't know one, sorry). Alexander ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Using bc in bash script
At 11:45 14.08.2003 -0500, Charles Howse wrote: Can I refine it to give me something like: .784 seconds? Use bc -l instead of bc. That should do it. No, that still gives 0 seconds. I think this whole thing is dependent on the fact that `date +%s` reports integers. I'm still interested in something like .874 seconds, but for the time being, I'll just use an if..then..else to say less than 1 second or the actual number of seconds. I've looked at the time command suggested by Jez, haven't tried it yet. Note the trap: shell's builtin time command differs somewhat from installed /usr/bin/time! man time man builtin man your_shell Alexander ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Using bc in bash script
At 11:35 14.08.2003 -0500, Kirk Strauser wrote: At 2003-08-14T16:08:21Z, Charles Howse [EMAIL PROTECTED] writes: Can I refine it to give me something like: .784 seconds? Use bc -l instead of bc. That should do it. Yes, but not in the context mentioned before: Start_time=`date +%s` # Seconds past midnight at start of script [ do lots of stuff ] End_time=`date +%s` # Seconds past midnight at end of script et=`echo $end_time - $start_time | bc -l` Here bc -l will not really help, because date +%s returns whole seconds :-( BTW: %s are seconds since epoch Alexander ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to send a PR without send-pr?
At 09:20 13.08.2003 +0100, Scott Mitchell wrote: On Tue, Aug 12, 2003 at 08:47:03PM +0200, Toni Schmidbauer wrote: trying to answer q2 because q1 was too complicated :-) edit /etc/mail/submit.cf and change D{MTAHost}[localhost] to D{MTAHost}[global mail server] restart sendmail. this is untested, so let me know if it works for you. because relaying over global mail server is only permitted after a successfull pop login, use fetchmail just before sending the mail: fetchmail -c -p pop3 -u your username global mail server Possibly easier to edit /etc/mail/freebsd.submit.mc. Change the last line: FEATURE(`msp', `[127.0.0.1]')dnl to FEATURE(`msp', `your.mail.server')dnl ... I tried Scott's version together with fetchmail, it did't work. After fetchmail ... I did a mail [EMAIL PROTECTED] and I get a dead.letter without any error information. Thanks for your answers. Meanwhile I got send-pr working by doing two things: 1. send-pr is just a shell script which calls /usr/sbin/sendmail to deliver the message. send-pr reads the env MAIL_AGENT. When setting the env Variable MAIL_AGENT to /usr/sbin/sendmail -oi -t [EMAIL PROTECTED] instead of the default /usr/sbin/sendmail -oi -t it worked. Here -f did the trick because our mailserver only allows relaying mail to outside when the originator has a valid public email address which is known to our mail server. 2. Modify /etc/mail/freebsd.cf: add define(`SMART_HOST' `our.mail.server') This works. Just for curiousity: Is there a place in /etc/mail where I can tell my sendmail daemon that: - it should use [EMAIL PROTECTED] when sending mail - it maps local users like jd to [EMAIL PROTECTED] for this -f thing I dont want to read my mail on the FreeBSD machine, it would be just nice if a mail [EMAIL PROTECTED] somefile would work, because now I have to transfer somefile to my Winbox' Email programm somehow. with best regards, Alexander Haderer -- -- Alexander Haderer Charite Campus Virchow-Klinikum Tel. +49 30 - 450 557 182Strahlenklinik und Poliklinik Fax. +49 30 - 450 557 117Sekr. Prof. Felix Email [EMAIL PROTECTED]Augustenburger Platz 1 www http://www.charite.de/rv/str/ 13353 Berlin - Germany -- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
How to send a PR without send-pr?
hello, I have just made a new port which I want to make available for the ports collection. The problem I have: - The web based PR submit form is down. - send-pr does not work for me because I am sitting behind a firewall We have a global mail server for our company that handles all mail traffic. Users contact this mail server with their favourite mail clients (Netscape, Kmail, Eudora, ...) via SMTP with auth or SMTP after POP. My FreeBSD workstation from which I want to send the PR via send-pr has its default sendmail config and can not send mail to anywhere outside the world. This is no problem so far as I just use a Win-mail client for my mail communication. When I run send-pr I get an email to my campus email account: The original message was received at Tue, 12 Aug 2003 17:59:29 +0200 (CEST) from localhost.str.charite.de [127.0.0.1] - The following addresses had permanent fatal errors - [EMAIL PROTECTED] (reason: 554 [EMAIL PROTECTED]: Relay access denied) ... I asked the network admins how to configure my FreeBSD box and they told me to set a relay host in my config. I looked into /etc/mail and /usr/share/sendmail/cf/README and saw a lot of things I really don't want to know about. Q1: How can I submit the PR without send-pr and without the web-interface? (or, if this to complicated:) Q2: Is there a chance to setup my local sendmail that it can send mail worldwide? (Is this really such a hard job? All this stupid mail clients are able to talk to our mailserver and they can send mail all over the world) with best regards, Alexander ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Can vi edit binary file in hex format?
At 11:00 09.07.2003 +0100, Daniel Bye wrote: On Wed, Jul 09, 2003 at 06:15:36AM +0100, Supote Leelasupphakorn wrote: Is there option that enable standard vi (accompany wiht FreeBSD) for editing binary file in hex format ? Don't know, but there are a handful of hex editors in ports. Maybe one of them will fit? [danielby: /usr/ports]$ make search name=hex | grep ^Path:.*/editors Path: /usr/ports/editors/chexedit Path: /usr/ports/editors/ghex Path: /usr/ports/editors/ghex2 Path: /usr/ports/editors/hexcurse Path: /usr/ports/editors/hexedit Path: /usr/ports/editors/hexpert Path: /usr/ports/editors/lfhex One is missing: A vi-lookalike hex editor from the ports: /usr/ports/editors/bvi Alexander -- -- Alexander Haderer Charite Campus Virchow-Klinikum Tel. +49 30 - 450 557 182Strahlenklinik und Poliklinik Fax. +49 30 - 450 557 117Sekr. Prof. Felix Email [EMAIL PROTECTED]Augustenburger Platz 1 www http://www.charite.de/rv/str/ 13353 Berlin - Germany -- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Using a RAID-card with FreeBSD
At 12:39 02.07.2003 -0500, Micheal Patterson wrote: [...] It works equally well with Adaptec hardware raid with 5 SCSI drives in a Raid 5 configuration. Gotta love FreeBSD. Although, not everyone needs raid 5, but it's nice to know that it works and works well. hello Michael, please could you tell us which Adaptec hardware you are using at which FreeBSD version. How do you manage the raid on the running system? Is there a console application to do things like configuration, drive-shutdown etc... with best regards, Alexander -- Alexander Haderer Charite Berlin - Germany ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD and Promise PDC20276
At 10:03 26.03.2003 -0600, Josh Paetzel wrote: On Wed, Mar 26, 2003 at 04:58:49PM +0100, Pawe? wrote: Hi, Does FreeBSD 4.8-RC2 support Promise PDC20276 controler ? (RAID 1) : Most certainly does. I'm using one right now in RAID 1. :) Does it also work with large harddisks (160GB ore more)? 4.7R and PDC20267 don't work with large disks, see: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/35461 BTW: Although I send feedback it doesn't appear there as I just noticed. with best regards, Alexander -- -- Alexander Haderer Charite Campus Virchow-Klinikum Tel. +49 30 - 450 557 182Strahlenklinik und Poliklinik Fax. +49 30 - 450 557 117Sekr. Prof. Felix Email [EMAIL PROTECTED]Augustenburger Platz 1 www http://www.charite.de/rv/str/ 13353 Berlin - Germany -- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: rl(4): autoselect/manual media == no carrier at boot time?
At 15:01 25.03.2003 +0100, Olivier Dony wrote: Hello, that's me again :) [... realtek has no carrier...] My question is, is it possible that setting the media to 100baseTX full-duplex could cause problems for carrier detection at boot time? Or is my ISP lying and they unplugged the network just right during the kernel panic and only plugged it back after a while? This doesn't sound likely... I do not feel like rebooting again right now just to see if using autoselect works, I'd rather not have to call them today to fix it once more ;-) Sounds like that at the other end of the patchcable autoselect still is active and is unable to agree with the fixed media realtek card. So I would suggest to check the router/switch at the other end of the patchcable and to also switch off autoselect there. tcpblast from the ports is a handy tool to check tcp troughput. To be on the safe side you should tcpblast in both directions. Expect about 10 Mbytes/s with no other network load. Btw.: I have no experience with Realtek hardware, so there may be other things here causing the error. with best regards Alexander -- Alexander Haderer Charite Berlin - Germany To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Three Terabyte
At 10:26 21.03.2003 +1030, Greg 'groggy' Lehey wrote: On Thursday, 20 March 2003 at 13:13:18 +0100, Alexander Haderer wrote: At 12:53 20.03.2003 +0100, Maarten de Vries wrote: This would be for backup. Data on about 50 webservers would be backed up to it on a nightly basis. So performance wouldn't be important. Sure? Consider this: a. Filling 3TB with 1 Mbyte/s lasts more than 800 hours or 33 days. I do a nightly backup to disk. It's compressed (gzip), which is the bottleneck. I get this sort of performance: dump -2uf - /home | gzip /dump/wantadilla/2/home.gz ... DUMP: DUMP: 1254971 tape blocks DUMP: finished in 217 seconds, throughput 5783 KBytes/sec DUMP: level 2 dump on Thu Mar 20 21:01:31 2003 You don't normally fill up a backup disk at once, so this would be perfectly adequate. I'd expect a system of the kind that Maarten's talking about to be able to transfer at least 40 MB/s sequential at the disk. That would mean he could backup over 1 TB in an 8 hour period. Of course you are right. My note a. was meant as a more general hint to think about transfer rates when dealing with large files/filesystem. Maarten gave no details about how the webservers are connected with the backup server. I should have give more details of what I mean: When backing up 50 Webservers over network to one backup server the network may become a bottleneck. If you have to use encrypted connections (ssh) because the webservers are located elsewhere you need CPU power at server side for each connection. b. Using ssh + dump/cpio/tar needs CPU power for encryption, especially when multiple clients safe their data at the same time. You can share the compression across multiple machines. That's what was happening in the example above. It is a good idea to do compression at the client side. As I understand your example /dump/wantadilla/2 is either a local dir or connected via NFS. The latter requires a local network if you don't want to do NFS mounts across the Internet. Is this right? with best regards Alexander -- -- Alexander Haderer Charite Campus Virchow-Klinikum Tel. +49 30 - 450 557 182Strahlenklinik und Poliklinik Fax. +49 30 - 450 557 117Sekr. Prof. Felix Email [EMAIL PROTECTED]Augustenburger Platz 1 www http://www.charite.de/rv/str/ 13353 Berlin - Germany -- To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Three Terabyte
At 12:53 20.03.2003 +0100, Maarten de Vries wrote: On Thu, 20 Mar 2003, Dirk-Willem van Gulik wrote: Depends on what access patterns you have; is it mostly dormant archiving; or lots of access, concurrent, sequential ? How safe does the data need to be; and against what (hardware failure, accidental rm -rf). This would be for backup. Data on about 50 webservers would be backed up to it on a nightly basis. So performance wouldn't be important. Sure? Consider this: a. Filling 3TB with 1 Mbyte/s lasts more than 800 hours or 33 days. b. Using ssh + dump/cpio/tar needs CPU power for encryption, especially when multiple clients safe their data at the same time. c. When using FreeBSD 4.X a fsck after a hard reboot will block the server. fsck'ing a full 3TB filesystem may need a long time. Its better to use several smaller file systems. d. Wrong parameters for newfs may slowdown large filesystems and waste lots of space. Before using large filesystems read the manpage of newfs, especially the topics about options -b -f -i with best regards, Alexander -- Alexander Haderer Charite Berlin - Germany To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Possible drive failing??
At 11:23 13.03.2003 -0600, Mike Meyer wrote: In [EMAIL PROTECTED], Dragoncrest [EMAIL PROTECTED] typed: Hi all. I got this message in my daily reports and I've got a question. Does this signal possible disk troubles or potential failure? Here's the message. ad0s1g: hard error writing fsbn 13434039 of 5930556-5930559 (ad0s1 bn 13434039; cn 836 tn 58 sn 45) trying PIO mode ad0: DMA problem fallback to PIO mode Is that something I can ignore, or should I keep an eye on this?? Well, there is some possibility that it's just a one-time hiccup. More likely, the drive has already exhuasted it's supply of replacement blocks, as modener drives do bad block remapping all by themselves. In the latter case, the drive is about to fail catastrophically. At the very least, I'd keep a very close eye on the drive, and double-check my backups if I saw that happen to one of my drives. Depending on how critical that system is, I may have a backup ready, or replace the drive under controlled conditions before things get worse. I completly agree with Mike. We have lots of IDE disks running under FreeBSD and made some experience. Here are some additional Tips: 1. The disk may still run for some days and then fail completly with a kernel hang, as Mike wrote above. 2. Switching the system off and on may force the final shutdown of the disk. 3. try doing a backup with PIO mode on as long as the disk is willing to talk to you 4. download the diagnosis tool from the disk manufacturer and do a deep test. According to your message I expect the diagnosis will detect errors. Check the drive guarantee. 5. Cable and connector problems usually show up as UDMA CRC error with falling back to PIO. In this case try to downclock the UDMA mode with atacontrol mode (FreeBSD 4.6 ? and above). with best regards Alexander -- Alexander Haderer Charite Berlin - Germany To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Vinum raid0 disk dies
At 18:27 07.03.2003 +0100, Thomas von Hassel wrote: So if one of your disks in a vinum raid´0 dies there is absolutly nothing you can do right ? ...just checking before i zero the other drives .. It depends how dead your disk is: If its completly gone away (disappeared in kernel boot message) your only chance I see is to start searching for the backup. If the disk only has some dead sectors, you can try to clone the data with dd to a new disk. This is slow and cumbersome, and as a result you have some blocks of invalid data on the new disk. The trick with dd is to skip the dead sectors and to use a blocksize of 512. See man dd for the options seek and skip. dd copy blocks until it detects a bad block. Here you have to start over with new seek/skip to jump over the dead sector. So the job would be something like this: - umount vinum fs - stop vinum - add new disk to system - clone old disk with dd to new disk - remove old disk and install new disk instead - new disk: zero first 265 sectors of the slice - disklabel new disk as was the old disk (Handbook: Adding disks) - vinum create -f diskfile (see http://www.vinumvm.org replacing disks) - start vinum - vinum setstate of disks/plex/vol to up - vinum saveconfig - fsck vinum fs - mount vinum fs Changes are good to destroy all data with this steps shown above. Read manpages dd, vinum, disklabel, fdisk. Understand what you do. Think before hitting return. Expect the worst when using the wrong parameters. Use backups. with best regards Alexander -- Alexander Haderer Charite Berlin - Germany To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
vinum: low level access to subdisks / drives
Hello, Here is a vinum question. Assume this setup: Two partitions ad0s1e and ad2s1e of type vinum with the same size. vinum is set up to use this disks as RAID 1 (mirror): drive drive0 device /dev/ad0s1e drive drive2 device /dev/ad2s1e volume mirr plex org concat sd len 0s drive disk0 plex org concat sd len 0s drive disk2 newfs has been done and the /dev/vinum/mirr is mounted to /mirr with rw access. Everything is working without problem. Because we do not rely on the harddisks and the files at /mirr are accessed seldom and random, we want to check, if all sectors of the disks ad0 and ad2 are readable without problem. To do so, we want to run a nightly low priority cron job that tries to read all sectors of a disk without further analyzing the data read. The result of a failed read (hard disk failure) will be a kernel message in /var/log/messages, which we monitor 24x7 a day. Lets say we do dd for reading the sectors: dd if=/dev/ad0s1 of=/dev/zero bs=1024k Questions: 1. Will this conflict with vinum or its internal (kernel) data structures when vinum is running the same time with all components of the RAID 'up'? 2. Will this conflict with parallel read/write access to /mirr ? 3. Should we use dd if=/dev/vinum/sd/mirr.p0.s0 ... instead of /dev/ad0s1e ? with best regards Alexander -- Alexander Haderer Charite Berlin - Germany To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message