PowerFlex: El estado del MD_cache SDS es resultado pendiente
Summary: Configurar y habilitar MD_cache en un dominio de protección (PD) da como resultado "pending result" del estado caché de metadatos FGL de SDS.
Symptoms
Dos escenarios faltantes en la documentación oficial para configurar y habilitar MD_cache no muestran lo anterior.
Situación 1: PD se crea > , se agregan > SDS MD_cache se configura y se habilita
Cuando se agregan SDS recién creados a un PD recién creado antes de que se configure y habilite MD_cache, tendrán el estado de caché de metadatos de FGL establecido en "resultado pendiente" y la aplicación de MD_cache requerirá que un usuario ejecute el procedimiento que se describe a continuación en la sección Resolución en "Pasos para configurar y habilitar MD_cache correctamente".
Situación 2: PD existente con SDS > MD_cache está configurado y habilitado
Cuando MD_cache se configura y habilita en un PD existente con SDS existentes, los SDS tendrán el estado de caché de metadatos FGL establecido en "resultado pendiente", y la aplicación de MD_cache requerirá que un usuario ejecute el procedimiento que se describe a continuación en la sección Resolución en "Pasos para configurar y habilitar MD_cache correctamente".
Cause
Resolution
Pasos para configurar y habilitar MD_cache correctamente
Atención: Después de deshabilitar y habilitar MD_cache en PD con SDS existentes, el rendimiento podría verse afectado.
1) Ejecute el siguiente comando para asignar la memoria utilizada por MD_cache en cada SDS en el dominio de protección:
Nota: La cantidad máxima de memoria que se puede asignar por SDS es de 32 GiB.
scli --set_default_fgl_metadata_cache_size (--protection_domain_id <ID> | --protection_domain_name <NAME>) --metadata_cache_size_mb <SIZE>
2) Ejecute el siguiente comando para habilitar MD_cache en el dominio de protección:
scli --enable_fgl_metadata_cache (--protection_domain_id <ID> | --protection_domain_name <NAME>)
3) Ejecute el siguiente comando para configurar el tamaño de MD_cache para cada SDS en el 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) Ejecute el siguiente comando para deshabilitar MD_cache en el dominio de protección:
scli --disable_fgl_metadata_cache (--protection_domain_id <ID> | --protection_domain_name <NAME>)
5) Ejecute el siguiente comando para habilitar MD_cache en el dominio de protección:
scli --enable_fgl_metadata_cache (--protection_domain_id <ID> | --protection_domain_name <NAME>)
Additional Information
Ejemplo:
[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