Red Hat SATELLITE 5.3.0 RELEASE NOTES Información técnica Pagina 88

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 199
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 87
#Acquire short hostname
SHORTHOST=`hostname --short`
#Modifying hostname to match name used to define host HBAs at MSA storage array
NODE=`echo $SHORTHOST | awk '{ sub("mgmt","mgmt_node"); print }'`
#Add the HBAs of this host to the MSA storage array
/root/map_fc_aliases.sh
#Present the MgmtServices and GFS2 storage volumes to each HBA in this host
for f in `sacommand --saurl //${MSA_USER}:${MSA_PW}@${MSA_IP} show hosts | grep $
{SHORTHOST}_ | awk '{print $2}'`
do
sacommand --saurl //${MSA_USER}:${MSA_PW}@${MSA_IP} map volume MgmtServices
access rw ports a1,a2 lun 1 host ${f}
# sacommand --saurl //${MSA_USER}:${MSA_PW}@${MSA_IP} map volume quorum access
rw ports a1,a2 lun 2 host ${f}
sacommand --saurl //${MSA_USER}:${MSA_PW}@${MSA_IP} map volume GFS2 access rw
ports a1,a2 lun 3 host ${f}
done
#Rescan the SCSI bus to discover newly presented LUNs
/usr/bin/rescan-scsi-bus.sh
#Save original multipath configuration file
/bin/mv /etc/multipath.conf /etc/multipath.conf.orig
#Deploy multipath configuration file preconfigured with recommended
#MSA array settings for optimal performance
/bin/cp /root/multipath.conf.template /etc/multipath.conf
/root/buildMpathAliases.sh ra-msa20.cloud.lab.eng.bos.redhat.com >> /etc/multipath.conf
#Reload multipath configuration file
service multipathd reload
root@spr:/pub/projects/cloud/resources/wa/r55/resources
# vi prep_stor_mgmt.sh
root@spr:/pub/projects/cloud/resources/wa/r55/resources
# cat prep_stor_mgmt.sh
#!/bin/bash
# source env vars
if [[ -x varDefs.sh ]] ; then
echo varDefs.sh
source varDefs.sh
elif [[ -x /root/varDefs.sh ]] ; then
echo /root/varDefs.sh
source /root/varDefs.sh
www.redhat.com 88
Vista de pagina 87
1 2 ... 83 84 85 86 87 88 89 90 91 92 93 ... 198 199

Comentarios a estos manuales

Sin comentarios