Alta disponibilidade para SAP NetWeaver em VMs Azure no SUSE Linux Enterprise Server com Ficheiros Azure NetApp para aplicações SAPHigh availability for SAP NetWeaver on Azure VMs on SUSE Linux Enterprise Server with Azure NetApp Files for SAP applications
Este artigo descreve como implantar as máquinas virtuais, configurar as máquinas virtuais, instalar a estrutura do cluster e instalar um sistema SAP NetWeaver 7.50 altamente disponível, utilizando ficheiros Azure NetApp.This article describes how to deploy the virtual machines, configure the virtual machines, install the cluster framework, and install a highly available SAP NetWeaver 7.50 system, using Azure NetApp Files. Nas configurações de exemplo, comandos de instalação, etc., a instância ASCS é número 00, a instância ERS número 01, a instância de Aplicação Primária (PAS) é 02 e a instância de aplicação (AAS) é 03.In the example configurations, installation commands etc., the ASCS instance is number 00, the ERS instance number 01, the Primary Application instance (PAS) is 02 and the Application instance (AAS) is 03. O SISTEMA SAP ID QAS é utilizado.SAP System ID QAS is used.
Este artigo explica como obter alta disponibilidade para aplicação SAP NetWeaver com Ficheiros Azure NetApp.This article explains how to achieve high availability for SAP NetWeaver application with Azure NetApp Files. A camada de base de dados não está coberta em detalhe neste artigo.The database layer isn't covered in detail in this article.
Leia primeiro as seguintes notas e artigos SAP:Read the following SAP Notes and papers first:
- Documentação dos Ficheiros Azure NetAppAzure NetApp Files documentation
- Nota SAP 1928533, que tem:SAP Note 1928533, which has:
- Lista de tamanhos Azure VM que são suportados para a implementação de software SAPList of Azure VM sizes that are supported for the deployment of SAP software
- Informações importantes sobre a capacidade dos tamanhos Azure VMImportant capacity information for Azure VM sizes
- Combinações suportadas de software SAP e sistema operativo (OS) e de base de dadosSupported SAP software, and operating system (OS) and database combinations
- Versão kernel SAP necessária para Windows e Linux no Microsoft AzureRequired SAP kernel version for Windows and Linux on Microsoft Azure
- O SAP Note 2015553 lista pré-requisitos para implementações de software SAP suportadas pelo SAP em Azure.SAP Note 2015553 lists prerequisites for SAP-supported SAP software deployments in Azure.
- SAP Nota 2205917 recomendou definições de SO para SUSE Linux Enterprise Server para aplicações SAPSAP Note 2205917 has recommended OS settings for SUSE Linux Enterprise Server for SAP Applications
- SAP Nota 1944799 tem Diretrizes SAP HANA para SUSE Linux Enterprise Server para aplicações SAPSAP Note 1944799 has SAP HANA Guidelines for SUSE Linux Enterprise Server for SAP Applications
- A Nota SAP 2178632 tem informações detalhadas sobre todas as métricas de monitorização reportadas para o SAP em Azure.SAP Note 2178632 has detailed information about all monitoring metrics reported for SAP in Azure.
- Sap Note 2191498 tem a versão necessária do Agente anfitrião SAP para Linux em Azure.SAP Note 2191498 has the required SAP Host Agent version for Linux in Azure.
- Sap Nota 2243692 tem informações sobre o licenciamento SAP em Linux em Azure.SAP Note 2243692 has information about SAP licensing on Linux in Azure.
- Sap Note 1984787 tem informações gerais sobre o SUSE Linux Enterprise Server 12.SAP Note 1984787 has general information about SUSE Linux Enterprise Server 12.
- Sap Nota 1999351 tem informações adicionais de resolução de problemas para a extensão de monitorização melhorada de Azure para o SAP.SAP Note 1999351 has additional troubleshooting information for the Azure Enhanced Monitoring Extension for SAP.
- A SAP Community https://wiki.scn.sap.com/wiki/display/HOME/SAPonLinuxNotes) WIKItem todas as notas SAP necessárias para o Linux.SAP Community WIKI has all required SAP Notes for Linux.
- Azure Virtual Machines planejamento e implementação para SAP em LinuxAzure Virtual Machines planning and implementation for SAP on Linux
- Implementação de Máquinas Virtuais Azure para SAP em LinuxAzure Virtual Machines deployment for SAP on Linux
- Azure Virtual Machines DBMS implantação para SAP em LinuxAzure Virtual Machines DBMS deployment for SAP on Linux
- Guias de boas práticas SUSE SAP HA Os guias contêm todas as informações necessárias para configurar a replicação do sistema Netweaver HA e SAP HANA no local.SUSE SAP HA Best Practice Guides The guides contain all required information to set up Netweaver HA and SAP HANA System Replication on-premises. Utilize estes guias como base geral.Use these guides as a general baseline. Fornecem informações muito mais detalhadas.They provide much more detailed information.
- SUSE Extensão de Alta Disponibilidade 12 Notas de lançamento SP3SUSE High Availability Extension 12 SP3 Release Notes
- Aplicações NETApp SAP no Microsoft Azure utilizando ficheiros Azure NetAppNetApp SAP Applications on Microsoft Azure using Azure NetApp Files
Descrição GeralOverview
A elevada disponibilidade (HA) para os serviços centrais DA NETWEaver requer armazenamento partilhado.High availability(HA) for SAP Netweaver central services requires shared storage. Para o conseguir em SUSE Linux até agora, era necessário construir um cluster NFS altamente disponível.To achieve that on SUSE Linux so far it was necessary to build separate highly available NFS cluster.
Agora é possível alcançar o SAP Netweaver HA utilizando o armazenamento partilhado, implantado em Ficheiros Azure NetApp.Now it is possible to achieve SAP Netweaver HA by using shared storage, deployed on Azure NetApp Files. A utilização de ficheiros Azure NetApp para o armazenamento partilhado elimina a necessidade de um cluster NFSadicional.Using Azure NetApp Files for the shared storage eliminates the need for additional NFS cluster. O Pacemaker ainda é necessário para a HA dos serviços centrais SAP Netweaver (ASCS/SCS).Pacemaker is still needed for HA of the SAP Netweaver central services(ASCS/SCS).
SAP NetWeaver ASCS, SAP NetWeaver SCS, SAP NetWeaver ERS e a base de dados SAP HANA utilizam o nome de anfitrião virtual e endereços IP virtuais.SAP NetWeaver ASCS, SAP NetWeaver SCS, SAP NetWeaver ERS, and the SAP HANA database use virtual hostname and virtual IP addresses. No Azure, é necessário um equilibrador de carga para utilizar um endereço IP virtual.On Azure, a load balancer is required to use a virtual IP address. Recomendamos a utilização do balanceador de carga standard.We recommend using Standard load balancer. A lista a seguir mostra a configuração do (A)SCS e ERS load balancer.The following list shows the configuration of the (A)SCS and ERS load balancer.
a (A) SCS(A)SCS
- Configuração frontendFrontend configuration
- Endereço IP 10.1.1.20IP address 10.1.1.20
- Porto de SondaProbe Port
- Porto 620 < nr > Port 620<nr>
- Regras de equilíbrio de cargaLoad-balancing rules
- Se utilizar o Balanceador de Carga Padrão, selecione portas HAIf using Standard Load Balancer, select HA ports
- Se utilizar o Balanceador de Carga Básica, crie regras de equilíbrio de carga para as seguintes portasIf using Basic Load Balancer, create Load balancing rules for the following ports
- 32 < nr > TCP32<nr> TCP
- 36 < nr > TCP36<nr> TCP
- 39 < nr > TCP39<nr> TCP
- 81 < nr > TCP81<nr> TCP
- 5 < nr > 13 TCP5<nr>13 TCP
- 5 < nr > 14 TCP5<nr>14 TCP
- 5 < nr > 16 TCP5<nr>16 TCP
ERSERS
Configuração frontendFrontend configuration
- Endereço IP 10.1.1.21IP address 10.1.1.21
Porto de SondaProbe Port
- Porto 621 < nr > Port 621<nr>
Regras de equilíbrio de cargaLoad-balancing rules
- Se utilizar o Balanceador de Carga Padrão, selecione portas HAIf using Standard Load Balancer, select HA ports
- Se utilizar o Balanceador de Carga Básica, crie regras de equilíbrio de carga para as seguintes portasIf using Basic Load Balancer, create Load balancing rules for the following ports
- 32 < nr > TCP32<nr> TCP
- 33 < nr > TCP33<nr> TCP
- 5 < nr > 13 TCP5<nr>13 TCP
- 5 < nr > 14 TCP5<nr>14 TCP
- 5 < nr > 16 TCP5<nr>16 TCP
Configuração de backendBackend configuration
- Ligado às interfaces de rede primária de todas as máquinas virtuais que devem fazer parte do cluster (A)SCS/ERSConnected to primary network interfaces of all virtual machines that should be part of the (A)SCS/ERS cluster
Criação da infraestrutura Azure NetApp FilesSetting up the Azure NetApp Files infrastructure
O SAP NetWeaver requer armazenamento partilhado para o diretório de transporte e perfil.SAP NetWeaver requires shared storage for the transport and profile directory. Antes de prosseguir com a configuração da infraestrutura de ficheiros Azure NetApp, familiarize-se com a documentação do Azure NetApp Files.Before proceeding with the setup for Azure NetApp files infrastructure, familiarize yourself with the Azure NetApp Files documentation. Verifique se a região de Azure selecionada oferece ficheiros Azure NetApp.Check if your selected Azure region offers Azure NetApp Files. O seguinte link mostra a disponibilidade de Ficheiros Azure NetApp por região Azure: Azure NetApp Files Availability by Azure Region.The following link shows the availability of Azure NetApp Files by Azure region: Azure NetApp Files Availability by Azure Region.
Os ficheiros Azure NetApp estão disponíveis em várias regiões do Azure.Azure NetApp files is available in several Azure regions. Antes de implementar ficheiros Azure NetApp, solicite a bordo para ficheiros Azure NetApp, seguindo as instruções dos ficheiros Register for Azure NetApp.Before deploying Azure NetApp Files, request onboarding to Azure NetApp Files, following the Register for Azure NetApp files instructions.
Implementar recursos de ficheiros Azure NetAppDeploy Azure NetApp Files resources
Os passos assumem que já implementou a Rede Virtual Azure.The steps assume that you have already deployed Azure Virtual Network. Os recursos do Azure NetApp e dos VMs, onde serão montados os recursos do Azure NetApp Files, devem ser implantados na mesma Rede Virtual Azure ou em Redes Virtuais Azure.The Azure NetApp Files resources and the VMs, where the Azure NetApp Files resources will be mounted must be deployed in the same Azure Virtual Network or in peered Azure Virtual Networks.
Se ainda não o fez, solicite a bordo dos Ficheiros Azure NetApp.If you haven't done that already, request onboarding to Azure NetApp Files.
Crie a conta NetApp na região Azure selecionada, seguindo as instruções para criar a Conta NetApp.Create the NetApp account in the selected Azure region, following the instructions to create NetApp Account.
Configurar o pool de capacidade do Azure NetApp Files, seguindo as instruções sobre como configurar o pool de capacidade do Azure NetApp Files.Set up Azure NetApp Files capacity pool, following the instructions on how to set up Azure NetApp Files capacity pool.
A arquitetura SAP Netweaver apresentada neste artigo utiliza um único pool de capacidade Azure NetApp Files, Premium SKU.The SAP Netweaver architecture presented in this article uses single Azure NetApp Files capacity pool, Premium SKU. Recomendamos a Azure NetApp Files Premium SKU para a carga de trabalho da aplicação SAP Netweaver no Azure.We recommend Azure NetApp Files Premium SKU for SAP Netweaver application workload on Azure.Delege uma sub-rede para ficheiros Azure NetApp, conforme descrito nas instruções Delegar uma sub-rede para ficheiros Azure NetApp.Delegate a subnet to Azure NetApp files as described in the instructions Delegate a subnet to Azure NetApp Files.
Implementar volumes de ficheiros Azure NetApp, seguindo as instruções para criar um volume para ficheiros Azure NetApp.Deploy Azure NetApp Files volumes, following the instructions to create a volume for Azure NetApp Files. Implementar os volumes na sub-rededesignada Azure NetApp Files .Deploy the volumes in the designated Azure NetApp Files subnet. Os endereços IP dos volumes Azure NetApp são atribuídos automaticamente.The IP addresses of the Azure NetApp volumes are assigned automatically. Tenha em mente que os recursos do Azure NetApp Files e os VMs Azure devem estar na mesma Rede Virtual Azure ou em Redes Virtuais Azure.Keep in mind that the Azure NetApp Files resources and the Azure VMs must be in the same Azure Virtual Network or in peered Azure Virtual Networks. Neste exemplo utilizamos dois volumes Azure NetApp Files: sapQAS e trans. Os caminhos de arquivo que são montados nos pontos de montagem correspondentes são /usrsapqas/sapmntQAS,/usrsapqas/usrsapQASsys, etc.In this example we use two Azure NetApp Files volumes: sapQAS and trans. The file paths that are mounted to the corresponding mount points are /usrsapqas/sapmntQAS, /usrsapqas/usrsapQASsys, etc.
- volume sapQAS (nfs://10.1.0.4/usrsapqas/sapmntQAS)volume sapQAS (nfs://10.1.0.4/usrsapqas/sapmntQAS)
- volume sapQAS (nfs://10.1.0.4/usrsapqas/usrsapQASascs)volume sapQAS (nfs://10.1.0.4/usrsapqas/usrsapQASascs)
- volume sapQAS (nfs://10.1.0.4/usrsapqas/usrsapQASsys)volume sapQAS (nfs://10.1.0.4/usrsapqas/usrsapQASsys)
- volume sapQAS (nfs://10.1.0.4/usrsapqas/usrsapQASers)volume sapQAS (nfs://10.1.0.4/usrsapqas/usrsapQASers)
- volume trans (nfs://10.1.0.4/trans)volume trans (nfs://10.1.0.4/trans)
- volume sapQAS (nfs://10.1.0.4/usrsapqas/usrsapQASpas)volume sapQAS (nfs://10.1.0.4/usrsapqas/usrsapQASpas)
- volume sapQAS (nfs://10.1.0.4/usrsapqas/usrsapQASaas)volume sapQAS (nfs://10.1.0.4/usrsapqas/usrsapQASaas)
Neste exemplo, utilizamos ficheiros Azure NetApp para todos os sistemas de ficheiros SAP Netweaver para demonstrar como os Ficheiros Azure NetApp podem ser utilizados.In this example, we used Azure NetApp Files for all SAP Netweaver file systems to demonstrate how Azure NetApp Files can be used. Os sistemas de ficheiros SAP que não precisam de ser montados através de NFS também podem ser implantados como armazenamento de disco Azure .The SAP file systems that don't need to be mounted via NFS can also be deployed as Azure disk storage . Neste exemplo, o A-E deve estar nos Ficheiros Azure NetApp e f-g (isto é, /usr/seiva/QAS/D02, /usr/sap/QAS/D03) pode ser implantado como armazenamento de disco Azure.In this example a-e must be on Azure NetApp Files and f-g (that is, /usr/sap/QAS/D02, /usr/sap/QAS/D03) could be deployed as Azure disk storage.
Considerações importantesImportant considerations
Ao considerar os ficheiros Azure NetApp para o SAP Netweaver na arquitetura SUSE High Availability, esteja ciente das seguintes considerações importantes:When considering Azure NetApp Files for the SAP Netweaver on SUSE High Availability architecture, be aware of the following important considerations:
- A capacidade mínima é de 4 TiB.The minimum capacity pool is 4 TiB. O tamanho da piscina pode ser aumentado em 1 incrementos TiB.The capacity pool size can be increased be in 1 TiB increments.
- O volume mínimo é de 100 GiBThe minimum volume is 100 GiB
- Os ficheiros Azure NetApp e todas as máquinas virtuais, onde os volumes dos Ficheiros Azure NetApp serão montados, devem estar na mesma Rede Virtual Azure ou em redes virtuais na mesma região.Azure NetApp Files and all virtual machines, where Azure NetApp Files volumes will be mounted, must be in the same Azure Virtual Network or in peered virtual networks in the same region. O acesso dos Ficheiros Azure NetApp sobre o observante VNET na mesma região é agora suportado.Azure NetApp Files access over VNET peering in the same region is supported now. O acesso do Azure NetApp ao que está a ser olhando global ainda não está suportado.Azure NetApp access over global peering is not yet supported.
- A rede virtual selecionada deve ter uma sub-rede delegada nos Ficheiros Azure NetApp.The selected virtual network must have a subnet, delegated to Azure NetApp Files.
- O Azure NetApp Files oferece uma política de exportação:pode controlar os clientes autorizados, o tipo de acesso (Ler&Escrever, Ler Apenas, etc.).Azure NetApp Files offers export policy: you can control the allowed clients, the access type (Read&Write, Read Only, etc.).
- A funcionalidade Azure NetApp Files ainda não está ciente da zona.Azure NetApp Files feature isn't zone aware yet. Atualmente, a funcionalidade Azure NetApp Files não está implantada em todas as zonas de Disponibilidade numa região do Azure.Currently Azure NetApp Files feature isn't deployed in all Availability zones in an Azure region. Esteja ciente das potenciais implicações de latência em algumas regiões de Azure.Be aware of the potential latency implications in some Azure regions.
- Os volumes de Ficheiros Azure NetApp podem ser implantados como volumes NFSv3 ou NFSv4.1.Azure NetApp Files volumes can be deployed as NFSv3 or NFSv4.1 volumes. Ambos os protocolos são suportados para a camada de aplicação SAP (ASCS/ERS, servidores de aplicações SAP).Both protocols are supported for the SAP application layer (ASCS/ERS, SAP application servers).
Implementar Os VMs Linux manualmente através do portal AzureDeploy Linux VMs manually via Azure portal
Primeiro, tem de criar os volumes dos Ficheiros Azure NetApp.First you need to create the Azure NetApp Files volumes. Desdobre os VMs.Deploy the VMs. Em seguida, cria-se um equilibrador de carga e utiliza-se as máquinas virtuais nas piscinas de backend.Afterwards, you create a load balancer and use the virtual machines in the backend pools.
- Criar um Grupo de RecursosCreate a Resource Group
- Criar uma Rede VirtualCreate a Virtual Network
- Criar um conjunto de disponibilidade para ASCSCreate an Availability Set for ASCS
Definir domínio de atualização máximaSet max update domain - Criar Máquina Virtual 1Create Virtual Machine 1
Utilize pelo menos SLES4SAP 12 SP3, neste exemplo é utilizada a imagem SLES4SAP 12 SP3Use at least SLES4SAP 12 SP3, in this example the SLES4SAP 12 SP3 image is used
Selecione Conjunto de Disponibilidade criado anteriormente para ASCSSelect Availability Set created earlier for ASCS - Criar Máquina Virtual 2Create Virtual Machine 2
Utilize pelo menos SLES4SAP 12 SP3, neste exemplo é utilizada a imagem SLES4SAP 12 SP3Use at least SLES4SAP 12 SP3, in this example the SLES4SAP 12 SP3 image is used
Selecione Conjunto de Disponibilidade criado anteriormente para ASCSSelect Availability Set created earlier for ASCS - Criar um Conjunto de Disponibilidade para as instâncias de aplicação SAP (PAS, AAS)Create an Availability Set for the SAP application instances (PAS, AAS)
Definir domínio de atualização máximaSet max update domain - Criar Máquina Virtual 3Create Virtual Machine 3
Utilize pelo menos SLES4SAP 12 SP3, neste exemplo é utilizada a imagem SLES4SAP 12 SP3Use at least SLES4SAP 12 SP3, in this example the SLES4SAP 12 SP3 image is used
Selecione Conjunto de Disponibilidade criado anteriormente para PAS/AASSelect Availability Set created earlier for PAS/AAS - Criar Máquina Virtual 4Create Virtual Machine 4
Utilize pelo menos SLES4SAP 12 SP3, neste exemplo é utilizada a imagem SLES4SAP 12 SP3Use at least SLES4SAP 12 SP3, in this example the SLES4SAP 12 SP3 image is used
Selecione Conjunto de Disponibilidade criado anteriormente para PAS/AASSelect Availability Set created earlier for PAS/AAS
Desativar o mapeamento de ID (se utilizar o NFSv4.1)Disable ID mapping (if using NFSv4.1)
As instruções nesta secção só são aplicáveis se utilizar volumes de Ficheiros Azure NetApp com o protocolo NFSv4.1.The instructions in this section are only applicable, if using Azure NetApp Files volumes with NFSv4.1 protocol. Execute a configuração em todos os VMs, onde os volumes NFSv4.1 dos Ficheiros Azure NetApp serão montados.Perform the configuration on all VMs, where Azure NetApp Files NFSv4.1 volumes will be mounted.
Verifique a definição de domínio NFS.Verify the NFS domain setting. Certifique-se de que o domínio está configurado como o domínio padrão dos Ficheiros Azure NetApp, ou seja,
defaultv4iddomain.com
e o mapeamento não é definido para ninguém.Make sure that the domain is configured as the default Azure NetApp Files domain, i.e.defaultv4iddomain.com
and the mapping is set to nobody.Importante
Certifique-se de que define o domínio NFS
/etc/idmapd.conf
no VM para corresponder à configuração de domínio predefinido nos Ficheiros Azure NetApp:defaultv4iddomain.com
.Make sure to set the NFS domain in/etc/idmapd.conf
on the VM to match the default domain configuration on Azure NetApp Files:defaultv4iddomain.com
. Se houver um desfasamento entre a configuração de domínio no cliente NFS (ou seja, o VM) e o servidor NFS, ou seja, a configuração do Azure NetApp, então as permissões para ficheiros nos volumes Azure NetApp que são montados nos VMs serão exibidas comonobody
.If there's a mismatch between the domain configuration on the NFS client (i.e. the VM) and the NFS server, i.e. the Azure NetApp configuration, then the permissions for files on Azure NetApp volumes that are mounted on the VMs will be displayed asnobody
.sudo cat /etc/idmapd.conf # Example [General] Verbosity = 0 Pipefs-Directory = /var/lib/nfs/rpc_pipefs Domain = defaultv4iddomain.com [Mapping] Nobody-User = nobody Nobody-Group = nobody
[A] Verificar
nfs4_disable_idmapping
.[A] Verifynfs4_disable_idmapping
. Deve ser definido para Y. Para criar a estrutura do diretório ondenfs4_disable_idmapping
se encontra, execute o comando de montagem.It should be set to Y. To create the directory structure wherenfs4_disable_idmapping
is located, execute the mount command. Não poderá criar manualmente o diretório em /sys/módulos, porque o acesso é reservado para o núcleo/condutores.You won't be able to manually create the directory under /sys/modules, because access is reserved for the kernel / drivers.# Check nfs4_disable_idmapping cat /sys/module/nfs/parameters/nfs4_disable_idmapping # If you need to set nfs4_disable_idmapping to Y mkdir /mnt/tmp mount 10.1.0.4:/sapmnt/qas /mnt/tmp umount /mnt/tmp echo "Y" > /sys/module/nfs/parameters/nfs4_disable_idmapping # Make the configuration permanent echo "options nfs nfs4_disable_idmapping=Y" >> /etc/modprobe.d/nfs.conf
Criação (A)SCSSetting up (A)SCS
Neste exemplo, os recursos foram utilizados manualmente através do portal Azure.In this example, the resources were deployed manually via the Azure portal .
Implementar o Equilibrador de Carga Azure manualmente através do portal AzureDeploy Azure Load Balancer manually via Azure portal
Primeiro, tem de criar os volumes dos Ficheiros Azure NetApp.First you need to create the Azure NetApp Files volumes. Desdobre os VMs.Deploy the VMs. Em seguida, cria-se um equilibrador de carga e utiliza-se as máquinas virtuais na piscina de backend.Afterwards, you create a load balancer and use the virtual machines in the backend pool.
- Criar balanceador de carga (interno, padrão):Create load balancer (internal, standard):
- Criar os endereços IP frontendCreate the frontend IP addresses
- Endereço IP 10.1.1.20 para o ASCSIP address 10.1.1.20 for the ASCS
- Abra o equilibrador de carga, selecione o pool IP frontal e clique em AdicionarOpen the load balancer, select frontend IP pool, and click Add
- Insira o nome do novo pool IP frontend (por exemplo, frontend. O QAS. ASCS)Enter the name of the new frontend IP pool (for example frontend.QAS.ASCS)
- Desaponda a Estática e introduza o endereço IP (por exemplo 10.1.1.20)Set the Assignment to Static and enter the IP address (for example 10.1.1.20)
- Clique em OKClick OK
- Endereço IP 10.1.1.21 para o ASCS ERSIP address 10.1.1.21 for the ASCS ERS
- Repita os passos acima em "a" para criar um endereço IP para o ERS (por exemplo 10.1.1.21 e frontend. O QAS. ERS)Repeat the steps above under "a" to create an IP address for the ERS (for example 10.1.1.21 and frontend.QAS.ERS)
- Endereço IP 10.1.1.20 para o ASCSIP address 10.1.1.20 for the ASCS
- Criar o conjunto de back-endCreate the backend pool
- Abra o balançador de carga, selecione piscinas de backend e clique em AdicionarOpen the load balancer, select backend pools, and click Add
- Insira o nome da nova piscina de backend (por exemplo, backend. QASEnter the name of the new backend pool (for example backend.QAS)
- Clique em Adicionar uma máquina virtual.Click Add a virtual machine.
- Selecione máquina virtualSelect Virtual machine
- Selecione as máquinas virtuais do cluster (A)SCS e os seus endereços IP.Select the virtual machines of the (A)SCS cluster and their IP addresses.
- Clique em AdicionarClick Add
- Criar as sondas de saúdeCreate the health probes
- Porto 620 00 para ASCSPort 620 00 for ASCS
- Abra o equilibrador de carga, selecione sondas de saúde e clique em AdicionarOpen the load balancer, select health probes, and click Add
- Insira o nome da nova sonda de saúde (por exemplo, saúde. O QAS. ASCS)Enter the name of the new health probe (for example health.QAS.ASCS)
- Selecione TCP como protocolo, porta 620 00, mantenha o Intervalo 5 e o limiar insalubre 2Select TCP as protocol, port 620 00, keep Interval 5 and Unhealthy threshold 2
- Clique em OKClick OK
- Porto 621 01 para ASCS ERSPort 621 01 for ASCS ERS
- Repita os passos acima em "c" para criar uma sonda de saúde para o ERS (por exemplo 621 01 e saúde. O QAS. ERS)Repeat the steps above under "c" to create a health probe for the ERS (for example 621 01 and health.QAS.ERS)
- Porto 620 00 para ASCSPort 620 00 for ASCS
- Regras de equilíbrio de cargaLoad-balancing rules
- Criar uma piscina de backend para o ASCSCreate a backend pool for the ASCS
- Abra o equilibrador de carga, selecione regras de equilíbrio de carga e clique em AdicionarOpen the load balancer, select Load-balancing rules and click Add
- Insira o nome da nova regra do balançador de carga (por exemplo lb. O QAS. ASCS)Enter the name of the new load balancer rule (for example lb.QAS.ASCS)
- Selecione o endereço IP frontend para ASCS, backend pool e sonda de saúde que criou anteriormente (por exemplo, frontend. O QAS. ASCS, backend. QAS e saúde. O QAS. ASCS)Select the frontend IP address for ASCS, backend pool, and health probe you created earlier (for example frontend.QAS.ASCS, backend.QAS and health.QAS.ASCS)
- Selecione portas HASelect HA ports
- Certifique-se de ativar o IP flutuanteMake sure to enable Floating IP
- Clique em OKClick OK
- Repita os passos acima para criar regras de equilíbrio de carga para ERS (por exemplo lb. O QAS. ERS)Repeat the steps above to create load balancing rules for ERS (for example lb.QAS.ERS)
- Criar uma piscina de backend para o ASCSCreate a backend pool for the ASCS
- Criar os endereços IP frontendCreate the frontend IP addresses
- Em alternativa, se o seu cenário necessitar de um balanceador de carga básico (interno), siga estes passos:Alternatively, if your scenario requires basic load balancer (internal), follow these steps:
Criar os endereços IP frontendCreate the frontend IP addresses
- Endereço IP 10.1.1.20 para o ASCSIP address 10.1.1.20 for the ASCS
- Abra o equilibrador de carga, selecione o pool IP frontal e clique em AdicionarOpen the load balancer, select frontend IP pool, and click Add
- Insira o nome do novo pool IP frontend (por exemplo, frontend. O QAS. ASCS)Enter the name of the new frontend IP pool (for example frontend.QAS.ASCS)
- Desaponda a Estática e introduza o endereço IP (por exemplo 10.1.1.20)Set the Assignment to Static and enter the IP address (for example 10.1.1.20)
- Clique em OKClick OK
- Endereço IP 10.1.1.21 para o ASCS ERSIP address 10.1.1.21 for the ASCS ERS
- Repita os passos acima em "a" para criar um endereço IP para o ERS (por exemplo 10.1.1.21 e frontend. O QAS. ERS)Repeat the steps above under "a" to create an IP address for the ERS (for example 10.1.1.21 and frontend.QAS.ERS)
- Endereço IP 10.1.1.20 para o ASCSIP address 10.1.1.20 for the ASCS
Criar o conjunto de back-endCreate the backend pool
- Abra o balançador de carga, selecione piscinas de backend e clique em AdicionarOpen the load balancer, select backend pools, and click Add
- Insira o nome da nova piscina de backend (por exemplo, backend. QASEnter the name of the new backend pool (for example backend.QAS)
- Clique em Adicionar uma máquina virtual.Click Add a virtual machine.
- Selecione o Conjunto de Disponibilidade que criou anteriormente para ASCSSelect the Availability Set you created earlier for ASCS
- Selecione as máquinas virtuais do cluster (A)SCSSelect the virtual machines of the (A)SCS cluster
- Clique em OKClick OK
Criar as sondas de saúdeCreate the health probes
- Porto 620 00 para ASCSPort 620 00 for ASCS
- Abra o equilibrador de carga, selecione sondas de saúde e clique em AdicionarOpen the load balancer, select health probes, and click Add
- Insira o nome da nova sonda de saúde (por exemplo, saúde. O QAS. ASCS)Enter the name of the new health probe (for example health.QAS.ASCS)
- Selecione TCP como protocolo, porta 620 00, mantenha o Intervalo 5 e o limiar insalubre 2Select TCP as protocol, port 620 00, keep Interval 5 and Unhealthy threshold 2
- Clique em OKClick OK
- Porto 621 01 para ASCS ERSPort 621 01 for ASCS ERS
- Repita os passos acima em "c" para criar uma sonda de saúde para o ERS (por exemplo 621 01 e saúde. O QAS. ERS)Repeat the steps above under "c" to create a health probe for the ERS (for example 621 01 and health.QAS.ERS)
- Porto 620 00 para ASCSPort 620 00 for ASCS
Regras de equilíbrio de cargaLoad-balancing rules
- 32 00 TCP para ASCS32 00 TCP for ASCS
- Abra o equilibrador de carga, selecione regras de equilíbrio de carga e clique em AdicionarOpen the load balancer, select Load-balancing rules and click Add
- Insira o nome da nova regra do balançador de carga (por exemplo lb. O QAS. ASCS.3200)Enter the name of the new load balancer rule (for example lb.QAS.ASCS.3200)
- Selecione o endereço IP frontend para ASCS, backend pool e sonda de saúde que criou anteriormente (por exemplo, frontend. O QAS. ASCS)Select the frontend IP address for ASCS, backend pool, and health probe you created earlier (for example frontend.QAS.ASCS)
- Manter o protocolo TCP, inserir porta 3200Keep protocol TCP, enter port 3200
- Aumente o tempo de inatividade para 30 minutosIncrease idle timeout to 30 minutes
- Certifique-se de ativar o IP flutuanteMake sure to enable Floating IP
- Clique em OKClick OK
- Portas adicionais para o ASCSAdditional ports for the ASCS
- Repita os passos acima em "d" para as portas 36 00, 39 00, 81 00, 5 00 13, 5 00 14,5 00 16 e TCP para o ASCSRepeat the steps above under "d" for ports 36 00, 39 00, 81 00, 5 00 13, 5 00 14, 5 00 16 and TCP for the ASCS
- Portos adicionais para o ASCS ERSAdditional ports for the ASCS ERS
- Repita os passos acima em "d" para as portas 32 01, 33 01, 5 01 13, 5 01 14, 5 01 16 e TCP para o ASCS ERSRepeat the steps above under "d" for ports 32 01, 33 01, 5 01 13, 5 01 14, 5 01 16 and TCP for the ASCS ERS
Importante
O IP flutuante não é suportado numa configuração IP secundária do NIC em cenários de equilíbrio de carga.Floating IP is not supported on a NIC secondary IP configuration in load-balancing scenarios. Para mais detalhes consulte as limitações do balançador de carga Azure.For details see Azure Load balancer Limitations. Se precisar de um endereço IP adicional para o VM, implante um segundo NIC.If you need additional IP address for the VM, deploy a second NIC.
Nota
Quando os VMs sem endereços IP públicos forem colocados no pool de backend de saldos de carga standard Azure (sem endereço IP público), não haverá conectividade de saída na Internet, a menos que seja realizada uma configuração adicional para permitir o encaminhamento para pontos finais públicos.When VMs without public IP addresses are placed in the backend pool of internal (no public IP address) Standard Azure load balancer, there will be no outbound internet connectivity, unless additional configuration is performed to allow routing to public end points. Para obter detalhes sobre como alcançar a conectividade de saída, consulte a conectividade do ponto final público para máquinas virtuais utilizando o Azure Standard Load Balancer em cenários de alta disponibilidade SAP.For details on how to achieve outbound connectivity see Public endpoint connectivity for Virtual Machines using Azure Standard Load Balancer in SAP high-availability scenarios.
Importante
Não ative os cartas temporais TCP em VMs Azure colocados atrás do Balançador de Carga Azure.Do not enable TCP timestamps on Azure VMs placed behind Azure Load Balancer. Permitir os tempos de TCP fará com que as sondas de saúde falhem.Enabling TCP timestamps will cause the health probes to fail. Definir o parâmetro net.ipv4.tcp_timestamps a 0.Set parameter net.ipv4.tcp_timestamps to 0. Para mais detalhes consulte as sondas de saúde load balancer.For details see Load Balancer health probes.
- 32 00 TCP para ASCS32 00 TCP for ASCS
Criar cluster pacemakerCreate Pacemaker cluster
Siga os passos na configuração do Pacemaker no SUSE Linux Enterprise Server em Azure para criar um cluster pacemaker básico para este servidor (A)SCS.Follow the steps in Setting up Pacemaker on SUSE Linux Enterprise Server in Azure to create a basic Pacemaker cluster for this (A)SCS server.
InstalaçãoInstallation
Os seguintes itens são prefixados com ambos [A] - aplicável a todos os nós, [1] - apenas aplicável ao nó 1 ou [2] - apenas aplicáveis ao nó 2.The following items are prefixed with either [A] - applicable to all nodes, [1] - only applicable to node 1 or [2] - only applicable to node 2.
[A] Instalar o conector SUSE[A] Install SUSE Connector
sudo zypper install sap-suse-cluster-connector
Nota
A questão conhecida com a utilização de um traço em nomes de anfitrião é fixada com a versão 3.1.1 do conector de conjunto sap-suse-suse .The known issue with using a dash in host names is fixed with version 3.1.1 of package sap-suse-cluster-connector. Certifique-se de que está a utilizar pelo menos a versão 3.1.1 do conector de conjunto sap-suse-cluster, se utilizar nós de cluster com traço no nome de anfitrião.Make sure that you are using at least version 3.1.1 of package sap-suse-cluster-connector, if using cluster nodes with dash in the host name. Caso contrário, o seu agrupamento não funcionará.Otherwise your cluster will not work.
Certifique-se de que instalou a nova versão do conector do cluster SAP SUSE.Make sure that you installed the new version of the SAP SUSE cluster connector. O antigo chamava-se sap_suse_cluster_connector e o novo chama-se conector de seiva-suse-cluster.The old one was called sap_suse_cluster_connector and the new one is called sap-suse-cluster-connector.
sudo zypper info sap-suse-cluster-connector # Information for package sap-suse-cluster-connector: # --------------------------------------------------- # Repository : SLE-12-SP3-SAP-Updates # Name : sap-suse-cluster-connector # Version : 3.1.0-8.1 # Arch : noarch # Vendor : SUSE LLC <https://www.suse.com/> # Support Level : Level 3 # Installed Size : 45.6 KiB # Installed : Yes # Status : up-to-date # Source package : sap-suse-cluster-connector-3.1.0-8.1.src # Summary : SUSE High Availability Setup for SAP Products
[A] Atualizar os agentes de recursos SAP[A] Update SAP resource agents
É necessário um patch para o pacote de agentes de recursos para utilizar a nova configuração, que é descrita neste artigo.A patch for the resource-agents package is required to use the new configuration, that is described in this article. Pode verificar se o patch já está instalado com o seguinte comandoYou can check, if the patch is already installed with the following command
sudo grep 'parameter name="IS_ERS"' /usr/lib/ocf/resource.d/heartbeat/SAPInstance
A saída deve ser semelhante aThe output should be similar to
<parameter name="IS_ERS" unique="0" required="0">
Se o comando grep não encontrar o parâmetro IS_ERS, é necessário instalar o patch listado na página de descarregamento SUSEIf the grep command does not find the IS_ERS parameter, you need to install the patch listed on the SUSE download page
# example for patch for SLES 12 SP1 sudo zypper in -t patch SUSE-SLE-HA-12-SP1-2017-885=1 # example for patch for SLES 12 SP2 sudo zypper in -t patch SUSE-SLE-HA-12-SP2-2017-886=1
[A] Resolução do nome do anfitrião da configuração[A] Setup host name resolution
Pode utilizar um servidor DNS ou modificar os /etc/anfitriões em todos os nós.You can either use a DNS server or modify the /etc/hosts on all nodes. Este exemplo mostra como utilizar o ficheiro /etc/hosts.This example shows how to use the /etc/hosts file. Substitua o endereço IP e o nome de anfitrião nos seguintes comandosReplace the IP address and the hostname in the following commands
sudo vi /etc/hosts
Insira as seguintes linhas para /etc/anfitriões.Insert the following lines to /etc/hosts. Altere o endereço IP e o nome de anfitrião para combinar com o seu ambienteChange the IP address and hostname to match your environment
# IP address of cluster node 1 10.1.1.18 anftstsapcl1 # IP address of cluster node 2 10.1.1.6 anftstsapcl2 # IP address of the load balancer frontend configuration for SAP Netweaver ASCS 10.1.1.20 anftstsapvh # IP address of the load balancer frontend configuration for SAP Netweaver ERS 10.1.1.21 anftstsapers
[1] Criar diretórios SAP no volume de ficheiros Azure NetApp.[1] Create SAP directories in the Azure NetApp Files volume.
Monte temporariamente o volume de Ficheiros Azure NetApp num dos VMs e crie os diretórios SAP (caminhos de ficheiro).Mount temporarily the Azure NetApp Files volume on one of the VMs and create the SAP directories(file paths).# mount temporarily the volume sudo mkdir -p /saptmp # If using NFSv3 sudo mount -t nfs -o rw,hard,rsize=65536,wsize=65536,vers=3,tcp 10.1.0.4:/sapQAS /saptmp # If using NFSv4.1 sudo mount -t nfs -o rw,hard,rsize=65536,wsize=65536,vers=4.1,sec=sys,tcp 10.1.0.4:/sapQAS /saptmp # create the SAP directories sudo cd /saptmp sudo mkdir -p sapmntQAS sudo mkdir -p usrsapQASascs sudo mkdir -p usrsapQASers sudo mkdir -p usrsapQASsys sudo mkdir -p usrsapQASpas sudo mkdir -p usrsapQASaas # unmount the volume and delete the temporary directory sudo cd .. sudo umount /saptmp sudo rmdir /saptmp
Preparar para a instalação SAP NetWeaverPrepare for SAP NetWeaver installation
[A] Criar os diretórios partilhados[A] Create the shared directories
sudo mkdir -p /sapmnt/QAS sudo mkdir -p /usr/sap/trans sudo mkdir -p /usr/sap/QAS/SYS sudo mkdir -p /usr/sap/QAS/ASCS00 sudo mkdir -p /usr/sap/QAS/ERS01 sudo chattr +i /sapmnt/QAS sudo chattr +i /usr/sap/trans sudo chattr +i /usr/sap/QAS/SYS sudo chattr +i /usr/sap/QAS/ASCS00 sudo chattr +i /usr/sap/QAS/ERS01
[A] Configurar
autofs
[A] Configureautofs
sudo vi /etc/auto.master # Add the following line to the file, save and exit /- /etc/auto.direct
Se utilizar o NFSv3, crie um ficheiro com:If using NFSv3, create a file with:
sudo vi /etc/auto.direct # Add the following lines to the file, save and exit /sapmnt/QAS -nfsvers=3,nobind 10.1.0.4:/usrsapqas/sapmntQAS /usr/sap/trans -nfsvers=3,nobind 10.1.0.4:/trans /usr/sap/QAS/SYS -nfsvers=3,nobind 10.1.0.4:/usrsapqas/usrsapQASsys
Se utilizar o NFSv4.1, crie um ficheiro com:If using NFSv4.1, create a file with:
sudo vi /etc/auto.direct # Add the following lines to the file, save and exit /sapmnt/QAS -nfsvers=4.1,nobind,sec=sys 10.1.0.4:/usrsapqas/sapmntQAS /usr/sap/trans -nfsvers=4.1,nobind,sec=sys 10.1.0.4:/trans /usr/sap/QAS/SYS -nfsvers=4.1,nobind,sec=sys 10.1.0.4:/usrsapqas/usrsapQASsys
Nota
Certifique-se de que corresponde à versão do protocolo NFS dos volumes Azure NetApp Files, ao montar os volumes.Make sure to match the NFS protocol version of the Azure NetApp Files volumes, when mounting the volumes. Se os volumes Azure NetApp Files forem criados como volumes NFSv3, utilize a configuração NFSv3 correspondente.If the Azure NetApp Files volumes are created as NFSv3 volumes, use the corresponding NFSv3 configuration. Se os volumes Azure NetApp Files forem criados como volumes NFSv4.1, siga as instruções para desativar o mapeamento de ID e certifique-se de utilizar a configuração NFSv4.1 correspondente.If the Azure NetApp Files volumes are created as NFSv4.1 volumes, follow the instructions to disable ID mapping and make sure to use the corresponding NFSv4.1 configuration. Neste exemplo, os volumes Azure NetApp Files foram criados como volumes NFSv3.In this example the Azure NetApp Files volumes were created as NFSv3 volumes.
Reiniciar
autofs
para montar as novas açõesRestartautofs
to mount the new sharessudo systemctl enable autofs sudo service autofs restart
[A] Ficheiro SWAP de Configuração[A] Configure SWAP file
sudo vi /etc/waagent.conf # Set the property ResourceDisk.EnableSwap to y # Create and use swapfile on resource disk. ResourceDisk.EnableSwap=y # Set the size of the SWAP file with property ResourceDisk.SwapSizeMB # The free space of resource disk varies by virtual machine size. Make sure that you do not set a value that is too big. You can check the SWAP space with command swapon # Size of the swapfile. ResourceDisk.SwapSizeMB=2000
Reinicie o Agente para ativar a alteraçãoRestart the Agent to activate the change
sudo service waagent restart
Instalação SAP NetWeaver ASCS/ERSInstalling SAP NetWeaver ASCS/ERS
[1] Criar um recurso IP virtual e sonda de saúde para a instância ASCS[1] Create a virtual IP resource and health-probe for the ASCS instance
Importante
Testes recentes revelaram situações, em que o netcat deixa de responder aos pedidos devido a atrasos e à sua limitação de manuseamento de apenas uma ligação.Recent testing revealed situations, where netcat stops responding to requests due to backlog and its limitation of handling only one connection. O recurso netcat deixa de ouvir os pedidos do balançador Azure Load e o IP flutuante fica indisponível.The netcat resource stops listening to the Azure Load balancer requests and the floating IP becomes unavailable.
Para os aglomerados pacemaker existentes, recomendamos no passado a substituição do netcat por socat.For existing Pacemaker clusters, we recommended in the past replacing netcat with socat. Atualmente recomendamos a utilização de um agente de recursos azure-lb, que faz parte dos agentes de recursos do pacote, com os seguintes requisitos de versão pacote:Currently we recommend using azure-lb resource agent, which is part of package resource-agents, with the following package version requirements:- Para o SLES 12 SP4/SP5, a versão deve ser pelo menos agentes de recursos-4.3.018.a7fb5035-3.30.1.For SLES 12 SP4/SP5, the version must be at least resource-agents-4.3.018.a7fb5035-3.30.1.
- Para sLES 15/15 SP1, a versão deve ser pelo menos agentes de recursos-4.3.0184.6ee15eb2-4.13.1.For SLES 15/15 SP1, the version must be at least resource-agents-4.3.0184.6ee15eb2-4.13.1.
Note que a mudança requer breves tempos de inatividade.Note that the change will require brief downtime.
Para os clusters pacemaker existentes, se a configuração já foi alterada para usar socat como descrito no Azure Load-Balancer Detection Hardening, não existe qualquer requisito para mudar imediatamente para o agente de recursos azure-lb.For existing Pacemaker clusters, if the configuration was already changed to use socat as described in Azure Load-Balancer Detection Hardening, there is no requirement to switch immediately to azure-lb resource agent.sudo crm node standby anftstsapcl2 # If using NFSv3 sudo crm configure primitive fs_QAS_ASCS Filesystem device='10.1.0.4/usrsapqas/usrsapQASascs' directory='/usr/sap/QAS/ASCS00' fstype='nfs' \ op start timeout=60s interval=0 \ op stop timeout=60s interval=0 \ op monitor interval=20s timeout=40s # If using NFSv4.1 sudo crm configure primitive fs_QAS_ASCS Filesystem device='10.1.0.4:/usrsapqas/usrsapQASascs' directory='/usr/sap/QAS/ASCS00' fstype='nfs' options='sec=sys,vers=4.1' \ op start timeout=60s interval=0 \ op stop timeout=60s interval=0 \ op monitor interval=20s timeout=40s sudo crm configure primitive vip_QAS_ASCS IPaddr2 \ params ip=10.1.1.20 cidr_netmask=24 \ op monitor interval=10 timeout=20 sudo crm configure primitive nc_QAS_ASCS azure-lb port=62000 sudo crm configure group g-QAS_ASCS fs_QAS_ASCS nc_QAS_ASCS vip_QAS_ASCS \ meta resource-stickiness=3000
Certifique-se de que o estado do cluster está bem e que todos os recursos são iniciados.Make sure that the cluster status is ok and that all resources are started. Não é importante em que nó os recursos estão a funcionar.It is not important on which node the resources are running.
sudo crm_mon -r # Node anftstsapcl2: standby # Online: [ anftstsapcl1 ] # # Full list of resources: # # Resource Group: g-QAS_ASCS # fs_QAS_ASCS (ocf::heartbeat:Filesystem): Started anftstsapcl1 # nc_QAS_ASCS (ocf::heartbeat:azure-lb): Started anftstsapcl1 # vip_QAS_ASCS (ocf::heartbeat:IPaddr2): Started anftstsapcl1 # stonith-sbd (stonith:external/sbd): Started anftstsapcl2
[1] Instalar OSCS SAP NetWeaver[1] Install SAP NetWeaver ASCS
Instale o SAP NetWeaver ASCS como raiz no primeiro nó utilizando um nome de anfitrião virtual que mapeia para o endereço IP da configuração frontal do balançador de carga para o ASCS, por exemplo anftstsapvh, 10.1.1.20 e o número de instância que utilizou para a sonda do balançador de carga, por exemplo 00.Install SAP NetWeaver ASCS as root on the first node using a virtual hostname that maps to the IP address of the load balancer frontend configuration for the ASCS, for example anftstsapvh, 10.1.1.20 and the instance number that you used for the probe of the load balancer, for example 00.
Pode utilizar o parâmetro de seiva SAPINST_REMOTE_ACCESS_USER para permitir que um utilizador não-raiz se conecte ao sapinst.You can use the sapinst parameter SAPINST_REMOTE_ACCESS_USER to allow a non-root user to connect to sapinst. Pode utilizar SAPINST_USE_HOSTNAME de parâmetros para instalar o SAP, utilizando o nome de hospedeiro virtual.You can use parameter SAPINST_USE_HOSTNAME to install SAP, using virtual hostname.
sudo <swpm>/sapinst SAPINST_REMOTE_ACCESS_USER=sapadmin SAPINST_USE_HOSTNAME=virtual_hostname
Se a instalação não criar uma sub-dobragem em /usr/seiva/QAS/ASCS 00, tente definir o proprietário e o grupo da pasta ASCS 00 e retentou novamente.If the installation fails to create a subfolder in /usr/sap/QAS/ASCS 00, try setting the owner and group of the ASCS 00 folder and retry.
chown qasadm /usr/sap/QAS/ASCS00 chgrp sapsys /usr/sap/QAS/ASCS00
[1] Criar um recurso IP virtual e sonda de saúde para a instância ERS[1] Create a virtual IP resource and health-probe for the ERS instance
sudo crm node online anftstsapcl2 sudo crm node standby anftstsapcl1 # If using NFSv3 sudo crm configure primitive fs_QAS_ERS Filesystem device='10.1.0.4:/usrsapqas/usrsapQASers' directory='/usr/sap/QAS/ERS01' fstype='nfs' \ op start timeout=60s interval=0 \ op stop timeout=60s interval=0 \ op monitor interval=20s timeout=40s # If using NFSv4.1 sudo crm configure primitive fs_QAS_ERS Filesystem device='10.1.0.4:/usrsapqas/usrsapQASers' directory='/usr/sap/QAS/ERS01' fstype='nfs' options='sec=sys,vers=4.1' \ op start timeout=60s interval=0 \ op stop timeout=60s interval=0 \ op monitor interval=20s timeout=40s sudo crm configure primitive vip_QAS_ERS IPaddr2 \ params ip=10.1.1.21 cidr_netmask=24 \ op monitor interval=10 timeout=20 sudo crm configure primitive nc_QAS_ERS azure-lb port=62101 sudo crm configure group g-QAS_ERS fs_QAS_ERS nc_QAS_ERS vip_QAS_ERS
Certifique-se de que o estado do cluster está bem e que todos os recursos são iniciados.Make sure that the cluster status is ok and that all resources are started. Não é importante em que nó os recursos estão a funcionar.It is not important on which node the resources are running.
sudo crm_mon -r # Node anftstsapcl1: standby # Online: [ anftstsapcl2 ] # # Full list of resources: # # stonith-sbd (stonith:external/sbd): Started anftstsapcl2 # Resource Group: g-QAS_ASCS # fs_QAS_ASCS (ocf::heartbeat:Filesystem): Started anftstsapcl2 # nc_QAS_ASCS (ocf::heartbeat:azure-lb): Started anftstsapcl2 # vip_QAS_ASCS (ocf::heartbeat:IPaddr2): Started anftstsapcl2 # Resource Group: g-QAS_ERS # fs_QAS_ERS (ocf::heartbeat:Filesystem): Started anftstsapcl2 # nc_QAS_ERS (ocf::heartbeat:azure-lb): Started anftstsapcl2 # vip_QAS_ERS (ocf::heartbeat:IPaddr2): Started anftstsapcl2
[2] Instalar SAP NetWeaver ERS[2] Install SAP NetWeaver ERS
Instale o SAP NetWeaver ERS como raiz no segundo nó utilizando um nome de anfitrião virtual que mapeia para o endereço IP da configuração frontal do balançador de carga para o ERS, por exemplo anftstsapers, 10.1.1.21 e o número de instância que usou para a sonda do balançador de carga, por exemplo 01.Install SAP NetWeaver ERS as root on the second node using a virtual hostname that maps to the IP address of the load balancer frontend configuration for the ERS, for example anftstsapers, 10.1.1.21 and the instance number that you used for the probe of the load balancer, for example 01.
Pode utilizar o parâmetro de seiva SAPINST_REMOTE_ACCESS_USER para permitir que um utilizador não-raiz se conecte ao sapinst.You can use the sapinst parameter SAPINST_REMOTE_ACCESS_USER to allow a non-root user to connect to sapinst. Pode utilizar SAPINST_USE_HOSTNAME de parâmetros para instalar o SAP, utilizando o nome de hospedeiro virtual.You can use parameter SAPINST_USE_HOSTNAME to install SAP, using virtual hostname.
sudo <swpm>/sapinst SAPINST_REMOTE_ACCESS_USER=sapadmin SAPINST_USE_HOSTNAME=virtual_hostname
Nota
Utilize SWPM SP 20 PL 05 ou superior.Use SWPM SP 20 PL 05 or higher. As versões inferiores não definem corretamente as permissões e a instalação falhará.Lower versions do not set the permissions correctly and the installation will fail.
Se a instalação não criar uma sub-dobradura em /usr/seiva/QAS/ERS 01, tente configurar o proprietário e o grupo da pasta ERS 01 e retentou novamente.If the installation fails to create a subfolder in /usr/sap/QAS/ERS 01, try setting the owner and group of the ERS 01 folder and retry.
chown qasadm /usr/sap/QAS/ERS01 chgrp sapsys /usr/sap/QAS/ERS01
[1] Adaptar os perfis de instância ASCS/SCS e ERS[1] Adapt the ASCS/SCS and ERS instance profiles
- Perfil ASCS/SCSASCS/SCS profile
sudo vi /sapmnt/QAS/profile/QAS_ASCS00_anftstsapvh # Change the restart command to a start command #Restart_Program_01 = local $(_EN) pf=$(_PF) Start_Program_01 = local $(_EN) pf=$(_PF) # Add the following lines service/halib = $(DIR_CT_RUN)/saphascriptco.so service/halib_cluster_connector = /usr/bin/sap_suse_cluster_connector # Add the keep alive parameter, if using ENSA1 enque/encni/set_so_keepalive = true
Tanto para a ENSA1 como para a ENSA2, certifique-se de que os
keepalive
parâmetros de SO estão definidos como descrito na nota SAP 1410736.For both ENSA1 and ENSA2, make sure that thekeepalive
OS parameters are set as described in SAP note 1410736.- Perfil ERSERS profile
sudo vi /sapmnt/QAS/profile/QAS_ERS01_anftstsapers # Change the restart command to a start command #Restart_Program_00 = local $(_ER) pf=$(_PFL) NR=$(SCSID) Start_Program_00 = local $(_ER) pf=$(_PFL) NR=$(SCSID) # Add the following lines service/halib = $(DIR_CT_RUN)/saphascriptco.so service/halib_cluster_connector = /usr/bin/sap_suse_cluster_connector # remove Autostart from ERS profile # Autostart = 1
[A] Configurar Manter Vivo[A] Configure Keep Alive
A comunicação entre o servidor de aplicações SAP NetWeaver e o ASCS/SCS é encaminhada através de um equilibrador de carga de software.The communication between the SAP NetWeaver application server and the ASCS/SCS is routed through a software load balancer. O balançador de carga desliga as ligações inativas após um tempo configurável.The load balancer disconnects inactive connections after a configurable timeout. Para evitar isto, é necessário definir um parâmetro no perfil ASCS/SCS DO NET NetWeaver, se utilizar o ENSA1, e alterar as definições do sistema Linux
keepalive
em todos os servidores SAP para ambos ENSA1/ENSA2.To prevent this you need to set a parameter in the SAP NetWeaver ASCS/SCS profile, if using ENSA1, and change the Linux systemkeepalive
settings on all SAP servers for both ENSA1/ENSA2. Leia a Nota SAP 1410736 para mais informações.Read SAP Note 1410736 for more information.# Change the Linux system configuration sudo sysctl net.ipv4.tcp_keepalive_time=300
[A] Configure os utilizadores SAP após a instalação[A] Configure the SAP users after the installation
# Add sidadm to the haclient group sudo usermod -aG haclient qasadm
[1] Adicione os serviços ASCS e ERS SAP ao
sapservice
ficheiro[1] Add the ASCS and ERS SAP services to thesapservice
fileAdicione a entrada de serviço ASCS no segundo nó e copie a entrada de serviço ERS no primeiro nó.Add the ASCS service entry to the second node and copy the ERS service entry to the first node.
cat /usr/sap/sapservices | grep ASCS00 | sudo ssh anftstsapcl2 "cat >>/usr/sap/sapservices" sudo ssh anftstsapcl2 "cat /usr/sap/sapservices" | grep ERS01 | sudo tee -a /usr/sap/sapservices
[1] Criar os recursos de cluster SAP[1] Create the SAP cluster resources
Se utilizar a arquitetura do servidor 1 do enqueue (ENSA1), defina os recursos da seguinte forma:If using enqueue server 1 architecture (ENSA1), define the resources as follows:
sudo crm configure property maintenance-mode="true"
sudo crm configure primitive rsc_sap_QAS_ASCS00 SAPInstance \
operations \$id=rsc_sap_QAS_ASCS00-operations \
op monitor interval=11 timeout=60 on-fail=restart \
params InstanceName=QAS_ASCS00_anftstsapvh START_PROFILE="/sapmnt/QAS/profile/QAS_ASCS00_anftstsapvh" \
AUTOMATIC_RECOVER=false \
meta resource-stickiness=5000 failure-timeout=60 migration-threshold=1 priority=10
sudo crm configure primitive rsc_sap_QAS_ERS01 SAPInstance \
operations \$id=rsc_sap_QAS_ERS01-operations \
op monitor interval=11 timeout=60 on-fail=restart \
params InstanceName=QAS_ERS01_anftstsapers START_PROFILE="/sapmnt/QAS/profile/QAS_ERS01_anftstsapers" AUTOMATIC_RECOVER=false IS_ERS=true \
meta priority=1000
sudo crm configure modgroup g-QAS_ASCS add rsc_sap_QAS_ASCS00
sudo crm configure modgroup g-QAS_ERS add rsc_sap_QAS_ERS01
sudo crm configure colocation col_sap_QAS_no_both -5000: g-QAS_ERS g-QAS_ASCS
sudo crm configure location loc_sap_QAS_failover_to_ers rsc_sap_QAS_ASCS00 rule 2000: runs_ers_QAS eq 1
sudo crm configure order ord_sap_QAS_first_start_ascs Optional: rsc_sap_QAS_ASCS00:start rsc_sap_QAS_ERS01:stop symmetrical=false
sudo crm node online anftstsapcl1
sudo crm configure property maintenance-mode="false"
A SAP introduziu suporte para o servidor 2, incluindo a replicação, a partir de SAP NW 7.52.SAP introduced support for enqueue server 2, including replication, as of SAP NW 7.52. A partir da Plataforma ABAP 1809, o servidor 2 do enqueue é instalado por padrão.Starting with ABAP Platform 1809, enqueue server 2 is installed by default. Consulte a nota SAP 2630416 para obter suporte ao servidor 2.See SAP note 2630416 for enqueue server 2 support. Se utilizar a arquitetura do servidor 2 do enqueue(ENSA2),defina os recursos da seguinte forma:If using enqueue server 2 architecture (ENSA2), define the resources as follows:
sudo crm configure property maintenance-mode="true"
sudo crm configure primitive rsc_sap_QAS_ASCS00 SAPInstance \
operations \$id=rsc_sap_QAS_ASCS00-operations \
op monitor interval=11 timeout=60 on-fail=restart \
params InstanceName=QAS_ASCS00_anftstsapvh START_PROFILE="/sapmnt/QAS/profile/QAS_ASCS00_anftstsapvh" \
AUTOMATIC_RECOVER=false \
meta resource-stickiness=5000
sudo crm configure primitive rsc_sap_QAS_ERS01 SAPInstance \
operations \$id=rsc_sap_QAS_ERS01-operations \
op monitor interval=11 timeout=60 on-fail=restart \
params InstanceName=QAS_ERS01_anftstsapers START_PROFILE="/sapmnt/QAS/profile/QAS_ERS01_anftstsapers" AUTOMATIC_RECOVER=false IS_ERS=true
sudo crm configure modgroup g-QAS_ASCS add rsc_sap_QAS_ASCS00
sudo crm configure modgroup g-QAS_ERS add rsc_sap_QAS_ERS01
sudo crm configure colocation col_sap_QAS_no_both -5000: g-QAS_ERS g-QAS_ASCS
sudo crm configure order ord_sap_QAS_first_start_ascs Optional: rsc_sap_QAS_ASCS00:start rsc_sap_QAS_ERS01:stop symmetrical=false
sudo crm node online anftstsapcl1
sudo crm configure property maintenance-mode="false"
Se estiver a atualizar a partir de uma versão mais antiga e a mudar para o servidor 2, consulte a nota SAP 2641019.If you are upgrading from an older version and switching to enqueue server 2, see SAP note 2641019.
Certifique-se de que o estado do cluster está bem e que todos os recursos são iniciados.Make sure that the cluster status is ok and that all resources are started. Não é importante em que nó os recursos estão a funcionar.It is not important on which node the resources are running.
sudo crm_mon -r
# Full list of resources:
#
# stonith-sbd (stonith:external/sbd): Started anftstsapcl2
# Resource Group: g-QAS_ASCS
# fs_QAS_ASCS (ocf::heartbeat:Filesystem): Started anftstsapcl1
# nc_QAS_ASCS (ocf::heartbeat:azure-lb): Started anftstsapcl1
# vip_QAS_ASCS (ocf::heartbeat:IPaddr2): Started anftstsapcl1
# rsc_sap_QAS_ASCS00 (ocf::heartbeat:SAPInstance): Started anftstsapcl1
# Resource Group: g-QAS_ERS
# fs_QAS_ERS (ocf::heartbeat:Filesystem): Started anftstsapcl2
# nc_QAS_ERS (ocf::heartbeat:azure-lb): Started anftstsapcl2
# vip_QAS_ERS (ocf::heartbeat:IPaddr2): Started anftstsapcl2
# rsc_sap_QAS_ERS01 (ocf::heartbeat:SAPInstance): Started anftstsapcl2
Preparação do servidor de aplicações SAP NetWeaverSAP NetWeaver application server preparation
Algumas bases de dados requerem que a instalação da instância da base de dados seja executada num servidor de aplicações.Some databases require that the database instance installation is executed on an application server. Prepare as máquinas virtuais do servidor de aplicações para poder usá-las nestes casos.Prepare the application server virtual machines to be able to use them in these cases.
Os passos pressupõem que instala o servidor de aplicações num servidor diferente dos servidores ASCS/SCS e HANA.The steps bellow assume that you install the application server on a server different from the ASCS/SCS and HANA servers. Caso contrário, não são necessários alguns dos passos abaixo (como configurar a resolução do nome do anfitrião).Otherwise some of the steps below (like configuring host name resolution) are not needed.
Os seguintes itens são prefixados com ambos [A] - aplicáveis tanto a PAS como a AAS, [P] - apenas aplicáveis a PAS ou [S] - apenas aplicáveis à AAS.The following items are prefixed with either [A] - applicable to both PAS and AAS, [P] - only applicable to PAS or [S] - only applicable to AAS.
[A] Sistema operativo Configure[A] Configure operating system
Reduza o tamanho da cache suja.Reduce the size of the dirty cache. Para obter mais informações, consulte o desempenho da gravação de Low em servidores SLES 11/12 com RAM grande.For more information, see Low write performance on SLES 11/12 servers with large RAM.
sudo vi /etc/sysctl.conf # Change/set the following settings vm.dirty_bytes = 629145600 vm.dirty_background_bytes = 314572800
[A] Resolução do nome do anfitrião da configuração[A] Setup host name resolution
Pode utilizar um servidor DNS ou modificar os /etc/anfitriões em todos os nós.You can either use a DNS server or modify the /etc/hosts on all nodes. Este exemplo mostra como utilizar o ficheiro /etc/hosts.This example shows how to use the /etc/hosts file. Substitua o endereço IP e o nome de anfitrião nos seguintes comandosReplace the IP address and the hostname in the following commands
sudo vi /etc/hosts
Insira as seguintes linhas para /etc/anfitriões.Insert the following lines to /etc/hosts. Altere o endereço IP e o nome de anfitrião para combinar com o seu ambienteChange the IP address and hostname to match your environment
# IP address of the load balancer frontend configuration for SAP NetWeaver ASCS/SCS 10.1.1.20 anftstsapvh # IP address of the load balancer frontend configuration for SAP NetWeaver ERS 10.1.1.21 anftstsapers # IP address of all application servers 10.1.1.15 anftstsapa01 10.1.1.16 anftstsapa02
[A] Criar o diretório de sapmnt[A] Create the sapmnt directory
sudo mkdir -p /sapmnt/QAS sudo mkdir -p /usr/sap/trans sudo chattr +i /sapmnt/QAS sudo chattr +i /usr/sap/trans
[P] Criar o diretório PAS[P] Create the PAS directory
sudo mkdir -p /usr/sap/QAS/D02 sudo chattr +i /usr/sap/QAS/D02
[S] Criar o diretório AAS[S] Create the AAS directory
sudo mkdir -p /usr/sap/QAS/D03 sudo chattr +i /usr/sap/QAS/D03
[P] Configure
autofs
no PAS[P] Configureautofs
on PASsudo vi /etc/auto.master # Add the following line to the file, save and exit /- /etc/auto.direct
Se utilizar o NFSv3, crie um novo ficheiro com:If using NFSv3, create a new file with:
sudo vi /etc/auto.direct # Add the following lines to the file, save and exit /sapmnt/QAS -nfsvers=3,nobind 10.1.0.4:/usrsapqas/sapmntQAS /usr/sap/trans -nfsvers=3,nobind 10.1.0.4:/trans /usr/sap/QAS/D02 -nfsvers=3,nobind 10.1.0.4:/usrsapqas/usrsapQASpas
Se utilizar o NFSv4.1, crie um novo ficheiro com:If using NFSv4.1, create a new file with:
sudo vi /etc/auto.direct # Add the following lines to the file, save and exit /sapmnt/QAS -nfsvers=4.1,nobind,sec=sys 10.1.0.4:/usrsapqas/sapmntQAS /usr/sap/trans -nfsvers=4.1,nobind,sec=sys 10.1.0.4:/trans /usr/sap/QAS/D02 -nfsvers=4.1,nobind,sec=sys 10.1.0.4:/usrsapqas/usrsapQASpas
Reiniciar
autofs
para montar as novas açõesRestartautofs
to mount the new sharessudo systemctl enable autofs sudo service autofs restart
[P] Configure
autofs
na AAS[P] Configureautofs
on AASsudo vi /etc/auto.master # Add the following line to the file, save and exit /- /etc/auto.direct
Se utilizar o NFSv3, crie um novo ficheiro com:If using NFSv3, create a new file with:
sudo vi /etc/auto.direct # Add the following lines to the file, save and exit /sapmnt/QAS -nfsvers=3,nobind 10.1.0.4:/usrsapqas/sapmntQAS /usr/sap/trans -nfsvers=3,nobind 10.1.0.4:/trans /usr/sap/QAS/D03 -nfsvers=3,nobind 10.1.0.4:/usrsapqas/usrsapQASaas
Se utilizar o NFSv4.1, crie um novo ficheiro com:If using NFSv4.1, create a new file with:
sudo vi /etc/auto.direct # Add the following lines to the file, save and exit /sapmnt/QAS -nfsvers=4.1,nobind,sec=sys 10.1.0.4:/usrsapqas/sapmntQAS /usr/sap/trans -nfsvers=4.1,nobind,sec=sys 10.1.0.4:/trans /usr/sap/QAS/D03 -nfsvers=4.1,nobind,sec=sys 10.1.0.4:/usrsapqas/usrsapQASaas
Reiniciar
autofs
para montar as novas açõesRestartautofs
to mount the new sharessudo systemctl enable autofs sudo service autofs restart
[A] Ficheiro SWAP de Configuração[A] Configure SWAP file
sudo vi /etc/waagent.conf # Set the property ResourceDisk.EnableSwap to y # Create and use swapfile on resource disk. ResourceDisk.EnableSwap=y # Set the size of the SWAP file with property ResourceDisk.SwapSizeMB # The free space of resource disk varies by virtual machine size. Make sure that you do not set a value that is too big. You can check the SWAP space with command swapon # Size of the swapfile. ResourceDisk.SwapSizeMB=2000
Reinicie o Agente para ativar a alteraçãoRestart the Agent to activate the change
sudo service waagent restart
Instalar base de dadosInstall database
Neste exemplo, o SAP NetWeaver está instalado no SAP HANA.In this example, SAP NetWeaver is installed on SAP HANA. Pode utilizar todas as bases de dados suportadas para esta instalação.You can use every supported database for this installation. Para obter mais informações sobre como instalar o SAP HANA em Azure, consulte Alta Disponibilidade de SAP HANA em Máquinas Virtuais Azure (VMs).For more information on how to install SAP HANA in Azure, see High Availability of SAP HANA on Azure Virtual Machines (VMs). Para obter uma lista de bases de dados apoiadas, consulte a Nota SAP 1928533.For a list of supported databases, see SAP Note 1928533.
Executar a instalação de instância de caixa de dados SAPRun the SAP database instance installation
Instale a instância da base de dados SAP NetWeaver como raiz utilizando um nome de anfitrião virtual que mapeia para o endereço IP da configuração frontal do balançador de carga para a base de dados.Install the SAP NetWeaver database instance as root using a virtual hostname that maps to the IP address of the load balancer frontend configuration for the database.
Pode utilizar o parâmetro de seiva SAPINST_REMOTE_ACCESS_USER para permitir que um utilizador não-raiz se conecte ao sapinst.You can use the sapinst parameter SAPINST_REMOTE_ACCESS_USER to allow a non-root user to connect to sapinst.
sudo <swpm>/sapinst SAPINST_REMOTE_ACCESS_USER=sapadmin
Instalação do servidor de aplicações SAP NetWeaverSAP NetWeaver application server installation
Siga estes passos para instalar um servidor de aplicação SAP.Follow these steps to install an SAP application server.
[A] Prepare o servidor de aplicações Siga os passos do capítulo SAP NetWeaver preparação do servidor de aplicações acima para preparar o servidor de aplicações.[A] Prepare application server Follow the steps in the chapter SAP NetWeaver application server preparation above to prepare the application server.
[A] Instalar o servidor de aplicações SAP NetWeaver Instale um servidor de aplicações SAP NetWeaver primário ou adicional.[A] Install SAP NetWeaver application server Install a primary or additional SAP NetWeaver applications server.
Pode utilizar o parâmetro de seiva SAPINST_REMOTE_ACCESS_USER para permitir que um utilizador não-raiz se conecte ao sapinst.You can use the sapinst parameter SAPINST_REMOTE_ACCESS_USER to allow a non-root user to connect to sapinst.
sudo <swpm>/sapinst SAPINST_REMOTE_ACCESS_USER=sapadmin
[A] Atualizar loja segura SAP HANA[A] Update SAP HANA secure store
Atualize a loja segura SAP HANA para indicar o nome virtual da configuração de replicação do sistema SAP HANA.Update the SAP HANA secure store to point to the virtual name of the SAP HANA System Replication setup.
Executar o seguinte comando para listar as entradasRun the following command to list the entries
hdbuserstore List
Isto deve listar todas as entradas e deve parecer semelhante aThis should list all entries and should look similar to
DATA FILE : /home/qasadm/.hdb/anftstsapa01/SSFS_HDB.DAT KEY FILE : /home/qasadm/.hdb/anftstsapa01/SSFS_HDB.KEY KEY DEFAULT ENV : 10.1.1.5:30313 USER: SAPABAP1 DATABASE: QAS
A saída mostra que o endereço IP da entrada predefinida está a apontar para a máquina virtual e não para o endereço IP do balançador de carga.The output shows that the IP address of the default entry is pointing to the virtual machine and not to the load balancer's IP address. Esta entrada precisa de ser alterada para apontar para o nome de hospedeiro virtual do equilibrador de carga.This entry needs to be changed to point to the virtual hostname of the load balancer. Certifique-se de que utiliza a mesma porta (30313 na saída acima) e o nome da base de dados (QAS na saída acima)!Make sure to use the same port (30313 in the output above) and database name (QAS in the output above)!
su - qasadm hdbuserstore SET DEFAULT qasdb:30313@QAS SAPABAP1 <password of ABAP schema>
Testar a configuração do clusterTest the cluster setup
Os seguintes testes são uma cópia dos casos de teste nos guias de boas práticas da SUSE.The following tests are a copy of the test cases in the best practices guides of SUSE. São copiados para a sua conveniência.They are copied for your convenience. Leia sempre os guias de boas práticas e realize todos os testes adicionais que possam ter sido adicionados.Always also read the best practices guides and perform all additional tests that might have been added.
Teste HAGetFailoverConfig, HACheckConfig e HACheckFailoverConfigTest HAGetFailoverConfig, HACheckConfig, and HACheckFailoverConfig
Executar os seguintes comandos como <sapsid> adm no nó onde a instância ASCS está atualmente em execução.Run the following commands as <sapsid>adm on the node where the ASCS instance is currently running. Se os comandos falharem com FAIL: Memória insuficiente, pode ser causado por traços no seu nome de hospedeiro.If the commands fail with FAIL: Insufficient memory, it might be caused by dashes in your hostname. Trata-se de um problema conhecido e será corrigido pela SUSE no pacote de conector de fragmentos de sap-suse.This is a known issue and will be fixed by SUSE in the sap-suse-cluster-connector package.
anftstsapcl1:qasadm 52> sapcontrol -nr 00 -function HAGetFailoverConfig 07.03.2019 20:08:59 HAGetFailoverConfig OK HAActive: TRUE HAProductVersion: SUSE Linux Enterprise Server for SAP Applications 12 SP3 HASAPInterfaceVersion: SUSE Linux Enterprise Server for SAP Applications 12 SP3 (sap_suse_cluster_connector 3.1.0) HADocumentation: https://www.suse.com/products/sles-for-sap/resource-library/sap-best-practices/ HAActiveNode: anftstsapcl1 HANodes: anftstsapcl1, anftstsapcl2 anftstsapcl1:qasadm 54> sapcontrol -nr 00 -function HACheckConfig 07.03.2019 23:28:29 HACheckConfig OK state, category, description, comment SUCCESS, SAP CONFIGURATION, Redundant ABAP instance configuration, 2 ABAP instances detected SUCCESS, SAP CONFIGURATION, Redundant Java instance configuration, 0 Java instances detected SUCCESS, SAP CONFIGURATION, Enqueue separation, All Enqueue server separated from application server SUCCESS, SAP CONFIGURATION, MessageServer separation, All MessageServer separated from application server SUCCESS, SAP CONFIGURATION, ABAP instances on multiple hosts, ABAP instances on multiple hosts detected SUCCESS, SAP CONFIGURATION, Redundant ABAP SPOOL service configuration, 2 ABAP instances with SPOOL service detected SUCCESS, SAP STATE, Redundant ABAP SPOOL service state, 2 ABAP instances with active SPOOL service detected SUCCESS, SAP STATE, ABAP instances with ABAP SPOOL service on multiple hosts, ABAP instances with active ABAP SPOOL service on multiple hosts detected SUCCESS, SAP CONFIGURATION, Redundant ABAP BATCH service configuration, 2 ABAP instances with BATCH service detected SUCCESS, SAP STATE, Redundant ABAP BATCH service state, 2 ABAP instances with active BATCH service detected SUCCESS, SAP STATE, ABAP instances with ABAP BATCH service on multiple hosts, ABAP instances with active ABAP BATCH service on multiple hosts detected SUCCESS, SAP CONFIGURATION, Redundant ABAP DIALOG service configuration, 2 ABAP instances with DIALOG service detected SUCCESS, SAP STATE, Redundant ABAP DIALOG service state, 2 ABAP instances with active DIALOG service detected SUCCESS, SAP STATE, ABAP instances with ABAP DIALOG service on multiple hosts, ABAP instances with active ABAP DIALOG service on multiple hosts detected SUCCESS, SAP CONFIGURATION, Redundant ABAP UPDATE service configuration, 2 ABAP instances with UPDATE service detected SUCCESS, SAP STATE, Redundant ABAP UPDATE service state, 2 ABAP instances with active UPDATE service detected SUCCESS, SAP STATE, ABAP instances with ABAP UPDATE service on multiple hosts, ABAP instances with active ABAP UPDATE service on multiple hosts detected SUCCESS, SAP STATE, SCS instance running, SCS instance status ok SUCCESS, SAP CONFIGURATION, SAPInstance RA sufficient version (anftstsapvh_QAS_00), SAPInstance includes is-ers patch SUCCESS, SAP CONFIGURATION, Enqueue replication (anftstsapvh_QAS_00), Enqueue replication enabled SUCCESS, SAP STATE, Enqueue replication state (anftstsapvh_QAS_00), Enqueue replication active anftstsapcl1:qasadm 55> sapcontrol -nr 00 -function HACheckFailoverConfig 07.03.2019 23:30:48 HACheckFailoverConfig OK state, category, description, comment SUCCESS, SAP CONFIGURATION, SAPInstance RA sufficient version, SAPInstance includes is-ers patch
Migrar manualmente a instância ASCSManually migrate the ASCS instance
Estado dos recursos antes de iniciar o teste:Resource state before starting the test:
Resource Group: g-QAS_ASCS fs_QAS_ASCS (ocf::heartbeat:Filesystem): Started anftstsapcl2 nc_QAS_ASCS (ocf::heartbeat:azure-lb): Started anftstsapcl2 vip_QAS_ASCS (ocf::heartbeat:IPaddr2): Started anftstsapcl2 rscsap_QAS_ASCS00 (ocf::heartbeat:SAPInstance): Started anftstsapcl2 stonith-sbd (stonith:external/sbd): Started anftstsapcl1 Resource Group: g-QAS_ERS fs_QAS_ERS (ocf::heartbeat:Filesystem): Started anftstsapcl1 nc_QAS_ERS (ocf::heartbeat:azure-lb): Started anftstsapcl1 vip_QAS_ERS (ocf::heartbeat:IPaddr2): Started anftstsapcl1 rsc_sap_QAS_ERS01 (ocf::heartbeat:SAPInstance): Starting anftstsapcl1
Executar os seguintes comandos como raiz para migrar a instância ASCS.Run the following commands as root to migrate the ASCS instance.
anftstsapcl1:~ # crm resource migrate rsc_sap_QAS_ASCS00 force INFO: Move constraint created for rsc_sap_QAS_ASCS00 anftstsapcl1:~ # crm resource unmigrate rsc_sap_QAS_ASCS00 INFO: Removed migration constraints for rsc_sap_QAS_ASCS00 # Remove failed actions for the ERS that occurred as part of the migration anftstsapcl1:~ # crm resource cleanup rsc_sap_QAS_ERS01
Estado de recursos após o teste:Resource state after the test:
Resource Group: g-QAS_ASCS fs_QAS_ASCS (ocf::heartbeat:Filesystem): Started anftstsapcl1 nc_QAS_ASCS (ocf::heartbeat:azure-lb): Started anftstsapcl1 vip_QAS_ASCS (ocf::heartbeat:IPaddr2): Started anftstsapcl1 rsc_sap_QAS_ASCS00 (ocf::heartbeat:SAPInstance): Started anftstsapcl1 stonith-sbd (stonith:external/sbd): Started anftstsapcl1 Resource Group: g-QAS_ERS fs_QAS_ERS (ocf::heartbeat:Filesystem): Started anftstsapcl2 nc_QAS_ERS (ocf::heartbeat:azure-lb): Started anftstsapcl2 vip_QAS_ERS (ocf::heartbeat:IPaddr2): Started anftstsapcl2 rsc_sap_QAS_ERS01 (ocf::heartbeat:SAPInstance): Started anftstsapcl2
Teste HAFailoverToNodeTest HAFailoverToNode
Estado dos recursos antes de iniciar o teste:Resource state before starting the test:
Resource Group: g-QAS_ASCS fs_QAS_ASCS (ocf::heartbeat:Filesystem): Started anftstsapcl1 nc_QAS_ASCS (ocf::heartbeat:azure-lb): Started anftstsapcl1 vip_QAS_ASCS (ocf::heartbeat:IPaddr2): Started anftstsapcl1 rsc_sap_QAS_ASCS00 (ocf::heartbeat:SAPInstance): Started anftstsapcl1 stonith-sbd (stonith:external/sbd): Started anftstsapcl1 Resource Group: g-QAS_ERS fs_QAS_ERS (ocf::heartbeat:Filesystem): Started anftstsapcl2 nc_QAS_ERS (ocf::heartbeat:azure-lb): Started anftstsapcl2 vip_QAS_ERS (ocf::heartbeat:IPaddr2): Started anftstsapcl2 rsc_sap_QAS_ERS01 (ocf::heartbeat:SAPInstance): Started anftstsapcl2
Executar os seguintes comandos como <sapsid> adm para migrar a instância ASCS.Run the following commands as <sapsid>adm to migrate the ASCS instance.
anftstsapcl1:qasadm 53> sapcontrol -nr 00 -host anftstsapvh -user qasadm <password> -function HAFailoverToNode "" # run as root # Remove failed actions for the ERS that occurred as part of the migration anftstsapcl1:~ # crm resource cleanup rsc_sap_QAS_ERS01 # Remove migration constraints anftstsapcl1:~ # crm resource clear rsc_sap_QAS_ASCS00 #INFO: Removed migration constraints for rsc_sap_QAS_ASCS00
Estado de recursos após o teste:Resource state after the test:
Resource Group: g-QAS_ASCS fs_QAS_ASCS (ocf::heartbeat:Filesystem): Started anftstsapcl2 nc_QAS_ASCS (ocf::heartbeat:azure-lb): Started anftstsapcl2 vip_QAS_ASCS (ocf::heartbeat:IPaddr2): Started anftstsapcl2 rsc_sap_QAS_ASCS00 (ocf::heartbeat:SAPInstance): Started anftstsapcl2 stonith-sbd (stonith:external/sbd): Started anftstsapcl1 Resource Group: g-QAS_ERS fs_QAS_ERS (ocf::heartbeat:Filesystem): Started anftstsapcl1 nc_QAS_ERS (ocf::heartbeat:azure-lb): Started anftstsapcl1 vip_QAS_ERS (ocf::heartbeat:IPaddr2): Started anftstsapcl1 rsc_sap_QAS_ERS01 (ocf::heartbeat:SAPInstance): Started anftstsapcl1
Simular queda de nóSimulate node crash
Estado dos recursos antes de iniciar o teste:Resource state before starting the test:
Resource Group: g-QAS_ASCS fs_QAS_ASCS (ocf::heartbeat:Filesystem): Started anftstsapcl2 nc_QAS_ASCS (ocf::heartbeat:azure-lb): Started anftstsapcl2 vip_QAS_ASCS (ocf::heartbeat:IPaddr2): Started anftstsapcl2 rsc_sap_QAS_ASCS00 (ocf::heartbeat:SAPInstance): Started anftstsapcl2 stonith-sbd (stonith:external/sbd): Started anftstsapcl1 Resource Group: g-QAS_ERS fs_QAS_ERS (ocf::heartbeat:Filesystem): Started anftstsapcl1 nc_QAS_ERS (ocf::heartbeat:azure-lb): Started anftstsapcl1 vip_QAS_ERS (ocf::heartbeat:IPaddr2): Started anftstsapcl1 rsc_sap_QAS_ERS01 (ocf::heartbeat:SAPInstance): Started anftstsapcl1
Executar o seguinte comando como raiz no nó onde a instância ASCS está em execuçãoRun the following command as root on the node where the ASCS instance is running
anftstsapcl2:~ # echo b > /proc/sysrq-trigger
Se utilizar o SBD, o Pacemaker não deve iniciar automaticamente o nó morto.If you use SBD, Pacemaker should not automatically start on the killed node. O estado após o nó recomeçar deve ser assim.The status after the node is started again should look like this.
Online: Online: [ anftstsapcl1 ] OFFLINE: [ anftstsapcl2 ] Full list of resources: Resource Group: g-QAS_ASCS fs_QAS_ASCS (ocf::heartbeat:Filesystem): Started anftstsapcl1 nc_QAS_ASCS (ocf::heartbeat:azure-lb): Started anftstsapcl1 vip_QAS_ASCS (ocf::heartbeat:IPaddr2): Started anftstsapcl1 rsc_sap_QAS_ASCS00 (ocf::heartbeat:SAPInstance): Started anftstsapcl1 stonith-sbd (stonith:external/sbd): Started anftstsapcl1 Resource Group: g-QAS_ERS fs_QAS_ERS (ocf::heartbeat:Filesystem): Started anftstsapcl1 nc_QAS_ERS (ocf::heartbeat:azure-lb): Started anftstsapcl1 vip_QAS_ERS (ocf::heartbeat:IPaddr2): Started anftstsapcl1 rsc_sap_QAS_ERS01 (ocf::heartbeat:SAPInstance): Started anftstsapcl1 Failed Actions: * rsc_sap_QAS_ERS01_monitor_11000 on anftstsapcl1 'not running' (7): call=166, status=complete, exitreason='', last-rc-change='Fri Mar 8 18:26:10 2019', queued=0ms, exec=0ms
Use os seguintes comandos para iniciar o Pacemaker no nó morto, limpe as mensagens SBD e limpe os recursos falhados.Use the following commands to start Pacemaker on the killed node, clean the SBD messages, and clean the failed resources.
# run as root # list the SBD device(s) anftstsapcl2:~ # cat /etc/sysconfig/sbd | grep SBD_DEVICE= # SBD_DEVICE="/dev/disk/by-id/scsi-36001405b730e31e7d5a4516a2a697dcf;/dev/disk/by-id/scsi-36001405f69d7ed91ef54461a442c676e;/dev/disk/by-id/scsi-360014058e5f335f2567488882f3a2c3a" anftstsapcl2:~ # sbd -d /dev/disk/by-id/scsi-36001405772fe8401e6240c985857e11 -d /dev/disk/by-id/scsi-36001405f69d7ed91ef54461a442c676e -d /dev/disk/by-id/scsi-360014058e5f335f2567488882f3a2c3a message anftstsapcl2 clear anftstsapcl2:~ # systemctl start pacemaker anftstsapcl2:~ # crm resource cleanup rsc_sap_QAS_ASCS00 anftstsapcl2:~ # crm resource cleanup rsc_sap_QAS_ERS01
Estado de recursos após o teste:Resource state after the test:
Full list of resources: Resource Group: g-QAS_ASCS fs_QAS_ASCS (ocf::heartbeat:Filesystem): Started anftstsapcl1 nc_QAS_ASCS (ocf::heartbeat:azure-lb): Started anftstsapcl1 vip_QAS_ASCS (ocf::heartbeat:IPaddr2): Started anftstsapcl1 rsc_sap_QAS_ASCS00 (ocf::heartbeat:SAPInstance): Started anftstsapcl1 stonith-sbd (stonith:external/sbd): Started anftstsapcl1 Resource Group: g-QAS_ERS fs_QAS_ERS (ocf::heartbeat:Filesystem): Started anftstsapcl2 nc_QAS_ERS (ocf::heartbeat:azure-lb): Started anftstsapcl2 vip_QAS_ERS (ocf::heartbeat:IPaddr2): Started anftstsapcl2 rsc_sap_QAS_ERS01 (ocf::heartbeat:SAPInstance): Started anftstsapcl2
Reiniciar manual de teste da instância ASCSTest manual restart of ASCS instance
Estado dos recursos antes de iniciar o teste:Resource state before starting the test:
Resource Group: g-QAS_ASCS fs_QAS_ASCS (ocf::heartbeat:Filesystem): Started anftstsapcl2 nc_QAS_ASCS (ocf::heartbeat:azure-lb): Started anftstsapcl2 vip_QAS_ASCS (ocf::heartbeat:IPaddr2): Started anftstsapcl2 rsc_sap_QAS_ASCS00 (ocf::heartbeat:SAPInstance): Started anftstsapcl2 stonith-sbd (stonith:external/sbd): Started anftstsapcl1 Resource Group: g-QAS_ERS fs_QAS_ERS (ocf::heartbeat:Filesystem): Started anftstsapcl1 nc_QAS_ERS (ocf::heartbeat:azure-lb): Started anftstsapcl1 vip_QAS_ERS (ocf::heartbeat:IPaddr2): Started anftstsapcl1 rsc_sap_QAS_ERS01 (ocf::heartbeat:SAPInstance): Started anftstsapcl1
Crie um bloqueio de enqueue, por exemplo, editar um utilizador em transação su01.Create an enqueue lock by, for example edit a user in transaction su01. Executar os seguintes comandos como <adm sapsid > no nó onde está a decorrer a instância ASCS.Run the following commands as <sapsid>adm on the node where the ASCS instance is running. Os comandos irão parar a instância ASCS e reiniciá-la.The commands will stop the ASCS instance and start it again. Se utilizar a arquitetura do servidor 1 do enqueue, espera-se que o bloqueio de enqueue se perca neste teste.If using enqueue server 1 architecture, the enqueue lock is expected to be lost in this test. Se utilizar a arquitetura do servidor 2 do enqueue, o enqueue será mantido.If using enqueue server 2 architecture, the enqueue will be retained.
anftstsapcl2:qasadm 51> sapcontrol -nr 00 -function StopWait 600 2
A instância ASCS deve agora ser desativada no PacemakerThe ASCS instance should now be disabled in Pacemaker
rsc_sap_QAS_ASCS00 (ocf::heartbeat:SAPInstance): Stopped (disabled)
Inicie novamente a instância ASCS no mesmo nó.Start the ASCS instance again on the same node.
anftstsapcl2:qasadm 52> sapcontrol -nr 00 -function StartWait 600 2
O bloqueio de enqueue da transação su01 deve ser perdido, se a utilização da replicação do servidor de enqueue 1 arquitetura e o back-end deve ter sido reiniciado.The enqueue lock of transaction su01 should be lost, if using enqueue server replication 1 architecture and the back-end should have been reset. Estado de recursos após o teste:Resource state after the test:
Resource Group: g-QAS_ASCS fs_QAS_ASCS (ocf::heartbeat:Filesystem): Started anftstsapcl2 nc_QAS_ASCS (ocf::heartbeat:azure-lb): Started anftstsapcl2 vip_QAS_ASCS (ocf::heartbeat:IPaddr2): Started anftstsapcl2 rsc_sap_QAS_ASCS00 (ocf::heartbeat:SAPInstance): Started anftstsapcl2 stonith-sbd (stonith:external/sbd): Started anftstsapcl1 Resource Group: g-QAS_ERS fs_QAS_ERS (ocf::heartbeat:Filesystem): Started anftstsapcl1 nc_QAS_ERS (ocf::heartbeat:azure-lb): Started anftstsapcl1 vip_QAS_ERS (ocf::heartbeat:IPaddr2): Started anftstsapcl1 rsc_sap_QAS_ERS01 (ocf::heartbeat:SAPInstance): Started anftstsapcl1
Desa um processo de servidor de mensagensKill message server process
Estado dos recursos antes de iniciar o teste:Resource state before starting the test:
Resource Group: g-QAS_ASCS fs_QAS_ASCS (ocf::heartbeat:Filesystem): Started anftstsapcl2 nc_QAS_ASCS (ocf::heartbeat:azure-lb): Started anftstsapcl2 vip_QAS_ASCS (ocf::heartbeat:IPaddr2): Started anftstsapcl2 rsc_sap_QAS_ASCS00 (ocf::heartbeat:SAPInstance): Started anftstsapcl2 stonith-sbd (stonith:external/sbd): Started anftstsapcl1 Resource Group: g-QAS_ERS fs_QAS_ERS (ocf::heartbeat:Filesystem): Started anftstsapcl1 nc_QAS_ERS (ocf::heartbeat:azure-lb): Started anftstsapcl1 vip_QAS_ERS (ocf::heartbeat:IPaddr2): Started anftstsapcl1 rsc_sap_QAS_ERS01 (ocf::heartbeat:SAPInstance): Started anftstsapcl1
Executar os seguintes comandos como raiz para identificar o processo do servidor de mensagem e matá-lo.Run the following commands as root to identify the process of the message server and kill it.
anftstsapcl2:~ # pgrep ms.sapQAS | xargs kill -9
Se só desligar o servidor de mensagens uma vez, será reiniciado por
sapstart
.If you only kill the message server once, it will be restarted bysapstart
. Se o matares com frequência, o Pacemaker irá eventualmente mover a instância ASCS para o outro nó.If you kill it often enough, Pacemaker will eventually move the ASCS instance to the other node. Executar os seguintes comandos como raiz para limpar o estado de recursos da instância ASCS e ERS após o teste.Run the following commands as root to clean up the resource state of the ASCS and ERS instance after the test.anftstsapcl2:~ # crm resource cleanup rsc_sap_QAS_ASCS00 anftstsapcl2:~ # crm resource cleanup rsc_sap_QAS_ERS01
Estado de recursos após o teste:Resource state after the test:
Resource Group: g-QAS_ASCS fs_QAS_ASCS (ocf::heartbeat:Filesystem): Started anftstsapcl1 nc_QAS_ASCS (ocf::heartbeat:azure-lb): Started anftstsapcl1 vip_QAS_ASCS (ocf::heartbeat:IPaddr2): Started anftstsapcl1 rsc_sap_QAS_ASCS00 (ocf::heartbeat:SAPInstance): Started anftstsapcl1 stonith-sbd (stonith:external/sbd): Started anftstsapcl1 Resource Group: g-QAS_ERS fs_QAS_ERS (ocf::heartbeat:Filesystem): Started anftstsapcl2 nc_QAS_ERS (ocf::heartbeat:azure-lb): Started anftstsapcl2 vip_QAS_ERS (ocf::heartbeat:IPaddr2): Started anftstsapcl2 rsc_sap_QAS_ERS01 (ocf::heartbeat:SAPInstance): Started anftstsapcl2
Kill enqueue server processKill enqueue server process
Estado dos recursos antes de iniciar o teste:Resource state before starting the test:
Resource Group: g-QAS_ASCS fs_QAS_ASCS (ocf::heartbeat:Filesystem): Started anftstsapcl1 nc_QAS_ASCS (ocf::heartbeat:azure-lb): Started anftstsapcl1 vip_QAS_ASCS (ocf::heartbeat:IPaddr2): Started anftstsapcl1 rsc_sap_QAS_ASCS00 (ocf::heartbeat:SAPInstance): Started anftstsapcl1 stonith-sbd (stonith:external/sbd): Started anftstsapcl1 Resource Group: g-QAS_ERS fs_QAS_ERS (ocf::heartbeat:Filesystem): Started anftstsapcl2 nc_QAS_ERS (ocf::heartbeat:azure-lb): Started anftstsapcl2 vip_QAS_ERS (ocf::heartbeat:IPaddr2): Started anftstsapcl2 rsc_sap_QAS_ERS01 (ocf::heartbeat:SAPInstance): Started anftstsapcl2
Executar os seguintes comandos como raiz no nó onde a instância ASCS está em execução para matar o servidor de enqueue.Run the following commands as root on the node where the ASCS instance is running to kill the enqueue server.
anftstsapcl1:~ # pgrep en.sapQAS | xargs kill -9
A instância ASCS deve falhar imediatamente no outro nó.The ASCS instance should immediately fail over to the other node. A instância ERS também deve ser chumbada após o início da instância ASCS.The ERS instance should also fail over after the ASCS instance is started. Executar os seguintes comandos como raiz para limpar o estado de recursos da instância ASCS e ERS após o teste.Run the following commands as root to clean up the resource state of the ASCS and ERS instance after the test.
anftstsapcl1:~ # crm resource cleanup rsc_sap_QAS_ASCS00 anftstsapcl1:~ # crm resource cleanup rsc_sap_QAS_ERS01
Estado de recursos após o teste:Resource state after the test:
Resource Group: g-QAS_ASCS fs_QAS_ASCS (ocf::heartbeat:Filesystem): Started anftstsapcl2 nc_QAS_ASCS (ocf::heartbeat:azure-lb): Started anftstsapcl2 vip_QAS_ASCS (ocf::heartbeat:IPaddr2): Started anftstsapcl2 rsc_sap_QAS_ASCS00 (ocf::heartbeat:SAPInstance): Started anftstsapcl2 stonith-sbd (stonith:external/sbd): Started anftstsapcl1 Resource Group: g-QAS_ERS fs_QAS_ERS (ocf::heartbeat:Filesystem): Started anftstsapcl1 nc_QAS_ERS (ocf::heartbeat:azure-lb): Started anftstsapcl1 vip_QAS_ERS (ocf::heartbeat:IPaddr2): Started anftstsapcl1 rsc_sap_QAS_ERS01 (ocf::heartbeat:SAPInstance): Started anftstsapcl1
Kill enqueue processo de servidor de replicaçãoKill enqueue replication server process
Estado dos recursos antes de iniciar o teste:Resource state before starting the test:
Resource Group: g-QAS_ASCS fs_QAS_ASCS (ocf::heartbeat:Filesystem): Started anftstsapcl2 nc_QAS_ASCS (ocf::heartbeat:azure-lb): Started anftstsapcl2 vip_QAS_ASCS (ocf::heartbeat:IPaddr2): Started anftstsapcl2 rsc_sap_QAS_ASCS00 (ocf::heartbeat:SAPInstance): Started anftstsapcl2 stonith-sbd (stonith:external/sbd): Started anftstsapcl1 Resource Group: g-QAS_ERS fs_QAS_ERS (ocf::heartbeat:Filesystem): Started anftstsapcl1 nc_QAS_ERS (ocf::heartbeat:azure-lb): Started anftstsapcl1 vip_QAS_ERS (ocf::heartbeat:IPaddr2): Started anftstsapcl1 rsc_sap_QAS_ERS01 (ocf::heartbeat:SAPInstance): Started anftstsapcl1
Executar o seguinte comando como raiz no nó onde a instância ERS está a correr para eliminar o processo do servidor de replicação enqueue.Run the following command as root on the node where the ERS instance is running to kill the enqueue replication server process.
anftstsapcl1:~ # pgrep er.sapQAS | xargs kill -9
Se executar apenas o comando uma vez,
sapstart
reiniciará o processo.If you only run the command once,sapstart
will restart the process. Se o executar com frequência,sapstart
não reiniciará o processo e o recurso estará num estado parado.If you run it often enough,sapstart
will not restart the process and the resource will be in a stopped state. Executar os seguintes comandos como raiz para limpar o estado de recursos da instância ERS após o teste.Run the following commands as root to clean up the resource state of the ERS instance after the test.anftstsapcl1:~ # crm resource cleanup rsc_sap_QAS_ERS01
Estado de recursos após o teste:Resource state after the test:
Resource Group: g-QAS_ASCS fs_QAS_ASCS (ocf::heartbeat:Filesystem): Started anftstsapcl2 nc_QAS_ASCS (ocf::heartbeat:azure-lb): Started anftstsapcl2 vip_QAS_ASCS (ocf::heartbeat:IPaddr2): Started anftstsapcl2 rsc_sap_QAS_ASCS00 (ocf::heartbeat:SAPInstance): Started anftstsapcl2 stonith-sbd (stonith:external/sbd): Started anftstsapcl1 Resource Group: g-QAS_ERS fs_QAS_ERS (ocf::heartbeat:Filesystem): Started anftstsapcl1 nc_QAS_ERS (ocf::heartbeat:azure-lb): Started anftstsapcl1 vip_QAS_ERS (ocf::heartbeat:IPaddr2): Started anftstsapcl1 rsc_sap_QAS_ERS01 (ocf::heartbeat:SAPInstance): Started anftstsapcl1
Kill enqueue processo sapstartsrvKill enqueue sapstartsrv process
Estado dos recursos antes de iniciar o teste:Resource state before starting the test:
Resource Group: g-QAS_ASCS fs_QAS_ASCS (ocf::heartbeat:Filesystem): Started anftstsapcl2 nc_QAS_ASCS (ocf::heartbeat:azure-lb): Started anftstsapcl2 vip_QAS_ASCS (ocf::heartbeat:IPaddr2): Started anftstsapcl2 rsc_sap_QAS_ASCS00 (ocf::heartbeat:SAPInstance): Started anftstsapcl2 stonith-sbd (stonith:external/sbd): Started anftstsapcl1 Resource Group: g-QAS_ERS fs_QAS_ERS (ocf::heartbeat:Filesystem): Started anftstsapcl1 nc_QAS_ERS (ocf::heartbeat:azure-lb): Started anftstsapcl1 vip_QAS_ERS (ocf::heartbeat:IPaddr2): Started anftstsapcl1 rsc_sap_QAS_ERS01 (ocf::heartbeat:SAPInstance): Started anftstsapcl1
Executar os seguintes comandos como raiz no nó onde o ASCS está em funcionamento.Run the following commands as root on the node where the ASCS is running.
anftstsapcl2:~ # pgrep -fl ASCS00.*sapstartsrv #67625 sapstartsrv anftstsapcl2:~ # kill -9 67625
O processo de sapstartsrv deve ser sempre reiniciado pelo agente de recursos Pacemaker.The sapstartsrv process should always be restarted by the Pacemaker resource agent. Estado de recursos após o teste:Resource state after the test:
Resource Group: g-QAS_ASCS fs_QAS_ASCS (ocf::heartbeat:Filesystem): Started anftstsapcl2 nc_QAS_ASCS (ocf::heartbeat:azure-lb): Started anftstsapcl2 vip_QAS_ASCS (ocf::heartbeat:IPaddr2): Started anftstsapcl2 rsc_sap_QAS_ASCS00 (ocf::heartbeat:SAPInstance): Started anftstsapcl2 stonith-sbd (stonith:external/sbd): Started anftstsapcl1 Resource Group: g-QAS_ERS fs_QAS_ERS (ocf::heartbeat:Filesystem): Started anftstsapcl1 nc_QAS_ERS (ocf::heartbeat:azure-lb): Started anftstsapcl1 vip_QAS_ERS (ocf::heartbeat:IPaddr2): Started anftstsapcl1 rsc_sap_QAS_ERS01 (ocf::heartbeat:SAPInstance): Started anftstsapcl1
Passos seguintesNext steps
- HA para SAP NW em VMs Azure em SLES para aplicações SAP multi-SID guiaHA for SAP NW on Azure VMs on SLES for SAP applications multi-SID guide
- Azure Virtual Machines planejamento e implementação para SAPAzure Virtual Machines planning and implementation for SAP
- Implantação de máquinas virtuais Azure para SAPAzure Virtual Machines deployment for SAP
- Implantação DBMS de máquinas virtuais Azure para SAPAzure Virtual Machines DBMS deployment for SAP
- Para aprender a estabelecer uma elevada disponibilidade e plano para a recuperação de desastres da SAP HANA em VMs Azure, consulte Alta Disponibilidade de SAP HANA em Máquinas Virtuais Azure (VMs)To learn how to establish high availability and plan for disaster recovery of SAP HANA on Azure VMs, see High Availability of SAP HANA on Azure Virtual Machines (VMs)