Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 1885  / 2 Years ago, wed, june 22, 2022, 11:54:36

while reading about linux,I got the following:



The /var directory may be put in its own filesystem so that growth of the files can be accommodated and the file sizes do not fatally affect the system.



when I tried to find out the file system for /var by $ df - Th ,I got..



Filesystem     Type      Size  Used Avail Use% Mounted on
/dev/sda5 ext4 141G 19G 116G 14% /
none tmpfs 4.0K 0 4.0K 0% /sys/fs/cgroup
udev devtmpfs 1.5G 4.0K 1.5G 1% /dev
tmpfs tmpfs 294M 1.2M 293M 1% /run
none tmpfs 5.0M 0 5.0M 0% /run/lock
none tmpfs 1.5G 38M 1.4G 3% /run/shm
none tmpfs 100M 60K 100M 1% /run/user


here I am not getting /var on mounted on attribute, so what type of file system is associated with /var exactly? how do I find it?


More From » filesystem

 Answers
3

Quoting your question:




The /var directory may be put in its own filesystem...




(Emphasis mine.) They key phrase here is may be. It's not uncommon to do so. But the default Ubuntu installation settings don't do so, so you don't have /var on a separate partition.






There are many scenarios where /var belongs on a different filesystem (or even a different disk):




  1. You have an application that does a lot of logging. In this case you'd want to protect root (/) from becoming full.

  2. You're using an SSD for / and have an application that makes a lot of read/writes to /var. In this case you'd want it on a normal HDD.

  3. You're using an application that is I/O intensive (using both storage space and a lot of read/writes), such as a mail server. In this case you'd want /var on a RAID array.



And so on... Also see: Why put things other than /home to a separate partition?


[#23240] Friday, June 24, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
imberst

Total Points: 370
Total Questions: 107
Total Answers: 123

Location: French Polynesia
Member since Tue, Jul 7, 2020
4 Years ago
;