LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 06-20-2010, 12:56 AM   #1
pratap.sekhar@bt.com
LQ Newbie
 
Registered: Mar 2010
Posts: 12

Rep: Reputation: 0
Accessing other linux file systems in Linux


Hi All,

I have 3 linux systems configured for running applications in each, named system1, system2 and system3. I have around 100 GB of space in system3 under /usr but not much being used. In System1 very less space is there but mostly hits coming here and need to have proper backup, as the system1 is quite old and not planned partitons properly. So I want to use a disk having more space for backup requirements.

Is there any way of accessing System3 /usr partition in System1

Please advice!

Thanks in Advance!

Raaj

Last edited by pratap.sekhar@bt.com; 06-20-2010 at 12:58 AM.
 
Old 06-20-2010, 02:02 AM   #2
John VV
Guru
 
Registered: Aug 2005
Posts: 13,239

Rep: Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774
the answer/suggestions would depend on what the 3 OS's are
if all 3 are Linux and can read/right to ext4 )
or is one of them only to use ext3 ,or is one Windows ( ntfs) ????

but the question dose sound like a home work question.
 
Old 06-20-2010, 02:52 AM   #3
pratap.sekhar@bt.com
LQ Newbie
 
Registered: Mar 2010
Posts: 12

Original Poster
Rep: Reputation: 0
Dear John,

All thre are Linux systems, could I please have steps for achieving this?

Thanks
Raaj
 
Old 06-20-2010, 08:28 AM   #4
hda7
Member
 
Registered: May 2009
Distribution: Debian wheezy
Posts: 244

Rep: Reputation: 31
Take a look at NFS
 
Old 06-20-2010, 01:32 PM   #5
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,958

Rep: Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672Reputation: 2672
Quote:
Originally Posted by pratap.sekhar@bt.com View Post
Hi All,
I have 3 linux systems configured for running applications in each, named system1, system2 and system3. I have around 100 GB of space in system3 under /usr but not much being used. In System1 very less space is there but mostly hits coming here and need to have proper backup, as the system1 is quite old and not planned partitons properly. So I want to use a disk having more space for backup requirements.

Is there any way of accessing System3 /usr partition in System1
You can mount it via NFS, but you will have problems. File-locking, etc., and if two systems try to access the same file at the same time, things will get...interesting.

Your question is very hard to read and understand. Write clearly, please.
 
Old 06-21-2010, 12:16 AM   #6
pratap.sekhar@bt.com
LQ Newbie
 
Registered: Mar 2010
Posts: 12

Original Poster
Rep: Reputation: 0
Hi Guru,

I am posting the question once again, it seems a bit difficult for some people to understand.

I have 3 linux servers installed in 3 systems, named

Hostname IPAddress
customercare 192.168.0.100
cmdctr 192.168.0.202
outports 192.168.0.203

There is lot of space available in outports system under /usr partition, wanted to mount this in customercare system

Please adivce
 
Old 06-21-2010, 01:18 AM   #7
John VV
Guru
 
Registered: Aug 2005
Posts: 13,239

Rep: Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774
Quote:
All thre are Linux systems, could I please have steps for achieving this?
there are no 1,2,3 steps

can you reformat and repartition the drives on the 3 separate computers?
if yes there is 1 way ,if no there is a different way.

-- or --
can you ONLY add to outports /usr
then you could use a mount point .

there are many many ways including NFS
 
Old 06-21-2010, 02:15 AM   #8
kumar.manoj412
Member
 
Registered: May 2007
Location: India
Distribution: Mandriva, Ubuntu
Posts: 43
Blog Entries: 1

Rep: Reputation: 16
Thumbs up

Hi,

You can try the following steps.
1) create a directory in ur /usr partition (e.g mkdir /usr/shared_dir)
2) export it to the network using nfs
a) vi /etc/exports
b) append this line in this file
/usr/shared_dir customercare(rw)
c) then restart your nfs server
3) On customercare type this command
mount -t nfs outports:/ust/shared_dir /mnt
(now u can access the shared directory through /mnt )



Once you r done with it then you can use this partition for data sharing.

Quote:
Originally Posted by pratap.sekhar@bt.com View Post
Hi Guru,

I am posting the question once again, it seems a bit difficult for some people to understand.

I have 3 linux servers installed in 3 systems, named

Hostname IPAddress
customercare 192.168.0.100
cmdctr 192.168.0.202
outports 192.168.0.203

There is lot of space available in outports system under /usr partition, wanted to mount this in customercare system

Please adivce
 
Old 06-21-2010, 05:50 AM   #9
Merlinclancy
LQ Newbie
 
