Skip to contentSkip to conversation

would people mind a slow osd restart during luminous upgrade?

DISCUSSION Sage Weil 8 participants 10 messages Feb 9, 2017 5 messages not in the archive

lore
Share & tools
lore

Sage Weil

author
#0 lore raw

Hello, ceph operators...

Several times in the past we've had to do some ondisk format conversion during upgrade which mean that the first time the ceph-osd daemon started after upgrade it had to spend a few minutes fixing up it's ondisk files. We haven't had to recently, though, and generally try to avoid such things.

However, there's a change we'd like to make in FileStore for luminous (*) and it would save us a lot of time and complexity if it was a one-shot update during the upgrade. I would probably take in the neighborhood of 1-5 minutes for a 4-6TB HDD. That means that when restarting the daemon during the upgrade the OSD would stay down for that period (vs the usual <1 restart time).

Does this concern anyone? It probably means the upgrades will take longer if you're going host by host since the time per host will go up.

sage

* eliminate 'snapdir' objects, replacing them with a head object + whiteout.

A message that is not in the archive (sent off-list or not yet received): alpine.DEB.2.11.1702090302470.7782-qHenpvqtifaMSRpgCs4c+g@public.gmane.org

#2 lore raw

The only issue I can think of is if there isn't a version of the clients fully tested to work with a partially upgraded cluster or a documented incompatibility requiring downtime. We've had upgrades where we had to upgrade clients first and others that we had to do the clients last due to issues with how the clients interacted with an older cluster, partially upgraded cluster, or newer cluster.

If the FileStore is changing this much, I can imagine a Jewel client having a hard time locating the objects it needs from a Luminous cluster.

Quoted 21 lines · Sage Weil

Hello, ceph operators...

Several times in the past we've had to do some ondisk format conversion during upgrade which mean that the first time the ceph-osd daemon started after upgrade it had to spend a few minutes fixing up it's ondisk files. We haven't had to recently, though, and generally try to avoid such things.

However, there's a change we'd like to make in FileStore for luminous (*) and it would save us a lot of time and complexity if it was a one-shot update during the upgrade. I would probably take in the neighborhood of 1-5 minutes for a 4-6TB HDD. That means that when restarting the daemon during the upgrade the OSD would stay down for that period (vs the usual <1 restart time).

Does this concern anyone? It probably means the upgrades will take longer if you're going host by host since the time per host will go up.

sage

Quoted 7 lines

* eliminate 'snapdir' objects, replacing them with a head object + whiteout.
_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

A message that is not in the archive (sent off-list or not yet received): CAN-Gep+5wDxpab3b5AN_i1m2uNHVvhWkjMWjmd7Rmi6Xbnciuw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

author
#4 lore raw
Quoted 6 lines · David Turner

The only issue I can think of is if there isn't a version of the clients fully tested to work with a partially upgraded cluster or a documented incompatibility requiring downtime. We've had upgrades where we had to upgrade clients first and others that we had to do the clients last due to issues with how the clients interacted with an older cluster, partially upgraded cluster, or newer cluster.

We maintain client compatibiltity across *many* releases and several years. In general this under the control of the administrator via their choice of CRUSH tunables, which effectively let you choose the oldest client you'd like to support.

I'm curious which upgrade you had problems with? Generally speaking the only "client" upgrade ordering issue is with the radosgw clients, which need to be upgraded after the OSDs.

Quoted 2 lines

If the FileStore is changing this much, I can imagine a Jewel client having a hard time locating the objects it needs from a Luminous cluster.

In this case the change would be internal to a single OSD and have no effect on the client/osd interaction or placement of objects.

sage

A message that is not in the archive (sent off-list or not yet received): alpine.DEB.2.11.1702091426500.7782-qHenpvqtifaMSRpgCs4c+g@public.gmane.org

#6 lore raw

When we upgraded to Jewel 10.2.3 from Hammer 0.94.7 in our QA cluster we had issues with client incompatibility. We first tried upgrading our clients before upgrading the cluster. This broke creating RBDs, cloning RBDs, and probably many other things. We quickly called that test a wash and redeployed the cluster back to 0.94.7 and redid the upgrade by partially upgrading the cluster, testing, fully upgrading the cluster, testing, and finally upgraded the clients to Jewel. This worked with no issues creating RBDs, cloning, snapshots, deleting, etc.

I'm not sure if there was a previous reason that we decided to always upgrade the clients first. It might have had to do with the upgrade from Firefly to Hammer. It's just something we always test now, especially with full version upgrades. That being said, making sure that there is a client that was regression tested throughout the cluster upgrade would be great to have in the release notes.

