Need help increasing storage size to max space on drive.

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 31.0.9
  • Operating system and version (e.g., Ubuntu 24.04):
    • RaspberryPi
  • Web server and version (e.g, Apache 2.4.25):
    • replace me
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • replace me
  • PHP version (e.g, 8.3):
    • 8.2
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • Yesterday
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • ?
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • no

Summary of the issue you are facing:

[…]My drive is 24TB but nextcloud is set at 2TB, I want to expand it to use the whole drive

Steps to replicate it (hint: details matter!):

  1. Just need help expanding the size

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

Error
webdav
InsufficientStorage
Insufficient space in /Photos/Camera/20201223_080934.jpg, 3333866 required, 0 available

Oct 11, 2025, 7:50:10 AM

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

PASTE

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

Newbie here and can't find it

Apps

The output of occ app:list (if possible).

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

Ok, how have you setup your disk, are there different partitions? Or do you use a LVM?

check the currently mounted storage in your OS:

df -h

More about the hardware and partitions:
sudo lsblk

@raspberrypi:~ $ df -h

Filesystem      Size  Used Avail Use% Mounted on
udev            7.9G     0  7.9G   0% /dev
tmpfs           3.2G   15M  3.2G   1% /run
/dev/sda2       2.0T  1.9T  5.9G 100% /
tmpfs           8.0G   47M  7.9G   1% /dev/shm
tmpfs           5.0M   48K  5.0M   1% /run/lock
tmpfs           1.0M     0  1.0M   0% /run/credentials/systemd-journald.service
tmpfs           8.0G  128K  8.0G   1% /tmp
/dev/sda1       510M   78M  433M  16% /boot/firmware
tmpfs           1.6G  288K  1.6G   1% /run/user/1000
tmpfs           1.0M     0  1.0M   0% /run/credentials/serial-getty@ttyAMA10.service
tmpfs           1.0M     0  1.0M   0% /run/credentials/getty@tty1.service

@raspberrypi:~ $ sudo lsblk

NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
loop0    7:0    0    2G  0 loop
sda      8:0    0 21.8T  0 disk
├─sda1   8:1    0  512M  0 part /boot/firmware
└─sda2   8:2    0    2T  0 part /
zram0  254:0    0    2G  0 disk \[SWAP\]

It seems that there is a limit to older partition tables that can handle only disk sizes up to 2 TB. There are GPT partition tables that support larger sizes:
https://www.cyberciti.biz/tips/fdisk-unable-to-create-partition-greater-2tb.html

The last link there should be ways you can find out, if your current linux kernel supports this. What I don’t know and requires a bit of research, if there are easy ways to update without reformatting all the storage. If you can convert to the GPT format, and then later increase the size of the partition, this is supported by many partitions.

Anyhow, even if it works without deleting everything, don’t forget a backup, since you easily get something wrong.

I wasn’t aware of this, and I am about to get larger disks, so I really learnt something useful today, thanks.

Thanks, I also have a bunch of files that say locked, any thoughts on how to unlock them? Can you add other partitions to nextcloud?

You can unlock by deleting the entries from the database (if redis is not used):