Motr  M0
Functional Specification

Functional Specification

SNS copy machine provides infrastructure to perform tasks like repair and re-balance using parity de-clustering layout.

Data Structures

  • m0_sns_cm_cm Represents sns copy machine, this embeds generic struct m0_cm and sns specific copy machine objects.
  • m0_sns_cm_iter Represents sns copy machine data iterator.

Interfaces

  • m0_sns_cm_cm_type_register Registers sns copy machine type and its corresponding request handler service type.
    See also
    m0_sns_init()
  • m0_sns_cm_cm_type_deregister De-registers sns copy machine type and its corresponding request handler service type.
    See also
    m0_sns_fini()

SNS repair recipes

Test 01: Start sns copy machine service using motr_setup Response: SNS copy machine service is started and copy machine is initialised. Test 02: Configure sns copy machine for repair, create COBs and simulate a COB failure. Response: The parity groups on the survived COBs should be iterated and repair completes successfully.

SNS re-balance recipes

Test 01: Start sns copy machine for repair, once repair is completeand copy is stopped, re-start the same copy machine to perform re-balance operation. Response: Re-balance should complete successfully.