Expand storage size on Univention Nextcloud 14

virtualization
storage

#1

Hi Everyone,

As (I can imagine) everyone runs into the issue of running out of space on their Nextcloud. Was looking to expand it. I cannot find accurate guide how to properly expand the storage. Found a guide for version 13 (https://www.pandatech.co/2018/05/increase-nextcloud-13-storage-extend-zfs/) but on Univention it is not ZFS. What would be the way to expand the drive size? I am looking to expand it by additional 400GB which is added addtitional drive on VMware (other methods are welcome too).
Any help ir greatly appreciated.

Details of the storage:
[sudo] password for Administrator:
root@cloud:~# fdisk -l
Disk /dev/sda: 55 GiB, 59055800320 bytes, 115343360 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x7020c1b9

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 999423 997376 487M 83 Linux
/dev/sda2 1001470 104855551 103854082 49.5G 5 Extended
/dev/sda5 1001472 104855551 103854080 49.5G 8e Linux LVM

Disk /dev/sdb: 400 GiB, 429496729600 bytes, 838860800 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mapper/vg_ucs-root: 47.5 GiB, 51023708160 bytes, 99655680 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mapper/vg_ucs-swap_1: 2 GiB, 2147483648 bytes, 4194304 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
root@cloud:~# echo “- - -” > /sys/class/scsi_host/host0/scan
root@cloud:~# df -Th
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 10M 0 10M 0% /dev
tmpfs tmpfs 603M 17M 586M 3% /run
/dev/mapper/vg_ucs-root ext4 46G 33G 11G 76% /
tmpfs tmpfs 1.5G 4.0K 1.5G 1% /dev/shm
tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs tmpfs 1.5G 0 1.5G 0% /sys/fs/cgroup
/dev/sda1 ext2 472M 62M 386M 14% /boot
overlay overlay 46G 33G 11G 76% /var/lib/docker/overlay/d57f6f8190b4/merged
shm tmpfs 64M 0 64M 0% /var/lib/docker/containers/16db7fac3c/shm


Expanding disk space for Nextcloud
#2

Hi,

I am unsure as I have not tested any dockerized version. But would this article help?

/CV


#3

Thanks Christian. As it is dockerized version it might not work. Will give it a shot anyways :wink:


#4

Anyone else can throw some advice? :slight_smile:


#5

Just a few thoughts why I would not see a problem following the mentioned article:

The topic of the article is “How To Extend Disk Space on Next-/Owncloud Appliance”. Nextcloud has always been dockerized on UCS, ownCloud is dockerized for a couple of years.
In addition the output of “df -h” at the end is showing typical mounts for docker apps.

What could be done to add more flexibiltiy for future expansions would be not just to increase the “root” volume group. The last advice in the article is

It would be much easier to do if Own-/ Nextcloud had mounted /var on a separate disk!

Moving “/var/” out of “/” after the installation needs some experience because lots of services will have to be stopped and the existing data has to be moved while retaining all ownerships and permissions.
I’d think that the attempt to create a separate LVM-partition for “/var/lib/univention-appcenter/apps/nextcloud/” or the data directory below could also be worth to look at and should hopefully not break future changes of the integration.
Again: this is optional and needs some knowledge.

hth,
Dirk