ceph/qa/rbd/rbd.sh

21 lines
236 B
Bash
Raw Normal View History

2010-10-28 21:31:22 +00:00
#!/bin/bash -x
basedir=`echo $0 | sed 's/[^/]*$//g'`.
. $basedir/common.sh
rbd_test_init
rbd_add 0
devname=/dev/rbd$rbd0
mkfs -t ext3 $devname
mount -t ext3 $devname /mnt
dbench -D /mnt -t 30 5
sync
umount /mnt
rbd_remove $rbd0