Quoted 18 lines · Sage Weil
Quoted 4 lines · David Turner

The only issue I can think of is if there isn't a version of the clients fully tested to work with a partially upgraded cluster or a documented incompatibility requiring downtime. We've had upgrades where we had to upgrade clients first and others that we had to do the clients last due

to

Quoted 2 lines

issues with how the clients interacted with an older cluster, partially upgraded cluster, or newer cluster.

We maintain client compatibiltity across *many* releases and several years. In general this under the control of the administrator via their choice of CRUSH tunables, which effectively let you choose the oldest client you'd like to support.

I'm curious which upgrade you had problems with? Generally speaking the only "client" upgrade ordering issue is with the radosgw clients, which need to be upgraded after the OSDs.

Quoted 9 lines
Quoted 1 line

If the FileStore is changing this much, I can imagine a Jewel client

having

Quoted 1 line

a hard time locating the objects it needs from a Luminous cluster.

In this case the change would be internal to a single OSD and have no effect on the client/osd interaction or placement of objects.

sage

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

A message that is not in the archive (sent off-list or not yet received): CAN-GepLfgY-D6UaN+ZLt9Kdo20F4gOUnFPSOpjuNZzy=9bbKQw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#8 lore raw
Quoted 9 lines · David Turner

When we upgraded to Jewel 10.2.3 from Hammer 0.94.7 in our QA cluster we had issues with client incompatibility. We first tried upgrading our clients before upgrading the cluster. This broke creating RBDs, cloning RBDs, and probably many other things. We quickly called that test a wash and redeployed the cluster back to 0.94.7 and redid the upgrade by partially upgrading the cluster, testing, fully upgrading the cluster, testing, and finally upgraded the clients to Jewel. This worked with no issues creating RBDs, cloning, snapshots, deleting, etc.

Quoted 7 lines

I'm not sure if there was a previous reason that we decided to always upgrade the clients first. It might have had to do with the upgrade from Firefly to Hammer. It's just something we always test now, especially with full version upgrades. That being said, making sure that there is a client that was regression tested throughout the cluster upgrade would be great to have in the release notes.

I agree - it would have been nice to have this in the release notes, however we only hit it because we're hyperconverged (clients using Jewel against a Hammer cluster that hasn't yet had daemons restarted). We are fixing it by setting rbd_default_features = 3 in our upcoming upgrade. We will then unset it once the cluster is running Jewel.

Quoted 37 lines · Sage Weil
Quoted 19 lines · David Turner
Quoted 4 lines

The only issue I can think of is if there isn't a version of the clients fully tested to work with a partially upgraded cluster or a documented incompatibility requiring downtime. We've had upgrades where we had to upgrade clients first and others that we had to do the clients last due

to

Quoted 2 lines

issues with how the clients interacted with an older cluster, partially upgraded cluster, or newer cluster.

We maintain client compatibiltity across *many* releases and several years. In general this under the control of the administrator via their choice of CRUSH tunables, which effectively let you choose the oldest client you'd like to support.

I'm curious which upgrade you had problems with? Generally speaking the only "client" upgrade ordering issue is with the radosgw clients, which need to be upgraded after the OSDs.

Quoted 9 lines
Quoted 1 line

If the FileStore is changing this much, I can imagine a Jewel client

having

Quoted 1 line

a hard time locating the objects it needs from a Luminous cluster.

In this case the change would be internal to a single OSD and have no effect on the client/osd interaction or placement of objects.

sage

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Signature · 2 lines
Brian Andrus | Cloud Systems Engineer | DreamHost
[email protected] | www.dreamhost.com

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

#9 lore raw
In reply to a message not in the archive
Quoted 19 lines

Op 9 februari 2017 om 4:09 schreef Sage Weil <[email protected]>:

Hello, ceph operators...

Several times in the past we've had to do some ondisk format conversion during upgrade which mean that the first time the ceph-osd daemon started after upgrade it had to spend a few minutes fixing up it's ondisk files. We haven't had to recently, though, and generally try to avoid such things.

However, there's a change we'd like to make in FileStore for luminous (*) and it would save us a lot of time and complexity if it was a one-shot update during the upgrade. I would probably take in the neighborhood of 1-5 minutes for a 4-6TB HDD. That means that when restarting the daemon during the upgrade the OSD would stay down for that period (vs the usual <1 restart time).

Quoted 3 lines

Does this concern anyone? It probably means the upgrades will take longer if you're going host by host since the time per host will go up.

Not really. When going to Jewel data had to be chowned to ceph:ceph as well. As long as we make sure it's in the Release Notes very clearly we should be OK.

Wido

Quoted 9 lines

sage

* eliminate 'snapdir' objects, replacing them with a head object + whiteout.
_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

#10 lore raw
In reply to a message not in the archive
Quoted 15 lines · Sage Weil

Hello, ceph operators...

Several times in the past we've had to do some ondisk format conversion during upgrade which mean that the first time the ceph-osd daemon started after upgrade it had to spend a few minutes fixing up it's ondisk files. We haven't had to recently, though, and generally try to avoid such things.

However, there's a change we'd like to make in FileStore for luminous (*) and it would save us a lot of time and complexity if it was a one-shot update during the upgrade. I would probably take in the neighborhood of 1-5 minutes for a 4-6TB HDD. That means that when restarting the daemon during the upgrade the OSD would stay down for that period (vs the usual <1 restart time).

Quoted 2 lines

Does this concern anyone? It probably means the upgrades will take longer if you're going host by host since the time per host will go up.

In my opinion if this is clearly communicated (release notes + OSD logs) it's fine otherwise it may feel that something is wrong if OSD will take long time to start.

Quoted 9 lines

sage

* eliminate 'snapdir' objects, replacing them with a head object + whiteout.
_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

A message that is not in the archive (sent off-list or not yet received): 24cb8bc3-bda5-467c-b2cb-e9d77ba24679-eal8BvkdEKCHXe+LvDLADg@public.gmane.org

#12 lore raw
Quoted 4 lines · Henrik Korkuc
Quoted 2 lines · Sage Weil

Does this concern anyone? It probably means the upgrades will take longer if you're going host by host since the time per host will go up.

In my opinion if this is clearly communicated (release notes + OSD logs)

+1 for having the OSD log something when it starts the upgrade process, so the sysadmin who goes looking will see what's happening.

Cheers,
Dave

Signature · 9 lines
** Dave Holland ** Systems Support -- Informatics Systems Group **
** 01223 496923 ** The Sanger Institute, Hinxton, Cambridge, UK **


-- 
 The Wellcome Trust Sanger Institute is operated by Genome Research 
 Limited, a charity registered in England with number 1021457 and a 
 company registered in England with number 2742969, whose registered 
 office is 215 Euston Road, London, NW1 2BE. 
#13 lore raw
In reply to a message not in the archive

Hi Sage,

Is the update running in parallel for all OSDs being restarted?

Because 5 min per server is different than 150 min when there are 30 OSDs there..

Thank you,
George

Quoted 29 lines · Sage Weil

Hello, ceph operators...

Several times in the past we've had to do some ondisk format conversion during upgrade which mean that the first time the ceph-osd daemon started after upgrade it had to spend a few minutes fixing up it's ondisk files. We haven't had to recently, though, and generally try to avoid such things.

However, there's a change we'd like to make in FileStore for luminous (*) and it would save us a lot of time and complexity if it was a one-shot update during the upgrade. I would probably take in the neighborhood of 1-5 minutes for a 4-6TB HDD. That means that when restarting the daemon during the upgrade the OSD would stay down for that period (vs the usual <1 restart time).

Does this concern anyone? It probably means the upgrades will take longer if you're going host by host since the time per host will go up.

sage

* eliminate 'snapdir' objects, replacing them with a head object + whiteout.
_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

#14 lore raw
Quoted 6 lines · George Mihaiescu

Hi Sage,

Is the update running in parallel for all OSDs being restarted?

Because 5 min per server is different than 150 min when there are 30 OSDs there..

In parallel.

sage

Quoted 35 lines

Thank you,
George

Quoted 29 lines · Sage Weil

Hello, ceph operators...

Several times in the past we've had to do some ondisk format conversion during upgrade which mean that the first time the ceph-osd daemon started after upgrade it had to spend a few minutes fixing up it's ondisk files. We haven't had to recently, though, and generally try to avoid such things.

However, there's a change we'd like to make in FileStore for luminous (*) and it would save us a lot of time and complexity if it was a one-shot update during the upgrade. I would probably take in the neighborhood of 1-5 minutes for a 4-6TB HDD. That means that when restarting the daemon during the upgrade the OSD would stay down for that period (vs the usual <1 restart time).

Does this concern anyone? It probably means the upgrades will take longer if you're going host by host since the time per host will go up.

sage

* eliminate 'snapdir' objects, replacing them with a head object + whiteout.
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com