Answer the question
In order to leave comments, you need to log in
Help me choose the best FS mount options for a web server
Now I am setting up a web server to increase my knowledge. There was a question about the options for partitioning the hard drive. I plan to do this:
Has a 500Gb disk
/boot 512Mb
/ - the rest
/home - 10gb
/var there will be a folder with clients, so that all sites will be in this directory, the size is approximately 150-200gb
/
tmp 4Gb tmpfs
/backup 150-200Gb
hear criticism and advice on setting the mount options for each partition
Answer the question
In order to leave comments, you need to log in
Backup on one physical disk with the actual data itself? Well done (:
Why on / home 10GB, if there, the bulk will be in / var? And is there any point in it, as in a separate section? As I understand it, user hamsters will still be in / var/.
about Swap has already been said.
PS. if fs is ext4, then by default 5% is reserved for root. On large partitions, it makes sense to reduce this value. tune2fs to help.
In your case, I would do this:
/ boot - 200M
/ - 20G
swap - memory * (1.5-2)
/ var / log - 5-8G / var -
it makes no sense to do
the rest separately / home.
/boot - 1G
/dev/mapper/vg1-root - 20G
swap - memory*(1.5-2)
/dev/mapper/vg1-tmp - 10G
/dev/mapper/vg1-var - everything else
vg1 itself at least on RAID1
/boot - 256M
swap - memory
/ - 10G
/tmp - 1G (nosuid,noexec)
/var - rest
/var/log - 10G
Everywhere noatime,nodiratime.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question