 |
 |
 |
 |
| Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc. |

21st February 2006, 07:58 PM
|
|
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
|

21st February 2006, 08:28 PM
|
 |
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".
|

21st February 2006, 09:08 PM
|
|
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
|

21st February 2006, 09:46 PM
|
|
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?
|

21st February 2006, 10:04 PM
|
 |
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".
|

21st February 2006, 10:25 PM
|
|
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?
|

21st February 2006, 11:00 PM
|
 |
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".
|

22nd February 2006, 11:02 AM
|
|
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
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 14:03 (Tuesday, 21-05-2013)
|
|
 |
 |
 |
 |
|
|