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