Hi all,
I have setup CentOS Linux release 7.0.1406 (Core), 64bit
In addition to my core setup, I have an extended partition with /dev/sda5 & /dev/sda6
and these will be used as addition storage space and share directories.
/dev/sda5 I wanted to use as a storage pool, so to speak, for when my /var directory fills up. /var is already on a separate partition, and the contents fluctuate at times.
To use /dev/sda5 as an extended space for /var
is this an efficient way to do this, and is there something missing in this setup?
Make a directory on /dev/sda5
and have that mounted as /new-dir
and edit /etc/fstab to mount at boot.
Changed the SELinux contexts of /new-dir to match /var
Then make a directory for http or ftp /new-dir/http
Change the SELinux contexts of /new-dir/http to match /var/www/html
Then in /var/www/html/directory
Create a sym-link to /new-dir/http
Ensure any SELinux contexts are correct
And then test and go?
Best,
Dave
Using additional partiions as pools for var
-
- Posts: 8
- Joined: 2015/01/01 16:35:53
Re: Using additional partiions as pools for var
That looks about right, except for anything that I've forgotten!
If you're using LVM you can just extend the existing var LVM VG group with the new space...
If you're using LVM you can just extend the existing var LVM VG group with the new space...
Re: Using additional partiions as pools for var
I would add that it'll simply things immensely if you just mount the new filesystem directly on the place you want it. No mucking about with symlinks, no special selinux stuff required (except perhaps one restorecon -r once it's mounted the first time).
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
-
- Posts: 8
- Joined: 2015/01/01 16:35:53
Re: Using additional partiions as pools for var
Thanks for the responses. Yeah, it was after I set the partition up as is, I thought about extending my lvm group with the new allocated partition.
And actually, the only reason this came up is, my limited knowledge with http and ftp configuration files. I was unsure of how to use other directories with http and ftp to have the files visible when accessed on the network. The only way I know how to have the files visible is to set them up in the default locations of /var/ftp/. and /var/http/.
And actually, the only reason this came up is, my limited knowledge with http and ftp configuration files. I was unsure of how to use other directories with http and ftp to have the files visible when accessed on the network. The only way I know how to have the files visible is to set them up in the default locations of /var/ftp/. and /var/http/.
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Re: Using additional partiions as pools for var
CentOS does not use /var/http.
Are you running a control panel?
Are you running a control panel?
-
- Posts: 8
- Joined: 2015/01/01 16:35:53
Re: Using additional partiions as pools for var
Sorry, I meant /var/www/html/