0

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 ?

enloz
  • 271
  • 1
  • 2
  • 5

3 Answers3

2

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.

Janne Pikkarainen
  • 31,454
  • 4
  • 56
  • 78
  • Do not use unionfs on FreeBSD up to 12.1 and possibly later, it can cause kernel panics and security issues. See the BUGS section of `man 8 mount_unionfs` for more scary details. – toolforger Jun 14 '20 at 07:21
1

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?

Sven
  • 97,248
  • 13
  • 177
  • 225
-1

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.

jftuga
  • 5,572
  • 4
  • 39
  • 50
  • 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. – Sven 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