---
# System prepended metadata

title: Move ES Snapshots to LMA Pool

---

# Move ES Snapshots to LMA Pool

### 1. Add LMA RGW Storage Class

```
radosgw-admin zonegroup placement add \
--rgw-zonegroup default \
--placement-id default-placement \
--storage-class intelligent_tiering
```

### 2. Map RGW Storage Class to Ceph Pool

```
radosgw-admin zone placement add \
--rgw-zone default \
--placement-id default-placement \
--storage-class intelligent_tiering \
--data-pool default.rgw.lma.data
```

### 3. Change Elasticsearch Snapshots to use Storage Class

[Elasticsearch Doc](https://www.elastic.co/guide/en/elasticsearch/plugins/current/repository-s3-repository.html)

#### Note from ES Doc:

> **storage_class:**
> Sets the S3 storage class for objects stored in the snapshot repository. Values may be standard, reduced_redundancy, standard_ia, onezone_ia and intelligent_tiering. Defaults to standard.

### 4. Add Lifecycle Rule to RGW Bucket

```
s3cmd setlifecycle lifecycle.xml s3://$BUCKET_NAME
```

lifecycle.xml:

```
<LifecycleConfiguration>
  <Rule>
    <ID>Archive all object older than 0 days</ID>
    <Filter>
      <Prefix></Prefix>
    </Filter>
    <Status>Enabled</Status>
    <Transition>
      <Days>0</Days>
      <StorageClass>intelligent_tiering</StorageClass>
    </Transition>
  </Rule>
</LifecycleConfiguration>
```