LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   multiple partition on same folder (https://www.linuxquestions.org/questions/linux-server-73/multiple-partition-on-same-folder-4175448689/)

!! hack-back !! 02-05-2013 07:44 AM

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

sangfroid 02-05-2013 08:00 AM

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.

!! hack-back !! 02-05-2013 08:05 AM

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 ?

chrism01 02-05-2013 08:18 PM

http://tldp.org/HOWTO/LVM-HOWTO/ or chap 9 http://www.linuxtopia.org/online_boo...ion/index.html

!! hack-back !! 02-05-2013 08:51 PM

thank you , i will take a look

!! hack-back !! 02-05-2013 08:55 PM

is there any more useful link ? the first one is for graphical mode and the second is difficult

!! hack-back !! 02-05-2013 09:40 PM

http://www.howtoforge.com/linux_lvm


All times are GMT -5. The time now is 02:21 PM.