С уважением,
Дробышевский Владимир
Компания "АйТи Город"
+7 343 2222192
Аппаратное и программное обеспечение
IBM, Microsoft, Eset
Поставка проектов "под ключ"
Аутсорсинг ИТ-услуг
@Владимир I'll try that thanks.
Now when I remove the old OSD, pg remapped but stuck. http://docs.ceph.com/docs/jewel/rados/operations/add-or-rm-osds/ describes this as a "CRUSH corner case where some PGs remain stuck in the active+remapped state".
I have tried:
ceph osd crush reweight osd.8 0, and I can also see that in ceph osd tree it's weight is 0, but the cluster is still stuck. Before this, it was active+clean.
# ceph osd treeID WEIGHT TYPE NAME UP/DOWN REWEIGHT PRIMARY-AFFINITY-1 0.02939 root default-2 0.01469 host ceph-node10 0.00490 osd.0 up 1.00000 1.000001 0.00490 osd.1 up 1.00000 1.000002 0.00490 osd.2 up 1.00000 1.00000-3 0 host ceph-node38 0 osd.8 up 1.00000 1.00000-4 0.01469 host ceph-node25 0.00490 osd.5 up 1.00000 1.000006 0.00490 osd.6 up 1.00000 1.000007 0.00490 osd.7 up 1.00000 1.00000# ceph statuscluster eee6caf2-a7c6-411c-8711-a87aa4a66bf2health HEALTH_WARNclock skew detected on mon.ceph-node364 pgs stuck uncleantoo few PGs per OSD (18 < min 30)Monitor clock skew detectedmonmap e2: 2 mons at {ceph-node1=192.168.57.101:6789/0,ceph-node3=192.168.5 7.103:6789/0}election epoch 48, quorum 0,1 ceph-node1,ceph-node3osdmap e134: 7 osds: 7 up, 7 in; 64 remapped pgsflags sortbitwisepgmap v1387: 64 pgs, 1 pools, 0 bytes data, 0 objects260 MB used, 35502 MB / 35762 MB avail41 active+remapped23 active
thanks.
发件人: vlad@xxxxxxxxxx <vlad@xxxxxxxxxx> 代表 Владимир Дробышевский <v.heathen@xxxxxxxxx>
发送时间: 2016年7月26日 10:08:30
收件人: 朱 彤
抄送: ceph-users@xxxxxxxxxxxxxx
主题: Re: 答复: 答复: 答复: 答复: how to transfer ceph cluster from the old network-and-hosts to a new oneHello!
As far as I know, 'admin node' is just a node with ceph-deploy and initial config/keys directory (if I'm wrong somebody will corrent me, I hope). So you need just to install ceph-deploy (if you are going to use it futher) and move the ceph user's cluster config/keys directory to a new node. In any other senses nodes should be equal.
Best regards,Vladimir
С уважением,
Дробышевский Владимир
Компания "АйТи Город"
+7 343 2222192
ICQ# - 1921011
Аппаратное и программное обеспечение
IBM, Microsoft, Eset, Яндекс
Поставка проектов "под ключ"
Аутсорсинг ИТ-услуг
2016-07-26 13:08 GMT+05:00 朱 彤 <besthopeall@xxxxxxxxxxx>:
Thanks! the cluster becomes active+clean again.
Basically this proves OSD and MON could be transferred using rebalance. What about the admin node? After adding new OSD and MON, shutdown old OSD and MON, should I also set up a new admin and "turn off" the new one?
发件人: vlad@xxxxxxxxxx <vlad@xxxxxxxxxx> 代表 Владимир Дробышевский <v.heathen@xxxxxxxxx>
发送时间: 2016年7月26日 6:05:05
收件人: 朱 彤
抄送: ceph-users@xxxxxxxxxxxxxx
主题: Re: 答复: 答复: 答复: how to transfer ceph cluster from the old network-and-hosts to a new oneHi!As I can see from here:
osdmap e99: 9 osds: 9 up, 6 in; 64 remapped pgs
that you have 3 OSDs down. Seems that you've tried to remove all of your ceph-node3 OSDs at once.
This53 active+remapped48 active+undersized+degradedmeans that you have degraded objects: I would say that you have pools with size=3, so since you've lost all OSDs on one of your nodes (1/3 of all of your OSDs) now you have degraded pools with 2 PG copies only instead of 3.
Besides, systemctl status ceph-osd@3 and systemctl status ceph-osd@4 give the same result: Active: inactive (dead)Probably because both aren't running. You can try 'ps ax | grep osd' and check output.
Best regards,Vladimir
С уважением,
Дробышевский Владимир
Компания "АйТи Город"
+7 343 2222192
ICQ# - 1921011
Аппаратное и программное обеспечение
IBM, Microsoft, Eset, Яндекс
Поставка проектов "под ключ"
Аутсорсинг ИТ-услуг
2016-07-26 10:11 GMT+05:00 朱 彤 <besthopeall@xxxxxxxxxxx>:
Now the service could be found, thanks. However, both ceph osd tree and ceph status show osd.3 is still up, although ceph status also shows "degraded, stuck unclean..." I think is because of clock skew on a second MON.
Besides, systemctl status ceph-osd@3 and systemctl status ceph-osd@4 give the same result: Active: inactive (dead)
[root@ceph-node1 ~]# systemctl stop ceph-osd@3[root@ceph-node1 ~]# ceph osd treeID WEIGHT TYPE NAME UP/DOWN REWEIGHT PRIMARY-AFFINITY-1 0.04408 root default-2 0.01469 host ceph-node10 0.00490 osd.0 up 1.00000 1.000001 0.00490 osd.1 up 1.00000 1.000002 0.00490 osd.2 up 1.00000 1.00000-3 0.01469 host ceph-node33 0.00490 osd.3 up 0 1.000004 0.00490 osd.4 up 0 1.000008 0.00490 osd.8 up 0 1.00000-4 0.01469 host ceph-node25 0.00490 osd.5 up 1.00000 1.000006 0.00490 osd.6 up 1.00000 1.000007 0.00490 osd.7 up 1.00000 1.00000[root@ceph-node1 ~]# ceph statuscluster eee6caf2-a7c6-411c-8711-a87aa4a66bf2health HEALTH_WARNclock skew detected on mon.ceph-node348 pgs degraded112 pgs stuck unclean48 pgs undersizedrecovery 342/513 objects degraded (66.667%)Monitor clock skew detectedmonmap e2: 2 mons at {ceph-node1=192.168.57.101:6789/0,ceph-node3=192.168.57.103:6789/0}election epoch 44, quorum 0,1 ceph-node1,ceph-node3osdmap e99: 9 osds: 9 up, 6 in; 64 remapped pgsflags sortbitwisepgmap v45477: 112 pgs, 7 pools, 1636 bytes data, 171 objects224 MB used, 30429 MB / 30653 MB avail342/513 objects degraded (66.667%)53 active+remapped48 active+undersized+degraded11 active[root@ceph-node1 ~]# systemctl status ceph-osd@3● ceph-osd@3.service - Ceph object storage daemonLoaded: loaded (/usr/lib/systemd/system/ceph-osd@.service; enabled; vendor preset: disabled)Active: inactive (dead)
发件人: vlad@xxxxxxxxxx <vlad@xxxxxxxxxx> 代表 Владимир Дробышевский <v.heathen@xxxxxxxxx>
发送时间: 2016年7月26日 4:47:14
收件人: 朱 彤
抄送: ceph-users@xxxxxxxxxxxxxx
主题: Re: 答复: 答复: how to transfer ceph cluster from the old network-and-hosts to a new oneHi!
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 statusRedirecting to /bin/systemctl status ceph.service● ceph.serviceLoaded: 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 oneHi!
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 oneOn 16-07-25 10:55, 朱 彤 wrote:
Hey,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?
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
_______________________________________________
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