Re: Read/write statistics per RBD image

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

 



You must add this on node that You are running VM's and [client.libvirt] is name of user configured in VM. Additional if you run vm's  as standard user, this user should have write permissions on /var/run/ceph/ directory.

Regards,
Mateusz
-----Original Message-----
From: ceph-users [mailto:ceph-users-bounces@xxxxxxxxxxxxxx] On Behalf Of sinan@xxxxxxxx
Sent: Tuesday, July 24, 2018 2:30 PM
To: ceph-users@xxxxxxxxxxxxxx
Subject: Re:  Read/write statistics per RBD image

Hi,

On which node should we add the "admin socket" parameter to ceph.conf. On the MON, OSD or on what node?

On one of my clients (which is the Ansible node in this case) has the
following:
[client.libvirt]
admin socket = /var/run/ceph/$cluster-$type.$id.$pid.$cctid.asok # must be writable by QEMU and allowed by SELinux or AppArmor

Permissions on the folder:
0 drwxrwx---.  2 ceph       ceph         40 23 jul 11:27 ceph

But /var/run/ceph is empty.

Thanks!
Sinan

> Hello again,
>
> How can I determine $cctid for specific rbd name? Or is there any good 
> way to map admin-socket with rbd?
>
> Regards
>
> Mateusz
>
>
>
> From: ceph-users [mailto:ceph-users-bounces@xxxxxxxxxxxxxx] On Behalf 
> Of Mateusz Skala (UST, POL)
> Sent: Tuesday, July 24, 2018 9:49 AM
> To: dillaman@xxxxxxxxxx
> Cc: ceph-users@xxxxxxxxxxxxxx
> Subject: [Possibly Forged Email] Re:  Read/write 
> statistics per RBD image
>
>
>
> Thank You for help, it is exactly that I need.
>
> Regards
>
> Mateusz
>
>
>
> From: Jason Dillaman [mailto:jdillama@xxxxxxxxxx]
> Sent: Wednesday, July 18, 2018 1:28 PM
> To: Mateusz Skala (UST, POL)
> <Mateusz.Skala@xxxxxxxxxxxxxx<mailto:Mateusz.Skala@xxxxxxxxxxxxxx>>
> Cc: dillaman <dillaman@xxxxxxxxxx<mailto:dillaman@xxxxxxxxxx>>; 
> ceph-users 
> <ceph-users@xxxxxxxxxxxxxx<mailto:ceph-users@xxxxxxxxxxxxxx>>
> Subject: Re:  Read/write statistics per RBD image
>
>
>
> Yup, on the host running librbd, you just need to enable the "admin 
> socket" in your ceph.conf and then use "ceph --admin-daemon 
> /path/to/image/admin/socket.asok perf dump" (i.e. not "ceph perf dump").
>
>
>
> See the example in this tip window [1] for how to configure for a 
> "libvirt" CephX user.
>
>
>
> [1] http://docs.ceph.com/docs/mimic/rbd/libvirt/#configuring-ceph
>
>
>
> On Wed, Jul 18, 2018 at 4:02 AM Mateusz Skala (UST, POL) 
> <Mateusz.Skala@xxxxxxxxxxxxxx<mailto:Mateusz.Skala@xxxxxxxxxxxxxx>>
> wrote:
>
>    Thanks  for response.
>
>    In ‘ceph perf dump’ there is no statistics for read/write 
> operations on specific RBD image, only for osd and total client 
> operations. I need to get statistics on one specific RBD image, to get 
> top used images. It is possible?
>
>    Regards
>
>    Mateusz
>
>
>
>    From: Jason Dillaman
> [mailto:jdillama@xxxxxxxxxx<mailto:jdillama@xxxxxxxxxx>]
>    Sent: Tuesday, July 17, 2018 3:29 PM
>    To: Mateusz Skala (UST, POL)
> <Mateusz.Skala@xxxxxxxxxxxxxx<mailto:Mateusz.Skala@xxxxxxxxxxxxxx>>
>    Cc: ceph-users
> <ceph-users@xxxxxxxxxxxxxx<mailto:ceph-users@xxxxxxxxxxxxxx>>
>    Subject: Re:  Read/write statistics per RBD image
>
>
>
>    Yes, you just need to enable the "admin socket" in your ceph.conf 
> and then use "ceph --admin-daemon /path/to/image/admin/socket.asok 
> perf dump".
>
>
>
>    On Tue, Jul 17, 2018 at 8:53 AM Mateusz Skala (UST, POL) 
> <Mateusz.Skala@xxxxxxxxxxxxxx<mailto:Mateusz.Skala@xxxxxxxxxxxxxx>>
> wrote:
>
>       Hi,
>
>       It is possible to get statistics of issued reads/writes to 
> specific RBD image? Best will be statistics like in /proc/diskstats in 
> linux.
>
>       Regards
>
>       Mateusz
>
>       _______________________________________________
>       ceph-users mailing list
>       ceph-users@xxxxxxxxxxxxxx<mailto:ceph-users@xxxxxxxxxxxxxx>
>       http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>
>
>
>
>
>
>    --
>
>    Jason
>
>
>
>
>
>
>    --
>
>    Jason
>
> _______________________________________________
> ceph-users mailing list
> ceph-users@xxxxxxxxxxxxxx
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>


_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com




[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