LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Accessing other linux file systems in Linux (http://www.linuxquestions.org/questions/linux-server-73/accessing-other-linux-file-systems-in-linux-815219/)

pratap.sekhar@bt.com 06-20-2010 12:56 AM

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

John VV 06-20-2010 02:02 AM

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.

pratap.sekhar@bt.com 06-20-2010 02:52 AM

Dear John,

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

Thanks
Raaj

hda7 06-20-2010 08:28 AM

Take a look at NFS

TB0ne 06-20-2010 01:32 PM

Quote:

Originally Posted by pratap.sekhar@bt.com (Post 4009046)
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.

pratap.sekhar@bt.com 06-21-2010 12:16 AM

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

John VV 06-21-2010 01:18 AM

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

kumar.manoj412 06-21-2010 02:15 AM

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 (Post 4009759)
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


Merlinclancy 06-21-2010 05:50 AM

Spam removed.

pratap.sekhar@bt.com 06-21-2010 07:25 AM

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 (Post 4009822)
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.


scheidel21 06-21-2010 11:00 AM

Probably need to install NFS on the system or add the (a) module for NFS filesystem support.

kumar.manoj412 06-22-2010 12:53 AM

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 (Post 4010028)
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'


pratap.sekhar@bt.com 06-22-2010 01:11 AM

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

scheidel21 06-22-2010 08:55 AM

Permissions issue?

pratap.sekhar@bt.com 06-22-2010 11:14 PM

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]#


All times are GMT -5. The time now is 07:13 PM.