All of lore.kernel.org
 help / color / mirror / Atom feed
From: pcaulfield@sourceware.org <pcaulfield@sourceware.org>
To: lvm-devel@redhat.com
Subject: LVM2 ./WHATS_NEW scripts/lvm_dump.sh
Date: 9 Aug 2007 09:53:33 -0000	[thread overview]
Message-ID: <20070809095333.12244.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	pcaulfield at sourceware.org	2007-08-09 09:53:33

Modified files:
	.              : WHATS_NEW 
	scripts        : lvm_dump.sh 

Log message:
	Add more cluster/clvmd information to lvmdump

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.679&r2=1.680
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/scripts/lvm_dump.sh.diff?cvsroot=lvm2&r1=1.6&r2=1.7

--- LVM2/WHATS_NEW	2007/08/07 09:06:04	1.679
+++ LVM2/WHATS_NEW	2007/08/09 09:53:33	1.680
@@ -1,5 +1,6 @@
 Version 2.02.28 -
 ================================
+  Add more cluster info to lvmdump
   Add const attributes where possible, first cut.
   Add support for renaming mirrored LVs.
   Factor out core of lvrename() to lv_rename lvm library function.
--- LVM2/scripts/lvm_dump.sh	2007/07/02 20:18:38	1.6
+++ LVM2/scripts/lvm_dump.sh	2007/08/09 09:53:33	1.7
@@ -116,15 +116,45 @@
 
 if (( $clustered )); then
 	myecho "Gathering cluster info..."
+	echo "NODES: " > $dir/cluster_info
+	echo "----------------------------------" >> $dir/cluster_info
+	log "cman_tool nodes >> $dir/cluster_info 2>> $log"
+	echo " " >> $dir/cluster_info
+
 	echo "STATUS: " > $dir/cluster_info
 	echo "----------------------------------" >> $dir/cluster_info
 	log "cman_tool status >> $dir/cluster_info 2>> $log"
-	echo " " >> $dir/lvm_info
+	echo " " >> $dir/cluster_info
 
 	echo "SERVICES: " >> $dir/cluster_info
 	echo "----------------------------------" >> $dir/cluster_info
 	log "cman_tool services >> $dir/cluster_info 2>> $log"
-	echo " " >> $dir/lvm_info
+	echo " " >> $dir/cluster_info
+
+	echo "LOCKS: "  >> $dir/cluster_info
+	echo "----------------------------------" >> $dir/cluster_info
+	if [ -f /proc/cluster/dlm_locks ]
+	then
+		echo "clvmd" > /proc/cluster/dlm_locks
+		cat /proc/cluster/dlm_locks >> $dir/cluster_info
+		echo " " >> $dir/cluster_info
+		echo "RESOURCE DIR: "  >> $dir/cluster_info
+		cat /proc/cluster/dlm_dir >> $dir/cluster_info
+		echo " " >> $dir/cluster_info
+		echo "DEBUG LOG: "  >> $dir/cluster_info
+		cat /proc/cluster/dlm_debug >> $dir/cluster_info
+		echo " " >> $dir/cluster_info
+	fi
+	if [ -f /debug/dlm/clvmd ]
+	then
+		cat /debug/dlm/clvmd >> $dir/cluster_info
+		echo " " >> $dir/cluster_info
+		echo "WAITERS: "  >> $dir/cluster_info
+		cat /debug/dlm/clvmd_waiters >> $dir/cluster_info
+		echo " " >> $dir/cluster_info
+		echo "MASTER: "  >> $dir/cluster_info
+		cat /debug/dlm/clvmd_master >> $dir/cluster_info
+	fi
 fi
 
 myecho "Gathering LVM & device-mapper version info..."



             reply	other threads:[~2007-08-09  9:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-09  9:53 pcaulfield [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-01-06 18:02 LVM2 ./WHATS_NEW scripts/lvm_dump.sh mbroz
2008-08-28 10:40 mbroz
2007-10-02 16:09 mornfall
2007-10-02 15:48 mornfall
2007-07-02 20:18 mbroz
2007-04-25 14:49 bmr
2006-11-23 17:23 agk

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=20070809095333.12244.qmail@sourceware.org \
    --to=pcaulfield@sourceware.org \
    --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.