Bug 1341355 - quota information mismatch which glusterfs on zfs environment
Summary: quota information mismatch which glusterfs on zfs environment
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: GlusterFS
Classification: Community
Component: posix
Version: mainline
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Sungsik, Park
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-31 23:47 UTC by Sungsik, Park
Modified: 2019-04-24 13:46 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-04-24 13:46:54 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Sungsik, Park 2016-05-31 23:47:10 UTC
Description of problem:

  quota information mismatch which glusterfs on zfs environment

Version-Release number of selected component (if applicable):

  glusterfs 3.9dev of master branch


How reproducible:


Steps to Reproduce:

1. disk Information
  $ ls -al /dev/disk/by-path/ | grep sd[b-g] | grep -v "part" | awk '{print $8'}
  pci-0000:00:10.0-scsi-0:0:1:0
  pci-0000:00:10.0-scsi-0:0:2:0
  pci-0000:00:10.0-scsi-0:0:3:0
  pci-0000:00:10.0-scsi-0:0:4:0
  pci-0000:00:10.0-scsi-0:0:5:0
  pci-0000:00:10.0-scsi-0:0:6:0

2. zfs pool & volume create
  $ zpool create -f tpool -o ashift=12 pci-0000:00:10.0-scsi-0:0:1:0 pci-0000:00:10.0-scsi-0:0:2:0 pci-0000:00:10.0-scsi-0:0:3:0
  $ zpool add -f tpool cache pci-0000:00:10.0-scsi-0:0:4:0
  $ zpool add -f tpool log pci-0000:00:10.0-scsi-0:0:5:0 pci-0000:00:10.0-scsi-0:0:6:0
  $ zfs set acltype=posixacl tpool
  $ zfs create tpool/tvol1
  $ zfs set xattr=sa tpool
  $ zfs set xattr=sa tpool/tvol1

3. gluster volume create
  $ gluster volume create tvol1 <server ip address>:/tpool/tvol1 force
  $ gluster volume start tvol1
  $ gluster volume quota tvol1 enable
  $ gluster volume quota tvol1 limit-usage / 1TB

4. gluster volume mount
  $ mount -t glusterfs <server ip address>:/tvol1 /mnt

5. file create: using the dd command
  $ dd if=/dev/zero of=/mnt/dummy bs=1M count=1
  1+0 records in
  1+0 records out
  1048576 bytes (1.0 MB) copied, 0.0131786 s, 79.6 MB/s

  $ df
  Filesystem         1K-blocks    Used  Available Use% Mounted on
  <server ip addr>:/tvol1 1073741824       0 1073741824   0% /mnt

6. quota information
  $ gluster volume quota tvol1 list
                  Path                   Hard-limit  Soft-limit      Used  Available  Soft-limit exceeded? Hard-limit exceeded?
-------------------------------------------------------------------------------------------------------------------------------
/                                          1.0TB     80%(819.2GB) 512Bytes 1024.0GB              No                   No



Actual results:

                  Path                   Hard-limit  Soft-limit      Used  Available  Soft-limit exceeded? Hard-limit exceeded?
-------------------------------------------------------------------------------------------------------------------------------
/                                          1.0TB     80%(819.2GB) 512Bytes 1024.0GB              No                   No


Expected results:

                  Path                   Hard-limit  Soft-limit      Used  Available  Soft-limit exceeded? Hard-limit exceeded?
-------------------------------------------------------------------------------------------------------------------------------
/                                          1.0TB     80%(819.2GB)    1.0MB 1024.0GB              No                   No

Additional info:

1. os & kernel version:

  $ cat /etc/issue
  CentOS release 6.8 (Final)
  Kernel \r on an \m

  $ uname -r
  2.6.32-642.el6.x86_64

2. zfs version:

  $ dmesg | grep ZFS
  ZFS: Loaded module v0.6.5.7-1, ZFS pool version 5000, ZFS filesystem version 5

Comment 1 Vijay Bellur 2016-06-01 05:36:05 UTC
REVIEW: http://review.gluster.org/14593 (The zfs file system environment 'pwrite ()' after 'st_blocks' of 'struct stat' is not updated immediately. because zfs is i/o operation asynchronously.) posted (#1) for review on master by Sungsik, Park (corazy.park)

Comment 2 Vijay Bellur 2016-06-01 06:34:57 UTC
REVIEW: http://review.gluster.org/14594 (The zfs file system environment 'pwrite ()' after 'st_blocks' of 'struct stat' is not updated immediately. because zfs is i/o operation asynchronously.) posted (#1) for review on master by Sungsik, Park (corazy.park)

Comment 3 Vijay Bellur 2016-06-02 00:36:36 UTC
REVIEW: http://review.gluster.org/14594 (The zfs file system environment 'pwrite ()' after 'st_blocks' of 'struct stat' is not updated immediately. because zfs is i/o operation asynchronously.) posted (#2) for review on master by Sungsik, Park (corazy.park)

Comment 4 Yaniv Kaul 2019-04-24 09:14:48 UTC
Status?

Comment 5 hari gowtham 2019-04-24 13:46:54 UTC
While we are about to deprecate quota, it doesn't make sense to work on supporting quota for a file system it didn't have support for.

We don't have the bandwidth for working on this bug. Hence i'm closing it as wont fix.

If someone can take it to completion, we can reopen this.


Note You need to log in before you can comment on or make changes to this bug.