New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

Connection 2 B3 servers

Got problems with your B2 or B3? Share and get helped!
Post Reply
Puma
Posts: 230
Joined: 29 Sep 2008, 06:30

Connection 2 B3 servers

Post by Puma »

Hello,

I have two b3 servers.
One is my main server and the other one is used as extra storage.
When on my work I can connect perfectly to the Main b3 but I cannot see the 2nd b3.
Is it possible to mount the storage folder share to the b3 main server /external/b3nd folder so that I can acces the 2nd b3 from that folder location?

Should I use install smbfs or sshfs to get it working?

Does someone has experiance connecting 2 bubba servers?

Thanks in advance.

Puma
Linux is like a wigwam - no windows, no gates, apache inside!
stasheck
Posts: 126
Joined: 15 Jan 2014, 13:13

Re: Connection 2 B3 servers

Post by stasheck »

I think you can export the folder from the secondary B3 via NFS and mount it in the primary B3's filesystem. Then use Samba to share the contents of the location.
johannes
Posts: 1470
Joined: 31 Dec 2006, 07:12
Location: Sweden
Contact:

Re: Connection 2 B3 servers

Post by johannes »

Not 100% sure of this, but I think you can add a "remote account" (admin -> settings -> remote account), and it will automatically show up under /home/storage/extern
/Johannes (Excito co-founder a long time ago, but now I'm just Johannes)
Puma
Posts: 230
Joined: 29 Sep 2008, 06:30

Re: Connection 2 B3 servers

Post by Puma »

Dear all,

Via the webinterface did not work.

Working solution:

Install nfs on both servers:

Code: Select all

apt-get install portmap nfs-common
apt-get install nfs-kernel-server
apt-get install nfs-common
check server:

Code: Select all

/etc/init.d/portmap restart
/etc/init.d/portmap status
check if portmapper is running

Code: Select all

rpcinfo -p
export folder on host in file etc/export (what to share from host side) add following:

Code: Select all

/home/storage 192.168.101.1(rw,sync)
after each change of etc/export:

Code: Select all

/etc/init.d/nfs-kernel-server restart


Connect client to host: mount:

Code: Select all

mount -vvv -t nfs [ip 2nd b3]:/home/storage /home/storage/extern/2ndb3
now we have the /home/storage/ mounted to the external storage link
now should connect to folder on client.

Puma
Linux is like a wigwam - no windows, no gates, apache inside!
Post Reply