[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] storage capacity is insufficient



CAUTION: This e-mail originated outside the University of Southampton.
Hi,

Oh..ok, thank you very much for the instructions. I think I will try the instructions that you have given.

Best regards,
Agung PW

On Tue, May 25, 2021 at 4:11 PM David R Newman <drn at ecs.soton.ac.uk<mailto:drn at ecs.soton.ac.uk>> wrote:

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 /usr/share/eprints3/archives/<ARCHIVE_NAME>/documents/disk1:

ln -s /path/to/new/disk /usr/share/eprints3/archives/<ARCHIVE_NAME>/documents/disk1

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 /usr/share/eprints3/archives/<ARCHIVE_NAME>/documents/disk1

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.

Regards

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%7C6dd5a71422b8460e111208d91f5e3996%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637575311811127539%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=68ttjE%2Bc%2BpMbdg%2BQLsirAEWCjhLWAxqMxP9meVvJyFw%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%7C6dd5a71422b8460e111208d91f5e3996%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637575311811127539%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=66IjwMplQyiCdKjBhXTWrxIi%2B%2FHBjxI9pLAfbX%2B%2FrW8%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%7C6dd5a71422b8460e111208d91f5e3996%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637575311811127539%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=3vLToSi6fxeXQ7ZSl%2FJNghdz5oOfuG4Av7d0Qwjeavw%3D&amp;reserved=0

[https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fipmcdn.avast.com%2Fimages%2Ficons%2Ficon-envelope-tick-green-avg-v1.png&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C6dd5a71422b8460e111208d91f5e3996%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637575311811127539%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=ASfs%2FT0dkW7W45CzUaNRkcviuSXnFFEFTauI0Gg0yTk%3D&amp;reserved=0]<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2Femail-signature%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Demailclient&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C6dd5a71422b8460e111208d91f5e3996%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637575311811127539%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=KM747hNk3e0YjL3UX%2FHxMTJZ%2B6ZsE8vUE53oMNss87w%3D&amp;reserved=0> Virus-free. https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C6dd5a71422b8460e111208d91f5e3996%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637575311811127539%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=sm%2BjRwA2x%2BUKNkEm7j%2BamJGtASB8m%2FgV3h7JIrmsHF8%3D&amp;reserved=0<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2Femail-signature%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Demailclient&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C6dd5a71422b8460e111208d91f5e3996%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637575311811127539%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=KM747hNk3e0YjL3UX%2FHxMTJZ%2B6ZsE8vUE53oMNss87w%3D&amp;reserved=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20210525/41c9151c/attachment.html