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
Ejemplo n.º 3
0
def execute():
    EXIT_POS_AFTER_UNMOUNT_VOL.execute()
    time.sleep(5)
    ibofos_mbr_reset = POS_ROOT + "/test/script/mbr_reset.sh"
    subprocess.call([ibofos_mbr_reset])
    pos.start_pos()
    cli.scan_device()
    out = cli.array_info(EXIT_POS_AFTER_UNMOUNT_VOL.ARRAYNAME)
    return out
Ejemplo n.º 4
0
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)
Ejemplo n.º 5
0
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
Ejemplo n.º 6
0
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
Ejemplo n.º 7
0
def execute():
    EXIT_POS_BASIC.execute()
    time.sleep(5)
    pos.start_pos()
Ejemplo n.º 8
0
def start_pos():
    write_log("starting pos...")
    pos.start_pos()
    write_log("pos is running")
Ejemplo n.º 9
0
def execute():
    EXIT_POS_AFTER_UNMOUNT_VOL.execute()
    time.sleep(5)
    pos.start_pos()
Ejemplo n.º 10
0
def execute():
    pos.mbr_reset()
    pos.start_pos()