# V8.12.0 ILM - maximum primary shard size not working

**URL:** <https://discuss.elastic.co/t/v8-12-0-ilm-maximum-primary-shard-size-not-working/368356>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [October 7, 2024, 3:18pm UTC](https://discuss.elastic.co/t/v8-12-0-ilm-maximum-primary-shard-size-not-working/368356 "2024-10-07T15:18:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![plus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/plus/32/97297_2.png) [@plus](https://discuss.elastic.co/u/plus)\
**Post date:** [October 7, 2024, 3:18pm UTC](https://discuss.elastic.co/t/v8-12-0-ilm-maximum-primary-shard-size-not-working/368356/1 "2024-10-07T15:18:38Z")

</div>

Hello  
My ILM policy has a maximum primary shard size= 50gb

 ![ILM_policy](https://us1.discourse-cdn.com/elastic/original/3X/0/1/013df6ac254e79cdc288074f38c8ab77f7d03131.png)

There are 2 linked indices to this policy:

 ![linked_indices](https://us1.discourse-cdn.com/elastic/original/3X/3/a/3a7c161727a1a8db59456f2417481d2a0a67d50c.png)

but my indexes are bigger than 100 Gb (there is primary and replica)

 ![index_size_gt_50gb](https://us1.discourse-cdn.com/elastic/original/3X/9/3/93359c748ae44ebdc35a0437d96af8e3ccb75bcc.png)

Why is not working this configured option ? If I use Maximum index size it works (but this option is deprecated and I want to use the new one)

Thanks
