Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Problem: Migration frozen

Likely Issue is that diskspace for logs or couchdb partitions are at 100%l

To confirm issue: When running very large wrangler_ migrations or many wrangler_ migrations during a short timespan from the same server, it may be prudent to increase the size of the couchdb and/or the log partitions on the server as it may otherwise cause problems, or in worst case causing migration to freeze (if any of the couchdb or log partitions reach 100% the migration will stall and UI will become unresponsive).

The disk space used by partitions on the Yarnman server may be displayed as follows.

  1. Open SSH session to Yarnman server

  2. Type df which will show space used by filesystems on server. If The partitions that will likely require more space are either of the /var/lib/couchdb or /var/log use are at 100%, diskspace need to be increased partitions.

  3. To increase diskspace, open vSphere client for the VM in question and increase diskspace as required.


Info

Note: any snapshots must be removed before increasing hard disk space on the VM.

  1. Next, go back to SSH session on the Yarnman server and increase the available space on required partition/s as follows.

    1. Type cd /opt/yarnlab/yarnman ;then

    2. sudo ./scripts/resize-disk.sh var-lib-couchdb<partition> to increase space on /var/lib/couchdb partition; or

      Image Removed

      partition using all available space, or sudo ./scripts/resize-disk.sh <partition> <xx>G where <partition> is the name of the partition where the space is to be increased and <xx> is size in GB of increased partition size (for example if initial size is 40GB and we want to increase the space in the couchdb partition to 60GB, then we would enter sudo ./scripts/resize-disk.sh var-log to increase space on /var/log partition

      Image Removed
    If the space issue encountered was on
    1. lib-couchdb 60G).
      In below screenshot we increase the var-lib-couchdb partition using all available free space on the disk.

      Image Added
Info

Note that the free space in the /var/lib/couchdb partition

...

may also be increased by compacting the database, but there need to be at least 20% free space in this partition to perform this

To compact couchdb database

  1. Type cd /opt/yarnlab/yarnman ;then

  2. sudo node ./scripts/compactdb.js

...