R
R
Roman Kutenko2013-02-13 22:01:23
linux
Roman Kutenko, 2013-02-13 22:01:23

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

5 answer(s)
@
@sledopit, 2013-02-13
_

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.

S
shadowalone, 2013-02-13
@shadowalone

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.

X
xensystems, 2013-02-14
@xensystems

/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

N
nikitasius, 2013-02-15
@nikitasius

Filesystem Hierarchy Standard

E
Evgeny Yablokov, 2013-02-15
@Gular

/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 question

Ask a Question

731 491 924 answers to any question