回复: Re: Can I fix the devive name,when using image map?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



good idea!

thanks!





sz_cuitao@xxxxxxx
 
From: Eugen Block
Date: 2020-04-06 17:44
To: ceph-users
Subject:  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@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
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux