3 # lvm-pvclear -- Clear LVM physical volume
4 # Copyright (c)2013 Alexander Barton (alex@barton.de)
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
16 echo "Usage: $NAME <pv>"
22 lvids=`lvs --noheadings -o name`
25 echo "Moving LV \"$lv\" ..."
26 nice ionice -c3 pvmove -i300 -n "$lv" "$1"