Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Mounting an FTP drive can be easily be done with curlftpfs in Ubuntu 10.

Also, there would be no problem to mount two or more drives. e.g.

/var/ftpdrive1/ 
/var/ftpdrive2/

Question: is there a way to bind /var/ftpdrive1/ and /var/ftpdrive2/ to /var/ftpdrive0/.

...make two drives act as one ?

share|improve this question
1  
FTP is bad. This is just batshit scary. –  Tom O'Connor Mar 15 '12 at 13:35
add comment

3 Answers

No. What do you think happens when you have two files with the same name on both servers? Which one should be displayed? And if you store a file, where should it be saved, on server 1 or server 2?

share|improve this answer
add comment

Have not tried with FTP mounts, but UnionFS (works with Linux and FreeBSD at least) allows you to merge several mount points as one, yet keeping the physical data separate.

share|improve this answer
add comment

You could use NFS to export /var/ftpdrive1/ and /var/ftpdrive2/. Then mount them as such:

/var/ftpdrive0/1 and /var/ftpdrive0/2

Would this work? Two drives would act as one, with two subdirectories.

share|improve this answer
    
Since you can mount an FTP dir via curlftps, all you managed to do is to rename the directories and move the problem from FTP to NFS. –  SvW Mar 15 '12 at 12:56
    
Ah, I see. I am not very familiar with curlftps. Thanks for the insight. –  jftuga Mar 15 '12 at 12:56
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.