oO.o's Neverending Tech Blog

I needed this months ago. Never could get it to work in either direction.

1 Like

It doesnā€™t help that FreeNASā€™s rsync is kind of broken atm. You get no reporting at all when you run it manually, even in the system logs. If you schedule it, cron will log it, but it will fail silently (no email alerts or anything).

Thereā€™s a ticket for 11.3, so should be cleared up fairly soon. Just very annoying until then.

2 Likes

oof

good thing I dont use freenas anymore.

since when does rsync not use ssh?

Itā€™s optional. You can just blast everything unencrypted on port 873.

1 Like

A lot of companies make their own ASICS, so itā€™s a point of pride and coveted like secret sauce.

Iā€™ve never got LACP to work on my own L3, but Iā€™ve never had another router that supported it to make a real go of it. I was mostly testing it with a link aggregated software defined network stack, which is not explicitly supported anywhere.

Interesting doc, thanks for sharing!

Note to Self

Disabling VNC encryption in Gnome on CentOS 7 allows screen sharing from macOS.

dconf
org > gnome > desktop > remote-access > require-encryption OFF
4 Likes

An eclectic rack install tonight.

12 Likes

This was a life saver today. If you have abysmal disk performance on ESXi 6.7, this is what fixed it for me.

https://communities.vmware.com/thread/554004

esxcli system module set --enabled=false --module=vmw_ahci
# reboot

Also, esxcli is annoyingly difficult to type quicklyā€¦

1 Like

God damn SX. Any two keys that rely on the same finger to type should be banned from being sequential keys in a command.

2 Likes

If my job was to work on vsphere stuff all day, Iā€™d macro it.

1 Like

So currently:

CentOS 8 defaults to XFS on all partitions, except boot which defaults to EXT4

Fedora Server defaults to XFS on all partitions

Fedora Everything defaults to EXT4 on all partitions


Itā€™s not that it really gets in my way, it just seems dumb.

2 Likes

Yeah, I think thatā€™s big dumb.

Well, actually, Desktop being EXT4 makes sense. You can shrink EXT4, not XFS.

but hte boot partitions seem dumb.

1 Like

I can see it being different between CentOS and Fedora, but it should be consistent within those and commit to only one.

I set everything to ext4 personally.

I like XFS on my laptops. Itā€™s stupid fast.

3 Likes

ZFS is the most pleasant to manage for me.

1 Like

Same.

Though only once I learned how to use it.

I <3 those UPS, that setup is NICE AF tho

1 Like

For everyone except Red Hatā€™s lawyers.

Yeah, they are the best value I think. Iā€™m actually irritated, I could have gotten them one of the 2000 watt ones, but they didnā€™t know what kind of power they had in the room. Once I got there, I found a dedicated 20A outlet with the perpendicular prong hole.

It is nice to have 2 though. Keep the live and backup NASā€™s on separate batteries.

1 Like

Living dangerously tonight.

for SWITCH in ${EDGE_SWITCHES[@]}; do
     ## Test 24V on Interfaces with Open Status (Media Present but No Signal)
      ##########################################################################
      # WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! 
      # THIS CAN DAMAGE YOUR HARDWARE
      # YOU PROBABLY SHOULDN'T DO IT!
      # WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! 
      ##########################################################################
      
      expect -c 'set timeout 6

        proc login_to_edgeswitch_via_ssh { user pw host } {

          global spawn_id
          spawn ssh -o StrictHostKeyChecking=no -o PreferredAuthentications=password $user@$host

          expect "name:" {
            send "$user\r
            exp_continue"
          } "word:" {
            send "$pw\r"
          }

          expect ">" {
            send "enable\r"
            expect "word:" {
              send "$pw\r"
            } "#" {
              send "\r"
            }
          } "#" {
            send "\r"
          } timeout {
            puts stderr "LOGIN TO EDGESWITCH VIA SSH TIMED OUT"
          }
          return
        }

        proc test_poe_24v_on_open_interfaces_on_edgeswitch_via_ssh { user pw host } {

          login_to_edgeswitch_via_ssh "$user" "$pw" "$host"

          set iface 0
          expect "interface does not exist" {
            send quit\r
          } ".. Open" {
            send "configure\r"
            expect "(Config)#"
            send "interface 0/$iface\r"
            expect "(Interface 0/$iface)#"
            puts stderr "WARNING: ENABLING 24V POE ON INTERFACE 0/$iface"
            puts stderr "24V POE CAN DAMAGE INCOMPATIBLE HARDWARE"
            puts stderr "YOU HAVE 10 SECONDS TO ABORT VIA CTRL-C"
            sleep 10
            send "poe opmode passive24v\r"
            expect "nvalid input detected" {
              puts stderr "24V POE NOT SUPPORTED ON 0/$iface"
            } "(y/n)" {
              send "y\r"
              expect "(Interface 0/$iface)#"
              send "exit\r"
              expect "(Config)#"
              send "exit\r"
              expect "#"
              sleep 30
              send "show mac-addr-table\r"
              sleep 2
              set timeout 2
              expect "0/$iface" {
                puts stderr "24V POE DEVICE DETECTED ON 0/$iface"
              } timeout {
                send "configure\r"
                expect "(Config)#"
                send "interface 0/$iface\r"
                expect "(Interface 0/$iface)#"
                puts stderr "NO 24V POE DEVICE DETECTED ON INTERFACE 0/$iface"
                puts stderr "DISABLING 24V POE ON INTERFACE 0/$iface"
                send "poe opmode auto\r"
                expect "(Interface 0/$iface)#"
                send "exit\r"
                expect "(Config)#"
                send "exit\r"
              }
            }
            set timeout 6
            exp_continue
          } "#" {
            set iface [expr {$iface + 1}]
            send "cablestatus 0/$iface\r"
            exp_continue
          } timeout {
            puts stderr "GET CABLE STATUS ON EDGESWITCH VIA SSH TIMED OUT"
          }
          exp_close
          exp_wait
          return
        }

        test_poe_24v_on_open_interfaces_on_edgeswitch_via_ssh ubnt ubnt ${SWITCH}'


done
4 Likes