LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-15-2017, 08:03 AM   #1
Kgeil
Member
 
Registered: Mar 2014
Posts: 32

Rep: Reputation: Disabled
Advice on volume configuration?


Hi, I'm installing Ubuntu server on a server with 3 Tb of space. It will be used to run ResourceSpace Digital Asset Management, on a LAMP stack. I would like to have the server set up so that the data sits on a volume separate from critical operating system files, in case it ever fills up. I'm tempted to just put /var on its own volume, so that both mysql and the www root (where the data will be stored by default)are on that volume, but that's only because it looks easy to do during operating system installation.

I would appreciate any feedback on what is considered the best way to do this. Is it better to create a separate volume for the /home directory and just use a symbolic link for the data I want to store in that separate volume? Would it be better still to just create a partition called /Data, and put it there, in the hope that future admins might easily make sense of the setup?


Any advice is greatly appreciated.

Thanks,
Kevin
 
Old 06-15-2017, 08:19 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,148

Rep: Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935
Define what you mean by "volume". 3T is nothing these days - just a USB portable disk.
Best might be LVM - then you don't have to pay for any inappropriate initial sins. Even if you have separate physical volumes, LVM is probably your best choice by some margin.
 
Old 06-15-2017, 08:27 AM   #3
Kgeil
Member
 
Registered: Mar 2014
Posts: 32

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
Define what you mean by "volume". 3T is nothing these days - just a USB portable disk.
Best might be LVM - then you don't have to pay for any inappropriate initial sins. Even if you have separate physical volumes, LVM is probably your best choice by some margin.
Yes, I do mean LVM. All 3T will be in 1 partition. Is there a common convention for doing what I'm looking to do (Running a LAMP based application that will hold significant amounts of data)?

Thanks,
Kevin
 
Old 06-15-2017, 09:56 AM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,078
Blog Entries: 4

Rep: Reputation: 3177Reputation: 3177Reputation: 3177Reputation: 3177Reputation: 3177Reputation: 3177Reputation: 3177Reputation: 3177Reputation: 3177Reputation: 3177Reputation: 3177
You simply define two distinct physical storage pools and assign disk drives to each one as you see fit. Then, allocate the logical volumes corresponding to each mount-point so that they initially draw from separate pools. (You can change this decision at any time in the future, drawing from more-than-one pool if need be.)
 
Old 06-15-2017, 10:22 AM   #5
Kgeil
Member
 
Registered: Mar 2014
Posts: 32

Original Poster
Rep: Reputation: Disabled
That much I understand.
My only question is: Is there a common practice for where to put the data files for a web application that runs on a LAMP stack, so that it can grow indefinitely, and not crash the system if the volume is full?
 
Old 06-16-2017, 12:52 PM   #6
Yves.legault
LQ Newbie
 
Registered: Dec 2012
Location: Montreal, Quebec, Canada
Distribution: Debian
Posts: 20

Rep: Reputation: Disabled
LVM is what you need.
It will grow indefinitely, giving you room to adapt the machine to your future needs.
 
Old 06-16-2017, 06:56 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,148

Rep: Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935
I don't know about "common practice", but I simply figure out where the (most) data is going to be held, and hive that off to a separate partition/lv. Add it to fstab. Done.
"Best practice" seem to be an amorphous concept - some new-beaut theory gets proposed, and "best practice" morphs to suit. What was once accepted by the crowd becomes passe. I just follow what seems sensible.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Advice on LVM planning. Disadvantage to more Volume Groups? Vanyel Linux - Server 5 04-28-2009 07:46 PM
ALSA Configuration on the fly for Volume Balancing varun12598 Linux - Newbie 0 04-08-2008 12:16 AM
Keyboard volume knob configuration-cannot change volume. Ariox Ubuntu 1 03-22-2007 02:06 PM
Need Advice; 3 NIC's; High Volume Mail Server; Sendmail; Iptables? Killer Bassist Linux - Networking 3 12-04-2005 11:40 PM
Unmounted Volume, EISA Configuration, 31MB itsjustme Linux - Laptop and Netbook 1 12-10-2003 06:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration