You are not doing anything wrong... You have created a cluster where one node is primary, so you can read your files from that node. It looks like you want to create a dual primary solution. This is also possible with DRBD. It involves using different filesystems. It's been a few years since I've experimented with dual primary setups. I was not very impressed with the performance and trade-offs back than, but that might have improved.
Cheers, Dirk On Wed, Mar 20, 2019, 16:20 JCA <[email protected]> wrote: > I am a complete newbie to this, so please bear with me. > > I am trying to use DRBD in conjunction with Pacemaker. To this effect, I > have followed the steps specified in chapter 7 of the Pacemaker's "Clusters > from Scratch" document (see here > <https://clusterlabs.org/pacemaker/doc/en-US/Pacemaker/2.0/pdf/Clusters_from_Scratch/Pacemaker-2.0-Clusters_from_Scratch-en-US.pdf>) > with a few variations - e.g. instead of using a logical volume, I use an > actual partition (/dev/sdb1) which I formatted with ext4, rather than xfs. > > In the terminology of the document above, when I am done with all the > steps I end up with a /dev/drbd1 device in each of pcmk-1 and pcmk-2. The > step in section 7.7 I executed (in pcmk-1) as follows: > > # pcs -f fs_cfg resource create TestFS Filesystem device="/dev/drbd1" > directory="/tmp/Testing" > fstype="ext4" > > Before doing this, I created /tmp/Testing on both pcmk-1 and pcmk-2. > > After everything is completed, in pcmk-2 I end up with /tmp/Testing > containing the files that I earlier on copied into the directory to be > shared in pcmk-1, as described in section 7.5. My problem is, how (and > where) do I access those files in pcmk-1? At this point, they don't seem to > be accessible, for I unmounted /dev/drbd1 in pcmk-1, as instructed at the > end of section 7.5. I was hoping to be able to mount it again, in pcmk-1, > but that is not working for me: > > # mount /dev/drbd1 /mnt > mount: /dev/drbd1 is write-protected, mounting read-only > mount: mount /dev/drbd1 on /mnt failed: Wrong medium type > > What am I doing wrong? > > _______________________________________________ > drbd-user mailing list > [email protected] > http://lists.linbit.com/mailman/listinfo/drbd-user >
_______________________________________________ drbd-user mailing list [email protected] http://lists.linbit.com/mailman/listinfo/drbd-user
