[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [lvm-devel] master - RAID: Make RAID single-machine-exclusive capable in a cluster

Dne 10.9.2013 23:34, Jonathan Brassow napsal(a):
  	dm_list_iterate_items(lvl, &removal_list) {
-		if (!resume_lv(lv->vg->cmd, lvl->lv)) {
+		if (!activate_lv_excl_local(lv->vg->cmd, lvl->lv)) {

I guess in places like this we should use using plain exclusive or plain local.

It's supposed to be activated according to tags - so it should be possible
to hand over activation to different node in cluster.

For clearing of devices on the other hand we need to use  'local' activation
since we need to access and clear device on the local node ignoring any tags.

Also note - we still have a minor problem with deactivation after clearing,
where we do not have synchronization point (until we switch to monitoring),
so we may occasionally report deactivation retry error message (so for non-clustered VG) it's better to keep device active if the parent node is going to be activated (since we have no problems with LV locks - it's not a big issue)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]