Re: How to detect degraded objects

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

 



HI tuan,

 

As per my knowledge, there is no cli as such. By indirect way, when you do pg dump, you will get  primary osd assigned for every pg.(check primary header) Parse through the directory /var/lib/ceph/osd/ceph-<osd_num>/current/<pg_id>_head

 

Here are all objects resided in that pg.

 

Thanks

Sahana Lokeshappa
Test Development Engineer I
SanDisk Corporation
3rd Floor, Bagmane Laurel, Bagmane Tech Park

C V Raman nagar, Bangalore 560093
T: +918042422283

Sahana.Lokeshappa@xxxxxxxxxxx

 

From: Ta Ba Tuan [mailto:tuantb@xxxxxxxxxx]
Sent: Friday, November 07, 2014 5:18 PM
To: Sahana Lokeshappa; ceph-users@xxxxxxxxxxxxxx
Subject: Re: How to detect degraded objects

 

Hi Sahana,

Thank for your replying. But, how to list objects of pgs ? :D

Thanks!
Tuan
--
HaNoi-VietNam

On 11/07/2014 04:22 PM, Sahana Lokeshappa wrote:

Hi Tuan,

 

14918 active+clean
                   1 active+clean+scrubbing+deep
                  52 active+recovery_wait+degraded
                   2 active+recovering+degraded

 

This says that 2 +52 pgs are degraded. You can run command:

 

ceph pg dump | grep degraded. You will get list of pgs which are  in degraded state. The objects included in that pg are in degraded state

 

Thanks

Sahana Lokeshappa


 

From: ceph-users [mailto:ceph-users-bounces@xxxxxxxxxxxxxx] On Behalf Of Ta Ba Tuan
Sent: Friday, November 07, 2014 2:49 PM
To: ceph-users@xxxxxxxxxxxxxx
Subject: How to detect degraded objects

 

Hi everyone,


  111/57706299 objects degraded (0.001%)                         
   &
 n
bsp;                                                                  
        14918 active+clean
                   1 active+clean+scrubbing+deep
                  52 active+recovery_wait+degraded
                   2 active+recovering+degraded


Ceph'state : 111 /57706299 objects degraded.
Some missing object(s) to have CEPH crash one osd daemon.

How to list degraded objects? Guide me, please. Thanks!

 -2196> 2014-11-07 16:04:23.063584 7fe1aed83700 10 osd.21 pg_epoch: 107789 pg[6.9f0( v 107789'7058293 lc 107786'7058229 (107617'7055096,107789'7058293] local-les=107788 n=4506 ec=164 les/c 107788/107785 107787/107787/105273) [101,21,78] r=1 lpr=107787 pi=106418-107786/36 luod=0'0 crt=107786'7058241 lcod 107786'7058222 active m=1] got missing 1f7c69f0/rbd_data.885435b2bbeeb.00000000000059c2/head//6 v 107786'7058230

     0> 2014-11-07 16:14:57.024605 7f8602e3d700 -1 *** Caught signal (Aborted) **
 in thread 7f8602e3d700


 ceph version 0.87-6-gdba7def (dba7defc623474ad17263c9fccfec60fe7a439f0)
 1: /usr/bin/ceph-osd() [0x9b6725]
 2: (()+0xfcb0) [0x7f8626439cb0]
 3: (gsignal()+0x35) [0x7f8624d3e0d5]
 4: (abort()+0x17b) [0x7f8624d4183b]
 5: (__gnu_cxx::__verbose_terminate_handler()+0x11d) [0x7f862569069d]
 6: (()+0xb5846) [0x7f862568e846]
 7: (()+0xb5873) [0x7f862568e873]
 8: (()+0xb596e) [0x7f862568e96e]
 9: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x259) [0xaa0089]
 10: (ReplicatedPG::trim_object(hobject_t const&)+0x222d) [0x8139ed]
 11: (ReplicatedPG::TrimmingObjects::react(ReplicatedPG::SnapTrim const&)+0x43e) [0x82b9be]
 12: (boost::statechart::simple_state<ReplicatedPG::TrimmingObjects, ReplicatedPG::SnapTrimmer, boost::mpl::list<mpl_::na, mpl_::na, mpl_::na, mp
l_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::n
a, mpl_::na, mpl_::na>, (boost::statechart::history_mode)0>::react_impl(boost::statechart::event_base const&, void const*)+0xc0) [0x870ce0]
 13: (boost::statechart::state_machine<ReplicatedPG::SnapTrimmer, ReplicatedPG::NotTrimming, std::allocator<void>, boost::statechart::null_except
ion_translator>::process_queued_events()+0xfb) [0x85618b]
 14: (boost::statechart::state_machine<ReplicatedPG::SnapTrimmer, ReplicatedPG::NotTrimming, std::allocator<void>, boost::statechart::null_except
ion_translator>::process_event(boost::statechart::event_base const&)+0x1e) [0x85633e]
 15: (ReplicatedPG::snap_trimmer()+0x4f8) [0x7d5ef8]
 16: (OSD::SnapTrimWQ::_process(PG*)+0x14) [0x673ab4]
 17: (ThreadPool::worker(ThreadPool::WorkThread*)+0x48e) [0xa8fade]
 18: (ThreadPool::WorkThread::entry()+0x10) [0xa92870]
 19: (()+0x7e9a) [0x7f8626431e9a]
 20: (clone()+0x6d) [0x7f8624dfc31d]
 NOTE: a copy of the executable, or `objdump -rdS <executable>` is needed to interpret this.


--
Tuan
HaNoi-VietNam



 



PLEASE NOTE: The information contained in this electronic mail message is intended only for the use of the designated recipient(s) named above. If the reader of this message is not the intended recipient, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify the sender by telephone or e-mail (as shown above) immediately and destroy any and all copies of this message in your possession (whether hard copies or electronically stored copies).

 

_______________________________________________
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