Skip to content

Commit 6417d3f

Browse files
committed
feat(longhorn): collect multipath.conf
longhorn/longhorn-6754 Signed-off-by: Chin-Ya Huang <[email protected]>
1 parent 6642be5 commit 6417d3f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

hack/collector-longhorn

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ function collect_proc_mounts(){
1111
cp ${HOST_PATH}/proc/mounts ./proc_mounts
1212
}
1313

14+
function collect_multipath_config(){
15+
if [ -f ${HOST_PATH}/etc/multipath.conf ]; then
16+
cp ${HOST_PATH}/etc/multipath.conf .
17+
fi
18+
}
19+
1420
function collect_sysinfo(){
1521
cd ${BUNDLE_DIR}
1622
mkdir -p hostinfos
@@ -24,6 +30,7 @@ function collect_sysinfo(){
2430
cat ${HOST_PATH}/boot/config-$(uname -r) > kernel_config
2531

2632
collect_proc_mounts
33+
collect_multipath_config
2734
}
2835

2936
function collect_dmesg(){

0 commit comments

Comments
 (0)