管理者ページから自動アップグレードを実行しようとしましたが、一見正常に進んだように見えたものの、明らかに何かが失敗しました。管理パネルではアップグレードが完了していないと表示される一方、アップグレードパネルではすべて最新の状態と表示されています。./launcher rebuild app を実行しようとしましたが、ディスク容量不足のエラーが発生しました。古いバックアップを削除しましたが、空き容量が 3GB しか確保できず、必要な 5GB に達しません。
何か提案はありますか?すでに ./launcher cleanup を実行済みです。
どうやら Docker が多くの容量を占有しているようです:合計 9.3GB…
--- /var/lib/docker ---------------------------------------------------------------------------------------------------------------------------
/..
6.7 GiB [##########] /overlay2
2.7 GiB [### ] /volumes
--- /var/lib/docker/overlay2 ------------------------------------------------------------------------------------------------------------------
/..
3.8 GiB [##########] /5f823d00b5b399410cb9e99b8ea4f2b44e4607b88ee27a9328b4fb4267eeeac8
2.3 GiB [###### ] /11262dd0a2b59292c520629d74720326f0328995c321826f1d8ae4434fc7a482
「いいね!」 1
OK, I pulled down my uploads folder and my backups to my local machine and removed them from the server. That freed up enough space to run
./launcher rebuild app
That completed and the site is back up. PHEW! I’d still like to know if something is wrong in docker that it is using so much space…
「いいね!」 3
pfaffman
(Jay Pfaffman)
2019 年 12 月 7 日午後 1:15
4
./launcher cleanup
will remove Docker images and containers that you’re not using.
「いいね!」 3
Thanks @pfaffman . I ran it and didn’t see a change.
Does that size seem appropriate?
「いいね!」 1
pfaffman
(Jay Pfaffman)
2019 年 12 月 7 日午後 1:42
6
Sorry I didn’t look at the numbers before, but yeah, that looks pretty right.
It’s pretty tight at 20GB. I really recommend 50. Keeping backups on an S3 or Digital Ocean Spaces bucket helps not fill your disk with backups, but you can still have trouble doing a restore as multiple copies of the database exist when you restore.
「いいね!」 4
tomtjes
(Thomas Reintjes)
2019 年 12 月 9 日午後 4:53
7
I ran into the same issue with this upgrade. Moving Docker to a different volume solved it for me. I followed this guide:
Another solution on OS level can be to mount /var/lib/docker on a dedicated partition.
To do this, please, stop Docker, make sure that no process accesses /var/lib/docker and do the following:
Provide an additional volume. In this example it is /dev/sdx8.
Format it accordingly, i.e.
mkfs.xfs -n ftype=1 /dev/sdx8
or
mkfs.ext4 /dev/sdx8
etc.
If it fails in mkfs.xfs you might run a newer version of mkfs.xfs which has ftype=1 already as default. Just issue
mkfs.xfs /dev/sdx8
Stop Docker.
…
「いいね!」 2