さて、NextCloudが起動しなくなって困っていた原因が判明しました。
何かしようとしても
No space left on device
が発生した場合はDiskの容量を疑う訳ですが、物理ファイルシステムは
余裕があるのでなんでだろうとわからずにいました。
そうこれはLXD内のコンテナの容量が一杯で発生していたのです。
#lxc storage show default --resources
とコマンドを叩いてみてください。
みごとに容量を食い尽くしていました。
なので、慌てず容量の拡張をして乗り切ります。
以下英語情報より探し出しました。
- Stop all running containers.
- #truncate -s +20G /var/lib/lxd/disks/default.img
- #zpool set autoexpand=on default
- #zpool status -vg default
4a. Note the device id value from the results (for me, it was a really long number). You’ll need it in the next step. - #zpool online -e default device_id_from_step_4a
- #zpool set autoexpand=off default
- #service lxd restart
7a. This is on Debian/Ubuntu. For CentOS, it’d be a “systemctl” command.
After service restart, if you do a “$lxc storage info default”, you should now see the expanded space. Restart containers.
これで無事容量が拡張されて、コンテナ再起動で元に戻ります。
困っている人(いないか?)お試しあれ。
私の場合NextCloudのファイルにクオータをつけていなかったのが敗因です。
クオータをつけてファイル容量の制限をしましょう。
ではでは。