could you tell the call flow of pg state migration from log

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

 



You can find related codes at osd/PG.cc. It's used to control the state of PG.

On Wed, Aug 13, 2014 at 5:17 PM, yuelongguang <fastsync at 163.com> wrote:
> 2014-08-11 10:17:04.591497 7f0ec9b4f7a0 10 osd.0 pg_epoch: 153 pg[5.63(
> empty local-les=153 n=0 ec=81 les/c 153/153 152/152/152) [0] r=0 lpr=153
> crt=0'0 mlcod 0'0 inactive] null
> 2014-08-11 10:17:04.591501 7f0eb2b8f700  5 osd.0 pg_epoch: 155 pg[0.10(
> empty local-les=153 n=0 ec=1 les/c 153/153 152/152/152) [0] r=0 lpr=153
> crt=0'0 mlcod 0'0 inactive] enter Started
> 2014-08-11 10:17:04.591501 7f0ec9b4f7a0 10 osd.0 pg_epoch: 153 pg[2.65(
> empty local-les=153 n=0 ec=1 les/c 153/153 152/152/152) [0] r=0 lpr=153
> crt=0'0 mlcod 0'0 inactive] null
> 2014-08-11 10:17:04.591505 7f0eb2b8f700  5 osd.0 pg_epoch: 155 pg[0.10(
> empty local-les=153 n=0 ec=1 les/c 153/153 152/152/152) [0] r=0 lpr=153
> crt=0'0 mlcod 0'0 inactive] enter Start
> 2014-08-11 10:17:04.591508 7f0ec9b4f7a0 10 osd.0 pg_epoch: 153 pg[1.66(
> empty local-les=153 n=0 ec=1 les/c 153/153 152/152/152) [0] r=0 lpr=153
> crt=0'0 mlcod 0'0 inactive] null
> 2014-08-11 10:17:04.591509 7f0eb2b8f700  1 osd.0 pg_epoch: 155 pg[0.10(
> empty local-les=153 n=0 ec=1 les/c 153/153 152/152/152) [0] r=0 lpr=153
> crt=0'0 mlcod 0'0 inactive] state<Start>: transitioning to Primary
> 2014-08-11 10:17:04.591513 7f0ec9b4f7a0 10 osd.0 pg_epoch: 153 pg[3.64(
> empty local-les=153 n=0 ec=76 les/c 153/153 152/152/152) [0] r=0 lpr=153
> crt=0'0 mlcod 0'0 inactive] null
> 2014-08-11 10:17:04.591517 7f0ec9b4f7a0 10 osd.0 pg_epoch: 153 pg[4.63(
> empty local-les=153 n=0 ec=79 les/c 153/153 152/152/152) [0] r=0 lpr=153
> crt=0'0 mlcod 0'0 inactive] null
> 2014-08-11 10:17:04.591518 7f0eb2b8f700  5 osd.0 pg_epoch: 155 pg[0.10(
> empty local-les=153 n=0 ec=1 les/c 153/153 152/152/152) [0] r=0 lpr=153
> crt=0'0 mlcod 0'0 inactive] exit Start 0.000013 0 0.000000
> 2014-08-11 10:17:04.591521 7f0ec9b4f7a0 10 osd.0 pg_epoch: 153 pg[4.6c(
> empty local-les=153 n=0 ec=79 les/c 153/153 152/152/152) [0] r=0 lpr=153
> crt=0'0 mlcod 0'0 inactive] null
> 2014-08-11 10:17:04.591524 7f0eb2b8f700  5 osd.0 pg_epoch: 155 pg[0.10(
> empty local-les=153 n=0 ec=1 les/c 153/153 152/152/152) [0] r=0 lpr=153
> crt=0'0 mlcod 0'0 inactive] enter Started/Primary
> 2014-08-11 10:17:04.591526 7f0ec9b4f7a0 10 osd.0 pg_epoch: 153 pg[1.68(
> empty local-les=153 n=0 ec=1 les/c 153/153 152/152/152) [0] r=0 lpr=153
> crt=0'0 mlcod 0'0 inactive] null
> 2014-08-11 10:17:04.591529 7f0eb2b8f700  5 osd.0 pg_epoch: 155 pg[0.10(
> empty local-les=153 n=0 ec=1 les/c 153/153 152/152/152) [0] r=0 lpr=153
> crt=0'0 mlcod 0'0 inactive] enter Started/Primary/Peering
> 2014-08-11 10:17:04.591531 7f0ec9b4f7a0 10 osd.0 pg_epoch: 153 pg[1.6b(
> empty local-les=153 n=0 ec=1 les/c 153/153 152/152/152) [0] r=0 lpr=153
> crt=0'0 mlcod 0'0 inactive] null
> 2014-08-11 10:17:04.591535 7f0eb2b8f700  5 osd.0 pg_epoch: 155 pg[0.10(
> empty local-les=153 n=0 ec=1 les/c 153/153 152/152/152) [0] r=0 lpr=153
> crt=0'0 mlcod 0'0 peering] enter Started/Primary/Peering/GetInfo
>
> hi,all
> pg's state changes ,  Start --> Started/Primary....->
> Started/Primary/Peering/GetInfo .
> why is that?  what makes it do such change, and it is which thread handles
> the change? the code
>
>
> thanks
>
>
>
> _______________________________________________
> ceph-users mailing list
> ceph-users at lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>



-- 
Best Regards,

Wheat


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


  Powered by Linux