Postgres app not picking up extended volume

I have a postgres app that bumped against the volume’s disk limit of the initial 1GB

I extended the volume with fly vol extend and restarted the postgres machine fly pg restart ... (I also tried manually restarting the machine with fly machine restart <id>

my issue is that the postgres app doesn’t seem to pick up the new volume’s size.

it’s reported correctly:

        ID: vol_<id>
      Name: pg_data
       App: <app_name>
    Region: ord
      Zone: ...
   Size GB: 2
 Encrypted: true
Created at: 23 Apr 23 17:17 UTC

and also the dashboard shows the correct 2GB, but the checks still report a low disk capacity, and the grafana dashboard is also still at 1GB:

Edit: Verified that the volume mounted on /data is still at 1GB:

root@<id>:/# df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs         99M     0   99M   0% /dev
/dev/vda        7.9G  806M  6.7G  11% /
shm             111M  1.1M  110M   1% /dev/shm
tmpfs           111M     0  111M   0% /sys/fs/cgroup
/dev/vdb        988M  824M   98M  90% /data

How can I resolve this properly? Thanks!

Would removing and recreating the machine help?

okay, I managed to resolve this by cloning a machine from the last snapshot:

 fly machine clone <id> --from-snapshot last -a <app>

would still be interesting what I did wrong :thinking:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.