Author: leizhou


About this author:

Mellanox MSN2100 Switch fan tolerance

My Mellanox MSN2100 switch constantly has the “system status” LED on red since purchase. By looking into its system status: show system-health detail System status summary System status LED redServices:Status: OKHardware:Status: Not OKReasons: Failed to get speed tolerance for fan4Failed to get speed tolerance for fan3Failed to get speed tolerance for fan2Failed to get speed […]

Using SONiC to run MSN2100 switch

The Mellanox/NVidia MSN2100 switch came with a bare ONIE system and is not Plug and Play. NVidia service can not provide setting up assistance without a ONYX//Cumulus/SONiC entitlement. I installed the community version of SONiC from for sonic-mellanox.bin. After the installation, the switch is automatically configured with all 16 ports as routers with a […]

6020095 · 2^6972593 – 1 is prime

It has 2098967 decimal digits. See record page here.

3^1681130 + 3^445781 + 1 is prime.

Proof file: HERE Record page here. 3^1681130+3^445781+1 has 802,104 digits factor of p-1: 3^1681130+3^445781 = 3^445781*(3^1235349+1) for 3^1235349+1: Divisor of 1235349: {1, 3, 9, 317, 433, 951, 1299, 2853, 3897, 137261, 411783, 1235349} for which Cyclotomic[2x,3] divides 3^1235349+1, 3^1235349+1=Product of Phi[2m,3], m is in the above divisor list. Phi: Cyclotomic function in Mathematica. Phi[2,3] = […]

NFS_v4 stall, how to rescure without reboot

Sometimes your NFS mount stopped response. You cannot umount normally, if you use umount -l to unmount it, you cannot mount it again, Mounting attempt stalls too. The suggestion on the interenet was to just reboot the client. But you may have important jobs or services on it and you really do not want to. […]

dnf install/update fail with error rpmdbNextIterator skipping Header V3 RSA/SHA1 Signature BAD

Sometimes when an dnf update was unexpectedly terminated like a power failure, the system may leave an inconsistent rpm database. If this happens, in most case by rebuilding rpm database (rpmdb –rebuilddb), and to use (package-cleanup –cleandupes), it could be fixed. For some severe case, after both, when you are trying to run (dnf update […]

ssh command does not exit when X11 forwarding is enabled

If ForwadX11 and ForwardX11Trusted are both enabled in /etc/ssh/ssh_config, when you do “ssh host” it will invoke X11 forwarding by default. This is convenient when you frequently need to run programs with GUI on remote host. However, with X11 forwarding, if you are simply running a text mode command/script via ssh, like “ssh node ls” […]

ssh pass password to sudo

echo <your password> | ssh <node name> “sudo -S <command>”

Recovering LVM from disk image

For a RAID NAS box, when the NAS box dies, the data on the drives are still intact. They can be retrieved in the following steps: dd disks containing LVM to hard drive; # create images of hard drives losetup /dev/loopx disks.img; # make images appear as loop devices on OS partx -v -add /dev/loopx; […]

bash script does not run command

Sometimes a bash script does not run the commands as cron or start up scripts that usually run when you debugging it. This may be caused by that the embedded running environment does not provide proper search path. To avoid this, always use full path to the executibles.