# We have users with incorrect quotas (see SR 28763). This file explains # how we found a response to the following question in LU-4504: # Could you try to write as the user to see if the newly written bytes can be accounted? [root@pfs2n13 ~]# mount -t lustre [root@pfs2n13 ~]# mkdir /pfs/data2 [root@pfs2n13 ~]# chmod 755 /pfs/data2 [root@pfs2n13 ~]# mount -t lustre 172.26.8.12@o2ib:172.26.8.13@o2ib:/pfs2dat2 /pfs/data2 [root@pfs2n13 ~]# mkdir /pfs/data2/perftest/tmp/ho_anfuchs [root@pfs2n13 ~]# chown ho_anfuchs /pfs/data2/perftest/tmp/ho_anfuchs [root@pfs2n13 ~]# su - ho_anfuchs -sh-4.1$ cd /pfs/data2/perftest/tmp/ho_anfuchs -sh-4.1$ lfs quota -u ho_anfuchs . Disk quotas for user ho_anfuchs (uid 900085): Filesystem kbytes quota limit grace files quota limit grace . 1982132 0 0 - 20351 0 0 - -sh-4.1$ dd if=/dev/zero of=./dd_ost bs=1M count=2000 2>&1 | egrep "OST|copied" 2097152000 bytes (2.1 GB) copied, 10.8837 s, 193 MB/s -sh-4.1$ lfs quota -u ho_anfuchs . | tail -1 . 4030136 0 0 - 20352 0 0 - -sh-4.1$ rm ./dd_ost -sh-4.1$ lfs quota -u ho_anfuchs . | tail -1 . 4030136 0 0 - 20351 0 0 - -sh-4.1$ lfs quota -u ho_anfuchs . | tail -1 . 1982132 0 0 - 20351 0 0 - # Now do it for all OSTs: -sh-4.1$ for ost in $(seq 0 19); do echo OST ${ost}:; lfs setstripe . -o ${ost} -c 1; dd if=/dev/zero of=./dd_ost bs=1M count=1000 2>&1 | egrep "OST|copied"; lfs getstripe ./dd_ost | grep -B1 obdidx | head -1; lfs quota -u ho_anfuchs . | tail -1; /bin/rm ./dd_ost; sleep 5; lfs quota -u ho_anfuchs . | tail -1; done OST 0: 1048576000 bytes (1.0 GB) copied, 1.79085 s, 586 MB/s lmm_stripe_offset: 0 . 2990776 0 0 - 20352 0 0 - . 1982132 0 0 - 20351 0 0 - OST 1: 1048576000 bytes (1.0 GB) copied, 2.29793 s, 456 MB/s lmm_stripe_offset: 1 . 2992824 0 0 - 20352 0 0 - . 1982132 0 0 - 20351 0 0 - OST 2: 1048576000 bytes (1.0 GB) copied, 1.64284 s, 638 MB/s lmm_stripe_offset: 2 . 2987704 0 0 - 20352 0 0 - . 1982132 0 0 - 20351 0 0 - OST 3: 1048576000 bytes (1.0 GB) copied, 1.7565 s, 597 MB/s lmm_stripe_offset: 3 . 2989752 0 0 - 20352 0 0 - . 1982132 0 0 - 20351 0 0 - OST 4: 1048576000 bytes (1.0 GB) copied, 1.68913 s, 621 MB/s lmm_stripe_offset: 4 . 2984632 0 0 - 20352 0 0 - . 1982132 0 0 - 20351 0 0 - OST 5: 1048576000 bytes (1.0 GB) copied, 1.67842 s, 625 MB/s lmm_stripe_offset: 5 . 2989752 0 0 - 20352 0 0 - . 1982132 0 0 - 20351 0 0 - OST 6: 1048576000 bytes (1.0 GB) copied, 1.622 s, 646 MB/s lmm_stripe_offset: 6 . 3001016 0 0 - 20352 0 0 - . 1982132 0 0 - 20351 0 0 - OST 7: 1048576000 bytes (1.0 GB) copied, 1.78845 s, 586 MB/s lmm_stripe_offset: 7 . 2992824 0 0 - 20352 0 0 - . 1982132 0 0 - 20351 0 0 - OST 8: 1048576000 bytes (1.0 GB) copied, 1.81643 s, 577 MB/s lmm_stripe_offset: 8 . 2985656 0 0 - 20352 0 0 - . 1982132 0 0 - 20351 0 0 - OST 9: 1048576000 bytes (1.0 GB) copied, 1.6648 s, 630 MB/s lmm_stripe_offset: 9 . 2992824 0 0 - 20352 0 0 - . 1982132 0 0 - 20351 0 0 - OST 10: 1048576000 bytes (1.0 GB) copied, 1.72903 s, 606 MB/s lmm_stripe_offset: 10 . 3006136 0 0 - 20352 0 0 - . 1982132 0 0 - 20351 0 0 - OST 11: 1048576000 bytes (1.0 GB) copied, 1.8831 s, 557 MB/s lmm_stripe_offset: 11 . 3006136 0 0 - 20352 0 0 - . 1982132 0 0 - 20351 0 0 - OST 12: 1048576000 bytes (1.0 GB) copied, 1.75855 s, 596 MB/s lmm_stripe_offset: 12 . 3006136 0 0 - 20352 0 0 - . 1982132 0 0 - 20351 0 0 - OST 13: 1048576000 bytes (1.0 GB) copied, 1.69926 s, 617 MB/s lmm_stripe_offset: 13 . 3006136 0 0 - 20352 0 0 - . 1982132 0 0 - 20351 0 0 - OST 14: 1048576000 bytes (1.0 GB) copied, 1.68965 s, 621 MB/s lmm_stripe_offset: 14 . 3006136 0 0 - 20352 0 0 - . 1982132 0 0 - 20351 0 0 - OST 15: 1048576000 bytes (1.0 GB) copied, 1.70913 s, 614 MB/s lmm_stripe_offset: 15 . 3006136 0 0 - 20352 0 0 - . 1982132 0 0 - 20351 0 0 - OST 16: 1048576000 bytes (1.0 GB) copied, 1.73393 s, 605 MB/s lmm_stripe_offset: 16 . 3006136 0 0 - 20352 0 0 - . 1982132 0 0 - 20351 0 0 - OST 17: 1048576000 bytes (1.0 GB) copied, 1.71105 s, 613 MB/s lmm_stripe_offset: 17 . 3006136 0 0 - 20352 0 0 - . 1982132 0 0 - 20351 0 0 - OST 18: 1048576000 bytes (1.0 GB) copied, 1.81058 s, 579 MB/s lmm_stripe_offset: 18 . 3006136 0 0 - 20352 0 0 - . 1982132 0 0 - 20351 0 0 - OST 19: 1048576000 bytes (1.0 GB) copied, 1.70332 s, 616 MB/s lmm_stripe_offset: 19 . 3006136 0 0 - 20352 0 0 - . 1982132 0 0 - 20351 0 0 - # Result: Newly written bytes are accounted. This works for all OSTs.