Adding additional hard disk drives to a Linux server
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Adding additional hard disk drives to a Linux server
I am looking to get a dedicated linux server for a site I will be running. I am new to dedicated servers and Linux. Since media will be added on a regular basis I am sure at some point I will need to add additional disk drives depending on when I start needing the extra space of course.
It seems a lot of hosting providers will offer say 500gb disk space. Im sure it is pretty easy to contact them and add lets say another 500gb or 1gb disk drive to my hosting package. How does this work with the file directory structure that is already in place?
Lets say the site has been coded to automatically save and read uploaded media in the /media directory and I am running low on server space. I would like to add more drives but not have to create any new partitions, folders or change code which would then affect existing media.
So is this possible and how would one go about doing this? What server options should I be looking for..(raid etc.)?
Again I am new to this and any info would be appreciated.
Here is my humble opinion on purchasing dedicated servers;
I always purchase 2+X hard drives on the initial purchase page:
* 2x73GB 10,000RPM or whichever drive with a small size and request from the datacenter guys to build a RAID 1 on these 2 disks and install the system on it
* X additional drives are for my applications.
After the server gets ready I build a RAID-(X) on the additional drives and create 1 LVM VG on this RAID device and expand it when needed.
This way I am sure there will be 0-downtime in case of a system disk failure and no-data loss in case of any disk failures.
With a dedicated server, /var would need to be big enough to keep your logs. /home, or wherever your data is, can grow exponentially. /tmp also needs some size. The rest of the system stays basically the same size no matter what software you put on.
I would second the raid idea, and consider regular backups. How are they going to be done?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.