Nested LVM configuration with DRBD - How to switch VG to other node?

Discussion in 'Installation/Configuration' started by Carlos2016, Dec 9, 2016.

  1. Carlos2016

    Carlos2016 New Member

    https www drbd org en doc users-guide-84 s-nested-lvm < can't post links yet, hope this suffices

    Hello I've got a question about this. I've set up a 2node DRBD resource. And on top of NODE1 I have a PV, VG, LV. The resource is synced.

    ON NODE1:
    pvcreate /dev/drbd0 <---- PV
    vgcreate replicated /dev/drbd0 <--- VG
    lvcreate --name foo --size 4G testvg <-- LV

    Now according to the above link I have to do the commands to make the VG visible on the other node:

    ON NODE1:
    vgchange -a n replicated
    drbdadm secondary r0

    ON NODE2:
    drbdadm primary r0
    vgchange -a y replicated

    And then I should have the output:
    2 logical volume(s) in volume group "replicated" now active

    Only I got nothing, also not visible with vgs :(
    Anyone know what I'm missing?

    Extra info:
    In /etc/lvm/lvm.conf on both nodes: I have the line:

    filter = ["a|sd.*|", "a|drbd.*|", "r|.*|"]

    If you want any more outputs or feedback I'm happy to provide them!

Share This Page