mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
[scripts] remove scripts/vg_convert
- it doesn't do anything other than tell you to run vgconvert - it used to convert from lvm1 format, which is obsolete
This commit is contained in:
parent
65d6118e47
commit
0a2b5d5748
@ -1,18 +0,0 @@
|
|||||||
#!/bin/sh -x
|
|
||||||
|
|
||||||
# Original script used to convert a VG from LVM1 to LVM2 metadata format.
|
|
||||||
# Superceded by 'vgconvert', but left here to show how to do it step-by-step.
|
|
||||||
|
|
||||||
# Takes vgname as parameter. No error checking. Uses temp file 'lvmbackup'.
|
|
||||||
|
|
||||||
echo "Please use the 'vgconvert' tool instead"
|
|
||||||
exit 1
|
|
||||||
|
|
||||||
./vgcfgbackup $1 || exit 1
|
|
||||||
./vgcfgbackup --file lvmbackup $1 || exit 1
|
|
||||||
|
|
||||||
CMDS=`./pvscan -u | sed -ne "s/.*PV \(.*\) with UUID \(.*\) VG $1 .*/.\/pvcreate -ff -y -M lvm2 --restorefile lvmbackup -u \2 \1 ; /p"`
|
|
||||||
|
|
||||||
sh -x -c "$CMDS" || exit 1
|
|
||||||
|
|
||||||
./vgcfgrestore --file lvmbackup -M lvm2 $1 || exit 1
|
|
Loading…
Reference in New Issue
Block a user