Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
## Check for mounts
while [[ ! -d /mnt/750gb/mysql || ! -d /mnt/3tb/mysql || ! -d /mnt/5tb/mysql ]]
do
sleep 30
echo "Something is wrong with mounting, fix it!" > /boot/MOUNT-ERR.log
done
@ShapeShifter499
ShapeShifter499 / gist:df184265fbf0672140d396d89510d184
Created June 6, 2018 05:17
kernel BUG at arch/arm64/kernel/fpsimd.c:282! Raspberry Pi 3B+
[Jun 5 20:00] ------------[ cut here ]------------
[ +0.000132] kernel BUG at arch/arm64/kernel/fpsimd.c:282!
[ +0.000094] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
[ +0.000088] Modules linked in: fuse vchiq(C) uio_pdrv_genirq uio sch_fq_codel ip_tables x_tables ipv6 dm_crypt aes_neon_bs aes_neon_blk crypto_simd cryptd aes_arm64 algif_skcipher af_alg dm_mod dax brcmfmac cfg80211 rfkill brcmutil sdhci_iproc
[ +0.000409] CPU: 1 PID: 2035 Comm: kworker/u9:9 Tainted: G C 4.14.44-v8-4fca48b7612d+ #1
[ +0.000131] Hardware name: Raspberry Pi 3 Model B Plus Rev 1.3 (DT)
[ +0.000134] Workqueue: kcryptd kcryptd_crypt [dm_crypt]
[ +0.000089] task: ffffffe17c755700 task.stack: ffffff800aff8000
[ +0.000104] PC is at kernel_neon_begin+0xd8/0x110
[ +0.000085] LR is at __xts_crypt+0x40/0xd8 [aes_neon_bs]
[Jun 1 22:50] ------------[ cut here ]------------
[ +0.000118] kernel BUG at arch/arm64/kernel/fpsimd.c:282!
[ +0.000093] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
[ +0.000088] Modules linked in: fuse vchiq(C) uio_pdrv_genirq uio sch_fq_codel ip_tables x_tables ipv6 dm_crypt aes_neon_bs aes_neon_blk crypto_simd cryptd aes_arm64 algif_skcipher af_alg dm_mod dax brcmfmac cfg80211 rfkill brcmutil sdhci_iproc
[ +0.000403] CPU: 1 PID: 367 Comm: kworker/u9:2 Tainted: G C 4.14.44-v8-4fca48b7612d+ #1
[ +0.000128] Hardware name: Raspberry Pi 3 Model B Plus Rev 1.3 (DT)
[ +0.000127] Workqueue: kcryptd kcryptd_crypt [dm_crypt]
[ +0.000086] task: ffffffde2eaeba00 task.stack: ffffff8009188000
[ +0.000100] PC is at kernel_neon_begin+0xd8/0x110
[ +0.000082] LR is at __xts_crypt+0x40/0xd8 [aes_neon_bs]
[ 5977.453646] kworker/u9:4: page allocation failure: order:0, mode:0x1080020(GFP_ATOMIC), nodemask=(null)
[ 5977.453848] kworker/u9:4 cpuset=/ mems_allowed=0
[ 5977.453946] CPU: 1 PID: 6649 Comm: kworker/u9:4 Tainted: G C 4.14.44-v8-4fca48b7612d+ #1
[ 5977.454077] Hardware name: Raspberry Pi 3 Model B Plus Rev 1.3 (DT)
[ 5977.454204] Workqueue: kcryptd kcryptd_crypt [dm_crypt]
[ 5977.454290] Call trace:
[ 5977.454350] [<ffffff8296c8af60>] dump_backtrace+0x0/0x268
[ 5977.454440] [<ffffff8296c8b1ec>] show_stack+0x24/0x30
[ 5977.454525] [<ffffff829733e84c>] dump_stack+0xac/0xe8
[ 5977.454610] [<ffffff8296db7b08>] warn_alloc+0xe0/0x160
[root@rpi3bplus-1 mnt]# smartctl -x /dev/sdc
smartctl 6.6 2017-11-05 r4594 [armv7l-linux-4.14.34-1-ARCH] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org
Read Device Identity failed: scsi error device will be ready soon
A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
[root@rpi3bplus-1 mnt]#
[ 22.328437] sd 2:0:0:0: [sdc] Very big device. Trying to use READ CAPACITY(16).
[ 22.328749] sd 2:0:0:0: [sdc] 5860466688 512-byte logical blocks: (3.00 TB/2.73 TiB)
[ 22.332042] sd 2:0:0:0: [sdc] 4096-byte physical blocks
[ 22.334132] sd 2:0:0:0: [sdc] Write Protect is off
[ 22.335921] sd 2:0:0:0: [sdc] Mode Sense: 47 00 10 08
[ 22.336356] sd 2:0:0:0: [sdc] No Caching mode page found
[ 22.338141] sd 2:0:0:0: [sdc] Assuming drive cache: write through
[ 22.341911] sd 2:0:0:0: [sdc] Very big device. Trying to use READ CAPACITY(16).
[ 22.748376] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[ 24.268574] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
<DonkeyHotei> still, a router assigning ipv6 addresses should not assign the same one to different mac addresses
* if_e1se (uid16886@gateway/web/irccloud.com/x-kjojvwjgihyxitvh) has joined
<pkgadd> it doesn't really - and it can't do anything else
<pkgadd> for the router, client_a and client_b are the same, if both present the same hostid (and/or MAC address) as part of their DHCPv6 query
* thy0 has quit (Quit: TTFN)
<pkgadd> and clients requesting a new lease while the old one is still valid is also common (pretty much convention, as well behaved clients request a renew after half of the granted lease time)
<pkgadd> woes with duplicate MAC addresses are as old as the ethernet standard
<pkgadd> the only 'new' part now is that this also extends to hostids, in case of IPv6
<DonkeyHotei> but it sounds like what is happening to him is that only the mac addresses are different, but the host-id is the same
<pkgadd> don't get me wrong, I'm no fan of hostids, not at all - I'd very much prefer if DHCPv6-server would e
@ShapeShifter499
ShapeShifter499 / interfaces
Created April 17, 2018 11:34
/etc/networks/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
# Set up interfaces manually, avoiding conflicts with, e.g., network manager
allow-hotplug eth0
iface eth0 inet manual
pre-up ifup $IFACE
pre-down ifdown $IFACE
@ShapeShifter499
ShapeShifter499 / 99-sysctl.conf
Created April 3, 2018 16:45
Raspberry Pi Zero PPP Serial configuration
## Host RPi sysctl config /etc/sysctl.d/99-sysctl.conf
net.ipv4.ip_forward=1
net.ipv6.conf.all.forwarding=1
net.ipv4.conf.usb0.proxy_arp=1
net.ipv6.conf.usb0.accept_ra=1
# The loopback network interface
auto lo
iface lo inet loopback
# Set up interfaces manually, avoiding conflicts with, e.g., network manager
iface eth0 inet manual
iface usb0 inet manual
iface usb1 inet manual
iface usb2 inet manual