Hi,
you can use the pool/image names to access your rbd image:
ceph:~ # rbd showmapped
id pool namespace image snap device
0 cinder image1 - /dev/rbd0
ceph:~ # ls -l /dev/rbd/cinder/image1
lrwxrwxrwx 1 root root 10 6. Apr 11:39 /dev/rbd/cinder/image1 -> ../../rbd0
I'm not aware of an option to change the device name.
Regards,
Eugen
Zitat von sz_cuitao@xxxxxxx:
Hi:
I use image map to mount a ceph device to localhost,but I found
that,the device name I can not control.
This is a problem,when it's name changed,the FS on it or the
database using this device may get wrongs.
Can I control the device name?
For exapme:
[root@gate2 ~]# rbd showmapped
id pool namespace image snap device
0 testpool test_img - /dev/rbd0
Can I map the device like this,just directly give the deveice name?like this:
rbd map testpool/test_img /dev/rbd0
sz_cuitao@xxxxxxx
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx