From 740a21490aec8298af7d7420f3b22f664ab670c1 Mon Sep 17 00:00:00 2001 From: markdhooper Date: Tue, 2 Jan 2024 10:15:04 -0400 Subject: [PATCH] dmap will remove ubm map key directory to mitigate potential auto-aliasing problems --- tools/dmap | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/dmap b/tools/dmap index d780cda..febe22c 100755 --- a/tools/dmap +++ b/tools/dmap @@ -18,6 +18,7 @@ import os import sys import json import shlex +import shutil from optparse import OptionParser @@ -864,6 +865,8 @@ def main(): trigger_udev() log("Server model {sm} is eligible for automatic device aliasing via udev rules.".format(sm=server["Model"])) log("dmap will not modify /etc/vdev_id.conf when it is created automatically by udev rules.") + log("Removing ubm map key directory to fix potential aliasing issues with auto-aliasing. (/var/cache/45drives/ubm)") + shutil.rmtree("/var/cache/45drives/ubm",ignore_errors = True) sys.exit(0) vdev_id_conf = create_vdev_id(server)