good idea!
thanks!
sz_cuitao(a)163.com
From: Eugen Block
Date: 2020-04-06 17:44
To: ceph-users
Subject: [ceph-users] Re: Can I fix the devive name,when using image map?
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(a)163.com:
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(a)163.com
_______________________________________________
ceph-users mailing list -- ceph-users(a)ceph.io
To unsubscribe send an email to ceph-users-leave(a)ceph.io
_______________________________________________
ceph-users mailing list -- ceph-users(a)ceph.io
To unsubscribe send an email to ceph-users-leave(a)ceph.io