~ubuntu-branches/debian/jessie/lvm2/jessie

« back to all changes in this revision

Viewing changes to test/shell/snapshots-of-mirrors.sh

  • Committer: Package Import Robot
  • Author(s): Bastian Blank
  • Date: 2013-08-27 13:13:17 UTC
  • mfrom: (30.1.6 sid)
  • Revision ID: package-import@ubuntu.com-20130827131317-4s1pa4b2trpl3xiz
Tags: 2.02.98-6
* Update init script:
  - Use auto-activation.
  - Drop manual loading of dm-mod.
* Fix udev rules:
  - Re-add another oversight.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
1
2
# Copyright (C) 2010 Red Hat, Inc. All rights reserved.
2
3
#
3
4
# This copyrighted material is made available to anyone wishing to use,
12
13
 
13
14
aux prepare_vg 4
14
15
 
15
 
# Create snapshot of a mirror origin
 
16
# Attempt to create snapshot of a mirror origin - should fail
16
17
lvcreate -m 1 -L 10M -n lv $vg
 
18
 
17
19
lvcreate -s $vg/lv -L 10M -n snap
18
20
 
19
21
# Down-convert (mirror -> linear) under a snapshot
40
42
# Log conversion (core -> disk)
41
43
lvconvert --mirrorlog disk $vg/lv
42
44
 
43
 
# Clean-up
44
 
lvremove -ff $vg
 
45
## Clean-up
 
46
vgremove -f $vg