Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Sören Steinmetz on October 26, 2003, 08:08:48 PM

Title: Mount ibay from one server on another
Post by: Sören Steinmetz on October 26, 2003, 08:08:48 PM
May be basic Linux knowledge but here goes:

I'm in the process of migrating from one hardware box to another,
including going from ide to scsi harddrives.

How can I do this:

On "Server1" mount ibay data/files on "Server2"

Quite simple to be able to make the complete moving of the files in MC in the console.


I tried this, and think I got something wrong here:

mount //server2/data/files on /old/data type ext3 (rw)

What do I do wrong, or is it simply not possible to make a Linux mount like that in SME ??
Title: Re: Mount ibay from one server on another
Post by: Sören Steinmetz on October 26, 2003, 08:10:29 PM
Forgot to say, Tnx in advance for any hints.

And no, I can't just make a rollback of the backup.

The old server was my test setup, and had no backup unit.
The new server is making backup on a scsi tapedrive.

Regards
      Søren Steinmetz
Title: Re: Mount ibay from one server on another
Post by: byte on October 26, 2003, 08:37:17 PM
try...

mount -t smbfs //server2........
Title: Re: Mount ibay from one server on another
Post by: Sören Steinmetz on October 26, 2003, 08:48:16 PM
Tried, but get a "syntax error near unexpected token '(r'

(I tried this mount string:
mount -t smbfs //server2/data/files /old/data (rw)
)

If I don't include the (rw), I just get the help menu of mount.
Title: Re: Mount ibay from one server on another
Post by: Per Sørensen on October 27, 2003, 12:00:33 AM
Can you not just use FTP, that works in mc as well

Per
Title: Re: Mount ibay from one server on another
Post by: byte on October 27, 2003, 12:10:35 AM
leave the (rw) out but do add mount -t smbfs -o username=soren,password=soren //ser.......

where soren and soren is username and password on machine your conecting too

Hope this helps you
Title: Re: Mount ibay from one server on another
Post by: Sören Steinmetz on October 27, 2003, 12:17:09 AM
It won't mount.

going the hard way now, copying everything to my desktop, and then to their places on the new server.
Title: Re: Mount ibay from one server on another
Post by: Sören Steinmetz on October 27, 2003, 12:18:26 AM
I got 8 ibays to move data from,
and login only gives me the public ftp folder (that i assume can't be rerooted to /home/e-smith/files)

going the hard way now, copying everything to my desktop, and then to their places on the new server.
Title: Re: Mount ibay from one server on another
Post by: Per Sørensen on October 27, 2003, 12:24:42 AM
How about somthing like:
rsync -avze ssh root@:/home/e-smith/files/ibays/ /ibays/

Per
Title: Re: Mount ibay from one server on another
Post by: Sören Steinmetz on October 27, 2003, 12:40:42 AM
Bingo,

thanks, it is sync'ing all the files right now.

Wee, me think me learned something today :-)

Thanks again, now I can get the new server in operational status instead of the old one.

Regards
    Søren Steinmetz
Title: Re: Mount ibay from one server on another
Post by: Per Sørensen on October 27, 2003, 12:42:55 AM
Just check that it's putting the files in the rigth path. (Or you will get a mess :-))

Per
Title: Re: Mount ibay from one server on another
Post by: Sören Steinmetz on October 27, 2003, 12:53:51 AM
I know, made a typo in the first test run of rsync.
(but I did get me a nice new folder just about rootlevel named ibays) ;-)

Think I got it now, or I won't tell you.

Thanks again.
Søren