From: Eduardo Damato <eduardo.damato@canonical.com>
To: lvm-devel@redhat.com
Subject: lvmdump capture logs in debian/ubuntu
Date: Tue, 15 Jan 2013 17:20:06 +0000 [thread overview]
Message-ID: <50F58FC6.6050400@canonical.com> (raw)
Hi All,
lvmdump is not capturing the logs on Ubuntu/debian systems, proposing
the patch below.
Cheers,
Eduardo.
$ git diff
diff --git a/scripts/lvmdump.sh b/scripts/lvmdump.sh
index 641d109..2f62b95 100755
--- a/scripts/lvmdump.sh
+++ b/scripts/lvmdump.sh
@@ -201,7 +201,13 @@ myecho "Gathering process info..."
log "$PS alx >> \"$dir/ps_info\" 2>> \"$log\""
myecho "Gathering console messages..."
-log "$TAIL -n 75 /var/log/messages >> \"$dir/messages\" 2>> \"$log\""
+if [ -f /var/log/messages ]
+then
+ log "$TAIL -n 75 /var/log/messages >> \"$dir/messages\" 2>>
\"$log\""
+elif [ -f /var/log/syslog ]
+then
+ log "$TAIL -n 75 /var/log/syslog >> \"$dir/messages\" 2>> \"$log\""
+fi
myecho "Gathering /etc/lvm info..."
log "$CP -a /etc/lvm \"$dir/lvm\" 2>> \"$log\""
reply other threads:[~2013-01-15 17:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50F58FC6.6050400@canonical.com \
--to=eduardo.damato@canonical.com \
--cc=lvm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.