قبل تنفيذ الأمر ./launcher rebuild app، كان لدي مساحة 5.8 جيجابايت.
ولكن عند إعادة بناء التطبيق، تصبح المساحة المتبقية 3.7 جيجابايت، وهو أقل من 5 جيجابايت، مما يؤدي إلى توقف عملية إعادة البناء.
هل يعني ذلك أننا نحتاج إلى ما لا يقل عن 7 جيجابايت من المساحة الحرة قبل إعادة البناء؟
لدي خادم افتراضي (VPS) بسعة 20 جيجابايت، وحجم ملف نسخة احتياطية من Discourse هو 611 ميجابايت، أي أقل من 1 جيجابايت.
ولكن رغم ذلك، لا تكفي المساحة. لماذا؟
هل يجب أن أقوم فقط بتنظيف الخادم الافتراضي بالكامل، ثم إعادة تثبيت Discourse، ثم رفع ملف النسخة الاحتياطية وتشغيل خادم Discourse مرة أخرى؟
كما ترون، إجمالي المساحة لدي هو 20 جيجابايت، وفي كل مرة قبل إعادة البناء أحتاج إلى 7 جيجابايت فارغة. حجم الخادم مضغوط هو 611 ميجابايت، ولكن بعد فك الضغط:
تحتاج local_discourse/app إلى حوالي 3 جيجابايت
root@xxx:/var/discourse# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
local_discourse/app latest 98249b7dffc9 11 days ago 2.58GB
rethinkdb latest be24926bde9a 20 months ago 183MB
microbox/etcd latest 6aef84b9ec5a 3 years ago 17.9MB
نظام Ubuntu يستهلك حوالي 2 جيجابايت؟
هل يعني ذلك أن نسخة Discourse بحجم 611 ميجابايت فقط تتطلب خادمًا افتراضيًا بسعة تزيد عن 20 جيجابايت؟
أعتقد أن هذا إهدار كبير للمساحة.
إصدار Docker: 17.09.0-ce
تم تثبيت الإصدار v2.3.0.beta2 +31
Which version are you upgrading from? Backups are compressed, some upgrades include an upgrade to Postgres which uses significantly more disk space than usual.
Some rebuilds need more space that others. When there is a PostgreSQL update you need double the uncompressed database size as free space. When we release a new docker image you need space for the new image.
That as temporary and reclaimed using the launcher cleanup command afterwards.
We just released a new image so you need enough space.
I’m considering to move to another VPS which have 40G space, when this contract is over.
While today I suddenly find the one that I usually don’t use, it’s backup file is 990M, far more than this one I usually use, whose backup file is 670M.
So I think I can delete something and continue working on this server for another year. I don’t want to “zheteng”.
The backup size is immaterial, please stop citing it as a factor here.
Backups are gzipped and include attachments, the smaller database could have 50Mb of attachments while the larger has 500Mb.
You’ve also not mentioned whether they’re at the same software levels. The amount of disk required is directly related to the operations which need to be performed. If either requires a postgres upgrade it will use significantly more disk.
Can you not upgrade the disk during your current contract? Most hosts allow this.
The discourse won’t consume this much space, unlike most of the answers stated.
I’ve bought another VPS which have 40G of space and moved the system to that server.I found it only needs 9G rather than the previous 14G, so the previous 20G server is actually quite enough for this forum.
That is because the old server has lasted for 3 years or more and a lot of packages that you never need any more or other files that you will not need any more are still there. So the best choice is just download the backup file, reinstall the Ubuntu system of that server and reinstall discourse and restore the backup file again. The process takes about 2 hours I think, depends on the net speed.