Answer the question
In order to leave comments, you need to log in
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
Is it even worth partitioning the disk?
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 questionAsk a Question
731 491 924 answers to any question