Project:Toolchain/Glibc 2.28 porting notes/glusterfs and sshd

The usual sys-libs/glibc upgrade procedure is to update @world, then use app-admin/restart-services to restart daemons with changed libraries (most after a glibc update) and then a reboot (does not have to follow immediatelly). Since my distfiles are on glusterfs, an umount/mount is needed after the glibc update to reload libraries.

emerge -uDNva1 @world umount /usr/portage/distfiles mount /usr/portage/distfiles restart-services [prepare for the reboot, update kernel if necessary...] reboot

With glibc 2.28 this caused sshd crashes on several machines. Even the umount /usr/portage/distfiles command terminated my ssh connection. It's probably a good idea to have app-admin/monit installed to automatically restart sshd after a crash.

Because of that, this procedure seems to work better for glibc 2.28: emerge -uDNva1 @world --exclude sys-libs/glibc [prepare everything for the reboot, including kernel update if necessary] emerge -av1 sys-libs/glibc reboot