Created
June 28, 2023 22:03
-
-
Save goller/ff10e213bfcc7df4fd573be65a7fdecf to your computer and use it in GitHub Desktop.
output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ ceph version | |
ceph version 17.2.6 (d7ff0d10654d2280e08f1ab989c7cdf3064446a5) quincy (stable) | |
+ echo ext4 | |
ext4 | |
+ rbd create goller-test-image --size 800GB | |
+ rbd map goller-test-image | |
/dev/rbd0 | |
+ mkfs -t ext4 /dev/rbd0 | |
mke2fs 1.46.2 (28-Feb-2021) | |
Discarding device blocks: done | |
Creating filesystem with 209715200 4k blocks and 52428800 inodes | |
Filesystem UUID: f96df9bb-2e73-47b3-8dfa-8b6ee547a43f | |
Superblock backups stored on blocks: | |
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, | |
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, | |
102400000 | |
Allocating group tables: done | |
Writing inode tables: done | |
Creating journal (262144 blocks): done | |
Writing superblocks and filesystem accounting information: done | |
+ sleep 10 | |
+ rbd du --exact goller-test-image | |
NAME PROVISIONED USED | |
goller-test-image 800 GiB 17 MiB | |
+ rbd du goller-test-image | |
NAME PROVISIONED USED | |
goller-test-image 800 GiB 1.6 GiB | |
+ mount /dev/rbd0 /mnt | |
+ dd if=/dev/urandom of=/mnt/1g.bin bs=64M count=16 | |
16+0 records in | |
16+0 records out | |
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 3.73258 s, 288 MB/s | |
+ sleep 30 | |
+ rbd du --exact goller-test-image | |
NAME PROVISIONED USED | |
goller-test-image 800 GiB 1.4 GiB | |
+ rbd du goller-test-image | |
NAME PROVISIONED USED | |
goller-test-image 800 GiB 2.6 GiB | |
+ rm /mnt/1g.bin | |
+ sleep 30 | |
+ rbd du --exact goller-test-image | |
NAME PROVISIONED USED | |
goller-test-image 800 GiB 1.8 GiB | |
+ rbd du goller-test-image | |
NAME PROVISIONED USED | |
goller-test-image 800 GiB 2.6 GiB | |
+ fstrim -v /mnt | |
/mnt: 786.4 GiB (844362543104 bytes) trimmed | |
+ fstrim -v /mnt | |
/mnt: 0 B (0 bytes) trimmed | |
+ fstrim -v /mnt | |
/mnt: 0 B (0 bytes) trimmed | |
+ sleep 30 | |
+ rbd du --exact goller-test-image | |
NAME PROVISIONED USED | |
goller-test-image 800 GiB 922 MiB | |
+ rbd du goller-test-image | |
NAME PROVISIONED USED | |
goller-test-image 800 GiB 2.1 GiB | |
+ umount /mnt | |
+ rbd unmap goller-test-image | |
+ rbd rm goller-test-image | |
Removing image: 100% complete...done. | |
+ echo xfs | |
xfs | |
+ rbd create goller-test-image --size 800GB | |
+ rbd map goller-test-image | |
/dev/rbd0 | |
+ mkfs -t xfs -f /dev/rbd0 | |
meta-data=/dev/rbd0 isize=512 agcount=32, agsize=6553600 blks | |
= sectsz=512 attr=2, projid32bit=1 | |
= crc=1 finobt=1, sparse=1, rmapbt=0 | |
= reflink=1 bigtime=0 | |
data = bsize=4096 blocks=209715200, imaxpct=25 | |
= sunit=16 swidth=16 blks | |
naming =version 2 bsize=4096 ascii-ci=0, ftype=1 | |
log =internal log bsize=4096 blocks=102400, version=2 | |
= sectsz=512 sunit=16 blks, lazy-count=1 | |
realtime =none extsz=4096 blocks=0, rtextents=0 | |
Discarding blocks...Done. | |
+ sleep 10 | |
+ rbd du --exact goller-test-image | |
NAME PROVISIONED USED | |
goller-test-image 800 GiB 5.0 MiB | |
+ rbd du goller-test-image | |
NAME PROVISIONED USED | |
goller-test-image 800 GiB 132 MiB | |
+ mount /dev/rbd0 /mnt | |
+ dd if=/dev/urandom of=/mnt/1g.bin bs=64M count=16 | |
16+0 records in | |
16+0 records out | |
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 3.43663 s, 312 MB/s | |
+ sleep 30 | |
+ rbd du --exact goller-test-image | |
NAME PROVISIONED USED | |
goller-test-image 800 GiB 1.0 GiB | |
+ rbd du goller-test-image | |
NAME PROVISIONED USED | |
goller-test-image 800 GiB 1.1 GiB | |
+ rm /mnt/1g.bin | |
+ sleep 30 | |
+ rbd du --exact goller-test-image | |
NAME PROVISIONED USED | |
goller-test-image 800 GiB 1.0 GiB | |
+ rbd du goller-test-image | |
NAME PROVISIONED USED | |
goller-test-image 800 GiB 1.1 GiB | |
+ fstrim -v /mnt | |
/mnt: 799.6 GiB (858572636160 bytes) trimmed | |
+ fstrim -v /mnt | |
/mnt: 799.6 GiB (858572636160 bytes) trimmed | |
+ fstrim -v /mnt | |
/mnt: 799.6 GiB (858572636160 bytes) trimmed | |
+ sleep 30 | |
+ rbd du --exact goller-test-image | |
NAME PROVISIONED USED | |
goller-test-image 800 GiB 40 MiB | |
+ rbd du goller-test-image | |
NAME PROVISIONED USED | |
goller-test-image 800 GiB 1.1 GiB | |
+ umount /mnt | |
+ rbd unmap goller-test-image | |
+ rbd rm goller-test-image | |
Removing image: 100% complete...done. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment