# Filesystem Doesn't Reflect Instance Resize (Ephemeral)

## Problem

An OpenStack instance, leveraging an ephemeral, non-boot-from-volume disk for its root partition, has been resized, but, the file system does not reflect the increased size (e.g. according to the\*\*`df`\*\* output).

## Environment

* Platform9 Managed OpenStack - All Versions
* Nova

## Cause

The respective filesystem has yet to be expanded within the guest OS.

## Resolution

### Ext2/3/4

1. Leverage the [resize2fs](https://linux.die.net/man/8/resize2fs) utility to resize the EXT filesystem.

{% tabs %}
{% tab title="None" %}

```none
# resize2fs /dev/sda1
```

{% endtab %}
{% endtabs %}

```
- If the root partition is provisioned using LVM, you may need to expand the associated LV and then specify the path to it on the filesystem, e.g.
```

```
# resize2fs /dev/mapper/vg-root
```

### XFS

1. Leverage the [xfs\_growfs](https://linux.die.net/man/8/xfs_growfs) utility to resize the XFS filesystem.

{% tabs %}
{% tab title="None" %}

```none
# xfs_growfs /dev/sda1
```

{% endtab %}
{% endtabs %}
