Created
August 5, 2024 19:42
-
-
Save zackramjan/9f64dc8cfa19df974d7c73cd4fc8946e to your computer and use it in GitHub Desktop.
for spectrum scale we override the nsddevices to add nvme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/ksh | |
CONTROLLER_REGEX='nvme[0-9]+n[0-9]+' | |
for dev in $( /bin/ls /dev/ | egrep $CONTROLLER_REGEX ) | |
do | |
# | |
# dmm vs. generic is used by GPFS to prioritize internal order of | |
# searching through available disks, then later GPFS discards other | |
# disk device names that it finds that match as the same NSD device | |
# by a different path. For this reason, dmm vs. generic is an | |
# important distinction if you are not explicitly producing the | |
# entire and exclusive set of disks that GPFS should use, as output | |
# from this script (nsddevices) _and_ exiting this script with a | |
# "return 0". -Brian Finley | |
# | |
#echo mapper/$dev dmm | |
echo $dev generic | |
done | |
CONTROLLER_REGEX2='[sdv]d' | |
for dev2 in $( /bin/ls /dev/ | egrep $CONTROLLER_REGEX2 ) | |
do | |
# | |
# dmm vs. generic is used by GPFS to prioritize internal order of | |
# searching through available disks, then later GPFS discards other | |
# disk device names that it finds that match as the same NSD device | |
# by a different path. For this reason, dmm vs. generic is an | |
# important distinction if you are not explicitly producing the | |
# entire and exclusive set of disks that GPFS should use, as output | |
# from this script (nsddevices) _and_ exiting this script with a | |
# "return 0". -Brian Finley | |
# | |
#echo mapper/$dev dmm | |
echo $dev2 generic | |
done | |
# Bypass the GPFS disk discovery (/usr/lpp/mmfs/bin/mmdevdiscover), | |
return 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment