LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-19-2007, 11:57 AM   #1
Decepticon22
Member
 
Registered: Sep 2004
Posts: 32

Rep: Reputation: 15
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.
 
Old 01-19-2007, 01:54 PM   #2
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
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.
 
Old 01-19-2007, 02:42 PM   #3
Decepticon22
Member
 
Registered: Sep 2004
Posts: 32

Original Poster
Rep: Reputation: 15
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-
 
Old 01-19-2007, 03:14 PM   #4
Decepticon22
Member
 
Registered: Sep 2004
Posts: 32

Original Poster
Rep: Reputation: 15
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
 
Old 01-19-2007, 03:18 PM   #5
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
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.
 
  


Reply

Tags
nfs


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hint: Wanna try Linux, so wanna rig your Windows system to dual-boot? sundialsvcs Linux - Newbie 2 08-16-2005 02:56 PM
Install succeeded!! Very happy, wanna share with you guys! bruno buys Debian 5 07-12-2004 10:18 AM
Urgent - wanna know boot files for 2.6.3 kernel coolamit78 Linux - Software 5 02-22-2004 03:24 AM
Newbie wanna setup up a linux network on existing home network... marvc Linux - Networking 3 03-19-2003 09:02 PM
Hi there, I wanna get into Linux, what can you guys tell me about it? StlthMd Linux - General 17 09-04-2001 08:32 PM


All times are GMT -5. The time now is 11:20 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration