Jump to content

Vdubjunkie

Members
  • Posts

    177
  • Joined

  • Last visited

Everything posted by Vdubjunkie

  1. I knew aru would come through for me. Man I've been having fun. All of a sudden making sense of, and following the process of scripts makes a lot more sense! :P Anyway, I was searching for that post where you showed me how to find a bunch of files meeting criteria, then move it all. After doing that I'm back to bash.edu for some more edumacation Thanks once again man. I only hope one day the code will flow in my head the way it does in yours.
  2. Thanks, I guess to clarify, I know a pretty fair amount about networking, and a few other things as well, but one question you brought up allows me to more clearly define my lack of knowledge. I'm in the process of learnign to bash script, so I can poke through scripts and MOL make sense out of them, but as far as determining boot order, I really don't know how that works. Some of the boot process is still a mystery to me in nix. (likely due to the fact that you almost never need to do it!!) The other thing here is that I think in all my rambling I confused you. My server is not a DHCP client, but static. The resolf.conf file was created, and I don't believe has been changed from the beginning. All of the machines aside from the doze box(which I barely consider, it is for kids games and wife's internet) all route through the router for their net connection, and currently use their /etc/hosts file for resolution. (or NIS I guess for that matter). Perhaps the order of operation of boot sequence is something to check into. I will beging to look around and try to figure out how to tell the order or boot processes, and keep checking back to see if you replied and might shed some light on it in case I don't find it easily. Either way I'll let you know what I find. Oh yeah, incidentally, one thing I just found out is that I don't know, nor can I find out where (what file) NIS looks for domainname. The only filename I found in googleland does not exist on my machine. Not even once I set the name. The lack of a pre existing domainname during boot keeps NIS from starting up properly on both servers and workstations. (yet another, "since I never reboot" thing)
  3. Hello all, First off, let me say that aru would be proud. I've finally bitten the bullet and taken to the (for me) arduous task of learning to script using bash. btw, in searching I did not find my answer, but I did find this: http://www.mandrakeusers.org/viewtopic.php...xclude+multiple ...and, wow is about all I can say. On to my problem. I decided to write up a cool script that I could put a CRON job in for to backup my /home folder minus a few things which take up too much space and are unnecessary. My problem is that the only thing I have found to work is the following: tar --exclude=<first> --exclude=<second> -cjf backupfile.bz2 /home/* In my script I have something like: EXCLD='first second third' and use the $EXCLD in the final line of "code" to execute a tar command. Now, I've tried single quoting, double single quoting, full quoting, separating with semi and full colons and backslashes, everything I can think of to my list of files/directories to exclude so that I can have one --exclude statement, and I just cannot figure out how to make it work. I do believe that I got this idea to work once before by redirecting it to another file using the -X or --exclude-from= and just listing one item per line in that text file, but I'd sort of like to avoid that too if possible. If that is the option, please tell me so I can bite the bullet and move on... :roll: ...oh yeah.. man this is freaking fun. any of you CLI junkies out there putting off scripting should do like me, bite the bullet and learn it.
  4. better yet pull up a terminal on both boxes and su to root, then see what your ip addresses are. "ifconfig" If they are in the same subnet that is good. However, you may just need to add a line to your /etc/hosts file like 192.168.1.1 NameOfOtherBox then on this same machine type a "ping NameOfOtherBox" If you get a reply then it just didn't know the name of your other box and needed to be told. Can't much help with accessing network from gui, but can tell you how to get them talking to one another and all sorts of alternatives to the gui!! :)
  5. I know this may not be the popular post in here as I see most of you are into the gui/wizard thang, but... for me, the only way to do it is to learn the commands that the gui tools hide from you. After all, this is part of the reason I came to linux. Not just added reliability and more efficient processing, but to really be able to know what and why about everything the OS is doing. My advice would be to read some of the other posts in "Networking" and search for things like "route" "ifconfig" "ifup/ifdown" and examining files like /etc/hosts & /etc/resolv.conf and/or /etc/nsswitch.conf just my 2 cents.
  6. Funny thing is that even though it isn't correct, it does work. It always has, and continues to do so on all my other boxes. The weird thing here is that after losing power today and waiting for both of my raid devices to do integrity checks, the machine came up, and (being at work) I walked my wife through the commands to bring up the networking on the box. Now dns works again. Of course I did have to restart NIS and nmbd. As far as dns, I know quite well that the router does not perform the dns, it allows a gateway to the internet. When my server and workstations have the entry in the routing table that their default gateway is 192.168.1.1(the router) they receive their access via the router. I do have one box that utilizes the dhcp of the router mostly because I don't much care to necessarily connect to it (shh... it's doze), but the rest I do much work on, and it simplifies things quite a bit to run static ips. Now, future development will place a bsd box in the place of the router and provide dhcp, and once that is all setup I won't mind my workstations having dynamic ips, but my servers will always have static ips. That is just the way to do it in my mind. so.... I guess the point is back to why that interface won't come up at boot. If the lack of functioning dns doesn't reappear EACH time I reboot, it must have been an odd phenomena that may not repeat itself. Gowator's point has now moved to the top of the priority list. Figure out why eth0 doesn't come up at boot and fix that.
  7. Ok, I guess I'm bad about assuming people know what is going on in my mind. :) First, none of my boxes obtain an external ip. That is the job of my router (192.168.1.1). Each of my linux boxes has static ip. I fully understand the ip scheme, and that is all good. Absolutely nothing. It just works. I follow it with an ifconfig, and there is the ip I have assigned it as opposed to if I do an ifconfig prior to the ifdown/ifup sequence immediately following a reboot. I'm fine with this, it makes perfect sense. However I guess my problem is still that I don't know what service performs dns. I restarted NIS and it works fine, and I start nmbd and it works fine. I just don't know what to start for dns. Again, I'm good with this idea, I just don't know what to start. search <internal network> nameserver 192.168.1.1 I'm fully aware NIS is not necessary for my size network, however I am not planning for only my network if you know what I mean. I agree completely, but until then my server doesn't do much of what it needs to do, and seeing how it is not uncommon to go months without needing to reboot, figuring out what service to start to restore functionality is key to me right now, thus allowing me the time to concentrate on why the ifplugd doesn't "detect a link beat" or whatever it said. Now my nsswitch.conf looks like this passwd: files nisplus nis winbind shadow: files nisplus nis group: files nisplus nis winbind Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 * 255.255.255.0 U 0 0 0 eth0 127.0.0.0 * 255.0.0.0 U 0 0 0 lo default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0 as you can see I have already "route add default gw 192.168.1.1" and the default mask and eth0 work properly for my network. I have done this on both servers and all workstations. All other boxes work properly and run static ips. If I'm not mistaken (and I'm not too big to accept that I might be) this shouldn't be necessary (has never been in the past) since the default gw is set to my router. Most of the rest of the info is above, but it is a single subnet and DNS is currently handled entirely externally and is processed for my network by my router which has the dns ips config'd on it. Again, the rest of the machines continue to function, so it likely isn't anything to do with their lack of function. That's pretty much it. What else do you think? I could explore the possibility of IRQ conflict, but since it comes up with not one second of hesitation when I log in and perform the ifdown/ifup sequence, I tend not to think that. Perhaps the ifplugd program not "detecting a link beat" is not functioning properly since I do absolutely nothing to any hardware prior to the ifdown/ifup procedure. i.e.: there is nothing that need take place in between these following processes for it to work reboot log in su ifconfig (no IP address obtainged by eth0) ifdown eth0 ifup eth0 ifconfig (ip obtained by eth0 and network functionality restored)
  8. you may not like my reply, but here it is anyway... never use a wizard or gui tool when you can lay down a fat command on the command line... and, honestly I have yet to figure out where the final straw is in mine. Perhaps yours is like this too. I must have missed it at install, because my server goes to EDT no matter what I do to it. I try manually adjusting it with the "date" command figuring out the syntax through trial and error myself since the --help absolutely SUCKS, and no matter what it always returns to EDT. The good news is that considering the shift in time zone, the time is right, and it continues to serve as an internal NTP server for my other machines which all display my proper MST time zone. And, they are synched.. uh sort of. Anyway, there is a file somewhere I have yet to find out in the google land that could be adjusted Im sure. Found the file Redhat uses, but unfortunately it must not be the same file in Mandrake.
  9. thank you for both sentiments Gowator!!
  10. Hello all, Not too terribly long ago I upgraded my server from 8.2 to 9.0 with a clean install. Honestly it is possible that I never had to reboot it once configured until recently when I discovered that after rebooting the eth0 did not come up at boot. Oct 8 03:26:14 Server ifplugd(eth0)[805]: Using interface eth0/00:60:08:CC:14:77 with driver <3c59x> (version: LK1.1.16) Oct 8 03:26:14 Server ifplugd(eth0)[805]: Using detection mode: SIOCGMIIPHY Oct 8 03:26:14 Server ifplugd(eth0)[805]: ifplugd 0.15 successfully initialized, link beat not detected. Oct 8 03:26:14 Server network: Bringing up interface eth0: failed all I have to do is to "ifdown eth0" & "ifup eth0" and it is online. Likely related to this, nmbd does not start at boot. However I also figured out tonight that my NIS was not functioning. I had to start ypbind manually. When I went to do that I was told that domainname was not set. Funny, it was before. So, I set it and started ypbind, and still I have no functioning NIS, but I'm sure I just need to start up all services in the right order on the various machines. Anyway, I am not sure if this is all related to the issue with eth0 not coming up at boot or what, but it is crippling my server. Oh yeah, also, more important (often) than the rest is the fact that dns outside of my network does not function whatsoever. After deciding that MD uses "named" I think.. I went looking and found that the permissions on "/var/named" and "/var/run/named" were both set to the number associated with user "named". I don't know why this happens. So, after fixing this problem and successfully starting the named service.. named 1135 0.0 0.3 10612 1780 ? S Oct08 0:00 named -u named named 1143 0.0 0.3 10612 1780 ? S Oct08 0:00 named -u named named 1144 0.0 0.3 10612 1780 ? S Oct08 0:00 named -u named named 1145 0.0 0.3 10612 1780 ? S Oct08 0:00 named -u named named 1146 0.0 0.3 10612 1780 ? S Oct08 0:00 named -u named I still have no outside dns. My /etc/hosts file still gets my internal networking done, but that's just not good enough in today's day and age! Anybody have any ideas about any of this? I know this is a cross between "Software" and "Networking" as it often is, but didn't know for sure which to put it in. p.s. oh yes, I respectfully ask that nobody offer gui or wizard help as this ultimately does me no good. It is fine for some, but just leaves a lot to be desired. Read my signature for darned sake!! :)
  11. in my experience smbd & nmbd either are running and functioning to the best of their config file or not at all. the reason I say this is that perhaps your network connectivity is not just about your internet connection. Without any further information to go on, perhaps your NIC is flaky. are there any patterns you can see as to when or why it happens? i.e. every 4 hours or so, or whenever you put a heavy load on the network. if not, i would try to use another network card if you have access to one.
  12. I cant tell you how much smb.conf tinkering I have done, and across a few versions of Samba now my method for seeing through the successful restart of Samba is the following killall -HUP smbd and killall -HUP nmbd which is really only necessary for naming, so... Anyway, another point I felt it important to touch on in case someone comes across this thread later is the fact that unless this is very old information, there is no reason you should have to have your shares stem from /home. I have shares across all of my drives and they all work flawlessly. I share them to both nix and 98/2k boxes.
  13. Vdubjunkie

    little network

    I can't be much help with nfs because I have yet to use it, but you can use samba, and likely it is already setup if you installed the packages. You can go edit /etc/samba/smb.conf to add additional shares, or just use existing $HOME shares. do a ps auxw | grep mbd to see if both smbd and nmbd are running. If so, and you have two same name users on both boxes you could get started really easily by going to the box you want to mount the remote drive to and (as root) doing something like this mount -t smbfs //servername/home /mnt/sambahomemount Of course this assumes that you already have a local folder named /mnt/sambahomemount (much less want it to be called that), and that the name of the other computer is defined in your /etc/hosts file as "servername" One thing no matter what way you do it that you want to do right away is edit your /etc/hosts file (if you haven't already) so that the computer you are on recognizes the other computer as the name you want it to. It might look something like this Oh yeah, another thing you have to do is to add both root user and whatever other user you are going to use to the /etc/samba/smbpasswd file like so smbpasswd root give it the same password as you already have for nix, then smbpasswd otheruser again substituting "otheruser" for your actual user name and giving it the same password as you already have for nix.
  14. I know this isn't the answer you are looking for, but you shouldn't have to. I use vnc extensively and never have to do that. Something else is happening. Perhaps you should try to determine when the kde dies (llike maybe right after killing the connection to that vnc server) and read /var/log/syslog to see what happened on the server. Also, are you using x0rfb (or whatever)? or are you just calling "vncserver" by the command line? The second is the way I do it and I'm just wondering because that is where most of my nix vnc experience lies.
  15. I am what you would call a green scripter, but this is taken from the .login file located in ~ on my bsd box. [ -x /usr/games/fortune ] && /usr/games/fortune freebsd-tips You could see where to put that on MD.. likely .bashrc or something. also, my shell is csh on that box, so don't know if it needs csh or if it will work with bash which is MD's default shell.
  16. very cool. Thanks paleo. tzselect set my time zone.... i guess. the "date" command doesn't seem to care what my TZ is. It still says EDT oh well. good enough for the girls I went with before being marr.... uh.. nevermind. anyway... I guess I'll just give up that battle in favor of other necessities for the time being. :roll:
  17. Alright, I got ntp working ok again.. god knows what may happen when I reboot. That will happen soon as I need to remove a drive from the machine any time I have the time. However, even though the machines receiving ntp time from my server are cool and displaying MST accurate time, my server refuses to do anything but display EDT time. The freaking --help for the "date" command absolutely SUCKS, and I'm trying to change time zone with that, but it won't work. Even if I wanted to give in and use a waste of space gui tool to set it, I remembered that when I last tried to urpmi one of those common all in one gui config centers it failed for some stupid reason. Probably I need to add more urpmi media, but for god sake, why can't I just go "date -s +MST" ? After all we should be able to do all this stuff from a terminal. aaaaaaagh!!!!!!! :x
  18. chances are good I've got that wizdrake stuff.. i guess if it comes to it I'll do it, but that sure would suck. Using a gui just because nobody out there documented how the relationship between your NTP time and system time is affected by time zones. sorry if it doesn't seem wholehearted, but I do appreciate the info. Now, does anybody else out there know what (or even where I could find) the deal is with this? :roll:
  19. ... and on to the next issue. I installed NTP. It was great. All my boxes were synched and it had a drift file... I told it to set the hardware clock after my system clock... Then I rebooted my server, and the time is off by many hours. My problem is that I don't know whether my MST is supposed to take into account the time shift, or what I am supposed to have my system time set to GMT for synching with the time servers. Time servers in my local area seem to serve the time as GMT or maybe it was EST. I forget now. But it is definitely NOT local time. Nothing I find on the net seems to address this issue. heeeeeelp.... :x
  20. this may not be an option, but for me I would have to say the real fix is "time for a new ISP." :P
  21. First, I like to say thank you to everyone who provided information. I have already used the cp -pax, and it worked quite well. In the future when I have another need to transfer a large number of files, I will try some of the others. ...uh.. hours and hours. I don't know linux in and out yet, but I am no computer noob :lol: As far as heat goes, that wasn't really a factor here. I have experienced the same issue on IBM servers made to get hammered all day for years on end. My box is also quite well suited. It is a good point though. I would never try this in the box I built for my kids :) oh yeah, as far as killing those jobs that wouldn't die.. well, by the time I got home the system was totally locked anyway, so...
  22. wget is the ONLY way to download files IMHO :shock:
  23. Very nice. Thanks ..fodder. This option for "staying on the same filesystem".. is that referring to ext2, ext3, or as in locally to that machine? I've always wondered about that switch. Also... if anybody has any thoughts on how to kill those jobs without rebooting. I won't be able to boot the machine (nor do I want to at all) until the morning when I return home. And darnit, I need a file off there! :roll:
  24. Thanks a lot for all of the suggestions guys. I will try some of them and let you know what I had the best results from.
  25. Latest dillema, Be it doze or be it Linux I have never had good luck moving tons of data in many nested folders from one drive (or set of drives as the case may be) to another. My latest endeavor involves three 120GB drives set up with approximately 75GB of raid5 space, and the remaining partitions set in raid0 to create about 210GB. I have painstakingly created equivalent folders on the new partitions, and tried my best to not move too much data in any one mv command so as not to lock up the entire box as I did several times in the beginning, but it is getting tiresome, and now, even with those efforts, I have managed to not totally lock the box, but the mv command is hung, I cannot seem to kill it even with a -9, and I've now even tried to umount -l the /mnt/raid5 involved in the process. I guess my query is two pronged. Is there a better way to move massive amounts of data internally in a single machine (much less across a network), and what the heck can I do to kill this hung process and set this back to normal to continue my migration of data? anybody who knows me knows without me saying, but... as always, any help is greatly appreciated :)
×
×
  • Create New...