Ubiquiti UNVR disk size upgrade

I installed an Ubiquiti UNVR with couple of 4T disks I had at hand while waiting for the proper sized ones to be back in stock. Once the new drives arrived, I had originally intended to swap them out at once, nuking the recordings in the process. However there's an undocumented way to upgrade with no data loss at all.

The trick is to replace the disks one by one, letting the system rebuild the RAID between the disk swaps, then reboot the system after it has synced the last disk. Before the reboot the array appears to match the size of the old disks, even when the storage configuration page shows the correct size. A quick investigation over SSH confirmed this; the RAID device had only used the old disks' amount of space out of the new disks. Rebooting the system triggered it to grow the RAID and the EXT4 filesystem on it.

This works at least for UNVR and UNVR Pro and was tested on UniFi OS 3.0.16.

No comments:

Post a Comment