During the Gerrit 3.5 upgrade, Gerrit caches stored under /var/lib/gerrit2 overflowed the root partition. As an immediate fix we have created a new dedicated partition and moved data there. The incident report https://wikitech.wikimedia.org/wiki/Incidents/2022-11-17_Gerrit_3.5_upgrade
From the incident analysis at T323262#8435688 we should relocate Gerrit installation from /var/lib/gerrit2/review_site to /srv/gerrit.
On gerrit1001 the transient /var/lib/gerrit2 partition should be removed.
Partition scheme for both hosts:
gerrit1001.wikimedia.org
| Partition | Size | Used | Available |
|---|---|---|---|
| / | 46G | 14G | 30G |
| /srv | 314G | 227G | 71G |
| /var/lib/gerrit2 | 49G | 17G | 31G |
gerrit2002.wikimedia.org
| Partition | Size | Used | Available |
|---|---|---|---|
| / | 73G | 20G | 50G |
| /srv | 629G | 71G | 527G |
update April 2026
| SPARE | gerrit2002.wikimedia.org | gerrit-spare.wikimedia.org | |
| Partition | Size | Used | Available |
|---|---|---|---|
| / | 73G | 33G | 37G |
| /srv | 629G | 208G | 390G |
| /var/lib/gerrit | 25G | ||
| /srv/gerrit | 207G | ||
| REPLICA | gerrit1003.wikimedia.org | gerrit-replica.wikimedia.org | |
| Partition | Size | Used | Available |
|---|---|---|---|
| / | 73G | 42G | 28G |
| /srv | 629G | 208G | 390G |
| /var/lib/gerrit | 25G | ||
| /srv/gerrit | 207G | ||
| ACTIVE | gerrit2003.wikimedia.org | gerrit.wikimedia.org | |
| Partition | Size | Used | Available |
|---|---|---|---|
| / | 93G | 51G | 38G |
| /srv | 629G | 322G | 276G |
| /var/lib/gerrit | 27G | ||
| /srv/gerrit | 207G | ||
summary:
A large chunk of data has already been moved into /srv/ in the past; just not the entire /var/lib/gerrit.
Significant growth in usage since this ticket was created. (There might be periodical cleanup though.)
Still enough on /srv to comfortably move /var/lib/gerrit.
But this can't simply be moved to /srv/gerrit because that already exists as well.
- migrate gerrit-spare
- migrate gerrit-replica
- migrate gerrit
- cleanup
- remove lines tagged with T333143 in Puppet
- remove symlink and backup folder (/srv/gerrit/var-lib-gerrit-backup) on gerrit-spare
- remove symlink and backup folder (/srv/gerrit/var-lib-gerrit-backup) on gerrit-replica
- remove symlink and backup folder (/srv/gerrit/var-lib-gerrit-backup) on gerrit production