Page MenuHomePhabricator

Add second virtual hard disk to ganeti gerrit test instance
Closed, ResolvedPublic


Enough so we can backup/restore the DB.

Related Objects

Event Timeline

The production db in the filesystem is 2GB.

[db1132:/srv/sqldata] $ sudo du -hs reviewdb/
2.0G	reviewdb/

Mentioned in SAL (#wikimedia-operations) [2020-02-03T23:21:49Z] <mutante> gerrit1002 - deleting gerrit.log and gerrit.json files from January to free about 4GB of space (T239151 T243983)

Mentioned in SAL (#wikimedia-operations) [2020-02-03T23:26:32Z] <mutante> ganeti1003 - sudo gnt-instance modify --disk add:size=10G (T239151 T243983)

Mentioned in SAL (#wikimedia-operations) [2020-02-04T00:09:21Z] <mutante> gerrit1002 - replaced ens5 with ens6 in /etc/network/interfaces (IP and row had changed in the past, needed manual fix after reboot and now came back) ; mkfs.ext4 /dev/vdb on new additional 10GB disk. (T239151 T243983)

VM is back up now and has an additional 10GB drive (/dev/vdb).

Formatted with ext4 and added to /etc/fstab to be mounted on /srv/dbdump.

# 10 extra GB for DB dump (T243983)
UUID=299eb75f-77e3-42b4-a64c-e58817a32d3b /srv/dbdump     ext4    errors=remount-ro 0       2
root@gerrit1002:/srv# mount /dev/vdb
/dev/vdb        9.8G   37M  9.3G   1% /srv/dbdump