Page 1 of 1
Linux experts: two B2
Posted: 29 Oct 2009, 10:25
by pcrene
Hello Linux experts
I have 2 B2. How can i mount /home on the second B2?
mount //server1/home tt does mention it does not support the format.
Rene
Re: Linux experts: two B2
Posted: 29 Oct 2009, 10:29
by RandomUsername
Need more info. How are you sharing? NFS or Samba?
There are already a couple of threads on here with instructions on how to share both types.
Re: Linux experts: two B2
Posted: 29 Oct 2009, 10:50
by pcrene
Hello great unknown...
I have two Bubba2, both share the same i think using Samba...
The storage folder is easy to copy from one system to the other,
The problem lies within the emails of the users.......
this is hell to copy them using an email program like outlook.
if there is an "easy" way....would be great.
The servers names are Server7 and Server8
Rene
Re: Linux experts: two B2
Posted: 29 Oct 2009, 10:55
by RandomUsername
I can't tell if you want one Bubba to be a mirror of the other for backup purposes (you mention copying a folder) or something else.
From your original post I thought you had the same users on each Bubba and you wanted one home directory for each users e.g. if they logged into Bubba A they access the local home directory, and if they log onto Bubba B it remotely mounts the home directory on Bubba A.
Re: Linux experts: two B2
Posted: 29 Oct 2009, 11:35
by pcrene
Hello
I want to use the Server7for experimentalusage..
Server8 is now on Raid 1, so i am migrating from one to another...
copying of userdata is no problem, but emails cannot be tranfered using FTP.
thats when i though: if i mount the Server7/home on the Server8 i could
copy the emails.
Last time i did it by using outlook with accounts on both servers and copying the emails
and folders by hand....
Rene
Re: Linux experts: two B2
Posted: 29 Oct 2009, 11:46
by RandomUsername
I see.
From memory, this is what you'll need to do:
First things first, on the server7 (the one you want to share), make sure nfs-common and nfs-kernel-server are installed.
Code: Select all
su
apt-get install nfs-common nfs-kernel-server
you will need to put the /home directory in /etc/exports.
enter something like
Code: Select all
/home //server8(rw,async,no_root_squash)
CTRL-O to save and then CTRL-X to quit.
Then run:
On server8, install nfs-common and then you should then be able to use a simple mount command, e.g.
Code: Select all
mount -t nfs -o rw,nolock,rsize=4096,wsize=4096 //server7/home /mnt/server7
make sure the folder /mnt/server7 is created first:
I assume this is just a one off but if you want it mounted permanently you'll need to add an entry in /etc/fstab.
Re: Linux experts: two B2
Posted: 29 Oct 2009, 12:13
by pcrene
thanks ..
ill try this this eve...as i knowa littlebit of linux (and read the man pages) i will manage..
Rene
Re: Linux experts: two B2
Posted: 29 Oct 2009, 12:25
by RandomUsername
Just shout if you have any questions.
Re: Linux experts: two B2
Posted: 29 Oct 2009, 15:24
by pcrene
shout

shout... i am
al worked out well...
youre the best...
Rene