def test_lv_snapshot(self): """ Takes a snapshot from the logical and merges snapshot with the logical volume. """ self.create_lv() lv_utils.lv_take_snapshot(self.vg_name, self.lv_name, self.lv_snapshot_name, self.lv_snapshot_size) lv_utils.lv_revert(self.vg_name, self.lv_name, self.lv_snapshot_name) self.mount_unmount_lv()
def test_lv_snapshot(self): """ Takes a snapshot from the logical and merges snapshot with the logical volume. """ self.create_lv() lv_utils.lv_mount(self.vg_name, self.lv_name, self.mount_loc, create_filesystem=self.fs_name) lv_utils.lv_umount(self.vg_name, self.lv_name) lv_utils.lv_take_snapshot(self.vg_name, self.lv_name, self.lv_snap_name, self.lv_snapshot_size) lv_utils.lv_revert(self.vg_name, self.lv_name, self.lv_snap_name) self.mount_unmount_lv() self.delete_lv()
def test_snapshot(self): """ General logical volume setup. A volume group with given name is created in the ramdisk. It then creates a logical volume. Takes a snapshot from the logical and merges snapshot with the logical volume. """ self.ramdisks.append(lv_utils.vg_ramdisk(self.disk, self.vg_name, self.ramdisk_vg_size, self.ramdisk_basedir, self.ramdisk_sparse_filename)) lv_utils.lv_create(self.vg_name, self.lv_name, self.lv_size) lv_utils.lv_take_snapshot(self.vg_name, self.lv_name, self.lv_snapshot_name, self.lv_snapshot_size) lv_utils.lv_revert(self.vg_name, self.lv_name, self.lv_snapshot_name)
def test_snapshot(self): """ General logical volume setup. A volume group with given name is created in the ramdisk. It then creates a logical volume. Takes a snapshot from the logical and merges snapshot with the logical volume. """ self.ramdisks.append(lv_utils.vg_ramdisk(self.disk, self.vg_name, self.ramdisk_vg_size, self.ramdisk_basedir, self.ramdisk_sparse_filename)) lv_utils.lv_create(self.vg_name, self.lv_name, self.lv_size) lv_utils.lv_mount(self.vg_name, self.lv_name, self.mount_loc, create_filesystem=self.fs_name) lv_utils.lv_umount(self.vg_name, self.lv_name) lv_utils.lv_take_snapshot(self.vg_name, self.lv_name, self.lv_snapshot_name, self.lv_snapshot_size) lv_utils.lv_revert(self.vg_name, self.lv_name, self.lv_snapshot_name)