Re: Corrupted OS
/etc/fstab says ufs. Is there a better way to check if its ufs2? Drew2 Garrett Cooper [EMAIL PROTECTED] wrote: On Mar 16, 2007, at 7:34 PM, Drew Jenkins wrote: How large is large? Why filesystem are you using with what options?The MySQL database was just under a gigabyte, and the Zope Data.fs file/database was somewhere under 2 gigabytes. Options? No options. I had symlinks from where these dbases were supposed to live on the SCSI drives to the 500 GB drive. Then suddenly, poof! They were gone. Drew Well, I was curious because I thought it could be something to deal with the 2GB file limit. You still haven't answered my question about the filesystem though: are you using UFS2 or something else? Thanks, -Garrett ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] - Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Corrupted OS
I go to run /usr/sbin/sysinstall. It brings up a little GUI and asks me to select. I selected post-installation configuration, and it sent me back to a prompt! So I tried again, selecting the recommended configuration to start over again, and it again sent me back to a prompt! Besides, this is kinda dangerous. Got another, perhaps more complex but *safer* way to determine if it's ufs1 or 2? 2Also, what are softupdates and why do I need them? TIA, Drew Garrett Cooper [EMAIL PROTECTED] wrote: Drew Jenkins wrote: /etc/fstab says ufs. Is there a better way to check if its ufs2? Drew2 Garrett Cooper wrote: On Mar 16, 2007, at 7:34 PM, Drew Jenkins wrote: How large is large? Why filesystem are you using with what options?The MySQL database was just under a gigabyte, and the Zope Data.fs file/database was somewhere under 2 gigabytes. Options? No options. I had symlinks from where these dbases were supposed to live on the SCSI drives to the 500 GB drive. Then suddenly, poof! They were gone. Drew Well, I was curious because I thought it could be something to deal with the 2GB file limit. You still haven't answered my question about the filesystem though: are you using UFS2 or something else? Thanks, -Garrett The easiest way to figure out if you're running UFS2 is to go to the disk label feature within sysinstall, and define a mount point for the slice. Make sure _not_ to make any changes though as you'll be thrusting yourself in the middle of a system upgrade (CTRL-C is your friend). If it's ufs1, it should definitely be converted to ufs2. There were some serious limitations in ufs1, in particular dealing with file size (2GB limit I believe) and features. Someone else on the list might be able to advise you or point you in the right direction if you want more details.. Also, you should be running softupdates. If not you're playing a risky game of russian roulette with your data, where if corrupted things can disappear between reboots if you didn't power down the machine properly (power down via ATX dead man power switch, power loss, etc). If all else fails and you're not running ufs1 on the disk, try upgrade your bios or firmware controller that the disk is operating on, and get back to us with more details. Cheers, -Garrett ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] - Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Corrupted OS
23Hi; Is it possible to rebuild an OS without reformatting the hard drive? I have FBSD6.2, so I can't upgrade. TIA, Drew 8:00? 8:25? 8:40? Find a flick in no time with the Yahoo! Search movie showtime shortcut. http://tools.search.yahoo.com/shortcuts/#news ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Corrupted OS
Well, that's what I thought, I just wanted to be sure. I've done that once before. As I recall, there was a very long string of questions I had to answer at one point. I pretty much just told the system not to change things, go with defaults, etc. That's the safest bet, right? This is similar to reinstalling Windoze on top of an existing installation, right? TIA, Drew - Original Message From: Christian Walther [EMAIL PROTECTED] To: Drew Jenkins [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Sent: Friday, March 16, 2007 6:45:40 AM Subject: Re: Corrupted OS On 16/03/07, Drew Jenkins [EMAIL PROTECTED] wrote: 23Hi; Is it possible to rebuild an OS without reformatting the hard drive? I have FBSD6.2, so I can't upgrade. What are you trying to do? You could always go to /usr/src and do a make buildworld, which would rebuild the entire FreeBSD userland. Ports can be rebuilt, too, for example by doing a portupgrade -afk TIA, Drew Christian Don't get soaked. Take a quick peek at the forecast with the Yahoo! Search weather shortcut. http://tools.search.yahoo.com/shortcuts/#loc_weather ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Corrupted OS
How do I know the kernel has not become corrupted? Actually, as I think about it, I should probably rebuild the kernel anyway to work with packet filters. Here are my notes from the last time I updated: /usr/src/UPDATING and /usr/src/Makefile? I'm not sure what I mean by the above, but should I use the Makefile and not UPDATING? synch your source to 6.2 How? And is this necessary since it's already at 6.2? cvsup -g -L 2 supfile cd /usr/src make clean;make cleanworld make buildworld cd /usr/src/sys/i386/conf/ # back up any custom config there is cp GENERIC BACKUP_CONFIG cd /usr/src make buildkernel KERNCONF=LOCAL # use this from now on! make installkernel KERNCONF=LOCAL # use this from now on! # Note: LOCAL is a copy of GENERIC in the same folder (/usr/src/sys/i386/conf/GENERIC) # with changes for pf as follows: # # Packet Filters # device pf # device pflog # device pfsync # options ALTQ # options ALTQ_CBQ# Class Bases Queuing (CBQ) # options ALTQ_RED# Random Early Detection (RED) # options ALTQ_RIO# RED In/Out # options ALTQ_HFSC # Hierarchical Packet Scheduler (HFSC) # options ALTQ_PRIQ # Priority Queuing (PRIQ) sh /etc/rc.shutdown # kills all your services pkill sendmail pkill syslogd mergemaster -p make installworld mergemaster reboot /usr/local/bin/portmanager -u -f -l -y make delete-old-libs What happens if my internet connection dies when I'm doing this? Will I still be able to SSH into my box? TIA, Drew We won't tell. Get more on shows you hate to love (and love to hate): Yahoo! TV's Guilty Pleasures list. http://tv.yahoo.com/collections/265 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Corrupted OS
2Kevin Kinsey [EMAIL PROTECTED] wrote: synch your source to 6.2 How? And is this necessary since it's already at 6.2? The command below, cvsup -g -L 2 supfile. Assuming, of course, that the supfile is valid. Is it necessary? Depends; if you're convinced that something is wrong with your current installation, then you might not need to, because you can rebuild exactly the system that you *should* have (for example, perhaps you fat-fingered a chmod or rm call?). Yes. The system was working fine. The problem is with an extra HD I have that I told the server farm to check out thoroughly before installing it in the new server because I knew it had a problem. They said they didand didn't. So that's what corrupted the system again...exactly the same way it did before, too. But yes, the system was working fine before I had data files on the HD in question linked to s/w on the SCSI hard drives. OTOH, if you are attempting to get up to date on security fixes, etc., then you should read up on the Cutting Edge so that you understand the CVS tags, and use cvsup as shown below. Well, it never hurts to get up to date on security, does it? Where do I find this cutting edge? Be *certain* you have the CVS tag you really want in the supfile before you press enter, though. Will that be outlined in the cutting edge, or elsewhere? Now, if you think that the system is corrupt because your source tree is corrupt, then you would also want to sync your source tree. Of course, why would it be corrupt? If a committer made an error, you'd probably see some discussion of it on this list of the stable@ list. The HD zapped two data files--MySQL and a Zope instance Data.fs--and that's what caused the problem both times. I doubt this would have hurt the source tree. Your thoughts? OK, that's fine. This next stuff is a tad strange, any reason you can't just shutdown -r now? The point is to attempt to boot with the new kernel, and going to single-user at this point doesn't do that. I need to avoid single user mode, as you probably recognize, since the machine is on the other side of the planet. The below worked when I upgraded once from 5.5 to 6.1. sh /etc/rc.shutdown # kills all your services pkill sendmail pkill syslogd mergemaster -p As noted above, this (mergemaster -p) is actually meant to be done pre-buildworld ... see mergemaster(8). In other words, it's not necessary since I'm just rebuilding what I already have, right? Thinking a tad more clearly, I suppose you mean, since the process of upgrading (buildworld, installworld, whatever) is attached to my terminal (which is an SSH session), what happens if I'm disconnected - will my upgrade continue? No, what I mean is if my connection gets dropped. The answer is that it will not continue unless you've planned for that possibility. Are you familiar with job control, e.g.: $ make buildworld Ah! Good idea! So just use the old symbol. How do I know when it's finished? Putting jobs in the background, one can't see their progress, that is, I don't know how to monitor it if it's not flashing before my face ;) And that's the only place I have to put a job in the background? Reviewing my notes again, that wouldn't be necessary for any of the following? make clean;make cleanworld make buildkernel KERNCONF=LOCAL make installkernel KERNCONF=LOCAL make installworld ...and I don't need this either, since I'm not doing mergmaster at all, right? mergemaster TIA, Drew - Don't be flakey. Get Yahoo! Mail for Mobile and always stay connected to friends. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Corrupted OS
Thanks :) - Original Message From: RW [EMAIL PROTECTED] To: freebsd-questions@freebsd.org Sent: Friday, March 16, 2007 10:31:53 AM Subject: Re: Corrupted OS On Fri, 16 Mar 2007 07:16:33 -0700 (PDT) Drew Jenkins [EMAIL PROTECTED] wrote: Well, it never hurts to get up to date on security, does it? Where do I find this cutting edge? It's a badly named chapter in the handbook, but the process for following a security branch is the same as tracking a development branch. BTW if you are just rebuilding, or picking up minor changes on a security branch, there is no need for mergemaster. I don't bother with single user mode either, since so little's changing. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. http://tools.search.yahoo.com/toolbar/features/mail/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Corrupted OS
You have probably already read those details in another one of my emails between when you emailed and when I responded to yours, but in case not, here it is again: I executed a bad command on my old server which I am convinced damaged a 500 GB HD I had. The server farm says otherwise, but it is in their best interest to talk a lot and do as little work as possible...and rake in more money for screwing up OS's, etc. So I had them build out another server which I built out after they got me up. First, however, I built a mirror server here and wrote down every command I executed in building it, to make sure there would be no mistakes. Then one day, all of a sudden, when I wasn't doing any work at all in the given areas, two of my databases got wiped: MySQL and one of my Zope instances' Data.fs, both of which were symlinked to the SCSI HDs from the 500 GB HD. This is exactly what happened on the old server, except on the old one it happened because of an erroneous copy command. Now, strange little things are happening for which there is no logical explanation other than corruption of the OS...exactly what transpired on the old server. Well, that's more detail than in my last email ;) TIA, Drew - Original Message From: Garrett Cooper [EMAIL PROTECTED] To: freebsd-questions@freebsd.org Sent: Friday, March 16, 2007 10:43:38 AM Subject: Re: Corrupted OS Christian Walther wrote: On 16/03/07, Drew Jenkins [EMAIL PROTECTED] wrote: 23Hi; Is it possible to rebuild an OS without reformatting the hard drive? I have FBSD6.2, so I can't upgrade. What are you trying to do? You could always go to /usr/src and do a make buildworld, which would rebuild the entire FreeBSD userland. Ports can be rebuilt, too, for example by doing a portupgrade -afk TIA, Drew Christian Drew, Depends on how corrupted it is. Could you provide details? Thanks, -Garrett ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames.yahoo.com/platform?platform=120121 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Corrupted OS
I have lots of other files, yes, several gigabytes worth. I have a satellite dish connection, which for uploading has all the speed of a telephone line. It's a production server. And I don't have my hands on the console. I think I'll avoid fdisk, but thanks anyway ;) Drew - Original Message From: Jerry McAllister [EMAIL PROTECTED] To: Drew Jenkins [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Sent: Friday, March 16, 2007 11:17:55 AM Subject: Re: Corrupted OS On Fri, Mar 16, 2007 at 05:09:15PM +0700, Drew Jenkins wrote: 23Hi; Is it possible to rebuild an OS without reformatting the hard drive? I have FBSD6.2, so I can't upgrade. I am not sure just what you are trying to avoid. First of all, strictly speaking, when installing FreeBSD you never format or reformat the hard-drive. That is a much lower level operation. FreeBSD and all other OSen use the factory format unless you do something unusually drastic. Doing fdisk/bsdlabel/newfs is not technically 'formatting' the drive but rather building slices, partitions and filesystems on the drive. Now. You do not have to redo the fdisk, bsdlabel and newfs to wipe out and reinstall things, but why not do them? They take very little time.The only reason I could think of would be if you have a lot of your own files you don't want to nuke. But, in that case, the better course of action would be to back them up somewhere safe and do the complete reinstall from scratch and then bring your own files back. jerry TIA, Drew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Corrupted OS
Jerry McAllister [EMAIL PROTECTED] wrote: On Fri, Mar 16, 2007 at 07:16:33AM -0700, Drew Jenkins wrote: 2Kevin Kinsey wrote: synch your source to 6.2 How? And is this necessary since it's already at 6.2? The command below, cvsup -g -L 2 supfile. Assuming, of course, that the supfile is valid. Is it necessary? Depends; if you're convinced that something is wrong with your current installation, then you might not need to, because you can rebuild exactly the system that you *should* have (for example, perhaps you fat-fingered a chmod or rm call?). Can you finally learn to break you lines at about 70 characters in length. Having them run on long makes it much more difficult to make responses. Most Email clients allow you to configure it to break lines. If yours does not, just hit a a RETURN/ENTER about there each time. Yahoo's new beta must be the problem. Let's see if the old yahoo system works. Just switched back. Let me know. That I don't quite get. If you are just adding a disk to your machine, it is not likely to corript the rest of the system unless you execute something on that disk. Which I did. Trust me. I've ruled everything else out. It's the HD. When you fdisk, bsdlabel and newfs it, it is wiped and the previous contents are gone. If you precede that with a nice dd to overwrite initial sectors with zeros, then it is even more wiped before you even get to the fdisk. Can I bsdlabel, newfs and fdisk that disk without wiping the other disks, and do it remotely? Or are you trying to add this disk to a mirror in such a way that the raid controller thinks it is the good disk and the other is corrupt and tries to rebuild the mirror with the contents of the added disk? That you don't want to do. That I am not doing. There are two other disks in the box that are SCSIs. My thoughts are that something is happening that you haven't declared yet. An HD does not go out and zap files. That is like saying one book on a shelf skipped over and trashed the contents of another book on a shelf. You misread. The files were on the new HD. The action scripts, or s/w that calls those dbase files, are on the SCSI drives. TIA, Drew - We won't tell. Get more on shows you hate to love (and love to hate): Yahoo! TV's Guilty Pleasures list. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Corrupted OS
How do I access it (through SSH) if it's unmounted? Drew2 Jerry McAllister [EMAIL PROTECTED] wrote: On Fri, Mar 16, 2007 at 09:11:58AM -0700, Drew Jenkins wrote: Jerry McAllister wrote: On Fri, Mar 16, 2007 at 07:16:33AM -0700, Drew Jenkins wrote: 2Kevin Kinsey wrote: synch your source to 6.2 How? And is this necessary since it's already at 6.2? The command below, cvsup -g -L 2 supfile. Assuming, of course, that the supfile is valid. Is it necessary? Depends; if you're convinced that something is wrong with your current installation, then you might not need to, because you can rebuild exactly the system that you *should* have (for example, perhaps you fat-fingered a chmod or rm call?). Can you finally learn to break you lines at about 70 characters in length. Having them run on long makes it much more difficult to make responses. Most Email clients allow you to configure it to break lines. If yours does not, just hit a a RETURN/ENTER about there each time. Yahoo's new beta must be the problem. Let's see if the old yahoo system works. Just switched back. Let me know. That I don't quite get. If you are just adding a disk to your machine, it is not likely to corript the rest of the system unless you execute something on that disk. Which I did. Trust me. I've ruled everything else out. It's the HD. When you fdisk, bsdlabel and newfs it, it is wiped and the previous contents are gone. If you precede that with a nice dd to overwrite initial sectors with zeros, then it is even more wiped before you even get to the fdisk. Can I bsdlabel, newfs and fdisk that disk without wiping the other disks, and do it remotely? Yes. You just have to have everything on that disk unmounted. Then you can run fdisk either directly or via sysinstall. I have lost track of where you have stuff you want to protect, etc, etc. But a separate disk that you want to wipe and start over again on can be fdisked, bsdlabeled and newfsed independently from the one you are booted from and not affect anything on any other disk and you don't need to be able to touch it, just unmount what is currently there. jerry Or are you trying to add this disk to a mirror in such a way that the raid controller thinks it is the good disk and the other is corrupt and tries to rebuild the mirror with the contents of the added disk? That you don't want to do. That I am not doing. There are two other disks in the box that are SCSIs. My thoughts are that something is happening that you haven't declared yet. An HD does not go out and zap files. That is like saying one book on a shelf skipped over and trashed the contents of another book on a shelf. You misread. The files were on the new HD. The action scripts, or s/w that calls those dbase files, are on the SCSI drives. TIA, Drew - We won't tell. Get more on shows you hate to love (and love to hate): Yahoo! TV's Guilty Pleasures list. - Finding fabulous fares is fun. Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Corrupted OS
I believe you misunderstand. I have 3 disks: 2 are SCSI RAID and are 80 GB each 1 is not and is 500 GB I don't actually need the 500 GB now. I haven't even used up the 80 GB HD's. So I can wipe the 500 GB clean. I don't have to keep data on it at all. But...can I do that remotely, and run those commands remotely, with that disk being unmounted, and if so...how? The problem *is* a corrupt OS. I currently don't have any data on that 500 GB HD. And the problems persist. Sorry to have confused you. Are things clearer now? TIA, Drew2 Jerry McAllister [EMAIL PROTECTED] wrote: On Fri, Mar 16, 2007 at 09:12:02AM -0700, Drew Jenkins wrote: Jerry McAllister wrote: On Fri, Mar 16, 2007 at 07:16:33AM -0700, Drew Jenkins wrote: 2Kevin Kinsey wrote: synch your source to 6.2 How? And is this necessary since it's already at 6.2? The command below, cvsup -g -L 2 supfile. Assuming, of course, that the supfile is valid. Is it necessary? Depends; if you're convinced that something is wrong with your current installation, then you might not need to, because you can rebuild exactly the system that you *should* have (for example, perhaps you fat-fingered a chmod or rm call?). Can you finally learn to break you lines at about 70 characters in length. Having them run on long makes it much more difficult to make responses. Most Email clients allow you to configure it to break lines. If yours does not, just hit a a RETURN/ENTER about there each time. Yahoo's new beta must be the problem. Let's see if the old yahoo system works. Just switched back. Let me know. That I don't quite get. If you are just adding a disk to your machine, it is not likely to corript the rest of the system unless you execute something on that disk. Which I did. Trust me. I've ruled everything else out. It's the HD. When you fdisk, bsdlabel and newfs it, it is wiped and the previous contents are gone. If you precede that with a nice dd to overwrite initial sectors with zeros, then it is even more wiped before you even get to the fdisk. Can I bsdlabel, newfs and fdisk that disk without wiping the other disks, and do it remotely? Or are you trying to add this disk to a mirror in such a way that the raid controller thinks it is the good disk and the other is corrupt and tries to rebuild the mirror with the contents of the added disk? That you don't want to do. That I am not doing. There are two other disks in the box that are SCSIs. My thoughts are that something is happening that you haven't declared yet. An HD does not go out and zap files. That is like saying one book on a shelf skipped over and trashed the contents of another book on a shelf. You misread. The files were on the new HD. The action scripts, or s/w that calls those dbase files, are on the SCSI drives. That is a much bigger problem then. You can't just go and rebuild stuff and expect to keep the files on that disk. You might be able to used fdisk if the slice table got smuched and if you put back exactly what was originally there. You might even be able to use bsdlabel to fix a partition table, again if the new was exactly the same as the old, but I am not sure of that. You must not attempt to build filesystems on the disk with newfs or then all will be gone and beyond recovery except by those very expensive spy type folk that try to get secret information from overwritten storage. But, what you are describing is not a corrupt OS. It is a problem with reading information from a disk.I have responded to several different people lately on similar issues and can't remember which is which. If it is a bad space on disk, then you are going to have to reconstruct the date by reading as much as you can and putting it together the hard way. If it is some incompatibilty the file system versions between how it written and being read, you need to track down just how it was written and try to bridge the difference. jerry TIA, Drew - We won't tell. Get more on shows you hate to love (and love to hate): Yahoo! TV's Guilty Pleasures list. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] - Finding fabulous fares is fun. Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Corrupted OS
Thanks! That's great! Here's why the OS is corrupt: 1) Suddenly, large data files which were on the 500 GB HD were wiped. I hadn't been working in anything associated with them for some time before that. They just disappeared. This is exactly what happened before on the old server, but then I had done something to damage it (entered a bad command). 2) Now, as then, quirky things are happening, forcing me to do work-arounds when none should be done, or to abandon projects I'd like to do. For example, I copied a MySQL database as another dbase with another name, wiped all the data from the new dbase, and copied a shopping cart app I've built in Zope to a new site I'm building. I entered new categories into the new dbase. However, when I surf to my interface in the new Zope site I'm building, the old cats appear! There's no connection whatsoever. Even the background color of the display pages is picked up from the old site, goodness knows how. If I use the Zope interface to enter data into the products table, it works, but with the old cats. If I enter data into that table through MySQL, it displays in the new Zope site. I had to hard-wire the new cats to get it to work. I still don't know why the bgcolor for the page is the same as the old site, either. This kind of crap happens over and over again, and I have no explanation.2 Last time, it screwed up my clients' email, something I'm loathe to do. Eventually, the whole system died on me. TIA, Drew Jerry McAllister [EMAIL PROTECTED] wrote: On Fri, Mar 16, 2007 at 01:33:42PM -0700, Drew Jenkins wrote: I believe you misunderstand. I have 3 disks: 2 are SCSI RAID and are 80 GB each 1 is not and is 500 GB I don't actually need the 500 GB now. I haven't even used up the 80 GB HD's. So I can wipe the 500 GB clean. I don't have to keep data on it at all. But...can I do that remotely, and run those commands remotely, with that disk being unmounted, and if so...how? You can do it remotely. Once everything on that disk is unmounted and unreferenced, then fdisk and bsdlabel will be happy to work on it. The best documentation for that is down in the examples of the bsdlabel man page. dd if=/dev/zero of=/dev/da0 bs=512 count=32 fdisk -BI da0 dd if=/dev/zero of=/dev/da0s1 bs=512 count=32 bsdlabel -w -B da0s1 bsdlabel -e da0s1 Change the device names to be what yours really are (da0 may be ad3 or something. I also upped the count on the dd, but it doesn't matter. Follow this with a newfs for each partition except swap that you create on this disk. The problem *is* a corrupt OS. I currently don't have any data on that 500 GB HD. And the problems persist. Sorry to have confused you. Are things clearer now? Well, it seems clear that there is no problem with the 500 GB disk. You can just fdisk it. If you want, write a few blocks of zeros to it first to make sure the system believes it clean if you want. Probably shouldn't need to, though. dd if=/dev/zero of=/dev/extra-drive-name bs=512 count=250 As for the corrupt OS, I don't understand what that is and why you think that or whatever. jerry TIA, Drew2 Jerry McAllister wrote: On Fri, Mar 16, 2007 at 09:12:02AM -0700, Drew Jenkins wrote: ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] - Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Corrupted OS
How large is large? Why filesystem are you using with what options?The MySQL database was just under a gigabyte, and the Zope Data.fs file/database was somewhere under 2 gigabytes. Options? No options. I had symlinks from where these dbases were supposed to live on the SCSI drives to the 500 GB drive. Then suddenly, poof! They were gone. Drew - Get your own web address. Have a HUGE year through Yahoo! Small Business. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Corrupted OS
2How large is large? Why filesystem are you using with what options?The MySQL database was just under a gigabyte, and the Zope Data.fs file/database was somewhere under 2 gigabytes. Options? No options. I had symlinks from where these dbases were supposed to live on the SCSI drives to the 500 GB drive. The MySQL was called from the Zope, of course. Then suddenly, poof! They were gone. Drew - Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
How Do I Find Find?
I built a home server to prepare to build a new production server. Well, the latter is built out, but when I went back to the former, it said there was a problem with my last shutdown (which I don't remember) and went into single user mode. I went to run a find and it complained it couldn't find the find command! I thought, what the heck, no great loss, I'll just rebuild this machine. But after re-installing FBSD, it *still* can't find the find command! Now I'm worried! It wasn't in /usr/bin/ What happened to this installation?? TIA, Drew3 - Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. ___ 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 Find Find?
Yes, /usr is mounted. When I say rebuild, I mean I stuck the FBSD 6.2 CD erased the old installation and reinstalled. Drew3 Bill Moran [EMAIL PROTECTED] wrote: In response to Drew Jenkins : I built a home server to prepare to build a new production server. Well, the latter is built out, but when I went back to the former, it said there was a problem with my last shutdown (which I don't remember) and went into single user mode. I went to run a find and it complained it couldn't find the find command! I thought, what the heck, no great loss, I'll just rebuild this machine. But after re-installing FBSD, it *still* can't find the find command! Now I'm worried! It wasn't in /usr/bin/ What happened to this installation?? My first guess would be that when you rebooted into single user mode, your /usr partition wasn't mounted so find wasn't accessable. Not sure how you managed to rebuild the machine and still have find missing, but I can't really guess that without knowing what you meant by rebuilt. Is /usr mounted? -- Bill Moran http://www.potentialtech.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] - Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. ___ 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 Find Find?
Well, I did that, then I decided to run a list of /usr/bin, and there was find, and now the find command works. Ah...computers! Thanks, Drew2 Roger Olofsson [EMAIL PROTECTED] wrote: Hello Drew, As an alternative may I suggest using locate? You update the database by issuing /usr/libexec/locate.updatedb from shell. Then just locate what you want. Good luck! Drew Jenkins skrev: I built a home server to prepare to build a new production server. Well, the latter is built out, but when I went back to the former, it said there was a problem with my last shutdown (which I don't remember) and went into single user mode. I went to run a find and it complained it couldn't find the find command! I thought, what the heck, no great loss, I'll just rebuild this machine. But after re-installing FBSD, it *still* can't find the find command! Now I'm worried! It wasn't in /usr/bin/ What happened to this installation?? TIA, Drew3 - Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] - No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
clean-hoststat
Hi; Just built a new server and got this error: Removing stale entries from sendmail host status cache: /etc/periodic/daily/150.clean-hoststat: purgestat: Permission denied # ls -al /etc/periodic/daily/150.clean-hoststat -rwxr-xr-x 1 root wheel 588 Jan 12 07:42 /etc/periodic/daily/150.clean-hoststat Please advise. TIA, Drew2 - Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Setting Env
20I wrote the following script (with your help) to solve the problem I'm having with setting the MySQL environment and getting Zope up after the fact. I have saved this in /usr/local/etc/rc.d/ If I run this after the machine reboots, all is well. If I simply let it run in the reboot sequence, it doesn't do it's job! The sleep command is to give the server a chance to finish all its other bootup sequences, since that appears to be the factor messing things up. But it doesn't work!! What can I do to tweak this to do what I need it to do? TIA, Drew #!/bin/sh sleep 60 if [ -n $LD_LIBRARY_PATH ] ; then export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib/mysql else export LD_LIBRARY_PATH=/usr/local/lib/mysql fi cd /usr/local/zope/ ./instance1/bin/zopectl stop ./instance1/bin/zopectl start ./instance2/bin/zopectl stop ./instance2/bin/zopectl start Food fight? Enjoy some healthy debate in the Yahoo! Answers Food Drink QA. http://answers.yahoo.com/dir/?link=listsid=396545367 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Setting Env
- Original Message From: Garrett Cooper [EMAIL PROTECTED] To: freebsd-questions@freebsd.org Sent: Thursday, March 8, 2007 11:09:13 AM Subject: Re: Setting Env Well, it's going to involve a bit more than that to get an rc script up and running I'm afraid.. the script needs a start, stop, status functions, as well as a few others. Some examples are in the /etc/rc.d and /usr/local/etc/rc.d directories, as you've discovered. Given your output above, maybe you want to add the LD_LIBRARY_PATH lines to the zopectl file? Brilliant! Why doesn't *that* work?! This is crazy! I even added your little script and, after it booted, tried running that directly (after stopping Zope) and it _still_ didn't work! That makes no sense to me at all! I put together a little script, as I stated earlier, that set the env, stopped and started my Zope instances (calling on zopectl), and *that* worked, so why doesn't this work?? That whole bin dir in Zope is owned by root, so how is running that script different than, as root, setting the env? Insane! Drew No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started. http://mobile.yahoo.com/mail ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Setting Env
On Thu, Mar 08, 2007 at 08:31:23AM -0800, Drew Jenkins wrote: Anyway, I suggest first just working on getting any script to run at boot time - or rather at the time the system comes up for multi- user, but that stuff does not run when it comes up to single-user. So, my next suggestion is to make any little ole script with a couple of echo-s in it to demonstration that it runs and put that it the /usr/local/etc/rc.d directory with the correct permissions and name, etc. NOTE, someone in an earlier post clarified the .sh issue with information that was new to me about the system looking for certain flags inside the file if the file name does not have the .sh ending. Go back and check that out, but the this, assume you have to have .sh and execute permission. You do not have to have a start/stop/restart check in the script if the script will always just run regardless of parameter. But, what the system does is call the script with a parameter of 'start' at boot time and a parameter of 'stop' at shutdown time. But for the sake of the primative test, those can be omitted. Let's say you call the scriptfile: 'rctest.sh' Put something like: #!/bin/sh echo running rctest.sh, got this far # Add any any other stuff you want to test echo running rctest.sh, finished Now, if the bare skeleton works, then start adding more parts to it until you get to where everything works. Add more echo-s if they are useful. But I've done that (except name it *.sh, which I just did). And I'm not at the server. It's on the other side of the globe. So I can't watch echo's pop up as it boots. Here's my script: #!/bin/sh sleep 60 if [ -n $LD_LIBRARY_PATH ] ; then export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib/mysql else export LD_LIBRARY_PATH=/usr/local/lib/mysql fi cd /usr/local/zope/ ./instance1/bin/zopectl stop ./instance1/bin/zopectl start ./instance2/bin/zopectl stop ./instance2/bin/zopectl start The sleep is in there to try to get it to run after everything else has come up, but it doesn't help. If I run that script after boot, everything works out fine. You could also look up how to get your messages written to a log Hey, now there's an idea! How do I do that? Or where do I go to study how to do that? TIA, Drew Bored stiff? Loosen up... Download and play hundreds of games for free on Yahoo! Games. http://games.yahoo.com/games/front ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Setting Env
#!/bin/sh if [ -n $LD_LIBRARY_PATH ] ; then export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib/mysql echo Exporting LD_LIBRARY_PATH to /usr/local/lib/mysql because -n '$LD_LIBRARY_PATH' held true. /var/log/zz_mysql_start.log else export LD_LIBRARY_PATH=/usr/local/lib/mysql echo Exporting LD_LIBRARY_PATH to /usr/local/lib/mysql, -n '$LD_LIBRARY_PATH' did not hold true. /var/log/zz_mysql_start.log fi cd /usr/local/zope/ if ./instance1/bin/zopectl stop ; then echo Stopping zopectl instance 1. /var/log/zz_mysql_start.log fi if ./instance1/bin/zopectl start ; then echo Restarting zopectl instance 1. /var/log/zz_mysql_start.log fi if ./instance2/bin/zopectl stop ; then echo Stopping zopectl instance 2. /var/log/zz_mysql_start.log fi if ./instance2/bin/zopectl start ; then echo Restarting zopectl instance 2. /var/log/zz_mysql_start.log fi sleep 3 echo ending zz_mysql_start.sh at: `date` /var/log/zz_mysql_start.log echo/var/log/zz_mysql_start.log Exporting LD_LIBRARY_PATH to /usr/local/lib/mysql, -n '/usr/local/lib/mysql' did not hold true. Stopping zopectl instance 1. Restarting zopectl instance 1. Stopping zopectl instance 2. Restarting zopectl instance 2. ending zz_mysql_start.sh at: Thu Mar 8 14:57:47 UTC 2007 It kicked out that output when I tested it and also when I rebooted the server. However, Zope was still not up. I should qualify that. Zope appears to be up, but when I try to access it TTW (the ZMI) I can't reach the site. TIA, Drew - TV dinner still cooling? Check out Tonight's Picks on Yahoo! TV. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Setting Env
Well, if the problem is with Zope, then why is the env variable not set after reboot? The problem, therefore, is not with Zope, but rather with setting the variable. Drew2 Jerry McAllister [EMAIL PROTECTED] wrote: On Thu, Mar 08, 2007 at 01:07:10PM -0800, Drew Jenkins wrote: #!/bin/sh if [ -n $LD_LIBRARY_PATH ] ; then export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib/mysql echo Exporting LD_LIBRARY_PATH to /usr/local/lib/mysql because -n '$LD_LIBRARY_PATH' held true. /var/log/zz_mysql_start.log else export LD_LIBRARY_PATH=/usr/local/lib/mysql echo Exporting LD_LIBRARY_PATH to /usr/local/lib/mysql, -n '$LD_LIBRARY_PATH' did not hold true. /var/log/zz_mysql_start.log fi cd /usr/local/zope/ if ./instance1/bin/zopectl stop ; then echo Stopping zopectl instance 1. /var/log/zz_mysql_start.log fi if ./instance1/bin/zopectl start ; then echo Restarting zopectl instance 1. /var/log/zz_mysql_start.log fi if ./instance2/bin/zopectl stop ; then echo Stopping zopectl instance 2. /var/log/zz_mysql_start.log fi if ./instance2/bin/zopectl start ; then echo Restarting zopectl instance 2. /var/log/zz_mysql_start.log fi sleep 3 echo ending zz_mysql_start.sh at: `date` /var/log/zz_mysql_start.log echo/var/log/zz_mysql_start.log Exporting LD_LIBRARY_PATH to /usr/local/lib/mysql, -n '/usr/local/lib/mysql' did not hold true. Stopping zopectl instance 1. Restarting zopectl instance 1. Stopping zopectl instance 2. Restarting zopectl instance 2. ending zz_mysql_start.sh at: Thu Mar 8 14:57:47 UTC 2007 It kicked out that output when I tested it and also when I rebooted the server. However, Zope was still not up. I should qualify that. Zope appears to be up, but when I try to access it TTW (the ZMI) I can't reach the site. TIA, Drew Sounds like your problem is with Zope somewhere and not the startup script per se - though it could be something missing in the startup. I have never used Zope. jerry - TV dinner still cooling? Check out Tonight's Picks on Yahoo! TV. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] - Get your own web address. Have a HUGE year through Yahoo! Small Business. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Setting Env
- Original Message From: Garrett Cooper [EMAIL PROTECTED] To: freebsd-questions@freebsd.org Sent: Wednesday, March 7, 2007 1:02:01 AM Subject: Re: Setting Env Drew Jenkins wrote: LD_LIBRARY_PATH=/usr/local/lib/mysql/ not work for you? Why not source environment variables from an outside script / rc-file? It's better / smarter in the long run, IMHO. Sounds great. Again, as I wrote in my last post, I don't know *exactly* what command needs to be entered!! I have tried this in the /etc/rc.conf file: setenv LD_LIBRARY_PATH /usr/local/lib/mysql/ --or-- export LD_LIBRARY_PATH=/usr/local/lib/mysql/ --or-- LD_LIBRARY_PATH=/usr/local/lib/mysql/ none of which work. I have tried creating a script and chmod +x in the /usr/local/etc/rc.d folder: #!/bin/csh setenv LD_LIBRARY_PATH /usr/local/lib/mysql/ and that doesn't work, either. Would it be okay if I asked anyone out there to tell me *exactly* what I need to do to get this to be set on startup?? TIA. Drew Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames.yahoo.com/platform?platform=120121 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Setting Env
20- Original Message From: Garrett Cooper [EMAIL PROTECTED] To: freebsd-questions@freebsd.org Sent: Wednesday, March 7, 2007 4:55:19 AM Subject: Re: Setting Env Drew Jenkins wrote: - Original Message From: Garrett Cooper [EMAIL PROTECTED] To: freebsd-questions@freebsd.org Sent: Wednesday, March 7, 2007 1:02:01 AM Subject: Re: Setting Env Drew Jenkins wrote: LD_LIBRARY_PATH=/usr/local/lib/mysql/ not work for you? Why not source environment variables from an outside script / rc-file? It's better / smarter in the long run, IMHO. Sounds great. Again, as I wrote in my last post, I don't know *exactly* what command needs to be entered!! I have tried this in the /etc/rc.conf file: setenv LD_LIBRARY_PATH /usr/local/lib/mysql/ --or-- export LD_LIBRARY_PATH=/usr/local/lib/mysql/ --or-- LD_LIBRARY_PATH=/usr/local/lib/mysql/ none of which work. I have tried creating a script and chmod +x in the /usr/local/etc/rc.d folder: #!/bin/csh setenv LD_LIBRARY_PATH /usr/local/lib/mysql/ and that doesn't work, either. Would it be okay if I asked anyone out there to tell me *exactly* what I need to do to get this to be set on startup?? TIA. Drew The question is, what's failing (or not behaving as expected)? I would like that line to execute upon startup. Right now, every time I boot the machine, I have to remember to enter that setenv command, and that's a nuisance. I would like it to be automatic. TIA, Drew Need Mail bonding? Go to the Yahoo! Mail QA for great tips from Yahoo! Answers users. http://answers.yahoo.com/dir/?link=listsid=396546091 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Setting Env
- Original Message From: Kirk Strauser [EMAIL PROTECTED] To: freebsd-questions@freebsd.org Sent: Wednesday, March 7, 2007 11:14:51 AM Subject: Re: Setting Env On Tuesday 06 March 2007, Drew Jenkins wrote: 20Hi; For some reason, I need to run this: setenv LD_LIBRARY_PATH /usr/local/lib/mysql/ to get my Zope instances up and running. I'm trying to figure out how to automate that. I wrote a little script: What makes you think that? How did you install MySQL and Zope? MySQL from the port and Zope (since it's an older version) from source. Food fight? Enjoy some healthy debate in the Yahoo! Answers Food Drink QA. http://answers.yahoo.com/dir/?link=listsid=396545367 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Setting Env
- Original Message From: Jerry McAllister [EMAIL PROTECTED] To: Drew Jenkins [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Sent: Tuesday, March 6, 2007 7:46:26 PM Subject: Re: Setting Env If you want the environment variable to be set for something that is taking place in the script, then that variable must either be set in a durable way in the parent environment or be set right there in the script that is using it. The rc.conf method will make it available from the parent. That is the whole point of rc.conf. Right. I figured that much. So, what do I actually put in that file? I tried these two options: setenv LD_LIBRARY_PATH /usr/local/lib/mysql/ export LD_LIBRARY_PATH=/usr/local/lib/mysql/ Well, setenv is a csh or tcsh command and isn't in sh and probably not in bash either (I haven't used bash). I am aware of that. I was trying to explain how I used every_possible_combination of things I could think of! The export command is an sh and probably bash command and it doesn't exist in csh or tcsh. Yes, yes. I know. It didn't like either, presumably because it's not calling a bash or c-shell. So, what should I put in /etc/rc.conf that will achieve my objective? Look at other variable setting in rc.conf. That should give you a good clue. For example, in my rc.conf I have several. One is: moused_enable=YES That makes the moused_enable variable have a value of YES. So, if you want LD_LIBRARY_PATH to have the value of /usr/local/lib/mysql/ might that not be: LD_LIBRARY_PATH=/usr/local/lib/mysql/ I tried that and posted yesterday that that failed. If you put it in the script that starts things - there needs to be one - then it depends on the script language, csh/tcsh sh/bash. csh/tcsh use setenv and set sh [and bash] use set and variable_name=value and needs an export to make it available to other entities besides the shell itself. You should look up the man pages on these things and take a look at some other scripts such as those in /usr/local/etc/rc.d for examples. What *things*? As far as scripts, this *should* be easy... #!/bin/csh setenv LD_LIBRARY_PATH /usr/local/lib/mysql/ ...right? It doesn't work. Any other ideas? Drew Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. http://tools.search.yahoo.com/toolbar/features/mail/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Setting Env
Jerry McAllister wrote: Ok. Simplest way to solve this is to make your own run script and invoke it at boot. It's not that bad to do from what I understand.. Will this do? #!/bin/csh setenv LD_LIBRARY_PATH /usr/local/lib/mysql/ Because I've already tried it (in /usr/local/etc/rc.d with chown +x). It didn't work. Other ideas? Drew Get your own web address. Have a HUGE year through Yahoo! Small Business. http://smallbusiness.yahoo.com/domains/?p=BESTDEAL ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Setting Env
Garret Cooper wrote: Also, something to the effect like the following is better for portability reasons: #!/bin/sh if [ -n $LD_LIBRARY_PATH ] ; then export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib/mysql else export LD_LIBRARY_PATH=/usr/local/lib/mysql fi I put that in the /usr/local/etc/rc.d/mysql-server script (which is #!/bin/sh) but it didn't work :( Jerry McAllister wrote: What does your rc.conf look like? # -- sysinstall generated deltas -- # Sat Feb 24 04:38:22 2007 # Created: Sat Feb 24 04:38:22 2007 # Enable network daemons for user convenience. # Please make all changes to this file, not to /etc/defaults/rc.conf. # This file now contains just the overrides from /etc/defaults/rc.conf. defaultrouter=203.223.150.1 hostname=server312.web.vi ifconfig_fxp0=inet 203.223.150.58 netmask 255.255.255.192 linux_enable=YES sshd_enable=YES usbd_enable=YES pound_enable=YES sendmail_enable=NO sendmail_submit_enable=NO sendmail_outbound_enable=NO sendmail_msp_queue_enable=NO slapd_enable=YES slapd_flags='-h ldapi://%2fvar%2frun%2fopenldap%2fldapi/ ldap://0.0.0.0/;' slapd_sockets=/var/run/openldap/ldapi mysql_enable=YES LD_LIBRARY_PATH=/usr/local/lib/mysql/ That last line, of course, is useless. Boot up with it and then take a look at the values. What values and how do I look for them? make a startup script for whatever it is - probably the install already put one in /usr/local/etc/rc.d/ and in that startup script, source the /etc/rc.conf file. I did. Then I used Garrett's (see above). No luck. TIA, Drew Food fight? Enjoy some healthy debate in the Yahoo! Answers Food Drink QA. http://answers.yahoo.com/dir/?link=listsid=396545367 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Setting Env
- Original Message From: Jerry McAllister [EMAIL PROTECTED] #!/bin/sh if [ -n $LD_LIBRARY_PATH ] ; then export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib/mysql else export LD_LIBRARY_PATH=/usr/local/lib/mysql fi I put that in the /usr/local/etc/rc.d/mysql-server script (which is #!/bin/sh) but it didn't work :( Does the script even run? Yes. It was only when I put this script in that mysql came up on boot. Try putting some echo-s in their and see if anything happens. I did that. I found out BTW that it executes the if part of the above, not the else part. What are the permissions and ownership of the /usr/local/etc/rc.d/mysql-server script file? # ls -al /usr/local/etc/rc.d/mysql-server -r-xr-xr-x 1 root wheel 1824 Mar 7 11:29 /usr/local/etc/rc.d/mysql-server TIA, Drew TV dinner still cooling? Check out Tonight's Picks on Yahoo! TV. http://tv.yahoo.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Setting Env
20BTW, here is how I test to see if it works after reboot. 1) Try to pull up a page served by Zope. Get an error. 2) Shut Zope down. 3) Restart Zope with runzope to read the error. It is concerning the MySQL environment. 4) Enter the command: setenv LD_LIBRARY_PATH /usr/local/lib/mysql 5) Restart Zope. Everything fine. Drew Finding fabulous fares is fun. Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains. http://farechase.yahoo.com/promo-generic-14795097 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Setting Env
On 06/03/07, Drew Jenkins [EMAIL PROTECTED] wrote: Don Hinton wrote: # ldconfig -aout -f /etc/ld.so.conf /usr/local/lib/mysql/ will create it for you. man ldconfig for more info... Well, that created a binary, but when I rebooted...nothing. Same problem :( The command should be # ldconfig -m /usr/local/lib/mysql The file is not /etc/ld.so.conf, nor does this file exist on the default install of freebsd, but rather /var/run/ld.so.hints. # ldconfig -m /usr/local/lib/mysql ldconfig: /usr/local/lib/mysql: ignoring directory not owned by root I had some permissions problems earlier with this installation and ended up chowning everything to mysql. But I think that dir needs to be owned by mysql. Comment? TIA, Drew Bored stiff? Loosen up... Download and play hundreds of games for free on Yahoo! Games. http://games.yahoo.com/games/front ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Setting Env
The command should be # ldconfig -m /usr/local/lib/mysql Thanks for the correction. This is actually what gets run when mysql is installed via ports. With that, I went ahead and chowned the dir back to mysql, ran the command successfully, but it still didn't work. Now I'm wondering if maybe it's a permissions problem. As I mentioned earlier, I chowned everything to mysql:mysql because of an earlier permissions problem. Should I chown that whole dir ( /usr/local/lib/mysql )? Or something else? TIA, Drew Finding fabulous fares is fun. Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains. http://farechase.yahoo.com/promo-generic-14795097 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Setting Env
So pass -i or fix the ownership/permissions. Well, I've tried both now with no luck! Drew Finding fabulous fares is fun. Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains. http://farechase.yahoo.com/promo-generic-14795097 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Setting Env
- Original Message From: DAve [EMAIL PROTECTED] To: Drew Jenkins [EMAIL PROTECTED] Sent: Wednesday, March 7, 2007 4:25:12 PM Subject: Re: Setting Env /usr/local/lib/mysql should be owned by root:wheel, at least it is all my servers. I chown'd it back. Do that and run ldconfig -r | grep mysql I get the following, bash-2.05b# ldconfig -r | grep mysql search directories: /lib:/usr/lib:/usr/lib/compat:/usr/local/lib:/usr/local/lib/mysql:/usr/local/lib/compat/pkg 82:-lmysqlclient_r.14 = /usr/local/lib/mysql/libmysqlclient_r.so.14 83:-lmysqlclient.14 = /usr/local/lib/mysql/libmysqlclient.so.14 Same here. TIA, Drew Food fight? Enjoy some healthy debate in the Yahoo! Answers Food Drink QA. http://answers.yahoo.com/dir/?link=listsid=396545367 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Setting Env
Thanks. I'm downloading a big file right now, so can't reboot, but did chown :) Drew - Original Message From: Kevin Kinsey [EMAIL PROTECTED] To: Drew Jenkins [EMAIL PROTECTED] Sent: Wednesday, March 7, 2007 6:14:50 PM Subject: Re: Setting Env Drew Jenkins wrote: The command should be # ldconfig -m /usr/local/lib/mysql Thanks for the correction. This is actually what gets run when mysql is installed via ports. With that, I went ahead and chowned the dir back to mysql, ran the command successfully, but it still didn't work. Now I'm wondering wondering if maybe it's a permissions problem. As I mentioned earlier, I chowned everything to mysql:mysql because of an earlier permissions problem. Should I chown that whole dir ( /usr/local/lib/mysql )? Or something else? TIA, Drew Upgraded last night: [502] Wed 07.Mar.2007 16:09:00 [EMAIL PROTECTED] ls -l /usr/local/lib | grep mysql drwxr-xr-x 2 root wheel 1024 Mar 6 21:19 mysql/ [503] Wed 07.Mar.2007 16:09:07 [EMAIL PROTECTED] ls -l /usr/local/lib/mysql total 4 -rwxr-xr-x 1 root wheel 840 Mar 6 21:19 ha_example.la* lrwxr-xr-x 1 root wheel 15 Mar 6 21:19 ha_example.so@ - ha_example.so.0 -rwxr-xr-x 1 root wheel 29443 Mar 6 21:19 ha_example.so.0* -r--r--r-- 1 root wheel1402 Mar 6 21:19 libdbug.a -r--r--r-- 1 root wheel 77136 Mar 6 21:19 libheap.a -r--r--r-- 1 root wheel 373300 Mar 6 21:19 libmyisam.a -r--r--r-- 1 root wheel 60970 Mar 6 21:19 libmyisammrg.a -rw-r--r-- 1 root wheel 513856 Mar 6 20:47 libmysqlclient.a -rwxr-xr-x 1 root wheel 860 Mar 6 20:47 libmysqlclient.la* lrwxr-xr-x 1 root wheel 20 Mar 6 20:47 libmysqlclient.so@ - libmysqlclient.so.15 -rwxr-xr-x 1 root wheel 443684 Mar 6 20:47 libmysqlclient.so.15* -rw-r--r-- 1 root wheel 523008 Mar 6 20:47 libmysqlclient_r.a -rwxr-xr-x 1 root wheel 892 Mar 6 20:47 libmysqlclient_r.la* lrwxr-xr-x 1 root wheel 22 Mar 6 20:47 libmysqlclient_r.so@ - libmysqlclient_r.so.15 -rwxr-xr-x 1 root wheel 451915 Mar 6 20:47 libmysqlclient_r.so.15* -r--r--r-- 1 root wheel 302608 Mar 6 21:19 libmystrings.a -r--r--r-- 1 root wheel 272920 Mar 6 21:19 libmysys.a -r--r--r-- 1 root wheel6670 Mar 6 21:19 libvio.a HTH, KDK -- I have a map of the United States. It's actual size. I spent last summer folding it. People ask me where I live, and I say, E6. -- Steven Wright Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. http://autos.yahoo.com/new_cars.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Setting Env
20Hi; For some reason, I need to run this: setenv LD_LIBRARY_PATH /usr/local/lib/mysql/ to get my Zope instances up and running. I'm trying to figure out how to automate that. I wrote a little script: #!/bin/csh setenv LD_LIBRARY_PATH /usr/local/lib/mysql/ and put it here: /usr/local/etc/rc.d/mysql_setenv chmod +x /usr/local/etc/rc.d/mysql_setenv I can run that little script with no errors. However, it *doesn't* set the environment! # echo $shell # csh What gives? TIA, Drew Looking for earth-friendly autos? Browse Top Cars by Green Rating at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Setting Env
Bill Campbell wrote: that I should edit said line into /etc/ld.so.conf Unfortunately there is no such file on my system. - Original Message From: Jerry McAllister [EMAIL PROTECTED] To: Drew Jenkins [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Sent: Tuesday, March 6, 2007 3:33:01 PM Subject: Re: Setting Env I think does the setenv for the shell started for that script only. Once the script is finished, that goes away. You either need to put it in the script where you want to use the value or in your .cshrc file so it is in your main environment. I tried adding its bash variant to /usr/local/etc/rc.d/mysql-server but that didn't work. As far as adding it to my shell, that won't run the script when the server reboots, only when I log in, right? That's not an option. Any other ideas? TIA, Drew jerry TIA, Drew Looking for earth-friendly autos? Browse Top Cars by Green Rating at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Don't get soaked. Take a quick peek at the forecast with the Yahoo! Search weather shortcut. http://tools.search.yahoo.com/shortcuts/#loc_weather ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: MySQL Startup Script
- Original Message From: Jeremy Chadwick [EMAIL PROTECTED] To: Drew Jenkins [EMAIL PROTECTED] Cc: freebsd-ports@freebsd.org Sent: Tuesday, March 6, 2007 5:33:11 PM Subject: Re: MySQL Startup Script This isn't a good idea. ldconfig is supposed to take care of this for you. Can you provide the output from ldconfig -r? # ldconfig -r /var/run/ld-elf.so.hints: search directories: /lib:/usr/lib:/usr/lib/compat:/usr/X11R6/lib:/usr/local/lib 0:-lcrypt.3 = /lib/libcrypt.so.3 1:-lkvm.3 = /lib/libkvm.so.3 2:-lm.4 = /lib/libm.so.4 3:-lmd.3 = /lib/libmd.so.3 4:-lncurses.6 = /lib/libncurses.so.6 5:-lsbuf.3 = /lib/libsbuf.so.3 6:-lutil.5 = /lib/libutil.so.5 7:-lalias.5 = /lib/libalias.so.5 8:-latm.3 = /lib/libatm.so.3 9:-lbegemot.2 = /lib/libbegemot.so.2 10:-lbsnmp.3 = /lib/libbsnmp.so.3 11:-lc.6 = /lib/libc.so.6 12:-lcam.3 = /lib/libcam.so.3 13:-ldevstat.5 = /lib/libdevstat.so.5 14:-ledit.5 = /lib/libedit.so.5 15:-lbsdxml.2 = /lib/libbsdxml.so.2 16:-lgeom.3 = /lib/libgeom.so.3 17:-lgpib.1 = /lib/libgpib.so.1 18:-lipsec.2 = /lib/libipsec.so.2 19:-lipx.3 = /lib/libipx.so.3 20:-lufs.3 = /lib/libufs.so.3 21:-lkiconv.2 = /lib/libkiconv.so.2 22:-lpcap.4 = /lib/libpcap.so.4 23:-lpthread.2 = /lib/libpthread.so.2 24:-lz.3 = /lib/libz.so.3 25:-lreadline.6 = /lib/libreadline.so.6 26:-lcrypto.4 = /lib/libcrypto.so.4 27:-lbsm.1 = /usr/lib/libbsm.so.1 28:-lcom_err.3 = /usr/lib/libcom_err.so.3 29:-lnetgraph.2 = /usr/lib/libnetgraph.so.2 30:-lradius.2 = /usr/lib/libradius.so.2 31:-lrpcsvc.3 = /usr/lib/librpcsvc.so.3 32:-ltacplus.2 = /usr/lib/libtacplus.so.2 33:-lypclnt.2 = /usr/lib/libypclnt.so.2 34:-larchive.2 = /usr/lib/libarchive.so.2 35:-lbluetooth.2 = /usr/lib/libbluetooth.so.2 36:-lbz2.2 = /usr/lib/libbz2.so.2 37:-lc_r.6 = /usr/lib/libc_r.so.6 38:-lcalendar.3 = /usr/lib/libcalendar.so.3 39:-ldevinfo.3 = /usr/lib/libdevinfo.so.3 40:-lfetch.4 = /usr/lib/libfetch.so.4 41:-lform.3 = /usr/lib/libform.so.3 42:-lftpio.6 = /usr/lib/libftpio.so.6 43:-lmagic.2 = /usr/lib/libmagic.so.2 44:-lmemstat.1 = /usr/lib/libmemstat.so.1 45:-lmenu.3 = /usr/lib/libmenu.so.3 46:-lmilter.3 = /usr/lib/libmilter.so.3 47:-lmp.5 = /usr/lib/libmp.so.5 48:-lncp.2 = /usr/lib/libncp.so.2 49:-lngatm.2 = /usr/lib/libngatm.so.2 50:-lopie.4 = /usr/lib/libopie.so.4 51:-lpam.3 = /usr/lib/libpam.so.3 52:-lpanel.3 = /usr/lib/libpanel.so.3 53:-lpmc.3 = /usr/lib/libpmc.so.3 54:-lsdp.2 = /usr/lib/libsdp.so.2 55:-lsmb.2 = /usr/lib/libsmb.so.2 56:-lthr.2 = /usr/lib/libthr.so.2 57:-lthread_db.2 = /usr/lib/libthread_db.so.2 58:-lugidfw.2 = /usr/lib/libugidfw.so.2 59:-lusbhid.2 = /usr/lib/libusbhid.so.2 60:-lvgl.4 = /usr/lib/libvgl.so.4 61:-lwrap.4 = /usr/lib/libwrap.so.4 62:-llwres.10 = /usr/lib/liblwres.so.10 63:-ldialog.5 = /usr/lib/libdialog.so.5 64:-lgnuregex.3 = /usr/lib/libgnuregex.so.3 65:-lhistory.6 = /usr/lib/libhistory.so.6 66:-lstdc++.5 = /usr/lib/libstdc++.so.5 67:-lobjc.2 = /usr/lib/libobjc.so.2 68:-lg2c.2 = /usr/lib/libg2c.so.2 69:-lasn1.8 = /usr/lib/libasn1.so.8 70:-lgssapi.8 = /usr/lib/libgssapi.so.8 71:-lhdb.8 = /usr/lib/libhdb.so.8 72:-lkadm5clnt.8 = /usr/lib/libkadm5clnt.so.8 73:-lkadm5srv.8 = /usr/lib/libkadm5srv.so.8 74:-lkafs5.8 = /usr/lib/libkafs5.so.8 75:-lkrb5.8 = /usr/lib/libkrb5.so.8 76:-lroken.8 = /usr/lib/libroken.so.8 77:-lssl.4 = /usr/lib/libssl.so.4 78:-lssh.3 = /usr/lib/libssh.so.3 79:-lfontconfig.1 = /usr/X11R6/lib/libfontconfig.so.1 80:-lXau.0 = /usr/X11R6/lib/libXau.so.0 81:-lXdmcp.0 = /usr/X11R6/lib/libXdmcp.so.0 82:-lX11.6 = /usr/X11R6/lib/libX11.so.6 83:-loldX.6 = /usr/X11R6/lib/liboldX.so.6 84:-lICE.6 = /usr/X11R6/lib/libICE.so.6 85:-lSM.6 = /usr/X11R6/lib/libSM.so.6 86:-lXext.6 = /usr/X11R6/lib/libXext.so.6 87:-lXt.6 = /usr/X11R6/lib/libXt.so.6 88:-lXss.1 = /usr/X11R6/lib/libXss.so.1 89:-lXxf86misc.1 = /usr/X11R6/lib/libXxf86misc.so.1 90:-lXxf86vm.1 = /usr/X11R6/lib/libXxf86vm.so.1 91:-lXxf86dga.1 = /usr/X11R6/lib/libXxf86dga.so.1 92:-lXmu.6 = /usr/X11R6/lib/libXmu.so.6 93:-lXmuu.1 = /usr/X11R6/lib/libXmuu.so.1 94:-lXpm.4 = /usr/X11R6/lib/libXpm.so.4 95:-lXp.6 = /usr/X11R6/lib/libXp.so.6 96:-lXaw.6 = /usr/X11R6/lib/libXaw.so.6 97:-lXaw.7 = /usr/X11R6/lib/libXaw.so.7 98:-lXaw.8 = /usr/X11R6/lib/libXaw.so.8 99:-lXi.6 = /usr/X11R6
Re: Setting Env
Don Hinton wrote: # ldconfig -aout -f /etc/ld.so.conf /usr/local/lib/mysql/ will create it for you. man ldconfig for more info... Well, that created a binary, but when I rebooted...nothing. Same problem :( - Original Message From: Jerry McAllister [EMAIL PROTECTED] To: Drew Jenkins [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Sent: Tuesday, March 6, 2007 6:31:34 PM Subject: Re: Setting Env I don't know for sure what you mean That's not an option. Is this running from cron or at system bootup or something so there is no login involved? Correct In those cases, it is well documented that your scripts have to be completely responsible for their environments and paths, etc. So, set everything within the scipt. Or, if it is something systemwide, then put setting the variable it in /etc/rc.conf or /etc/rc.conf.local if you let your system have one. Exactly. But how? I could write a script like I did before: #!/bin/csh setenv LD_LIBRARY_PATH /usr/local/lib/mysql/ (chmod +x) but that didn't execute, dunno why. But then how do I call that script? What shell does /etc/rc.conf use? TIA, Drew We won't tell. Get more on shows you hate to love (and love to hate): Yahoo! TV's Guilty Pleasures list. http://tv.yahoo.com/collections/265 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Setting Env
- Original Message From: Jerry McAllister [EMAIL PROTECTED] To: Drew Jenkins [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Sent: Tuesday, March 6, 2007 7:46:26 PM Subject: Re: Setting Env If you want the environment variable to be set for something that is taking place in the script, then that variable must either be set in a durable way in the parent environment or be set right there in the script that is using it. The rc.conf method will make it available from the parent. That is the whole point of rc.conf. Right. I figured that much. So, what do I actually put in that file? I tried these two options: setenv LD_LIBRARY_PATH /usr/local/lib/mysql/ export LD_LIBRARY_PATH=/usr/local/lib/mysql/ It didn't like either, presumably because it's not calling a bash or c-shell. So, what should I put in /etc/rc.conf that will achieve my objective? TIA, Drew Get your own web address. Have a HUGE year through Yahoo! Small Business. http://smallbusiness.yahoo.com/domains/?p=BESTDEAL ___ 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 Surf To My Server?
- Original Message From: Jeffrey Goldberg [EMAIL PROTECTED] et al. I just want to thank everybody for helping me with this issue. By yesterday morning, before I left for town and a very busy day, I realized the problem (at that juncture) could not possibly have been with the IP configuration nor the server, but rather must have been the way I'd configured Zope. Later, when I had time, I confirmed that and got everything up and running. Thanks again, Drew Looking for earth-friendly autos? Browse Top Cars by Green Rating at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/ ___ 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 Surf To My Server?
- Original Message From: Jeffrey Goldberg [EMAIL PROTECTED] To: Drew Jenkins [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Sent: Monday, February 19, 2007 12:49:22 PM Subject: Re: How Do I Surf To My Server? On Feb 19, 2007, at 7:15 AM, Drew Jenkins wrote: Can you tell us more about your home set-up? Presumably you have some sort of router doing NAT and DHCP? Tell us about it. I had, but perhaps in a different thread, so forgive me for not putting it here before. I have DHCP, a satellite dish to which both computers are linked. If you don't know IP address of your internal server, than chances are that it was assigned via DHCP by your router. For what you want to do, you should probably reconfigure the server with a specific internal IP address instead of having it assigned. I do have the IP address, and no doubt it was assigned. I found it using ifconfig. Is that the correct way to do it? Assuming that I've guessed correctly about your set-up: First find out from your router what the the range of the DHCP pool is. Look at the DHCP configuration on your router. Then pick an address that is NOT in that range but still part of your local network. Then use sysinstall on your FreeBSD box to give it that IP address. If ifconfig isn't the way to do that, could you specify how? sysinstall is a GUI, so it'll just ask me a question, or I'll have to look on a chart to find what I need, right? Easy, right? TIA, Drew Don't get soaked. Take a quick peak at the forecast with the Yahoo! Search weather shortcut. http://tools.search.yahoo.com/shortcuts/#loc_weather ___ 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 Surf To My Server?
- Original Message From: Kevin Kinsey [EMAIL PROTECTED] To: Drew Jenkins [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Sent: Monday, February 19, 2007 6:26:07 PM Subject: Re: How Do I Surf To My Server? Use netstat -anf inet on the server and see if port 80 or 8080 is LISTENING, and on what address. This reports tcp4 listening on 192.168.1.130.80. Nothing on 8080, which would indicate a problem with my configuration of Zope. If the server is LISTENING on the FBSD box on the correct ports, but nmap doesn't show it, then I would assume a firewall problem, but I'm not on the ground there. Okay, can you give me some suggestions as to how to troubleshoot this? If you do see a LISTENING entry, use that interface (assuming it's Ethernet and one that it accessible from your laptop) as the entry in the laptop's hosts file. Did that, but I get a Service is not available. message in the browser (FF). 192.168.1.255 is a broadcast address and should not be used for the configuration of a webserver (is that what pound daemon is? Think so, can't remember previous mail at this point). Pound is a reverse proxy. It just redirects traffic from one port to another. The actual server is built into Zope. TIA, Drew No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started. http://mobile.yahoo.com/mail ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
How Do I Surf To My Server?
Hi; I have a production server that I've crashed a few times by working on it directly and making mistakes. As a result, I've finally built a mock server on my home PC on a separate hard drive with nothing but FBSD. I also have a laptop. All are connected by DHCP to a satellite dish. My question is, how can I surf my laptop to pull up Web pages generated from the home-based FBSD machine? What kind of networking is necessary? How do I call it up? Can this be handled through DHCP, or do I need to use BIND? Or something else? What good resources are out there for studying this? The FBSD manual wasn't much help, unfortunately. Conversely, I could surf to the FBSD machine from the FBSD machine. But I built this mock server like my workhorse...no mouse, no X, no browser. Would I have to rebuild it to incorporate those? Or just build stuff from ports? Finally, which solution is easiest...surfing from the laptop or from the FBSD machine? TIA, Drew Looking for earth-friendly autos? Browse Top Cars by Green Rating at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Can I Mount A Windoze Drive?
Here is the dialogue: # mount_ntfs /dev/ad0s1 /mnt/win #mount_ntfs: /mnt No such file or directory Drew - Original Message From: Martin Tournoij [EMAIL PROTECTED] To: freebsd-questions@freebsd.org Cc: [EMAIL PROTECTED] Sent: Sunday, February 18, 2007 3:51:25 PM Subject: Re: Can I Mount A Windoze Drive? On Sun 18 Feb 2007 07:02, Drew Jenkins wrote: For some reason, I can no longer mount the Windoze drive! The first time I mounted it, I didn't even change the fstab! I just issued the command: mount_ntfs /dev/ad0s1 /mnt/win and it mounted! I copied off everything I thought I needed. But when I tried to go back in, that didn't work. So I added the line suggested below to /etc/fstab and I still can't mount it! Rebooting doesn't help. What am I missing? TIA, Drew - Original Message From: Martin Tournoij [EMAIL PROTECTED] To: freebsd-questions@freebsd.org Cc: [EMAIL PROTECTED] Sent: Saturday, February 17, 2007 3:10:22 AM Subject: Re: Can I Mount A Windoze Drive? On Sat 17 Feb 2007 13:02, Drew Jenkins wrote: Newbie question here. I just want to make sure I don't screw anything up. I have two hard drives in my box...one for Windoze, one for FBSD. Can I mount the former from FBSD and copy over files? Do I navigate it just like a FBSD disk...cd, cp, etc? TIA, Drew FreeBSD comes with a readonly ntfs driver. Assuming your windows partition is ad0s1 mount_ntfs /dev/ad0s1 /mnt/win fstab entry: /dev/ad0s1 /mnt/win ntfs ro,noauto 0 0 You can then copy stuff, for example: cp /mnt/win/Documents\ and\ Settings/carpetsmoker/Desktop ~/ If you want read support, you might want to try ntfsprogs (sysutils/ntfsprogs), which has some basic (EXPERIMENTAL!) read support. Does mount give some kind error? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] 8:00? 8:25? 8:40? Find a flick in no time with the Yahoo! Search movie showtime shortcut. http://tools.search.yahoo.com/shortcuts/#news ___ 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 Surf To My Server?
20- Original Message From: Chris [EMAIL PROTECTED] To: Drew Jenkins [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Sent: Monday, February 19, 2007 9:09:16 AM Subject: Re: How Do I Surf To My Server? If however, you browse from within your own home network, all you need is the IP address of the server (assuming that server has apache or some other httpd) and your done. Right, all at home. I have Pound configured (like on my workhorse), not apache. But how do I determine the IP address of the server? I've never set that up before. What file do I edit? Servers should NEVER be ip'ed dynamically. Servers should ALWAYS be static unless of course, you are running some form of DNS internally. All I need is something like this: 123.456.78.90:8080/example_site so I can look at said site. Again, if your intent is to access from outside your network - then the above is mute and you need to educate yourself with the whole networking thing. I'm glad I can once more dodge that bullet ;) Drew Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. http://tools.search.yahoo.com/toolbar/features/mail/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Can I Mount A Windoze Drive?
- Original Message From: Kevin Kinsey [EMAIL PROTECTED] To: Drew Jenkins [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Sent: Monday, February 19, 2007 9:59:52 AM Subject: Re: Can I Mount A Windoze Drive? Does /mnt truly not exist? `ls -l / | grep mnt`, perhaps? Yep, exists. Here again is my line in /etc/fstab: /dev/ad0s1/mnt/winntfsrw00 What about /dev/ad0s1? # ls /dev/ad0s1 # ad0s1 TIA, Drew It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar. http://tools.search.yahoo.com/toolbar/features/mail/ ___ 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 Surf To My Server?
20- Original Message From: Kevin Kinsey [EMAIL PROTECTED] To: Drew Jenkins [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Sent: Monday, February 19, 2007 9:54:28 AM Subject: Re: How Do I Surf To My Server? Will this help? $ ifconfig vr0 snip And on a Windows Laptop: C:\ more c:\windows\system32\drivers\etc\hosts snip Yes, that is a start. I added the domain mercury.com (a site I never visit) and pointed it to 192.168.1.255, the IP address given from the above. I also updated pound to use that address, and was able to get the pound daemon running. However, I cannot surf to either mercury.com or the IP address. When I run this command: nmap localhost I discover that no Web ports are open: neither 80, nor 8080 (Zope), whose daemon is running. nmap 192.168.1.255 doesn't return any ports, stating it seems the host is down. nmap 192.168.1.130 the other address returned from your ifconfig command, gives the same ports as above. Please advise. TIA, Drew Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Panic and Dump
- Original Message From: Lowell Gilbert [EMAIL PROTECTED] To: Drew Jenkins [EMAIL PROTECTED] Sent: Monday, February 19, 2007 12:00:54 PM Subject: Re: Panic and Dump The filesystem clearly needs a good fsck. Remember that it can't be mounted read-write to do so; usually you'll want to boot in single-user mode to do it. Thanks, but I didn't hear back from anyone on this until you, I hadn't built much on the server, so I just rebuilt ;) Drew Don't get soaked. Take a quick peak at the forecast with the Yahoo! Search weather shortcut. http://tools.search.yahoo.com/shortcuts/#loc_weather ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Can I Mount A Windoze Drive?
- Original Message From: Jerry McAllister [EMAIL PROTECTED] To: Drew Jenkins [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Sent: Monday, February 19, 2007 12:04:29 PM Subject: Re: Can I Mount A Windoze Drive? Great! What worked here for me was: mkdir -p /mnt/win and then mount_ntfs /dev/ad0s1 /mnt/win and *now* I can mount the Windoze drive. The piece of the formula that was missing (probably my oversight) was to mkdir, which you brought to my attention. Thanks! Drew Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Can I Mount A Windoze Drive?
For some reason, I can no longer mount the Windoze drive! The first time I mounted it, I didn't even change the fstab! I just issued the command: mount_ntfs /dev/ad0s1 /mnt/win and it mounted! I copied off everything I thought I needed. But when I tried to go back in, that didn't work. So I added the line suggested below to /etc/fstab and I still can't mount it! Rebooting doesn't help. What am I missing? TIA, Drew - Original Message From: Martin Tournoij [EMAIL PROTECTED] To: freebsd-questions@freebsd.org Cc: [EMAIL PROTECTED] Sent: Saturday, February 17, 2007 3:10:22 AM Subject: Re: Can I Mount A Windoze Drive? On Sat 17 Feb 2007 13:02, Drew Jenkins wrote: Newbie question here. I just want to make sure I don't screw anything up. I have two hard drives in my box...one for Windoze, one for FBSD. Can I mount the former from FBSD and copy over files? Do I navigate it just like a FBSD disk...cd, cp, etc? TIA, Drew FreeBSD comes with a readonly ntfs driver. Assuming your windows partition is ad0s1 mount_ntfs /dev/ad0s1 /mnt/win fstab entry: /dev/ad0s1 /mnt/win ntfs ro,noauto 0 0 You can then copy stuff, for example: cp /mnt/win/Documents\ and\ Settings/carpetsmoker/Desktop ~/ If you want read support, you might want to try ntfsprogs (sysutils/ntfsprogs), which has some basic (EXPERIMENTAL!) read support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. http://tools.search.yahoo.com/toolbar/features/mail/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Can I Mount A Windoze Drive?
- Original Message From: Greg 'groggy' Lehey [EMAIL PROTECTED] To: Drew Jenkins [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Sent: Saturday, February 17, 2007 3:03:03 AM Subject: Re: Can I Mount A Windoze Drive? Thank you to both you and Martin Tournoij as well for answering this question. Drew Sucker-punch spam with award-winning protection. Try the free Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/features_spam.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Accessing Server TTW
Hi; Another newbie question. I've successfully built (so far) my FBSD server on a separate HD on one of my 2 PCs at home. I am connected to the Internet via DHCP through my satellite dish. I would like to access Web pages on my FBSD server from my other PC. How do I set this up? TIA, Drew 8:00? 8:25? 8:40? Find a flick in no time with the Yahoo! Search movie showtime shortcut. http://tools.search.yahoo.com/shortcuts/#news ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Building Home Server
20Hi; I'm building a server at home to mimic my live server. The instructions require that I gather the following information: * IP address * IP address of default gateway * Hostname * DNS server IP address * Subnet Mask Now, I think I can use 192.168.0.1 as my IP address, since that calls up my satellite interface. I've tried running ipconfig /all from the run command in Windoze, but it flashes the results so quickly then disappears that I don't have a chance to read the results! How do I get this information? Is there a Web site that can read my config? Or, what's a good guess at the defaults that would work for my satellite interface (which would be better, in case my data isn't static)? Also, where do I go in FBSD to edit the config so I can access the net? TIA. Drew Bored stiff? Loosen up... Download and play hundreds of games for free on Yahoo! Games. http://games.yahoo.com/games/front ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Building Home Server
Start menu/Run cmd There you will get a win32 console where you can type in ipconfig /all Miscommunication. I *did* that. It pops up the info I need on the screen so fast then the screen disappears...I never have a chance to read the info!! What do?? Also, I found this info on a Web page built into my satellite interface: IP Address: 192.168.0.1 Subnet Mask: 255.255.225.0 NAT IP Address: 67.46.93.3 NAT Subnet Mask: 255.255.255.255 So, now I've got the IP address and the subnet mask, but I still need to find out the IP address of the default gateway, the hostname, and the DNS server IP addresses. However, I do not understand what you are trying to do. I'm trying to configure FBSD so I can get online. There is an interface at setup that requests all this data. Also, the manual says to have this data handy (it is the manual I am currently referencing). Probably your interface uses DHCP. Yes, DHCP is enabled. You should type in /sbin/sysinstall and then configure your network interface. Yes, that is what I will do, but first I need the above questions answered, because that is the data I must enter! TIA, Drew TV dinner still cooling? Check out Tonight's Picks on Yahoo! TV. http://tv.yahoo.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Building Home Server
- Original Message From: Joe Holden [EMAIL PROTECTED] To: Drew Jenkins [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Sent: Friday, February 16, 2007 11:45:47 AM Subject: Re: Building Home Server You could try opening a command prompt (cmd/command in run) and running it, that way it won't close after it exits. Yeah, I thought of that, unfortunately I get the response that id doesn't recognize the command! Yet run does recognize the command! Go figure! Drew Looking for earth-friendly autos? Browse Top Cars by Green Rating at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Building Home Server
- Original Message From: Nagy László Zsolt [EMAIL PROTECTED] To: Drew Jenkins [EMAIL PROTECTED]; freebsd-questions@freebsd.org Sent: Friday, February 16, 2007 12:08:13 PM Subject: Re: Building Home Server Did you run cmd.exe? Really? This is really strange. If I go to run and then enter ipconfig /all, it prints everything out in a flash then disappears, so I don't have time to read the information. If I go to run and type in cmd.exe and then type in ipconfig /all it tells me the command doesn't exist! 1. Login as root 2. Start sysinstall 3. Go to Configure/Networking/Interfaces 4. Select your NIC card 5. When it asks to configure with IPv6, say NO 6. When it asks to configure with DHCP, say YES That's all. Worked like a charm ;) Thanks! Drew Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Panic and Dump
20Hi; I've just built a new machine with two drives, one for Windoze and one for FBSD. Although I've built this according to specs, there seems to be a problem with the motherboard, because I've had a number of occasions where the computer automatically shuts down. I can now run Windoze without any problems. However, when I went to install python from ports in FBSD, it crashed. When I booted back up and tried again, it gave me this error: mode = 0100644 inum = 2290285, fs = usr panic: ffs_valloc: dub alloc Uptime 47s Cannot dump. No dump device defined. Now, clearly, I've got to figure out why the computer is crashing...that's another problem, and I'll work with the motherboard company on that. But how do I fix this dumping problem? TIA, Drew Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Building Home Server
!-- DIV {margin:0px;}--- Original Message From: Robert C Wittig [EMAIL PROTECTED] To: Drew Jenkins [EMAIL PROTECTED] Sent: Friday, February 16, 2007 1:11:38 PM Subject: Re: Building Home Server Is this a Windows box or a BSD box, that you are trying to run a server on? Both: a hard drive for each. This is only a personal server. My workhorse is located elsewhere. But I'm tired of having problems with experimenting on my workhorse! Once I get this built, then whenever I try something new, I'll try it on this unit, then once it works build it on the workhorse. You know, like you're supposed to do it ;) If you are looking for information on how to set up something similar, I have an excellent grasp, how to do it, up to and including setting up a very basic PF, to keep the crackers out. Fire away! I'd love to see your packet filters and anything else you have that you think would be of interest! Thanks! Drew Cheap talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. http://voice.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Building Home Server
- Original Message From: Ziad Badawi [EMAIL PROTECTED] To: Nagy László Zsolt [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Sent: Friday, February 16, 2007 1:42:53 PM Subject: Re: Building Home Server regarding the ip config, you could type: ipconfig /all | more or ipconfig /all out.txt In the second way you'll find the configuration in out.txt Firstly, this discussion is now OT and not necessary, since the problem has been solved, but interesting at least to me nonetheless. Secondly, I ran the first command and watched the data scroll by for 2 seconds then disappear. On the out.txt, I ran a search for the same and it wasn't to be found on my hard drive. Ah, well! Good ideas! Didn't know those commands work in DOS, too ;) Drew Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. http://tools.search.yahoo.com/toolbar/features/mail/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Can I Mount A Windoze Drive?
Newbie question here. I just want to make sure I don't screw anything up. I have two hard drives in my box...one for Windoze, one for FBSD. Can I mount the former from FBSD and copy over files? Do I navigate it just like a FBSD disk...cd, cp, etc? TIA, Drew It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar. http://tools.search.yahoo.com/toolbar/features/mail/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]