A
A
Aleksander9112016-05-21 10:20:47
linux
Aleksander911, 2016-05-21 10:20:47

Is it worth splitting a drive into 2 volumes in debian for a web server?

Good day everyone.
I am just a beginner in debian, I have not even started installing it yet, I watched the video, read the manuals. Right before the installation, in order not to make unnecessary mistakes, a few questions appeared ...
It is required to install debian to host a web server on it. When installing, I think to split the 3 TB disk into 2 sections: one for the OS itself, and on the second place the web server itself, its files and site files.
Is it worth partitioning the disk at all or not?
If it is, then tell me how much space to leave for the OS itself for its comfortable work?
And which raid is better software or hardware in this case? (there is a second similar disk)
Is it possible then to expand the disk space by adding additional disks (so that one more partition is not added, but the existing one is expanded)?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ivan Bogachev, 2016-05-21
@Aleksander911

Is it even worth partitioning the disk?

Why not? It is also worth making a separate section under /var.
For the OS itself, a lot of space is not needed - there are usually enough several gigabytes with a head.
This is a topic for a holivar. It is difficult to give a definite answer. The pros and cons of both options on the toaster have already been discussed . You can add to them the capabilities that you have (for example, I had a "server" from a regular PC and it could only do raid0 and raid1 hardware, which was not the best choice at that time - I had to use a software implementation).
Look towards LVM (I mean, look in advance, before installing)

S
spotifi, 2016-05-23
@spotifi

/boot
/
/swap
/var
/var
/home
/usr

S
sazhyk, 2016-06-16
@sazhyk

spotifi : pardon the harshness, but
this is clearly overkill! He has 16 GB of RAM, not 512 MB.
If you plan to give the whole machine to a web server, then I would do this:
No auto-updates, everything is handled.
Option two, you can raise this same web server in a virtual machine. So much the better, because you will probably work on this machine yourself in a graphical interface.
Then things are a little different.
Steps one through four are the same.
The whole structure will be like this:
3TB - RAID1
/boot - 512MB
LVM:
vg-system
/ - ~15BG
/home - ~50GB
swap - 1...2GB
vg-data
rest of the disk space, for example
VirtualMachine1 - 15GB
VirtualMachine2 - 50GB
... etc.
You can drive virtual machines on KVM with virtmanager. Quite convenient.
PS: if you are interested, I will send you a video with the process of installing debian on LVM.
I hope that clarified your situation a little.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question