Fedora Linux Support Community & Resources Center
  #1  
Old 21st February 2006, 07:58 PM
cjstm Offline
Registered User
 
Join Date: Feb 2006
Posts: 5
adding additional hard drive

Hello everyone, i am running fc4 apache server and have run out of hard drive space and have another to place in the box. I know how to physically install the hd, and i know how to format the hard drive just not sure how to set up my server so it will serve off that hard drive also. all my document are located in /var/www/html, i think i have to make a symbolic link to do this but not sure how to do it. any help would be greatly appreciated
Reply With Quote
  #2  
Old 21st February 2006, 08:28 PM
linmix's Avatar
linmix Offline
Registered User
 
Join Date: Jan 2005
Posts: 626
Do you wish to use the new hard drive as an extention of /var or as your new /var partition?
Provided var already resides on its own partition, read up on the dd command to copy the data into the new partition and then update your /etc/fstab to reflect the new location of var. Stop any services etc. that may be accessing /var, unmount it and remount the new partition.

If you want to use links the command is ln, and since only soft links can be made between different partitions use 'ln -s TARGET [LINK_NAME]'
__________________
You can find out what book a person needs by asking the question, "Do you want to be a Muggle or a Wizard?"

(1) If they answer "Wizard", then you give them RUTE.
(2) If they answer "Muggle", then you give them "Linux for Dummies."
(3) If they answer "What's a Muggle?", then you give them "Harry Potter".
Reply With Quote
  #3  
Old 21st February 2006, 09:08 PM
cjstm Offline
Registered User
 
Join Date: Feb 2006
Posts: 5
no don't want to move old file onto new hard drive want to be able to put additional server content on the new harddrive, i guess what i am asking is how do make the server serve content off of the old and new harddrive
Reply With Quote
  #4  
Old 21st February 2006, 09:46 PM
cjstm Offline
Registered User
 
Join Date: Feb 2006
Posts: 5
ok been doing alot of reading, but i think i got it. Would this be correct

Navigate to /var/www/html and from the command prompt enter this command

ln-s path to hd2 / link name

Will this create a link between /var/www/html and hd2 that way when the server gets a request for content on hd2 it will be served up?
Reply With Quote
  #5  
Old 21st February 2006, 10:04 PM
linmix's Avatar
linmix Offline
Registered User
 
Join Date: Jan 2005
Posts: 626
should be:
ln-s /path/to/hd2 /path/to/link/name
e.g. ln -s /mnt/hdb1 /var/www/html

BUT, that means that ALL the content of the folder html should go on the new drive!
__________________
You can find out what book a person needs by asking the question, "Do you want to be a Muggle or a Wizard?"

(1) If they answer "Wizard", then you give them RUTE.
(2) If they answer "Muggle", then you give them "Linux for Dummies."
(3) If they answer "What's a Muggle?", then you give them "Harry Potter".
Reply With Quote
  #6  
Old 21st February 2006, 10:25 PM
cjstm Offline
Registered User
 
Join Date: Feb 2006
Posts: 5
so how do I config apache to serve content off of both hda1 and hda2?

this is just a guess but would configuring an alias or maybe a virtural host solve this problem?
Reply With Quote
  #7  
Old 21st February 2006, 11:00 PM
linmix's Avatar
linmix Offline
Registered User
 
Join Date: Jan 2005
Posts: 626
the first answer that comes to mind is using LVM partitioning. Thaa way a single partition can span more than one drive...

as an in-between sollution you might also create links for a number of folders below /var/www/html
__________________
You can find out what book a person needs by asking the question, "Do you want to be a Muggle or a Wizard?"

(1) If they answer "Wizard", then you give them RUTE.
(2) If they answer "Muggle", then you give them "Linux for Dummies."
(3) If they answer "What's a Muggle?", then you give them "Harry Potter".
Reply With Quote
  #8  
Old 22nd February 2006, 11:02 AM
cjstm Offline
Registered User
 
Join Date: Feb 2006
Posts: 5
yep LVM sound like what i need, now i have to go to school and learn how to do this with out destroying my server content. Thanks for answering the post. I appreciate all the help
Reply With Quote
Reply

Tags
adding, additional, drive, hard

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Added an additional hard drive..... jgutty Using Fedora 2 14th February 2009 08:59 PM
Adding a second hard drive. wavemaker Using Fedora 6 14th March 2008 04:08 AM
Adding a new Hard Drive bydersjoint Hardware & Laptops 22 16th July 2007 08:15 AM
Adding a new hard drive mlino Installation and Live Media 3 7th November 2006 09:43 PM


Current GMT-time: 14:03 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat