Lines Matching full:session
6 def mount_lv(lv_path, session):
9 session.cmd("mkdir -p /mnt/kvm_test_lvm")
10 session.cmd("mount %s /mnt/kvm_test_lvm" % lv_path)
14 def umount_lv(lv_path, session):
17 session.cmd("umount %s" % lv_path)
18 session.cmd("rm -rf /mnt/kvm_test_lvm")
37 session = vm.wait_for_login(timeout=timeout)
48 session.cmd("pvcreate %s" % disks)
51 session.cmd("vgcreate %s %s" % (vg_name, disks))
54 session.cmd("vgchange -ay %s" % vg_name)
57 session.cmd("lvcreate -L2000 -n %s %s" % (lv_name, vg_name))
60 session.cmd("yes | mkfs.ext3 %s" % lv_path, timeout=int(timeout))
62 mount_lv(lv_path, session)
64 umount_lv(lv_path, session)
68 session.cmd("fsck %s" % lv_path, timeout=int(timeout))
71 mount_lv(lv_path, session)
75 umount_lv(lv_path, session)
78 session.cmd("lvremove %s" % lv_name)
81 session.cmd("vgchange -a n %s" % vg_name)
84 session.cmd("vgremove -f %s" % vg_name)