unifi: warn at update if the database is old and was created using mongodb's

deprecated MMAPV1 engine, doing a config backup + shutdown + remove db files
+ restore will recreate with WiredTiger which has significantly smaller files
and checkpointing (and seems like it maybe a bit more robust..)
This commit is contained in:
sthen 2020-06-26 13:15:23 +00:00
parent 2519958a27
commit c6443493bb
6 changed files with 12 additions and 7 deletions

View File

@ -1,7 +1,7 @@
# $OpenBSD: Makefile,v 1.14 2020/03/24 14:54:27 sthen Exp $
# $OpenBSD: Makefile,v 1.15 2020/06/26 13:15:23 sthen Exp $
V= 5.6.42
SNAPPY_V= 1.1.2.6
REVISION= 3
REVISION= 4
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.6 2020/03/24 14:54:27 sthen Exp $
@comment $OpenBSD: PLIST,v 1.7 2020/06/26 13:15:23 sthen Exp $
@option is-branch
@pkgpath net/unifi/5.6
@newgroup _unifi:732
@ -1115,3 +1115,4 @@ share/unifi/webapps/ROOT/pages/voucher.jsp
share/unifi/work/
@extraunexec rm -rf %D/share/unifi/{backup,dl,data,run,work,conf}
@extraunexec rm -rf /var/log/unifi
@exec-update [[ -d %D/share/unifi/data/db/ace ]] && printf "\nYour Unifi database uses mongodb's deprecated MMAPV1 engine. Consider\nbacking up and recreating by restoring which will use the WiredTiger\nengine which has smaller files and checkpointing.\n\n"; true

View File

@ -1,6 +1,7 @@
# $OpenBSD: Makefile,v 1.28 2020/06/21 11:40:36 sthen Exp $
# $OpenBSD: Makefile,v 1.29 2020/06/26 13:15:23 sthen Exp $
V= 5.13.29
SNAPPY_V= 1.1.7.3
REVISION= 0
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.12 2020/06/21 11:40:36 sthen Exp $
@comment $OpenBSD: PLIST,v 1.13 2020/06/26 13:15:23 sthen Exp $
@option is-branch
@pkgpath net/unifi
@pkgpath net/unifi/5.7
@ -9551,3 +9551,4 @@ share/unifi/webapps/ROOT/pages/voucher.jsp
share/unifi/work/
@extraunexec rm -rf %D/share/unifi/{backup,dl,data,run,work,conf}
@extraunexec rm -rf /var/log/unifi
@exec-update [[ -d %D/share/unifi/data/db/ace ]] && printf "\nYour Unifi database uses mongodb's deprecated MMAPV1 engine. Consider\nbacking up and recreating by restoring which will use the WiredTiger\nengine which has smaller files and checkpointing.\n\n"; true

View File

@ -1,7 +1,8 @@
# $OpenBSD: Makefile,v 1.39 2020/06/21 12:18:39 sthen Exp $
# $OpenBSD: Makefile,v 1.40 2020/06/26 13:15:23 sthen Exp $
V= 5.13.32
SNAPPY_V= 1.1.7.3
REVISION= 0
# for stable-candidate and public beta versions
BUILD_V= 3e11950f9b

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.22 2020/06/21 12:18:39 sthen Exp $
@comment $OpenBSD: PLIST,v 1.23 2020/06/26 13:15:23 sthen Exp $
@option is-branch
@pkgpath net/unifi
@pkgpath net/unifi/5.7
@ -9551,3 +9551,4 @@ share/unifi/webapps/ROOT/pages/voucher.jsp
share/unifi/work/
@extraunexec rm -rf %D/share/unifi/{backup,dl,data,run,work,conf}
@extraunexec rm -rf /var/log/unifi
@exec-update [[ -d %D/share/unifi/data/db/ace ]] && printf "\nYour Unifi database uses mongodb's deprecated MMAPV1 engine. Consider\nbacking up and recreating by restoring which will use the WiredTiger\nengine which has smaller files and checkpointing.\n\n"; true