[EP-tech] storage capacity is insufficient

David R Newman drn at ecs.soton.ac.uk
Tue May 25 10:11:53 BST 2021

Hi Agung PW,

Yes, this is something we very much accounted for, in fact since the 
invent of VMs and Logical Volume Manager (LVM) [1] this has become less 
of a problem.

What you need to do is add your new disk.  You can either mount it at 
/usr/share/eprints3/archives/<ARCHIVE_NAME>/documents/disk1 or mount it 
wherever and symlink it from 

ln -s /path/to/new/disk 

You also need to make sure that this directory is writeable by user who 
is running the webserver and ideally the eprints user as well, this is 
often best done by ensure the group is also set to eprints and there are 
group write privileges:

chown eprints:eprints 

chmod g+w /usr/share/eprints3/archives/<ARCHIVE_NAME>/documents/disk1

If you are symlinking you should also do this on the mounted directory 
as well. (i.e. /path/to/new/disk in the example above).

I don't think you need to do anything beyond this for EPrints to start 
using the new disk as it has built-in logic to look for the directory 
disk with the highest number after it.  However, to be certain I would 
reload you webserver and create a new test eprint item and check to see 
it is using the new documents/disk1 directory after upload a test file.

One thing to double-check is that the new disk is automatically mounted 
in the same place after a reboot.  Otherwise you will have problems 
saving uploaded files to disk and probably more problems besides, as 
eprint revision files will not be able to be written to disk either.


David Newman

[1] https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FLogical_Volume_Manager_&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C920a2627ec61412e085008d91f5d244b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637575307178787148%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=p7oortuDDR64dlpi5puwhYLj3vldY4eWXQINurmdoiY%3D&amp;reserved=0(Linux)

On 25/05/2021 09:56, Ajunk Pracetio via Eprints-tech wrote:
> *CAUTION:* This e-mail originated outside the University of Southampton.
> Hi,
> If my eprints storage already run out, is there any tutorial how to 
> add new storage on server? From my observation, is it possible just to 
> add a hard drive, mount it and create a hard link as disk1 in / 
> usr/share/eprints3/archives/archive_name/documents/ ?
> Best regards,
> Agung PW
> *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C920a2627ec61412e085008d91f5d244b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637575307178787148%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=bi4b9AGh5%2BbZy%2BrrAErb4DrI05X3ziCZBbyfO9%2ByT1M%3D&amp;reserved=0
> *** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C920a2627ec61412e085008d91f5d244b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637575307178787148%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=KzBdx0qzj%2BEMpsgZka5o94wd9Bj4YlxrqHoNvbUowzU%3D&amp;reserved=0

This email has been checked for viruses by AVG.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20210525/0863447b/attachment-0001.html 

More information about the Eprints-tech mailing list