User Tools

Site Tools


aix:scripts_remove_paths

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

aix:scripts_remove_paths [2021/01/01 21:21]
127.0.0.1 external edit
aix:scripts_remove_paths [2023/12/13 14:55] (current)
manu
Line 23: Line 23:
 #@(#) Remove unused adapter, paths and disks #@(#) Remove unused adapter, paths and disks
 # Version 1.0  08-2014 # Version 1.0  08-2014
 +# Version 1.1  12-2023
  
 dir=`dirname $0` dir=`dirname $0`
Line 33: Line 34:
  
 for device in $(lsdev -Cc adapter | grep -vi available | awk '​{print $1}') for device in $(lsdev -Cc adapter | grep -vi available | awk '​{print $1}')
 +do
 +  rmdev -dl $device
 +done
 +
 +# Specific for Dell/EMC disks LUNZ
 +for device in $(lsdev -Cc disk | sed 's/\ /:/g' | grep ':​EMC:​CLARiiON:​FCP:​MPIO:​LUNZ:'​ | awk -F':'​ '​{print $1}')
 do do
   rmdev -dl $device   rmdev -dl $device
aix/scripts_remove_paths.1609532493.txt.gz ยท Last modified: 2021/01/01 21:21 by 127.0.0.1