Hi Xiaoguang, I don't have a RBD system running at the moment, so i can't check my commands. But when you have /dev/rbd0, you can remove this device with: echo 0 > /sys/class/rbd/remove There might be a resize option, see: http://tracker.newdream.net/issues/42 echo 0 > /sys/class/rbd/refresh Does that work for you? Wido On Mon, 2010-08-09 at 14:48 +0800, Xiaoguang Liu wrote: > the following command will add rbd device on Linux > echo "172.16.12.1 name=admin rbd foo" > /sys/class/rbd/add > > but how to remove it or change it (after I resize the image by rbd > resize foo -size=xxx)? the wiki does not say. > -- > To unsubscribe from this list: send the line "unsubscribe ceph-devel" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html