mirror of
https://github.com/mrlesmithjr/ansible-manage-lvm.git
synced 2026-09-07 07:58:25 +03:00
* New: support mitigation for aws ec2 nvme random device name assignment
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
# ebs nvme to scsi device naming mapping
|
||||
KERNEL=="nvme[0-9]*n[0-9]*", ENV{DEVTYPE}=="disk", ATTRS{model}=="Amazon Elastic Block Store", PROGRAM="{{ ebsnvme_scrip_helper_path }} /dev/%k", SYMLINK+="%c"
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# This script uses go version of ebsnvme-id to provide
|
||||
# SCSI Disk device name links for nvme devices
|
||||
#
|
||||
# links:
|
||||
#
|
||||
# https://www.logicworks.com/blog/2018/03/manage-aws-ebs-volumes-c5-m5-puppet-chef-ansible/
|
||||
# https://github.com/mvisonneau/go-ebsnvme
|
||||
# https://gist.github.com/lbernail/d851e5b06eb32180a4b8ead2ce4f45db
|
||||
# and working forks like:
|
||||
# (keenan-v1/ebsnvme-id) https://gist.github.com/keenan-v1/aee92cd7383ee02de2a817a004917a03
|
||||
#
|
||||
|
||||
{{ ebsnvme_binary_helper_path }} -n $1 | awk -F '/' '{print $3}'
|
||||
|
||||
Reference in New Issue
Block a user