hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Dedicated Server : Question about second HDD
Reply

Dedicated Server Current and past experiences with dedicated server providers, bandwidth, and server performance. Review managed and unmanaged dedicated web servers, discuss both Windows and Unix dedicated server solutions, and discuss dedicated hosting providers. If your service is unavailable, please click here.
Forum Jump

Question about second HDD

Reply Post New Thread In Dedicated Server Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 12-17-2010, 08:53 AM
sarsh11 sarsh11 is offline
WHT Addict
 
Join Date: Sep 2009
Posts: 105

Question about second HDD


Not sure if this is the right place to ask, but I have a query regarding the second HDD I have on my server.
I have 2x70GB 15k SAS drives on my server of which only one is mounted, and I need to find a way to mount the second disk. But here is the catch, I need the second disk to actually store the files from /home/domain/public_html/hostedfiles i.e when a file is uploaded/downloaded to the directory hostedfiles I need it to actually be stored on the second HDD rather than the one which is currently being used by my website and server.

I serve quite a lot of files from this directory and I don't want it to slow down my main website when there are lot of concurrent downloads and I suppose having a setup like I mentioned above would work towards that. So is it possible to do what I mentioned above? If so how?

Thanks.

Reply With Quote


Sponsored Links
  #2  
Old 12-17-2010, 08:56 AM
DeanoC DeanoC is offline
Junior Guru
 
Join Date: Oct 2010
Location: Kent, UK
Posts: 184
Simply mount the 2nd drive into whatever folder you like. Then all access to that folder will go to the 2nd drive.

in /etc/fstab set the 2nd drive mount point to the folder you want to host from and thats about all there is to it.

Edit:
If you more worried about speed and reliability then specifically having a large folder, you could just RAID1 the 2 drives. Faster reads and safer, as everything on disk 1 will be duplicated onto disk 2.

__________________
Cloud Pixies Ltd. Adding some Pixie magic into the Cloud!
Cloud Backup - Let the pixies take care of your precious data on our managed HieRAIX storage servers.
Storage Servers - Your very own pixie powered HieRAIX storage server, at your place or ours.


Last edited by DeanoC; 12-17-2010 at 08:58 AM. Reason: typo
Reply With Quote
  #3  
Old 12-17-2010, 09:47 PM
CoolKoon CoolKoon is offline
Junior Guru Wannabe
 
Join Date: Oct 2007
Posts: 78
Exactly. All you have to do is partition the second drive first, then just simply mount it using the following:

Code:
mount /dev/sdb1 /home/domain/public_html/hostedfiles
Also, to make it permanent, make sure you update your /etc/fstab file as well.

The info mentioned above is for the case you've described first. If you want to have a general increase in speed, you should really consider creating a mirrored RAID array from your discs (I think it's called RAID 1). You'll only get half the capacity (since everything will be copied to the second disc as well), but it'll be faster and provides some redundancy as well (i.e. if one of the discs crashes, you'll just replace it and that's it). You'd need to backup your data and completely reinstall your system to do this though.

__________________
I have a BE NICE policy. Well, at least for those who are nice to me as well....

Picking on noobs doesn't mean you aren't one of them.

Reply With Quote
Sponsored Links
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
[STORAGE SERVERS]_4TB HDD => 99/m__16TB HDD =>349/m__32TB HDD => 499/m - UNBEATABLE!! McRox Dedicated Hosting Offers 1 12-14-2010 10:46 AM
STORAGE SERVERS!_4TB HDD @99/m__16TB HDD @349/m__32TB HDD @499/m__48TB HDD @849/m!! McRox Dedicated Hosting Offers 2 10-04-2010 06:41 PM
STORAGE SERVERS!_4TB HDD @99/m__16TB HDD @349/m__32TB HDD @499/m__48TB HDD @849/m!! McRox Dedicated Hosting Offers 1 09-27-2010 01:47 PM
[STORAGE SERVERS]_4TB HDD @99/m__16TB HDD @349/m__32TB HDD @499/m__48TB HDD @849/m!! McRox Dedicated Hosting Offers 0 09-19-2010 10:15 AM
[RackEdge] SPECIAL -> 4TB HDD @ 99/m, 16TB HDD @ €349, 32TB HDD @ €499/m - 50TB B/W!! McRox Dedicated Hosting Offers 2 09-12-2010 11:06 AM

Related posts from TheWhir.com
Title Type Date Posted
The Value of Your Intellectual Property Blog 2013-05-06 17:43:13
Joomla Hosting Study Shows Speed, Uptime Top Selling Points of a Web Host Web Hosting News 2012-11-07 15:06:36
10-14-2012 Roswell, NM - The Hosting Shift Blog 2012-10-24 15:14:40
Rackspace Blog Looks at Easy Outsourcing for App Development Blog 2012-03-05 19:07:48
Blackberry the UnCloud Blog 2011-10-14 15:28:54


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?