Adding volume to my nextcloud.
Hello everyone,
I'm a complete newbie in the linux community. Trying to learn as much as possible while experimenting.
I can't get my head wrapped around the following issue:
My nextcloud installation on Linode runs on a Nanode 1GB. I use it for my company, and would very much like to expand the storage.
As it stands now, I have 25GB which is almost completely full. So I added a volume called "Addition". Afterwards I followed the following instructions:
Create filesystem on volume
mkfs.ext4 "/dev/disk/by-id/scsi-0Linode_Volume_addition"
Create mountpoint for volume
mkdir "/mnt/addition"
Mount new volume
mount "/dev/disk/by-id/scsi-0Linode_Volume_addition" "/mnt/addition"
Automatically mount the volume every start-up
/dev/disk/by-id/scsi-0Linode_Volume_addition /mnt/addition ext4 defaults,noatime,nofail 0 2
[Picture 1 as reference]
(https://imgur.com/BcfMVvA)
I was able to do all of this and the volume showed up in the nextcloud installation.
[Picture 2 as reference]
(https://imgur.com/NPm2w5B)
[Picture 3 as reference]
(https://imgur.com/uB4Bdui)
My question is: How can I add the "Addition" volume to the main Volume "SDA"? As it stands now, my nextcloud is unable to use the storage, and I would very much like to expand my initial SDA volume, so that it has 50GB of storage.
Thanks in advance!
3 Replies
Hi @EF_tiki,
How can I add the "Addition" volume to the main Volume "SDA"?
I'm not aware that you can.
Ideally Linodes would use LVM which would allow you to, but most of Linode's platform requires direct access to the ext4 filesystem on your disk/volumes for functionality such as backups, changing the root password, auto-resizing file-systems etc.
I would suggest moving your Nextcloud's data directory to your volume (see this article, I recommend solution 2) and keep your default Linode disk (sda) for the Linux OS and your database.
** Please take a backup of your Linode before making any changes! **
In future, if you need more space for your data, you just have to resize your volume.
What @andysh said…
However, this:
https://help.nextcloud.com/t/add-storage-mounted-volume/23606
says that you can configure your new block storage volume into nextcloud using some tribal magic. I believe this is what you want…
-- sw