Friday, 13 October 2017

[linux 4.13.0] Unsurmountable

Today I put on my sysadmin hat and did some

  apt-get update; apt-get upgrade

After that the list of things being held back was rather large so I started to probe by seeing what apt-get would do if I tried to install them one-by-one.

util-linux
udisks2
nvidia-kernel-support
mess
linux-image-amd64
linux-headers-amd64
licensecheck # this put my hackles up: felt very DRM
cups-filters
libspice-server1


I rebooted and once I got back to shell I found that the NFS was missing, (it should have mounted by itself, as usual.)

As Simon Tatham taught us you should freeze and do NOTHING. I did exactly that and logged into another server on the LAN that had not been updated.

mount -V told me 2.25.2 (libmount 2.25.0 ...)
(and it could mount the NAS both via -t nft and -t cifs

I went back to the broken system and ran

showmount -e NAS

which gave me the same Export list as on the working server.
So the NAS, (which hasn't been updated) seems to work, (even checked from windows 7 and 8 on the LAN and they both worked.)

I thought that I'd go back to my slackware roots and

git clone git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git
./autogen.sh  ||  apt-get install -y bison ;  ./autogen.sh
./configure && make

I posted my problem to serverfault.com to see if it was a known debian 8 jessie problem. While I waited I answered a few other questions and did other SO admin, (which lead me to install  shellcheck and start testing some of my bash lib.)

I jumped onto irc to see if anyone knew of this problem and only got, "have you tried with the latest version?" (Which turned out to be fair as it seems to be a kernel bug. I haven't hit one of those in production for over 10 years.)

I tried with the latest util-linux version, (that I'd compiled) and even tried 

git checkout v2.25.2 ; ./autogen.sh ./configure && make

to see if the working version would work. Both gave the same error... which made me think that it was a kernel problem.

While I let my, (and the Internet's) grey-cells think about it I fell back on

sshfs nfs-admin@NAS:/export/backups/$(hostname) ~/backup

until I get to the bottom of this.

In the mean time I had to add 

set mouse-=a

to  the end of ~/.vimrc  because Shift+Insert (and both other "paste from clipboard" were misbehaving in "some of your string will be pasted but other characters might be interpreted as commands and might quit vim" like vim when your keyboard swaps layout and feels like its taken some recreational drugs.)

[ I think that it was a problem with lxterminal or gnome-pty-helper or screen

so I ran tmux in tilda and the problem was interestingly absent. One problem at a time; please!]


booted back into 4.12.0-1-amd64 kernel and mount.cifs and mount.nfs are working again.

so I apologise to the util-linux team for doubting them and wonder how I report my problem... 

https://bugzilla.kernel.org/show_bug.cgi?id=196599 looks like the kernel tracker might know about it, but then the question is why did the debian kernel team let a faulty kernel into stable?

For reference mount.cifs works on:

scripts/ver_linux
 

Linux acer 4.12.0-1-amd64 #1 SMP Debian 4.12.6-1 (2017-08-12) x86_64 GNU/Linux

GNU Make                4.1
Binutils                2.29.1
Util-linux              2.29.2
Mount                   2.29.2
Linux C Library         2.24
Dynamic linker (ldd)    2.24
readlink: missing operand
Try 'readlink --help' for more information.
Procps                  3.3.12
Kbd                     2.0.4
Console-tools           2.0.4
Sh-utils                8.26
Udev                    234
Modules Loaded          ac acer_wmi aesni_intel aes_x86_64 ahci appletalk arc4 async_memcpy async_pq async_raid6_recov async_tx async_xor ath ath3k ath9k ath9k_common ath9k_hw autofs4 ax25 battery binfmt_misc bluetooth bnep btbcm btintel btrfs btrtl btusb button ccm cdrom cfg80211 cifs cmac coretemp crc16 crc32c_generic crc32c_intel crc32_pclmul crct10dif_pclmul cryptd crypto_simd ctr dns_resolver drm drm_kms_helper dw_dmac dw_dmac_core ecb ecdh_generic efi_pstore efivarfs efivars ehci_hcd ehci_pci evdev ext4 falco_probe fat fscache fscrypto fuse ghash_clmulni_intel glue_helper hid hid_generic hid_multitouch i2c_algo_bit i2c_designware_core i2c_designware_platform i2c_hid i2c_i801 i915 intel_cstate intel_powerclamp intel_rapl intel_rapl_perf intel_uncore ip_tables ipx irqbypass iTCO_vendor_support iTCO_wdt jbd2 joydev kvm kvm_intel libahci libata libcrc32c linear llc lp lpc_ich mac80211 mbcache md4 md_mod media mei mei_me memstick mfd_core mii mmc_core multipath nfnetlink nfnetlink_log nfnetlink_queue nls_ascii nls_cp437 nls_utf8 nvidia nvidia_drm nvidia_modeset p8022 p8023 parport parport_pc pcspkr ppdev psnap r8169 raid0 raid10 raid1 raid456 raid6_pq rfcomm rfkill rtsx_pci rtsx_pci_ms rtsx_pci_sdmmc scsi_mod sdhci sdhci_acpi sd_mod serio_raw sg shpchp snd snd_compress snd_hda_codec snd_hda_codec_generic snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_core snd_hda_intel snd_hwdep snd_pcm snd_soc_core snd_soc_rl6231 snd_soc_rt5640 snd_soc_sst_acpi snd_soc_sst_match snd_timer soc_button_array soundcore sparse_keymap sr_mod sunrpc usb_common usbcore usbhid uvcvideo vfat video videobuf2_core videobuf2_memops videobuf2_v4l2 videobuf2_vmalloc videodev wmi x86_pkg_temp_thermal xhci_hcd xhci_pci xor x_tables

 
 

but fails with the unhelpful 

mount error(112): Host is down

on scripts/ver_linux
Linux acer 4.13.0-1-amd64 #1 SMP Debian 4.13.4-1 (2017-10-01) x86_64 GNU/Linux

GNU Make                4.1
Binutils                2.29.1
Util-linux              2.29.2
Mount                   2.29.2
Linux C Library         2.24
Dynamic linker (ldd)    2.24
readlink: missing operand
Try 'readlink --help' for more information.
Procps                  3.3.12
Kbd                     2.0.4
Console-tools           2.0.4
Sh-utils                8.26
Udev                    234
Modules Loaded          ac acer_wmi aesni_intel aes_x86_64 ahci ansi_cprng appletalk arc4 async_memcpy async_pq async_raid6_recov async_tx async_xor ath ath3k ath9k ath9k_common ath9k_hw autofs4 ax25 battery binfmt_misc bluetooth bnep btbcm btintel btrfs btrtl btusb button ccm cdrom cfg80211 cifs cmac coretemp crc16 crc32c_generic crc32c_intel crc32_pclmul crct10dif_pclmul cryptd crypto_simd ctr dns_resolver drbg drm drm_kms_helper dw_dmac dw_dmac_core ecb ecdh_generic efi_pstore efivarfs efivars ehci_hcd ehci_pci evdev ext4 falco_probe fat fscache fscrypto fuse ghash_clmulni_intel glue_helper hid hid_generic hid_multitouch i2c_algo_bit i2c_designware_core i2c_designware_platform i2c_hid i2c_i801 i915 intel_cstate intel_powerclamp intel_rapl intel_rapl_perf intel_uncore ip_tables ipx irqbypass iTCO_vendor_support iTCO_wdt jbd2 joydev kvm kvm_intel libahci libata libcrc32c linear llc lp lpc_ich mac80211 mbcache md_mod media mei mei_me memstick mfd_core mii mmc_core multipath nfnetlink nfnetlink_log nfnetlink_queue nls_ascii nls_cp437 nls_utf8 nvidia nvidia_drm nvidia_modeset p8022 p8023 parport parport_pc pcspkr ppdev psnap r8169 raid0 raid10 raid1 raid456 raid6_pq rfcomm rfkill rtsx_pci rtsx_pci_ms rtsx_pci_sdmmc scsi_mod sdhci sdhci_acpi sd_mod serio_raw sg shpchp snd snd_compress snd_hda_codec snd_hda_codec_generic snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_core snd_hda_intel snd_hwdep snd_pcm snd_soc_core snd_soc_rl6231 snd_soc_rt5640 snd_soc_sst_acpi snd_soc_sst_match snd_timer soc_button_array soundcore sparse_keymap spi_pxa2xx_platform sr_mod sunrpc usb_common usbcore usbhid uvcvideo vfat video videobuf2_core videobuf2_memops videobuf2_v4l2 videobuf2_vmalloc videodev wmi wmi_bmof x86_pkg_temp_thermal xhci_hcd xhci_pci xor x_tables



TL;DR  debian linux kernel 4.12.0 to 4.13.0 removed md4 module and gained ansi_cprng drbg spi_pxa2xx_platform  wmi_bmof and lost the ability to mount cifs vers=1.0 and my nfs
 Progress! ;-s

No comments:

Post a Comment

About this blog

Sort of a test blog... until it isn't