LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-05-2013, 07:44 AM   #1
!! hack-back !!
Member
 
Registered: Nov 2009
Posts: 183

Rep: Reputation: 2
multiple partition on same folder


hello ,
i have centos6 installed Apache
i have 2 separate hdd i want to make them as 1 folder to use for apache directory, /var/www/html
any tutorial to do that please?
thanks
 
Old 02-05-2013, 08:00 AM   #2
sangfroid
LQ Newbie
 
Registered: Mar 2012
Posts: 10

Rep: Reputation: Disabled
The answer is based upon assumption that you don't have LVM. If you have LVM, then just extend it. If you don't have it, then following is the only option:

1. First mount the new drive to some location such as /newdrive.
2. Next, create a sym link to it from /var/www/hml. Eg:
ln -s /var/www/html/newdrive /newdrive

That way, you can store contents in /var/www/html/newdrive if you wish to use new drive or /var/www/html (except newdrive) if you wish to use old drive.
 
Old 02-05-2013, 08:05 AM   #3
!! hack-back !!
Member
 
Registered: Nov 2009
Posts: 183

Original Poster
Rep: Reputation: 2
i want to use 2 drives for 1 folder and that folder i will use for apache
LVM is installed but how i can use it to do that ?
 
Old 02-05-2013, 08:18 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.10, Centos 7.5
Posts: 17,655

Rep: Reputation: 2484Reputation: 2484Reputation: 2484Reputation: 2484Reputation: 2484Reputation: 2484Reputation: 2484Reputation: 2484Reputation: 2484Reputation: 2484Reputation: 2484
http://tldp.org/HOWTO/LVM-HOWTO/ or chap 9 http://www.linuxtopia.org/online_boo...ion/index.html
 
Old 02-05-2013, 08:51 PM   #5
!! hack-back !!
Member
 
Registered: Nov 2009
Posts: 183

Original Poster
Rep: Reputation: 2
thank you , i will take a look
 
Old 02-05-2013, 08:55 PM   #6
!! hack-back !!
Member
 
Registered: Nov 2009
Posts: 183

Original Poster
Rep: Reputation: 2
is there any more useful link ? the first one is for graphical mode and the second is difficult
 
Old 02-05-2013, 09:40 PM   #7
!! hack-back !!
Member
 
Registered: Nov 2009
Posts: 183

Original Poster
Rep: Reputation: 2
http://www.howtoforge.com/linux_lvm
 
  


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
make multiple folder on samba linux & each folder can be access each person only Aneesh.T .S Linux - Server 1 01-31-2013 06:01 PM
[SOLVED] Seperating Home folder from Root Folder to a new partition. baxzius Linux - Newbie 5 08-01-2011 03:26 PM
Multiple . and .. in a folder ador Linux - Newbie 4 04-17-2009 12:07 AM
Shared folder for multiple users droidix Linux - General 2 07-18-2008 10:44 PM
Need to decrease a folder and create a new partition from the partition itself.... guy_ripper Linux - Software 2 10-29-2006 10:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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