LinuxQuestions.org
Visit Jeremy's Blog.
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, 10: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, 10:54 PM   #2
suicidaleggroll
Senior Member
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 3,210

Rep: Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139
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 10:55 PM.
 
Old 09-24-2012, 10: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, 11:01 PM   #4
suicidaleggroll
Senior Member
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 3,210

Rep: Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139
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 11:02 PM.
 
Old 09-24-2012, 11: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, 11:06 PM   #6
suicidaleggroll
Senior Member
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 3,210

Rep: Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139
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, 11: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, 11:09 PM   #8
suicidaleggroll
Senior Member
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 3,210

Rep: Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139
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


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


All times are GMT -5. The time now is 09:28 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration