Re: Upgrade to Luminous (mon+osd)

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

 



Paul Emmerich wrote:
: Upgrading Ceph packages does not restart the services -- exactly for
: this reason.
: 
: This means there's something broken with your yum setup if the
: services are restarted when only installing the new version.

	Interesting. I have verified that I have

CEPH_AUTO_RESTART_ON_UPGRADE=no

in my /etc/sysconfig/ceph, yet my ceph-osd daemons get restarted on upgrade.
I have watched "ps ax|grep ceph-osd" output during
"yum --enablerepo Ceph update", and it seems the OSDs got restarted
near the time ceph-selinux got upgraded:

  Updating   : 2:ceph-base-12.2.10-0.el7.x86_64                          74/248 
  Updating   : 2:ceph-selinux-12.2.10-0.el7.x86_64                       75/248
  Updating   : 2:ceph-mon-12.2.10-0.el7.x86_64                           76/248 

And indeed, rpm -q --scripts ceph-selinux shows that this package restarts
the whole ceph.target when the labels got changed:

[...]
# Check whether the daemons are running
/usr/bin/systemctl status ceph.target > /dev/null 2>&1
STATUS=$?

# Stop the daemons if they were running
if test $STATUS -eq 0; then
    /usr/bin/systemctl stop ceph.target > /dev/null 2>&1
fi
[...]

So maybe ceph-selinux should also honor CEPH_AUTO_RESTART_ON_UPGRADE=no
in /etc/sysconfig/ceph ? But I am not sure whether it is possible at all,
when the labels got changed.

-Yenya

: Am Mo., 3. Dez. 2018 um 11:56 Uhr schrieb Jan Kasprzak <kas@xxxxxxxxxx>:
: >
: > I have a small(-ish) Ceph cluster, where there are osds on each host,
: > and in addition to that, there are mons on the first three hosts.
: > Is it possible to upgrade the cluster to Luminous without service
: > interruption?
: >
: > I have tested that when I run "yum --enablerepo Ceph update" on a
: > mon host, the osds on that host remain down until all three mons
: > are upgraded to Luminous. Is it possible to upgrade ceph-mon only,
: > and keep ceph-osd running the old version (Jewel in my case) as long
: > as possible? It seems RPM dependencies forbid this, but with --nodeps
: > it could be done.
: >
: > Is there a supported way how to upgrade host running both mon and osd
: > to Luminous?

-- 
| Jan "Yenya" Kasprzak <kas at {fi.muni.cz - work | yenya.net - private}> |
| http://www.fi.muni.cz/~kas/                         GPG: 4096R/A45477D5 |
 This is the world we live in: the way to deal with computers is to google
 the symptoms, and hope that you don't have to watch a video. --P. Zaitcev
_______________________________________________
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