The question is raised:
Kaiping District Resources Windows R2 Server hangs a memory, divided into two zones, each zone is 3TB of space, the current resources are saved in one of the partitions, temporarily known as G disk, G disk now save the resources of about 1TB, because there are other things stored, there is less space 300GB, The administrator proposed to distribute the storage resources, such as disk H partition for us to use, can use 2TB of space.
Problem Resolution:
Now the disk needs to be saved directories include: Material, thumbs,preview,paperpng,paperparsed,paperprimive,m3u8, etc., the largest is Material and Preview and m3u8
The simplest way is to divide the preview and m3u8 into disk H and save the material to the G-disk, which
Mount-t cifs-o username='Administrator', password='* * * * * * // 10.174.192.189/down
Such a method executes several times, the different disk partitions G and h on the above several directories, respectively mount to/usr/local/tomcat7/webapps/dsideal_yy/html/down under different directories, basically can solve the problem of Kaiping.
The way to do this, you need to copy resources to different partitions, it is generally necessary to stop the service before the line. Starting in Friday night, the service needs to be resumed in the morning of Monday. You can achieve an average distribution of disks on two partitions.
Attention:
1, need to do a test at a time, a large directory copy from one district to another area, test the copy speed, good evaluation from Friday night to Monday morning is not able to complete.
2, need to modify a handler, because it needs to know which directory in Windows under which disk!!!!
Deep thinking:
What if there's more than two disks? You can also consider using the Linux soft link method,
Ln-s/usr/local/mnt1/00/usr/local/tomcat7/webapps/dsideal_yy/html/down/material/00
Ln-s/usr/local/mnt1/01/usr/local/tomcat7/webapps/dsideal_yy/html/down/material/01
Ln-s/usr/local/mnt1/02/usr/local/tomcat7/webapps/dsideal_yy/html/down/material/02
In this case, there are a few pieces of the mount to/usr/local/mnt-n can, but also material open, theoretically feasible, but the reality of the user to provide a number of disk opportunities should not be too much, just as a brainstorming think about it, there is the first solution is completely feasible.
Kaiping District Education Bureau Resources distributed Storage Solution