@@ -351,33 +351,28 @@ whether you are using the MetacatUI sub-chart or not:
351351 application.readOnlyMode=true
352352 ` ` `
353353
354- - [ ] Stop tomcat (not postgres)
354+ - [ ] Restart tomcat (not postgres)
355355
356356 ` ` ` shell
357- sudo systemctl stop tomcat9
357+ sudo systemctl restart tomcat9
358+ ` ` `
359+
360+ - [ ] Check it' s in RO mode! `https://$HOSTNAME/CONTEXT/d1/mn/v2/node` - look for:
361+
362+ ```xml
363+ <property key="read_only_mode">true</property>
358364 ```
359365
360366- [ ] `pg_dump` on legacy host
361367
362368 ```shell
363- DUMP_DIR=" /var/lib/postgresql/14-pg_dump"
369+ JOBS=20 # adjust for available cpu cores
370+ DEST="/var/lib/postgresql/14-pg_dump"
364371 PGDB=metacat
365372 POSTGRES_USER=metacat
366- sudo pg_dump -U $POSTGRES_USER -h localhost --format=directory --file=$DUMP_DIR --jobs=20 $PGDB
373+ sudo pg_dump -U $POSTGRES_USER -h localhost --format=directory --file=$DEST --jobs=$JOBS $PGDB
367374 ```
368375
369- - [ ] Start tomcat
370-
371- ` ` ` shell
372- sudo systemctl start tomcat9
373- ` ` `
374-
375- - [ ] Check it' s in RO mode! `https://$HOSTNAME/CONTEXT/d1/mn/v2/node` - look for:
376-
377- ```xml
378- <property key="read_only_mode">true</property>
379- ```
380-
381376- [ ] "top-up" `rsync` from legacy to ceph:
382377
383378 ```shell
@@ -389,9 +384,6 @@ whether you are using the MetacatUI sub-chart or not:
389384 sudo rsync -rltDHX -e " ssh -i $HOME /.ssh/id_ed25519" --stats --human-readable \
390385 /var/metacat/data/ $USER @$TARGET :/mnt/ceph/repos/$REPO /metacat/data/
391386
392- sudo rsync -rltDHX -e " ssh -i $HOME /.ssh/id_ed25519" --stats --human-readable \
393- /var/metacat/dataone/ $USER @$TARGET :/mnt/ceph/repos/$REPO /metacat/dataone/
394-
395387 sudo rsync -rltDHX -e " ssh -i $HOME /.ssh/id_ed25519" --stats --human-readable \
396388 /var/metacat/documents/ $USER @$TARGET :/mnt/ceph/repos/$REPO /metacat/documents/
397389
@@ -411,7 +403,7 @@ whether you are using the MetacatUI sub-chart or not:
411403
412404 cd /mnt/ceph/repos/$REPO /metacat
413405
414- sudo chown -R 59997:59997 data dataone documents logs
406+ sudo chown -R 59997:59997 data documents logs
415407
416408 sudo chmod -R g+rw data documents dataone
417409 ` ` `
@@ -428,10 +420,15 @@ whether you are using the MetacatUI sub-chart or not:
428420 ```
429421
430422- [ ] Delete the `storage.hashstore.disableConversion:` setting, so the hashstore converter will
431- run, and do a `helm upgrade`
423+ run, and do a `helm upgrade`. Watch for completion:
424+
425+ ```shell
426+ kubectl exec ${RELEASE_NAME}-postgresql-0 -- bash -c "psql -U metacat << EOF
427+ select storage_upgrade_status from version_history where version=' 3.1.0' ;
428+ EOF"
429+ ```
432430
433- > See [this tip](./Installation-Upgrade-Tips.md#monitor-hashstore-conversion-progress-and-completion)
434- > for how to detect when hashstore conversion finishes
431+ ...or see [this tip](./Installation-Upgrade-Tips.md#monitor-hashstore-conversion-progress-and-completion) for other monitoring options
435432
436433**When hashstore conversion has finished successfully...**
437434
0 commit comments