MULTIPATH
Ir para navegação
Ir para pesquisar
ASM
Em um servidor com ASM nunca executar o partprobe para todos os discos.
Pois o partprobe pode impactar nos discos ASM já em produção.
Sempre especificar o disco que o partprobe deve analisar a alteração de geometria.
Check all paths
#control=0;multipath -l | grep dm- | awk '{print $1}' | while read mpath; do if [ $control -eq 0 ]; then control=1; echo mpath_name Number_of_disks active_paths round_robin ; fi;echo $mpath $(multipath -l $mpath | grep sd[a-z] | wc -l ) $(multipath -l $mpath | grep sd[a-z] | grep active| wc -l) $(if [ $(multipath -l $mpath | grep round-robin | grep -w active | wc -l ) -eq 1 ] ; then echo active; else echo failed;fi);done | column -t
oracle linux 6.8
mpathconf --with_chkconfig y mpathconf --with_multipathd y mpathconf --find_multipaths y
Gera Conf
echo "multipaths {"
multipath -l | \
grep ^[a-z] | \
grep -v ^size | \
awk '{print $1 " "$2}' | \
sed -e "s/(//" -e "s/)//g"| \
while read MPATH lunid
do
echo " multipath {"
echo " wwid $lunid"
echo " alias $MPATH"
echo " path_grouping_policy multibus"
echo " path_checker readsector0"
echo " path_selector \"round-robin 0\""
echo " failback manual"
echo " rr_weight priorities"
echo " no_path_retry 5"
echo " }"
done
echo "}"
echo "multipaths {"
multipath -l | \
grep ^[a-z] | \
grep -v ^size | \
awk '{print $1 " "$2}' | \
sed -e "s/(//" -e "s/)//g"| \
while read MPATH lunid
do
echo " multipath {"
echo " wwid $lunid"
echo " alias $MPATH"
echo " path_grouping_policy multibus"
echo " path_selector \"round-robin 0\""
echo " failback manual"
echo " rr_weight priorities"
echo " no_path_retry queue"
echo " prio 1"
echo " }"
done
echo "}"
Windows
(gwmi -Namespace root\wmi -Class mpio_disk_info).driveinfo | select Name,NumberPaths
Get-InitiatorPort | Select-Object -Property PortAddress | Format-Table -AutoSize
Get-WmiObject -class MSFC_FCAdapterHBAAttributes -namespace "root\WMI" | ForEach-Object {(($_.NodeWWN) | ForEach-Object {"{0:x}" -f $_}) -join ":"}