mirror of
https://github.com/ceph/ceph
synced 2024-12-16 08:26:25 +00:00
8d9165a013
Signed-off-by: Sage Weil <sage@inktank.com>
16 lines
278 B
Bash
Executable File
16 lines
278 B
Bash
Executable File
#!/bin/sh -ex
|
|
|
|
[ -d /sys/bus/rbd ] || sudo modprobe rbd
|
|
|
|
mb=100000
|
|
|
|
rbd create foo --size $mb
|
|
sudo rbd map foo
|
|
sudo dd if=/dev/zero of=/dev/rbd/rbd/foo bs=1M count=$mb
|
|
sudo dd if=/dev/rbd/rbd/foo of=/dev/null bs=1M count=$mb
|
|
sudo rbd unmap /dev/rbd/rbd/foo
|
|
rbd rm foo
|
|
|
|
echo OK
|
|
|