def execute(): pos_util.pci_rescan() out = CREATE_ARRAY_NO_SPARE.execute() print (out) out = cli.mount_array(ARRAYNAME) print (out) pos_util.pci_detach(CREATE_ARRAY_NO_SPARE.DATA_DEV_1) time.sleep(2) pos_util.pci_detach(CREATE_ARRAY_NO_SPARE.DATA_DEV_2) time.sleep(2) out = cli.unmount_array(ARRAYNAME) print (out) out = cli.delete_array(ARRAYNAME) print (out) pos.exit_pos() pos_util.pci_rescan() pos.start_pos() cli.scan_device() cli.list_device() out = cli.create_array("uram0", DATA, SPARE, ARRAYNAME, "RAID5") print (out) out = cli.mount_array(ARRAYNAME) print (out) return out
def execute(): ADD_SPARE_BASIC.execute() cli.unmount_array(ADD_SPARE_BASIC.ARRAYNAME) pos.exit_pos() pos.start_pos() cli.scan_device() cli.mount_array(ADD_SPARE_BASIC.ARRAYNAME) out = cli.array_info(ADD_SPARE_BASIC.ARRAYNAME) return out
def execute(): clear_result() CREATE_VOL_BASIC_1.execute() CREATE_VOL_BASIC_2.execute() CREATE_VOL_BASIC_3.execute() cli.unmount_array(ARRAYNAME) pos.exit_pos() pos.start_pos() cli.scan_device() cli.mount_array(ARRAYNAME)
def execute(): MOUNT_ARRAY_NO_SPARE.execute() pos_util.pci_detach(MOUNT_ARRAY_NO_SPARE.DATA_DEV_1) time.sleep(0.1) cli.unmount_array(MOUNT_ARRAY_NO_SPARE.ARRAYNAME) pos.exit_pos() time.sleep(5) pos.start_pos() cli.scan_device() out = cli.mount_array(MOUNT_ARRAY_NO_SPARE.ARRAYNAME) return out
def exit_pos(): write_log("exiting pos...") state = get_state() if state == "NORMAL" or state == "BUSY": ret = unmount_pos() if ret == False: write_log("pos unmounting failed") return False fio_util.dispose() pos.exit_pos() write_log("pos has been terminated") return True
def execute(): MOUNT_ARRAY_BASIC.execute() spare = MOUNT_ARRAY_BASIC.SPARE pos_util.pci_detach(spare) time.sleep(0.1) cli.unmount_array(ARRAYNAME) pos.exit_pos() time.sleep(5) pos.start_pos() cli.scan_device() out = cli.mount_array(ARRAYNAME) return out
def execute(): MOUNT_ARRAY_BASIC.execute() out = pos.exit_pos() print(out) return out
def execute(): UNMOUNT_ARRAY_WITH_VOL_MOUNTED.execute() out = pos.exit_pos() return out
def execute(): START_POS_BASIC.execute() out = pos.exit_pos() return out