Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-7307

Couchbase Console disk overview doesn't deref data dir symlink

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0-developer-preview-4
    • Fix Version/s: 2.0, 2.0.1
    • Component/s: UI
    • Security Level: Public
    • Labels:
      None

      Description

      In the EC2 AMI for 2.0, the data dir is on the large (100GB) EBS partition, but the server is given a symlink to it (underneath /var/lib/couchbase). When it reports the available disk space in the Disk Overview, it seems to report it based on the partition that the symlink is on, not the partition that the symlink dereferences to.

      Found a related issue... http://www.couchbase.com/issues/browse/MB-1994

      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        couchbase@implode.net John Wong added a comment -

        I'm actually still encountering a problem that this ticket describes exactly. I'm using Couchbase 2.0.1 and I have the entire Couchbase directory moved out from /opt/couchbase to a NFS volume which autogrows /mnt/nfs/couchbase and symlinked back.

        Cannot compact view xmshd_fifa/_design/dev_xmshd/main: the estimated necessary disk space is about 1725133984 bytes but the currently available disk space is 665651200 bytes. compaction_daemon000 ns_1@10.128.56.173 15:24:58 - Tue Nov 5, 2013

        load [johnwong@easotestdb079 ~]$ df -h /opt /mnt/nfs/couchbase
        Filesystem Size Used Avail Use% Mounted on
        /dev/mapper/Sys-opt 60G 465M 56G 1% /opt
        eaoams2nap04-nas:/vol/cdblte_data_db079/data
        363G 316G 47G 88% /mnt/nfs/couchbase

        The web GUI is reporting some weird numbers:

        Usable Free Space (1.86 GB) Total Cluster Storage (2.91 GB)
        In Use (295 GB) Other Data (0 B) Free (-313519279707 B)

        Show
        couchbase@implode.net John Wong added a comment - I'm actually still encountering a problem that this ticket describes exactly. I'm using Couchbase 2.0.1 and I have the entire Couchbase directory moved out from /opt/couchbase to a NFS volume which autogrows /mnt/nfs/couchbase and symlinked back. Cannot compact view xmshd_fifa/_design/dev_xmshd/main: the estimated necessary disk space is about 1725133984 bytes but the currently available disk space is 665651200 bytes. compaction_daemon000 ns_1@10.128.56.173 15:24:58 - Tue Nov 5, 2013 load [johnwong@easotestdb079 ~] $ df -h /opt /mnt/nfs/couchbase Filesystem Size Used Avail Use% Mounted on /dev/mapper/Sys-opt 60G 465M 56G 1% /opt eaoams2nap04-nas:/vol/cdblte_data_db079/data 363G 316G 47G 88% /mnt/nfs/couchbase The web GUI is reporting some weird numbers: Usable Free Space (1.86 GB) Total Cluster Storage (2.91 GB) In Use (295 GB) Other Data (0 B) Free (-313519279707 B)
        Hide
        kzeller kzeller added a comment -

        Updated in Release Notes:

        In the past, if you used a symbolic link to reference a data directory for
        Couchbase Server, when the server determined remaining free disk space, it
        only found the free disk space for the partition that contained the symbolic link.
        This resulted in two issues: 1) incorrect information in the
        Couchbase Web Console, 2) more significantly, it would accidentally inhibit the
        data compaction process because of incorrect information free disk space.
        This has been fixed in 2.0.

        Show
        kzeller kzeller added a comment - Updated in Release Notes: In the past, if you used a symbolic link to reference a data directory for Couchbase Server, when the server determined remaining free disk space, it only found the free disk space for the partition that contained the symbolic link. This resulted in two issues: 1) incorrect information in the Couchbase Web Console, 2) more significantly, it would accidentally inhibit the data compaction process because of incorrect information free disk space. This has been fixed in 2.0.
        Hide
        kzeller kzeller added a comment -

        Added: This has been fixed in 2.0.

        Show
        kzeller kzeller added a comment - Added: This has been fixed in 2.0.
        Hide
        kzeller kzeller added a comment -

        Relabeled "Fix" + This has been fixed in 2.0.

        Show
        kzeller kzeller added a comment - Relabeled "Fix" + This has been fixed in 2.0.
        Hide
        Aliaksey Artamonau Aliaksey Artamonau added a comment - - edited

        Actually we merged a fix for this: http://review.couchbase.org/23003

        Show
        Aliaksey Artamonau Aliaksey Artamonau added a comment - - edited Actually we merged a fix for this: http://review.couchbase.org/23003
        Hide
        kzeller kzeller added a comment -

        Added to RN as:

        By default the image provided on Amazon EC2 of Couchbase Server may
        incorrectly report disk free space in the Couchbase
        Web Console. This occurs if your data directory is pointing to a symbolic link.

        Show
        kzeller kzeller added a comment - Added to RN as: By default the image provided on Amazon EC2 of Couchbase Server may incorrectly report disk free space in the Couchbase Web Console. This occurs if your data directory is pointing to a symbolic link.
        Hide
        alkondratenko Aleksey Kondratenko (Inactive) added a comment -

        IMHO should be allowed for 2.0 given that it prevents compaction from happening

        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - IMHO should be allowed for 2.0 given that it prevents compaction from happening
        Hide
        alkondratenko Aleksey Kondratenko (Inactive) added a comment -

        Please take a look. Looks bad enough for fixing asap

        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - Please take a look. Looks bad enough for fixing asap
        Hide
        sqs Quinn Slack added a comment -

        This appears to be preventing compaction, fyi.

        Cannot compact view items/_design/all/main: the estimated necessary disk space is about 6668918434 bytes but the currently available disk space is 2113779712 bytes. (repeated 1 times) compaction_daemon000 ns_1@10.37.15.109 11:12:08 - Mon Dec 3, 2012

        Show
        sqs Quinn Slack added a comment - This appears to be preventing compaction, fyi. Cannot compact view items/_design/all/main: the estimated necessary disk space is about 6668918434 bytes but the currently available disk space is 2113779712 bytes. (repeated 1 times) compaction_daemon000 ns_1@10.37.15.109 11:12:08 - Mon Dec 3, 2012

          People

          • Assignee:
            kzeller kzeller
            Reporter:
            sqs Quinn Slack
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes