LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 08-31-2014, 07:22 AM   #1
deepsecurity
LQ Newbie
 
Registered: Jun 2013
Distribution: RHEL, Fedora
Posts: 16

Rep: Reputation: Disabled
Question Fedora Web Srv & Shared Storage


Hello Everyone,

I have an apache web server running on a Fedora box. I also have a Free-NAS storage and I am using nfs sharing to share & mount a folder from NAS to the Web Server.

Let's say that I have 5 different websites. Should I share a folder from NAS for each website or is it ok to share 1 folder, put all the websites in this? I mean which one is the best common way to do it? Is it ok to use NFS for sharing or is there any better option?

Actually what I want to do is that easily switch web servers if anything happens to one of them. If I have 2 web servers and one of them is down, I will move the mounting to the other one and keep the websites running.

Thanks in advance,

DP.
 
Old 08-31-2014, 06:11 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by deepsecurity View Post
Actually what I want to do is that easily switch web servers if anything happens to one of them. If I have 2 web servers and one of them is down, I will move the mounting to the other one and keep the websites running.
Depending on what you actually use you could put a load balancer or a caching proxy (or any other equivalent) in front of the web servers. This will not only spread load over both machines but also load balancers and caching proxies can sense a web server being unavailable and in the case of a caching proxy you also gain caching of any static content. Then, if you mount your shares on both web servers, the data will be available as long as the NAS doesn't become unavailable. Sounds OK?
 
1 members found this post helpful.
Old 09-01-2014, 02:34 AM   #3
deepsecurity
LQ Newbie
 
Registered: Jun 2013
Distribution: RHEL, Fedora
Posts: 16

Original Poster
Rep: Reputation: Disabled
unSpawn, thank you very much, sounds great. I will use a load balancer but I want to make sure that I have the right idea or not.
It seems like I am thinking right.

If I use some shares for each web sites, like 10 or 20 shares and mount it to my web servers from NAS, will it be any issue for performance of the webserver?
I mean is it better to use only 1 share and then create subfolders for the web sites? I think I am having some permission issues if I use only 1 share from NAS.

Regards,

DP
 
Old 09-01-2014, 04:55 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by deepsecurity View Post
If I use some shares for each web sites, like 10 or 20 shares and mount it to my web servers from NAS, will it be any issue for performance of the webserver?
It depends on what you're storing on the NAS plus that's actually something you could test...


Quote:
Originally Posted by deepsecurity View Post
I mean is it better to use only 1 share and then create subfolders for the web sites? I think I am having some permission issues if I use only 1 share from NAS.
Having separate shares basically isolates users plus it is more convenient to be able to attach separate mount points elsewhere. Besides, imagine your single mount point goes down ;-p (That also exposes the NAS as a Single Point of Failure.)
 
1 members found this post helpful.
Old 09-04-2014, 02:04 AM   #5
deepsecurity
LQ Newbie
 
Registered: Jun 2013
Distribution: RHEL, Fedora
Posts: 16

Original Poster
Rep: Reputation: Disabled
Thanks a lot UnSpawn, it's clear.
 
  


Reply

Tags
apache, nas, nfs



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
[SOLVED] Plus and minus - Virtual web host accounts in /var/www or /srv/www mounts Tim Abracadabra Linux - Newbie 3 07-25-2014 04:23 AM
SLES, Samba, & ldap SRV woes madmysticmonk Linux - Networking 1 10-18-2012 02:43 AM
Redhat Clustering & Shared storage arunabh_biswas Linux - Enterprise 8 06-10-2011 02:32 PM
Software for a CentOS or RHEL x86_64 for web storage & photos rhbegin Linux - Server 7 01-28-2010 08:20 AM
MS Exchange + Linux Web Srv one domain? vaworx Linux - Networking 6 05-09-2006 04:28 PM

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

All times are GMT -5. The time now is 08:09 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
Open Source Consulting | Domain Registration