Does the linux server need to be partitioned?

Filesystem      Size  Used Avail Use% Mounted on
/dev/xvda1       20G  4.2G   15G  23% /
none            4.0K     0  4.0K   0% /sys/fs/cgroup
udev            481M   12K  481M   1% /dev
tmpfs           100M  356K   99M   1% /run
none            5.0M     0  5.0M   0% /run/lock
none            496M     0  496M   0% /run/shm
none            100M     0  100M   0% /run/user

this is a ubuntu host. The use of mongodb disk will gradually increase. Do you need to partition mongodb separately? if you do not partition, will it have an impact? how to add hard disk space in the future?

Mar.30,2021

it is not necessary to partition if it is just an exercise. Add external hard disk reference https://blog.csdn.net/yj_andr.
. If it is online, it is recommended to directly use the database service provided by the factory. It is convenient to worry


.

need, because mongodb reads and writes frequently, it is easy to have disk problems. If it is not partitioned, the linux system may not be able to boot. The advantage of partitioning is that there is a problem with the partition where the mongodb is located, and it will not affect other partitions, so it is easy to manage.

how to add hard disk space in the future?

now, disk array (RAID), is generally used in service areas to support online expansion.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea0ef7-478dd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea0ef7-478dd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?