[Bugs] [Bug 1509071] Many files in a dir causes leaks after quota is enabled

bugzilla at redhat.com bugzilla at redhat.com
Fri Feb 2 08:22:53 UTC 2018


--- Comment #8 from Hans Henrik Happe <happe at nbi.dk> ---

# Usage: fail <number of files to create>


# Host to create bricks on

# cleanup
umount /mnt

yes|gluster vol stop mem 
yes|gluster vol delete mem

umount /gluster/mem0
umount /gluster/mem1

# init
truncate -s 4g /dev/shm/b0
truncate -s 4g /dev/shm/b1

mkfs.xfs -f /dev/shm/b0
mkfs.xfs -f /dev/shm/b1

mkdir -p /gluster/mem0
mkdir -p /gluster/mem1

mount -o loop /dev/shm/b0 /gluster/mem0
mount -o loop /dev/shm/b1 /gluster/mem1

gluster vol create mem ${host}:/gluster/mem0/brick ${host}:/gluster/mem1/brick
gluster vol start mem

mount -t glusterfs ${host}:/mem /mnt
sleep 3

# create files

mkdir /mnt/many
i=0; while [ $i -lt $n ]; do touch /mnt/many/f$i; let i++; done

gluster vol quota mem enable

du -hs /mnt

# Or rebalance
# gluster vol rebalance mem start

You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=Ao4vpo7ifR&a=cc_unsubscribe

More information about the Bugs mailing list