PowerFlex: O status MD_cache do SDS é resultado pendente
Summary: Configurar e habilitar MD_cache em um domínio de proteção (PD) resulta no estado do cache de metadados FGL do SDS em "resultado pendente".
Symptoms
Dois cenários ausentes na documentação oficial para configurar e habilitar MD_cache não mostram o que foi dito acima.
Cenário 1: PD é criado > Os SDSs são adicionados > MD_cache é configurado e ativado
Quando SDSs recém-criados são adicionados a um PD recém-criado antes que MD_cache seja configurado e ativado, eles terão o estado do cache de metadados FGL definido como "resultado pendente", e a aplicação MD_cache exigirá que um usuário execute o procedimento descrito abaixo na seção Resolução em "Etapas para configurar e habilitar MD_cache com sucesso".
Cenário 2: PD existente com SDSs > MD_cache configurado e ativado
Quando MD_cache estiver configurado e ativado em um PD existente com SDSs existentes, os SDSs terão o estado do cache de metadados FGL definido como "resultado pendente", e a aplicação MD_cache exigirá que um usuário execute o procedimento descrito abaixo na seção Resolução em "Etapas para configurar e habilitar MD_cache com sucesso".
Cause
Resolution
Etapas para configurar e habilitar MD_cache com sucesso
Atenção: Ao desativar e ativar o MD_cache no PD com SDSs existentes, o desempenho pode ser afetado.
1) Execute o seguinte comando para alocar a memória usada por MD_cache em cada SDS no domínio de proteção:
Nota: A quantidade máxima de memória que pode ser alocada por SDS é de 32 GiB.
scli --set_default_fgl_metadata_cache_size (--protection_domain_id <ID> | --protection_domain_name <NAME>) --metadata_cache_size_mb <SIZE>
2) Execute o seguinte comando para ativar o MD_cache no domínio de proteção:
scli --enable_fgl_metadata_cache (--protection_domain_id <ID> | --protection_domain_name <NAME>)
3) Execute o seguinte comando para configurar o tamanho do MD_cache para cada SDS no PD:
scli --set_fgl_metadata_cache_size (--sds_id <ID> | --sds_name <NAME> | --sds_ip <IP> [--sds_port <PORT>]) (--metadata_cache_size_mb <SIZE> | --use_protection_domain_default_size)
--metadata_cache_size_mb <SIZE>
Define the default size of the metadata cache for the SDS in MB
--use_protection_domain_default_size
Use the default size of the Protection Domain
4) Execute o seguinte comando para desativar MD_cache no domínio de proteção:
scli --disable_fgl_metadata_cache (--protection_domain_id <ID> | --protection_domain_name <NAME>)
5) Execute o seguinte comando para ativar MD_cache no domínio de proteção:
scli --enable_fgl_metadata_cache (--protection_domain_id <ID> | --protection_domain_name <NAME>)
Additional Information
Exemplo:
[root@MDM1 ~]# scli --add_protection_domain --protection_domain_name PD1
Successfully created protection domain. Object ID 339ccbae00000000
[root@MDM1 ~]# scli --add_sds --sds_ip 172.1.1.1 --protection_domain_name PD1 --device_name /dev/sdb,/dev/sdc,/dev/sdd --sds_name SDS1 --storage_pool_name SP1
Successfully created SDS SDS1. Object ID 3789dbd500000000
[root@MDM1 ~]# scli --set_default_fgl_metadata_cache_size --protection_domain_name PD1 --metadata_cache_size_mb 32768
Successfully set fine granularity default metadata cache size for Protection Domain
[root@MDM1 ~]# scli --enable_fgl_metadata_cache --protection_domain_name PD1
Successfully enabled fine granularity metadata caching on Protection Domain
[root@MDM1 ~]# scli --query_sds --sds_name SDS1 | grep FGL
FGL metadata cache information:
FGL metadata cache state is pending result <<<
FGL metadata cache size: 32768 MB
[root@MDM1 ~]# scli --set_fgl_metadata_cache_size --sds_name SDS1 --use_protection_domain_default_size
Successfully set fine granularity metadata cache size for SDS
[root@MDM1 ~]# scli --disable_fgl_metadata_cache --protection_domain_name PD1
Successfully disabled fine granularity metadata caching on Protection Domain
[root@MDM1 ~]# scli --query_sds --sds_name SDS1 | grep FGL
FGL metadata cache information:
FGL metadata cache is disabled <<<
FGL metadata cache size: 32768 MB
[root@MDM1 ~]# scli --enable_fgl_metadata_cache --protection_domain_name PD1
Successfully enabled fine granularity metadata caching on Protection Domain
[root@MDM1 ~]# scli --query_sds --sds_name SDS1 | grep FGL
FGL metadata cache information:
FGL metadata cache is enabled <<<
FGL metadata cache size: 32768 MB