Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
OK, just an off-the-wall thought. How about if you embed a small file on each mount, just a text file that says something like " NFS Mount #1 alive" then set up something which will poll the files and verify the mount's existance every half hour/ hour or whatever and flag you if it gets lost.
You'll note I'm into concepts at the moment so I won't bother you with details!
i know what you mean about the concept, and maybe it's a last case scenario, because they want me to deal with it with the least of extra files (if you know what i mean)
So if i suggested this, they would 'like' it, but they'll ask me to look for another solution
first of all, thanks for your reply i'll sure test it
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/sda1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
So are these the mounts that are installed AND working? because i see there something like NONE , do i first need to filter them out? or is that normal?
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw) /dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
usbfs on /proc/bus/usb type usbfs (rw) usbfs on /proc/bus/usb type usbfs (rw)
/dev/sda1 on /boot type ext3 (rw) /dev/sda1 on /boot type ext3 (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
so, you see that both files are the same. So how do i transfer this to a message, like 'Files are the same' ? or something like that
i don't understand (yet) how to see what are mounts and which are not, i know what they do, but i can't say for sure if that are the mounts on that server ...
diff or sdiff compares the content of files. sdiff really shows the output and diff not, so i don't need them to show what they are comparing, i just need to know if they are the some or not (that's why i use diff and argument -s)
I know it's rather strange to check the IF statement like i programmed, but i still don't know how to get the result (the diff is giving) to transform them as a number or a boolean or whatever...
so if anyone has a suggestion, i'd like to hear ^^