chiark / gitweb /
nntpid as found in chiark's /usr/local/bin/nntpid.old, apparently copied from a versi...
[chiark-utils.git] / backup / lvm
index 3d8be29..dd503e7 100755 (executable)
@@ -23,13 +23,14 @@ fi
 fstype="$(mount | sed -n \
  "s,^$device on $mountpoint type \([a-z0-9][a-z0-9]*\) .*,-t \1 ,p")"
 
+lvmunmapperdevice
+lvmdevice2vgroup
+
 if [ -z "$lvm_lvsize_opts" ]; then
-       vgroup="${device#/dev/}"
-       vgroup="${vgroup%/*}"
        lvmextentscore1
 
        lvdisplay_out="$(really lvdisplay -c "$device")"
-       extents2="$(printf "%s" "$lvdisplay_out" | awk -F: '{print $9}')"
+       extents2="$(printf "%s" "$lvdisplay_out" | awk -F: '{print $8}')"
        extents2=$(( $extents2 + ($extents2+9)/10 - 1 ))
 
        lvmextentscore2