Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Adding Raid 5 partition: msg#00189

Subject: Re: Adding Raid 5 partition
This is a multi-part message in MIME format.
Christofer C. Bell wrote:
On 4/23/05, stuart <stuart@xxxxxxxxxxx> wrote:
  
I have added 3 extra disks to my system, which i have created a new
raid5 device on /dev/md0.  I wish to use this device to serve webpages,
but when i change the document root directive in my httpd.conf, and
restart the httpd server, i get the error that this directory does not
exist. I have properly labeled md0 with "e2label" command and added the
approriate stanza in my "/etc/fstab" to mount the directory
automatically on boot. I have Selinux running on targeted policy and i
have attempted to use "fixfiles" and "restorecon" so that Selinux
recoginizes it.. But i am yet to have success. I have also tried just
using a normal ext3 partition, that i created after installation, and i
get the same error.
    

/dev/md0 is a metadevice that describes a raid5 disk volume, it's not
a directory.  While I'm not clear on what exactly you're doing from
your post, I have a sneaking suspicion that you've not mounted the
device anywhere.  What I believe you want to do is something akin to
the following:

# mkfs -t ext3 /dev/md0
# mount -t ext3 /mnt
# service stop httpd
# cp -a /var/www/html/* /mnt
# rm -rf /var/www/html/*
# umount /mnt
# mount -t ext3 /dev/md0 /var/www/html
# restorecon -R -v /var/www/html
# service httpd start

This creates an extended 3 filesystem on the new raid device, mounts
it in a temporary location, copies your existing web content to it,
removes the web content from the old location, and the replaces it
with the new raid device.  The restorecon is self-explanitory as are
the service commands.

If this isn't the issue, can you please give some more detail on the
problem you're experiencing?

  
Hey Chris thanks for the help, that is essentialy what i had done, the directory was mounted, but i had mounted it on a new partition directory named "/www" and then had changed my "/etc/httpd/conf/httpd.conf"  to reflect the new document root settings, i ran the "restorecon -R -v /www" and then reloaded the HTTPD server, the error i received was that none of my new directory structure existed. I then tried as you posted,  to mount my new MD0 device in its the position "/var/www" , "mount -t ext3 /dev/md0 /var/www" and ran "restorecon -R -v /var/www"  this seems to work as Apache loaded fine, where as me labeling  "/dev/md0" as "/www" and running "restorecon -R -v /www" didn't seem work for me. I know by default of course Apache has its core directory stored in "/var/www"

-- 
RHCE - RHEL4
CERT# 804005316914471
https://www.redhat.com/training/certification/verify

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    gcc.libstdc++.c...    solaris.opensol...    information-ret...    misc.misterhous...    web.catalyst.ge...    apache.webservi...    redhat.release....    hardware.lirc/2...    kernel.autofs/2...    technology.sust...    linux.vdr/2003-...    editors.lyx.gen...    org.user-groups...    netbsd.devel.pk...    xdg.devel/2004-...    version-control...    jakarta.slide.d...    debian.packages...    creativecommons...    ports.ppc.embed...    bug-tracking.bu...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe