Prepare for iSCSI Target support

Build CLVM with Corosync support

If the clvmd did not support using corosync stack, you must re-compile it.

Check for corosync support:

clvmd -h

And you should check the line ”Available cluster managers: corosync

If you need to compile it, for example debian source package, remember this switch in lvm2-x.xx.xx/debian/rules:

  --with-clvmd=corosync 

Setup backing drbd devices

Sample drbd.conf file to export 2 hard disks /dev/sda and /dev/sdb.

Note the port number used for each DRBD resource must be unique.
In the example, 7789 for r0 and 7788 for r1.

# sample drbd.conf

handlers {
...
  fence-peer "/usr/lib/drbd/crm-fence-peer.sh";
  after-resync-target "/usr/lib/drbd/crm-unfence-peer.sh";
...
}

...

syncer {
...
  csums-alg md5;
...  
}

disk {
...
  fencing resource-only;
}

...

resource r0 {
  device    /dev/drbd0;
  disk      /dev/sda;
  meta-disk internal;
  on san1 {
    address   10.0.0.121:7789;
  }
  on san2 {
    address   10.0.0.122:7789;
  }
}

resource r1 {
  device    /dev/drbd1;
  disk      /dev/sdb;
  meta-disk internal;
  on san1 {
    address   10.0.0.121:7788;
  }
  on san2 {
    address   10.0.0.122:7788;
  }
}
ha/prepare_for_iscsi_target_support.txt · Last modified: 2010-08-10 17:01 by admin
Back to top
GNU Free Documentation License 1.3
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0