I did $ df -h and it threw this:
Filesystem Size Used Avail Use% Mounted on
/dev/md1 9.7G 1.7G 7.6G 18% /
/dev/md2 683G 211M 649G 1% /home
tmpfs 4.0K 0 4.0K 0% /dev/shm
The problem is that my websites are located in /var/www, which I guess belongs to /, and they won't be able to use the disk space for things like images, that need to be placed inside the webroot, eg: /var/www/my_site/public_html/
What can I do about it? Should I move disk space from /home to / ? How? Or move the sites to /home ? Any thoughts?
Im using centos 5.5 and apache 2
You can remount /home/www in /var/www use bind mounts.
Stop apache:
Add in fstab line:
Copy directory:
Mount all:
Start apache:
Easier way will be to move the data to the larger partition, and symlink back into place.
It looks like /dev/md2 is quite large, and perhaps should be carved-up using LVM? From the looks of things you have Metadevices setup, which I am guessing is basically your software RAID. you could dedicate md2 to LVM, and split it up into any number of Logical Volumes (LVs). The only difficulty is your /home which you would have to move, temporarily to get /dev/md2 established under LVM. I find that with LVM management of partitions and filesystems becomes a snap. It is always better to use LVM from the get-go, but there is no reason why you could not just migrate to it, partially or completely.