Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-19-2007, 11:57 AM
|
#1
|
|
Member
Registered: Sep 2004
Posts: 32
Rep:
|
Guys just wanna see their files across network.....
Hi guys,
Here is my dilemma, I am trying to see and access the drives and folders on linux boxes remotely across the network. I basically ssh into the machine and then CD down to the directory with the files that I want to access. Prior to all this I stop and restart the following services; portmap and nfs. (NOTE  I issue these commands first as root, then
Log back in as a user:
/etc/rc.d/init.d/portmap stop
/etc/rc.d/init.d/nfs stop
/etc/rc.d/init.d/portmap start
/etc/rc.d/init.d/nfs start
This is all I do. Nfs squawks when I stop it but eventually it shuts down. I then restart the two and from that point, I am able to ssh into other linux boxes and drill down to see directories and files. However recently I have one box that seems reluctant to allow me to see it directories. I can ssh to it but when I try to ls and see the files in the say “jukebox” directory, nothing comes up. I don’t get any other than a prompt for that directory, no listing of files. However, if I reboot that linux box that I currently can’t see, re-run the stop and start command for portmaping and nfs, I can then see the box I was trying to reach BUT the problem then switches to the local box, in essence, the issue\problem is now on the local box.
A). How can I set this up so that I get either machine to see one other, I can see both their directories and files and,
B). How can I automate this process so I don’t have to keep doing this
Thanks
D22-
PS,
In my /etc/exports file I have the dns names and ips of the machines I'm trying to reach
Last edited by Decepticon22; 01-19-2007 at 12:04 PM.
|
|
|
|
01-19-2007, 01:54 PM
|
#2
|
|
Senior Member
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075
Rep:
|
Service management actually varies by distribution, so it's difficult to give specific instructions for disabling NFS without knowing the distribution that you use. The easiest way to do that is to fill in the "Distribution" field of your profile, which is also displayed under your name.
When you use NFS etc. it's a good idea to make sure that your user account name and the UID number of your accounts are the same on each system, to avoid things getting confused. NIS and LDAP shared authentication take care of this for you, or you can just the functions of the account tools to specify UIDs when you create accounts.
|
|
|
|
01-19-2007, 02:42 PM
|
#3
|
|
Member
Registered: Sep 2004
Posts: 32
Original Poster
Rep:
|
Sorry about that,
Forgot to include some additional info here. The kernel version of the machine that I am having problems with is 2.6.9-42.0.3.EL smp #1 x86_64 x86_64 x86_64. When I bootup and login to the computer, directories from other various linux computers are mounted In a directory call (for example) “Resinfo”. From my computer, if I CD into Resinfo, I should be able to see a list of all the other computers with their mounted “Resinfo” folder\directory, so for example, if I have linux boxes apples, oranges, banana,
And berries, I can be sitting at berries, ssh into apples, CD to apples “Resinfo” directory\folder do an ls and see its files and mounted folders\directories of oranges and banana. In this case, when I ssh from berries to apples, CD to apple’s Resinfo” folder\directory and do a ls…….I get nothing, just the [user@apples]# prompt, no list of files or directories or folders.
Hope this helps to make things make a little clearer.
D22-
|
|
|
|
01-19-2007, 03:14 PM
|
#4
|
|
Member
Registered: Sep 2004
Posts: 32
Original Poster
Rep:
|
More to clarify here,
I am are trying to simply mount file systems over the net.
This is what I would like:
Set up hard mounts in the fstab, & have these correctly mounted when ever we boot the machines.
Now, unfortunately, something is screwed up in the mounting process, but I do not know what.
I seem to have to boot and reboot numerous times, back and forth, before the mounting properly takes place.
It's as if a system process is not turned on, and when it fails it locks out any mounting from other computers,
even though officially they are supposed to be able to mount those files.
These command lines here probably can go into a boot startup script,
/etc/rc.d/init.d/portmap stop
/etc/rc.d/init.d/nfs stop
/etc/rc.d/init.d/portmap start
/etc/rc.d/init.d/nfs start
but I am not sure which. I don't think these commands are not the problem,
thanks again to all,
D22
|
|
|
|
01-19-2007, 03:18 PM
|
#5
|
|
Senior Member
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075
Rep:
|
That kernel scheme is for RHEL, and FWIW the Red Hat/Fedora tool for enabling and disabling services is "chkconfig".
In the example that you gave, it sounds like the issue is that the "apples" server isn't actually mounting the NFS share on the directory that has been configured as the mount point. So when you "ls" you just see the actual contents of that directory on "apples" (which contains no files), rather than the remote NFS share that should "overlay" it.
(Additional) P.S: try using autofs, which automatically mounts (and remounts) NFS shares on demand, rather than configuring your NFS imports to mount at boot time.
Last edited by hob; 01-19-2007 at 03:21 PM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:15 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|