Skip to content

Commit

Permalink
dmap will remove ubm map key directory to mitigate potential auto-ali…
Browse files Browse the repository at this point in the history
…asing problems
  • Loading branch information
markdhooper committed Jan 2, 2024
1 parent 39cd489 commit 740a214
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/dmap
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import os
import sys
import json
import shlex
import shutil
from optparse import OptionParser


Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 740a214

Please sign in to comment.