]> git.proxmox.com Git - ceph.git/blame - ceph/qa/suites/rados/singleton-nomsgr/all/cache-fs-trunc.yaml
update sources to v12.1.1
[ceph.git] / ceph / qa / suites / rados / singleton-nomsgr / all / cache-fs-trunc.yaml
CommitLineData
7c673cae
FG
1roles:
2- [mon.a, mgr.x, mds.a, osd.0, osd.1, osd.2, client.0, client.1]
3tasks:
4- install:
5- ceph:
224ce89b
WB
6 log-whitelist:
7 - overall HEALTH_
8 - (CACHE_POOL_NO_HIT_SET)
7c673cae
FG
9 conf:
10 global:
11 osd max object name len: 460
12 osd max object namespace len: 64
13 debug client: 20
14 debug mds: 20
15 debug ms: 1
16- exec:
17 client.0:
18 - ceph osd pool create data_cache 4
19 - ceph osd tier add cephfs_data data_cache
20 - ceph osd tier cache-mode data_cache writeback
21 - ceph osd tier set-overlay cephfs_data data_cache
22 - ceph osd pool set data_cache hit_set_type bloom
23 - ceph osd pool set data_cache hit_set_count 8
24 - ceph osd pool set data_cache hit_set_period 3600
25 - ceph osd pool set data_cache min_read_recency_for_promote 0
26- ceph-fuse:
27- exec:
28 client.0:
29 - sudo chmod 777 $TESTDIR/mnt.0/
30 - dd if=/dev/urandom of=$TESTDIR/mnt.0/foo bs=1M count=5
31 - ls -al $TESTDIR/mnt.0/foo
32 - truncate --size 0 $TESTDIR/mnt.0/foo
33 - ls -al $TESTDIR/mnt.0/foo
34 - dd if=/dev/urandom of=$TESTDIR/mnt.0/foo bs=1M count=5
35 - ls -al $TESTDIR/mnt.0/foo
36 - cp $TESTDIR/mnt.0/foo /tmp/foo
37 - sync
38 - rados -p data_cache ls -
39 - sleep 10
40 - rados -p data_cache ls -
41 - rados -p data_cache cache-flush-evict-all
42 - rados -p data_cache ls -
43 - sleep 1
44- exec:
45 client.1:
46 - hexdump -C /tmp/foo | head
47 - hexdump -C $TESTDIR/mnt.1/foo | head
48 - cmp $TESTDIR/mnt.1/foo /tmp/foo