Registered: Jun 2010
Posts: 3

Rep: Reputation: 0
Spam removed.

Last edited by GrapefruiTgirl; 06-23-2010 at 03:07 PM.
 
0 members found this post helpful.
Old 06-21-2010, 07:25 AM   #10
pratap.sekhar@bt.com
LQ Newbie
 
Registered: Mar 2010
Posts: 12

Original Poster
Rep: Reputation: 0
Hi Manoj,

Have tried exactly what you said, but its giving the below error for last command -

zxtmdemo:/mnt# mount -t nfs linuxhost:/usr/shared_dir /mnt/shareddir
mount: unknown filesystem type 'nfs'



Quote:
Originally Posted by kumar.manoj412 View Post
Hi,

You can try the following steps.
1) create a directory in ur /usr partition (e.g mkdir /usr/shared_dir)
2) export it to the network using nfs
a) vi /etc/exports
b) append this line in this file
/usr/shared_dir customercare(rw)
c) then restart your nfs server
3) On customercare type this command
mount -t nfs outports:/ust/shared_dir /mnt
(now u can access the shared directory through /mnt )



Once you r done with it then you can use this partition for data sharing.
 
Old 06-21-2010, 11:00 AM   #11
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian PPC/i386/AMD64 6/7, Vista, XP , WIN7, Server 03/08
Posts: 1,287

Rep: Reputation: 97
Probably need to install NFS on the system or add the (a) module for NFS filesystem support.
 
Old 06-22-2010, 12:53 AM   #12
kumar.manoj412
Member
 
Registered: May 2007
Location: India
Distribution: Mandriva, Ubuntu
Posts: 43
Blog Entries: 1

Rep: Reputation: 16
The error is clearly showing that your system do not have nfs support. So you can install nfs supported packages on the client machines. I faced the same problem long time back. But is fixed it after installing nfs packages on client machine.


Quote:
Originally Posted by pratap.sekhar@bt.com View Post
Hi Manoj,

Have tried exactly what you said, but its giving the below error for last command -

zxtmdemo:/mnt# mount -t nfs linuxhost:/usr/shared_dir /mnt/shareddir
mount: unknown filesystem type 'nfs'
 
Old 06-22-2010, 01:11 AM   #13
pratap.sekhar@bt.com
LQ Newbie
 
Registered: Mar 2010
Posts: 12

Original Poster
Rep: Reputation: 0
Hi manoj,

Earlier have tried on my local system, but now applied on Live Systems.

below info in outports system

[root@outports usr]# more /etc/exports
/usr/outports_dir CUSTOMERCARE(rw)
[root@outports usr]#

Restarted NFS
[root@outports usr]# service nfs restart
Shutting down NFS mountd: [ OK ]
Shutting down NFS daemon: [ OK ]
Shutting down NFS quotas: [ OK ]
Shutting down NFS services: [ OK ]
Starting NFS services: [ OK ]
Starting NFS quotas: [ OK ]
Starting NFS daemon: [ OK ]
Starting NFS mountd: [ OK ]

Tried below in Customer care, but getting connection refused now

[root@CUSTOMERCARE root]# mount -t nfs 192.168.0.202:/usr/outports_dir /mnt/outports_usr
mount: RPC: Remote system error - Connection refused
[root@CUSTOMERCARE root]#

Note - NFS is running on both the systems, please help
 
Old 06-22-2010, 08:55 AM   #14
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian PPC/i386/AMD64 6/7, Vista, XP , WIN7, Server 03/08
Posts: 1,287

Rep: Reputation: 97
Permissions issue?
 
Old 06-22-2010, 11:14 PM   #15
pratap.sekhar@bt.com
LQ Newbie
 
Registered: Mar 2010
Posts: 12

Original Poster
Rep: Reputation: 0
I have given 777 permissions to the directory and restarted NFS, but still same issue

[root@CUSTOMERCARE root]# mount -t nfs 192.168.0.202:/usr/outports_dir /mnt/outports_usr
mount: RPC: Remote system error - Connection refused
[root@CUSTOMERCARE root]#
 
  


Reply

Tags
nfs, selinux


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
Linux File Systems cwizardone Slackware 7 03-19-2009 10:54 AM
Accessing ext3 file systems under Kernel 2.0.xx SomeRobot Linux - General 0 08-24-2004 02:55 AM
HFS+ file systems in Linux? five_dollars Linux - Software 0 08-03-2004 02:42 PM
Linux File Systems lyew Linux - Newbie 4 05-03-2003 11:14 PM
file systems and linux antken Linux - General 5 09-18-2002 07:57 PM


All times are GMT -5. The time now is 08:33 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