A
A
Alexander2017-02-14 11:18:19
linux
Alexander, 2017-02-14 11:18:19

Network connection of the disk to the WEB server, I ask for advice?

On the server there is a VM used as a file server. Also, to store cloud data using LVM, a logical volume /dev/archive/cloud was created
. There is also another VM used as a WEB server, OwnCloud is installed on it, with the default data folder /var/www/test.ru/cloud/ data
Since I allocate little space for virtual machines (5GB), and for the cloud it is very small by itself, the question arose of connecting a disk from FS /dev/archive/cloud to a WEB server. Advise which is better, through SAMBA or through SSHFS, or are there other ways? If samba, is it advisable? If via SSH, is it safe and there will be no problems with auto-connection?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Dmitry, 2017-02-14
@plin2s

NFS, for example.

E
Eugene Wolf, 2017-02-14
@Wolfnsex

If via SSH, is it safe and there will be no problems with auto-connection?
It is safe enough and there should be no problems with auto-connection, at least in theory for sure (in practice, anything can happen). There is also a WebDAV option (file access via a web server / HTTP protocol), there is also FTPFS (similar to SSHFS). But, since you did not indicate what you are more inclined to, it is difficult to say exactly what is "better". SSH-FS will probably be safer, because. there is traffic encryption "out of the box" and all that...
As for Samba - I don't know, its setting didn't impress me personally, it's more for those, I would rather put it in mind "extremely needed", in the absence of other options.
For Windows-* there are programs that allow you to connect network drives (the same as regular ones, via Samba), and via FTP, and in my opinion even via SSH, and via WebDAV, incl. (by the way, if my memory serves me, programs like "Yandex.Disk" work just through WebDAV)

V
Victor Taran, 2017-02-14
@shambler81

sshfs - it works and it's quite safe ssl keys have not been canceled yet.
Also multiply to look towards any glusterfs? there might suit you.
Well, of course, in your version of WebDAV, you need to test it unambiguously.
If you only need to fold backs, then there are already richer options.

D
Dmitry Aleksandrov, 2017-02-14
@jamakasi666

Of the simplest NFS.
If you are using an Oracle VM box, then it also has folder/disk sharing.
qemu also has a regular mechanism for dropping folders / disks.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question