
michele.codutti at uniud
Oct 1, 2009, 7:42 AM
Post #1 of 1
(231 views)
Permalink
|
Hello, I've noticed that the LVM RA is very chatty, it fills the log of the node where it runs with this lines: lrmd: [3329]: info: RA output: (VG:monitor:stderr) File descriptor 4 left open lrmd: [3329]: info: RA output: (VG:monitor:stderr) File descriptor 5 left open lrmd: [3329]: info: RA output: (VG:monitor:stderr) File descriptor 6 left open lrmd: [3329]: info: RA output: (VG:monitor:stderr) File descriptor 7 left open lrmd: [3329]: info: RA output: (VG:monitor:stderr) File descriptor 8 left open lrmd: [3329]: info: RA output: (VG:monitor:stderr) File descriptor 9 left open [...] LVM[4608]: INFO: File descriptor 4 left open File descriptor 5 left open File descriptor 6 left open File descriptor 7 left open File descriptor 8 left open File descriptor 9 left open ... T his information is not useful because this is the normal behaviour of a vgck command. There is a method to make vgck be more quiet: http://linux.derkeiler.com/Newsgroups/comp.os.linux.misc/2008-04/msg00435.html There are also other excessive log lines that I notice when I run a LVM resource: lrmd: [3329]: info: RA output: (VG:monitor:stderr) Using volume group(s) on command line lrmd: [3329]: info: RA output: (VG:monitor:stderr) lrmd: [3329]: info: RA output: (VG:monitor:stderr) Finding volume group "VGM" Now this is determined by the command vgdisplay -v $1 | grep -i 'Status[ \t]*available' >/dev/null that not redirect all the output on /dev/null. The command should be: vgdisplay -v $1 2>/dev/null | grep -i 'Status[ \t]*available' >/dev/null I propose this patch to solve the problems above --- LVM.old 2009-10-01 15:55:37.000000000 +0200 +++ LVM 2009-10-01 16:38:05.000000000 +0200 @@ -120,7 +120,8 @@ vgdisplay $1 | grep -i 'Status.*available' >/dev/null return $? else - vgdisplay -v $1 | grep -i 'Status[ \t]*available' >/dev/null + vgdisplay -v $1 2>/dev/null | \ + grep -i 'Status[ \t]*available' >/dev/null return $? fi @@ -272,6 +273,8 @@ # 'main' starts here... # +export LVM_SUPPRESS_FD_WARNINGS=1 + if ( [ $# -ne 1 ] ) then Let me know what do you think. Cheers -- Michele Codutti Centro Servizi Informatici e Telematici (CSIT) Universita' degli Studi di Udine via Delle Scienze, 208 - 33100 UDINE tel +39 0432 558928 fax +39 0432 558911 e-mail: michele.codutti at uniud.it _______________________________________________________ Linux-HA-Dev: Linux-HA-Dev[at]lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
|