Knowledgebase

Portal Home > Knowledgebase > Articles Database > Filesystem for software RAID 1


Filesystem for software RAID 1




Posted by HD Fanatic, 01-08-2015, 10:14 PM
Got a new server running on CentOS 6 64-bit with software RAID 1. I had them re-image the server to decrease the space for the /var partition. Before it was showing: Filesystem Size Used Avail Use% Mounted on /dev/md4 1.9G 396M 1.4G 23% / tmpfs 3.9G 0 3.9G 0% /dev/shm /dev/md0 180M 61M 110M 36% /boot /dev/md5 847G 591M 804G 1% /home /dev/md3 1.9G 3.2M 1.8G 1% /tmp /dev/md1 19G 5.7G 13G 32% /usr /dev/md2 38G 496M 36G 2% /var /dev/sdd1 917G 808M 870G 1% /backup /dev/sda1 118G 412M 111G 1% /var/lib/mysql And after: Filesystem Size Used Avail Use% Mounted on /dev/md5 2.0G 394M 1.5G 21% / tmpfs 3.9G 0 3.9G 0% /dev/shm /dev/sdd1 917G 72M 871G 1% /backup /dev/md0 190M 57M 124M 32% /boot /dev/md6 880G 409M 834G 1% /home /dev/md4 2.0G 3.1M 1.9G 1% /tmp /dev/md1 20G 5.5G 14G 30% /usr /dev/md3 9.8G 473M 8.8G 6% /var /dev/sda1 118G 354M 111G 1% /var/lib/mysql the /dev/md partitions are not in consecutive order, will that pose any issues later?

Posted by Srv24x7, 01-09-2015, 02:20 AM
Hi, No, the order will not cause any issue. However, the space will certainly cause issue. You should be having separate partition for /var especially when you are running cPanel, not advised. /var is where cPanel stores some useful data and on top, MySQL is also in the same directory. With increase in Database size, you will be in trouble in the future. If it is new one, get it re-sized again. This time don't use any other partition. Use /boot /, and swap /home (optional). Keep these 3 only.

Posted by HD Fanatic, 01-09-2015, 02:24 AM
Is it easy to change the order without causing downtime? MySQL is on a separate drive so 10G should be plenty, /var only used 5G on old server.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read


Language:

Contact us