このセクションは、Windowsには適用されません。
INSTALL_DONT_AUTO_UPGRADEオプション
を使用した後、完全なアップグレード手順を実行するため、/opt/couchbase/bin/cbupgradeを使用することができます。cbupgradeのコマンドラインオプションは、次のとおりです:
[root@localhost ~]# /opt/couchbase/bin/cbupgrade -h Usage: cbupgrade [-c path/to/previous/config/dir] [-a AUTO] [-d FILENAME] [-n] [-s FACTOR] -c <path/to/previous/config/dir> -- example: -c /etc/opt/membase/1.6.5.3.1 -a <yes|no> -- automatic or non-interactive mode; default is 'no'; 'yes' to force automatic 'yes' answers to all questions -d <dbdir_output_file> -- retrieve db directory from config file and exit -n -- dry-run; don't actually change anything -s <free_disk_space_needed_factor> -- free disk space needed, as a factor of current bucket usage -- default value is 2.0 -- example: -s 1.0
cbupgradeプログラムに-n
フラグを指定すると、cbupgradeはいかなるファイルも変更せず、実行時に発生する変更の表示のみ行います。例:
[root@localhost ~]# /opt/couchbase/bin/cbupgrade -c /opt/membase/var/lib/membase/config -nDry-run mode: no actual upgrade changes will be made. Upgrading your Couchbase Server to 1.8.0r-55-g80f24f2. The upgrade process might take awhile. Analysing... Previous config.dat file is /opt/membase/var/lib/membase/config/config.dat.rpmsave Target node: ns_1@127.0.0.1 Membase/Couchbase should not be running. Please use: /etc/init.d/couchbase-server stop or: /etc/init.d/membase-server stop Is the Membase/Couchbase server already stopped? [yes|no] yes Database dir: /opt/membase/var/lib/membase/data Is that the expected database directory to upgrade? [yes|no] yes Buckets to upgrade: default Are those the expected buckets to upgrade? [yes|no] yes Checking disk space available for buckets in directory: /opt/membase/var/lib/membase/data Free disk bucket space wanted: 0.0 Free disk bucket space available: 177790963712 Free disk bucket space available: 177790963712 Free disk space factor: 2.0 Ok. Analysis complete. Proceed with config & data upgrade steps? [yes|no] yes SKIPPED (dry-run): Copying /opt/membase/var/lib/membase/config/config.dat.rpmsave SKIPPED (dry-run): cp /opt/membase/var/lib/membase/config/config.dat.rpmsave /opt/couchbase/var /lib/couchbase/config/config.dat Ensuring bucket data directories. SKIPPED (dry-run): Ensuring bucket data directory: /opt/membase/var/lib/membase/data/default-data SKIPPED (dry-run): mkdir -p /opt/membase/var/lib/membase/data/default-data SKIPPED (dry-run): Ensuring dbdir owner/group: /opt/membase/var/lib/membase/data SKIPPED (dry-run): chown -R couchbase:couchbase /opt/membase/var/lib/membase/data SKIPPED (dry-run): Ensuring dbdir owner/group: /opt/membase/var/lib/membase/data SKIPPED (dry-run): chown -R couchbase:couchbase /opt/membase/var/lib/membase/data Upgrading buckets. Skipping already converted bucket: /opt/membase/var/lib/membase/data/default-data Skipping already converted bucket: /opt/membase/var/lib/membase/data/test0-data Done.