D
D
Denis2018-02-08 15:00:22
linux
Denis, 2018-02-08 15:00:22

How to connect one disk via iSCSI to two virtual servers?

There are two virtual servers on Linux (proxmox)
Task: to connect a disk to them via iSCSI (optional) with storage for simultaneous access.
In the forehead does not work, files created on one machine appear on another only after remounting.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
M
Melkij, 2018-02-08
@melkij

iSCSI - block level.
If you place a FS on top of it that assumes operation on only one host, it will only work on one host from mount to umount. And attempts to rudely interfere with its work on another host will not lead to anything other than guaranteed data corruption.
You need some kind of network filesystem. NFS, for example

P
Puma Thailand, 2018-02-08
@opium

Well, you put a clustered fs on it and not a regular one, well, either transfer it from one server to another through a ball or ntfs

M
Maxim Grishin, 2018-02-08
@vesper-bot

Raise a GFS on the moon with several logs (in the manual - at least as many as the hosts will work with it), then mount.

D
Dmitry, 2018-02-08
@Tabletko

If you have host machines (proxmox) in a cluster, then you can connect via iSCSI, and make storage on the cluster LVM from above.
The algorithm is as follows:
0. Connect iscsi storage for each node in the cluster
1. Create LVM storage and specify iscsi volume as base storage

D
Denis, 2018-02-12
@Hoper

thanks for the direction of thought.
cluster f.s. this is the right topic. But the GFS (GFS2) setting is too hard to set up, Google somehow messed up a lot :)
But there is a way out - OCFS2 is pretty simple here. two settings files and... everything works.
sourcehere We 'll
see how it will work in combat mode.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question