LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 09-24-2012, 09:50 PM   #1
LnxNeophyte
LQ Newbie
 
Registered: Sep 2012
Posts: 7

Rep: Reputation: Disabled
When a Hard Drive nears 100% capacity will it use another Hard Drive


My 1 hard drive Disk /dev/sda is 95% filled
if I mount anothe hard drive Disk /dev/sdb that is empty

Will Linux fill sda at 100% and then coninue with sdb?

I dont want server errors if I fill sda at 100%
or will it start using sdb when I mount it


I want to use both drives for webspace on the same site.
 
Old 09-24-2012, 09:54 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
No. You must mount /dev/sdb to a specific location in the filesystem. Any files written to that location after mounting the drive will be placed on /dev/sdb, but files written elsewhere on the filesystem will still go on /dev/sda.

If you have a large directory on your filesystem, you could move that onto /dev/sdb and mount it in the original place to free up room on /dev/sda.

Last edited by suicidaleggroll; 09-24-2012 at 09:55 PM.
 
Old 09-24-2012, 09:57 PM   #3
LnxNeophyte
LQ Newbie
 
Registered: Sep 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by suicidaleggroll View Post
No. You must mount the drive to a specific location in the filesystem. Any files written to that location after mounting the drive will be placed on the drive, but files written elsewhere on the filesystem will still go on the original drive.
Both drives are for webspace I want the 2 TB fo space on 2 diferent hard drives, can it be done?
can I expand my webspace with 2 hard drives
 
Old 09-24-2012, 10:01 PM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
You could have set it up that way originally, but at this point it's going to take a lot of work (re-partitioning, reformatting, setting up LVM, etc). The system will be down while you set it up and you'll need to back up everything to another device. It will not be a quick or seamless transition.

Last edited by suicidaleggroll; 09-24-2012 at 10:02 PM.
 
Old 09-24-2012, 10:03 PM   #5
LnxNeophyte
LQ Newbie
 
Registered: Sep 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by suicidaleggroll View Post
You could have set it up that way originally, but at this point it's going to take a lot of work (re-partitioning, reformatting, setting up LVM, etc). The system will be down while you set it up, it will not be a quick or seamless transition.

WWHATT??? then how do Websites add more space when they need to exapnd my website is at 95% capacity
 
Old 09-24-2012, 10:06 PM   #6
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
They set things up to allow that functionality from the beginning. It's all about planning and setting up the system for its intended usage.
 
Old 09-24-2012, 10:07 PM   #7
Neron.L
LQ Newbie
 
Registered: Sep 2012
Posts: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by LnxNeophyte View Post
My 1 hard drive Disk /dev/sda is 95% filled
if I mount anothe hard drive Disk /dev/sdb that is empty

Will Linux fill sda at 100% and then coninue with sdb?

I dont want server errors if I fill sda at 100%
or will it start using sdb when I mount it


I want to use both drives for webspace on the same site.
Check whether LVM is used in your system, if yes, then you can extend your root VG by vgextend with /dev/sdb.
 
Old 09-24-2012, 10:09 PM   #8
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by Neron.L View Post
Check whether LVM is used in your system, if yes, then you can extend your root VG by vgextend with /dev/sdb.
True. I assumed the system wasn't already set up in LVM, if it was that will simplify things.
 
  


Reply



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
[SOLVED] How does one determine a USB hard drive capacity in sectors? Equinn Linux - Software 2 03-25-2011 05:40 AM
Capacity issues of hard drive bzlaskar Linux - Hardware 6 05-18-2010 11:35 PM
windows/linux hard drive capacity Vensan Linux - Hardware 2 01-19-2007 10:39 AM
Hard Drive showing incorrect capacity xer Linux - Hardware 7 12-27-2006 10:03 PM
Hard Drive capacity twantrd Linux - General 2 10-12-2004 02:04 PM

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

All times are GMT -5. The time now is 10:44 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
Open Source Consulting | Domain Registration