Re: 答复: 答复: how to transfer ceph cluster from the old network-and-hosts to a new one

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

 



Hi!

  You should use ceph-osd@<num> as a service name, not ceph, and systemctl as a service control utility.

  For example, 'systemctl stop ceph-osd@3'

Best regards,
Vladimir


С уважением,
Дробышевский Владимир                                     
Компания "АйТи Город"
+7 343 2222192
ICQ# - 1921011

Аппаратное и программное обеспечение
IBM, Microsoft, Eset, Яндекс
Поставка проектов "под ключ"
Аутсорсинг ИТ-услуг

2016-07-26 7:11 GMT+05:00 朱 彤 <besthopeall@xxxxxxxxxxx>:

@Дробышевский thanks, I have tried, but 

# service ceph status
Redirecting to /bin/systemctl status  ceph.service
● ceph.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)

compared to another one having /etc/init.d/ceph and CentOS7 as well.
service ceph status
=== osd.6 ===
osd.6: running failed: '/usr/bin/ceph --admin-daemon /var/run/ceph/ceph-osd.6.asok version 2>/dev/null'

They have the same OS, but one has /etc/init.d/ceph, the other one doesn't. Probably I skipped some steps by mistake.
Since /etc/init.d/ceph is a script, can I just copy one to have it work?





发件人: Дробышевский, Владимир <vlad@xxxxxxxxxx>
发送时间: 2016年7月25日 12:43:54
收件人: 朱 彤
抄送: ceph-users@xxxxxxxxxxxxxx
主题: Re: 答复: how to transfer ceph cluster from the old network-and-hosts to a new one
 
Hi!

  CentOS 7 is using systemd, so you should stop osd with 'systemctl stop ceph-osd@<num>'

Best regards,
Vladimir


С уважением,
Дробышевский Владимир                                     
Компания "АйТи Город"
+7 343 2222192

Аппаратное и программное обеспечение
IBM, Microsoft, Eset
Поставка проектов "под ключ"
Аутсорсинг ИТ-услуг

2016-07-25 13:44 GMT+05:00 朱 彤 <besthopeall@xxxxxxxxxxx>:
@Henrik Korkuc thanks for the tip, operating on it. In order to stop OSD, i need to run /etc/init.d/ceph stop osd.num, but just noticed /etc/init.d/ceph is missing. No such directory or file.  I used ceph-deploy to install the cluster on Centos 7. Any idea?

Thanks!

发件人: ceph-users <ceph-users-bounces@xxxxxxxxxxxxxx> 代表 Henrik Korkuc <lists@xxxxxxxxx>
发送时间: 2016年7月25日 8:03:34
收件人: ceph-users@xxxxxxxxxxxxxx
主题: Re: how to transfer ceph cluster from the old network-and-hosts to a new one
 
On 16-07-25 10:55, 朱 彤 wrote:

Hi all,


I m looking for a method to transfer ceph cluster. 


Now the cluster is located in network1 that has hosts A, B, C...


And the target is to transfer it to network2 that has hosts a,b,c...


What I can think of, is adding hosts a, b, c into the current cluster like adding OSD and MON. Then after the data has been rebalanced, down OSD and MON on hosts A,B,C


Then the question would be how to know the old OSD could be safely down?


This method causes too much redundant operations, other than creating OSD or MON, in the new environment, should I also create PGs and POOLs just like the old cluster has?


Is there a more direct way to shift cluster from old network and hosts to a new one?


Hey,
please refer to recent post named "change of dns names and IP addresses of cluster members" in this mailing list. If both networks are interconnected then migration would be quite easy

Thanks!




_______________________________________________
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


_______________________________________________
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