Skip to content

DLPX-67251 Device removal fails due to inconsistent device names #162

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 16, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,31 @@
regexp: '(.*)\|xvd\*(.*)'
line: '\1\2'

#
# The default udev rules create two different by-id links for each storage
# device on ESX, based the same serial number but with different prefixes.
# The first is based on the bus type (scsi) and the second is a catch-all
# "World Wide Name" (wwn). After migration, we import domain0 with the
# "/dev/disk/by-id" path, but since udev runs asynchronously, we may end up
# with a mix of wwn and scsi aliases. This causes problems when the DE tries to
# match devices on the system to those in the pool, i.e. for removal.
#
# This moves the wwn links to the /dev/disk/by-id/wwn sub-directory, keeping it
# available as a backup but limiting the /dev/disk/by-id namespace to one type
# of id. We override the original rules in /lib/ with our new version in /etc/.
#
- copy:
remote_src: yes
src: /lib/udev/rules.d/60-persistent-storage.rules
dest: /etc/udev/rules.d/60-persistent-storage.rules
owner: root
group: root
mode: 0644
- replace:
path: /etc/udev/rules.d/60-persistent-storage.rules
regexp: 'disk\/by-id\/wwn-'
replace: 'disk/by-id/wwn/'

#
# Enable CRA for external variants
#
Expand Down