[pve-devel] [PATCH manager] report: add multipath.conf and wwids file

Mira Limbeck m.limbeck at proxmox.com
Fri Apr 16 15:15:54 CEST 2021


These 2 files can be helpful for issues with multipath. The multipath -v3
output is too large most of the time and not required for analyzing and
solving the issues.

Signed-off-by: Mira Limbeck <m.limbeck at proxmox.com>
---
 PVE/Report.pm | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/PVE/Report.pm b/PVE/Report.pm
index 10758c4d..fc54e9e2 100644
--- a/PVE/Report.pm
+++ b/PVE/Report.pm
@@ -92,8 +92,12 @@ my $init_report_cmds = sub {
 	    ;
     }
 
-    push @{$report_def->{disks}}, 'multipath -ll', 'multipath -v3'
-	if cmd_exists('multipath');
+    if (cmd_exists('multipath')) {
+	push @{$report_def->{disks}},
+	    'cat /etc/multipath.conf',
+	    'cat /etc/multipath/wwids',
+	    'multipath -ll';
+    }
 
     return $report_def;
 };
-- 
2.20.1





More information about the pve-devel mailing list