def get_raids(ns):
    """
    Retrieve list of all MD RAIDs on the system.

    :rtype: list of LMIInstance/LMI_MDRAIDStorageExtent.
    """
    for raid in ns.LMI_MDRAIDStorageExtent.instances():
        yield raid
