Re: adding/removing osd problem

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

 



Hi,
I have a similar question when testing.
When I restarted my OSD server, the OSD cannot join the OSD pool automatically.
I have to login into the OSD server and type "cosd -i #"(# is the
number of OSD).

My question is, can monitor or MDS automatically detect OSDes, other
MDSs or monitors and add them into the pool when they restart?
Thanks!

å 2011å3æ17æäå3:20ïUpendra Moturi <upendra.m@xxxxxxxxxxxx> åéï
> Hi
>
> I too had the same problem.
> Only one option i found(just for testing)i had to stop the cluster and
> start it again.
>
> /etc/init.d/ceph start osd<n> does not do anything as this not even
> going into start case .
>
> 2011/3/17 Upendra Moturi <upendra.m@xxxxxxxxxxxx>
>>
>> I too had the same problem.
>> Only one option i found(just for testing)i had to stop the cluster and start it again.
>>
>> /etc/init.d/ceph start osd<n> does not do anything as this not even going into start case .
>>
>>
>> 2011/3/17 Samuel Just <samuelj@xxxxxxxxxxxxxxx>
>>>
>>> ÂFrom the looks of the fdisk output, it seems that the disk was not
>>> recognized by the OS when it was reinserted? The OSD daemon won't be
>>> able to start if the disk is not found.
>>> -Sam
>>>
>>> On 03/16/2011 05:08 PM, huang jun wrote:
>>> > Hiï
>>> > Recently, I try to do "adding/removing osds " in ceph wiki
>>> > Here is what I ave done
>>> > <1> build a cluster with mon/mds/osd0 in the same machine "host0"
>>> > Â Â And start it,everything is ok
>>> > <2> follow the wiki ceph ,add a disk (/dev/sdb4)into host0
>>> > Â ÂIt's ok ,"ceph osd dump -o - "show that there are two osds and
>>> > state are in/up
>>> > <3> write a 4G file
>>> > pull out the osd1 when it about writes 2G ,the osd1 was marked down
>>> > and 5 mins laster
>>> > it was marked out,but use "df -hl "
>>> > I Âfind "/dev/sdb4 885G Â2.7M Â885G Â 1% /data/osd1" (it's right?)
>>> > so when re-insert the disk ," fdisk -l" show me:
>>> >
>>> > Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
>>> > 255 heads, 63 sectors/track, 121601 cylinders
>>> > Units = cylinders of 16065 * 512 = 8225280 bytes
>>> > Disk identifier: 0x000d6542
>>> >  ÂDevice Boot   ÂStart     End   ÂBlocks  Id ÂSystem
>>> > /dev/sda1 Â * Â Â Â Â Â 1 Â Â Â Â3263 Â Â26210016 Â 83 ÂLinux
>>> > /dev/sda2 Â Â Â Â Â Â3264 Â Â Â Â6134 Â Â23061307+ Â f ÂW95 Ext'd (LBA)
>>> > /dev/sda3 Â Â Â Â Â Â6135 Â Â Â121601 Â 927488677+ Â83 ÂLinux
>>> > /dev/sda5 Â Â Â Â Â Â3264 Â Â Â Â4307 Â Â 8385898+ Â82 ÂLinux swap / Solaris
>>> > /dev/sda6 Â Â Â Â Â Â4308 Â Â Â Â5612 Â Â10482381 Â 83 ÂLinux
>>> > /dev/sda7 Â Â Â Â Â Â5613 Â Â Â Â6134 Â Â 4192933+ Â83 ÂLinux
>>> >
>>> > Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
>>> > 255 heads, 63 sectors/track, 121601 cylinders
>>> > Units = cylinders of 16065 * 512 = 8225280 bytes
>>> > Disk identifier: 0x000549cb
>>> >  ÂDevice Boot   ÂStart     End   ÂBlocks  Id ÂSystem
>>> > /dev/sdc1 Â * Â Â Â Â Â 1 Â Â Â Â3263 Â Â26210016 Â 83 ÂLinux
>>> > /dev/sdc2 Â Â Â Â Â Â3264 Â Â Â Â6134 Â Â23061307+ Â f ÂW95 Ext'd (LBA)
>>> > /dev/sdc4 Â Â Â Â Â Â6135 Â Â Â121601 Â 927488677+ Â83 ÂLinux
>>> > /dev/sdc5 Â Â Â Â Â Â3264 Â Â Â Â4307 Â Â 8385898+ Â82 ÂLinux swap / Solaris
>>> > /dev/sdc6 Â Â Â Â Â Â4308 Â Â Â Â5612 Â Â10482381 Â 83 ÂLinux
>>> > /dev/sdc7 Â Â Â Â Â Â5613 Â Â Â Â6134 Â Â 4192933+ Â83 ÂLinux
>>> >
>>> > And finally I can not start osd1
>>> > Because "/etc/init.d/ceph start osd1 " do nothing
>>> > Where is my problem?can you find it out for me?
>>> > thanks
>>> > --
>>> > To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
>>> > the body of a message to majordomo@xxxxxxxxxxxxxxx
>>> > More majordomo info at Âhttp://vger.kernel.org/majordomo-info.html
>>>
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
>>> the body of a message to majordomo@xxxxxxxxxxxxxxx
>>> More majordomo info at Âhttp://vger.kernel.org/majordomo-info.html
>>
>>
>>
>> --
>> Thanks and Regards,
>> Upendra.M
>
>
>
> --
> Thanks and Regards,
> Upendra.M
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at Âhttp://vger.kernel.org/majordomo-info.html
>



-- 
Best Regards,
Sylar Shen
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux