Skip to content

Instantly share code, notes, and snippets.

@pavoldomin
Created November 12, 2013 17:09
Show Gist options
  • Save pavoldomin/0242b6d92fc45294996d to your computer and use it in GitHub Desktop.
Save pavoldomin/0242b6d92fc45294996d to your computer and use it in GitHub Desktop.
rear debug log
2013-11-12 17:38:02 Including layout/save/GNU/Linux/22_lvm_layout.sh
+ . /usr/share/rear/layout/save/GNU/Linux/22_lvm_layout.sh
++ has_binary lvm
++ for bin in '$@'
++ type lvm
++ return 0
++ Log 'Saving LVM layout.'
++ test 1 -gt 0
+++ Stamp
+++ date '+%Y-%m-%d %H:%M:%S '
++ echo '2013-11-12 17:38:02 Saving LVM layout.'
2013-11-12 17:38:02 Saving LVM layout.
++ lvm pvdisplay -c
++ read line
Couldn't find device with uuid ghkEUo-bfiH-20Nt-kPiJ-WFIW-Qsb1-oSCvIW.
Couldn't find device with uuid 6cs8VE-sXKR-iBJo-qZQm-IHMW-4zuf-ogRucb.
+++ echo /dev/disk/by-id/md-name-hostname:NA3scs:vgNA3scs:10485736:-1:8:8:-1:4096:1279:1023:256:2OoT3i-c2Sd-YhBp-B7LC-YSlq-XN9T-aFSZao
+++ cut -d : -f 1
++ pdev=/dev/disk/by-id/md-name-hostname
++ '[' dev/disk/by-id/md-name-hostname = /dev/disk/by-id/md-name-hostname ']'
+++ echo /dev/disk/by-id/md-name-hostname:NA3scs:vgNA3scs:10485736:-1:8:8:-1:4096:1279:1023:256:2OoT3i-c2Sd-YhBp-B7LC-YSlq-XN9T-aFSZao
+++ cut -d : -f 2
++ vgrp=NA3scs
+++ echo /dev/disk/by-id/md-name-hostname:NA3scs:vgNA3scs:10485736:-1:8:8:-1:4096:1279:1023:256:2OoT3i-c2Sd-YhBp-B7LC-YSlq-XN9T-aFSZao
+++ cut -d : -f 3
++ size=vgNA3scs
+++ echo /dev/disk/by-id/md-name-hostname:NA3scs:vgNA3scs:10485736:-1:8:8:-1:4096:1279:1023:256:2OoT3i-c2Sd-YhBp-B7LC-YSlq-XN9T-aFSZao
+++ cut -d : -f 12
++ uuid=256
+++ get_device_mapping /dev/disk/by-id/md-name-hostname
+++ [[ ! -s /var/lib/rear/recovery/diskbyid_mappings ]]
+++ local name=md-name-hostname
++++ grep '^md-name-hostname' /var/lib/rear/recovery/diskbyid_mappings
++++ awk '{print $2}'
+++ local 'disk_name=
md35'
+++ [[ -z
md35 ]]
+++ echo '/dev/
md35'
++ pdev='/dev/
md35'
+++ get_device_name /dev/ md35
+++ local name=
+++ name=
+++ [[ -n '' ]]
+++ BugIfError 'Empty string passed to get_device_name'
+++ (( 1 != 0 ))
+++ BugError 'Empty string passed to get_device_name'
+++ '[' Empty string passed to get_device_name -eq Empty string passed to get_device_name ']'
+++ EXIT_CODE=1
+++ Error 'BUG BUG BUG! ' 'Empty string passed to get_device_name' '
=== Issue report ===
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment