oO.o's Neverending Tech Blog

I forgot how much I hate this thing.

Success!

5 Likes

Back in NY. Iā€™ll post a proper ending later after Iā€™ve slept. For now, please enjoy this ball mouse.

3 Likes

Was that on the DCā€™s crash cart?

3 Likes

Yessir

1 Like

Ah that sounds like the life. One time i spent a month away with work, i took an HDMI cable, xbox controller and played Fallout 4 on the tv in the hotel/apartment during some of the downtime. Hard life.

Are you some kind of traveling server repair person?

2 Likes

I do contract IT for some small businesses as a side job. This equipment is all mine. Itā€™s been sort of my lab but after this refresh Iā€™m more confident in providing production services with it.

Itā€™s an hours drive from where I live. The main obstacle is that I donā€™t own a car, so I have to rent one to go work on it. I managed to do everything remotely for 1.5 years so this trip was basically a backlog of things I had to do in person.

3 Likes

Retooling the firewall on the Ubiquiti routerā€¦

2 Likes

Well, I managed to crash the Edgerouter Pro for the first time in its 4 years of life.

image

In this window, I added the vtun240 interface to DNS Forwarding and accidentally clicked apply under Dynamic DNS. I instantly realized my mistake and clicked Save instead (while it was still processing the apply) and I immediately lost all connectivity.

The tech at the DC graciously rebooted it for me and it came back up 100% ok, even with the vtun240 DNS config saved.

Itā€™s worth noting that reboot-on-panic is set to true but was not triggered.

Let this be a reminder to all of us to always schedule a future reboot when remotely configuring network equipment.

3 Likes

Cleaning up the media tv situation.

IR sensor and keyboard usb dongle hidden behind a picture frame.

11 Likes

Iā€™m trying out zfs dedupe on a dataset for OS ISOs. First time ever attempting dedupe. Iā€™m guessing that there will be a lot of identical blocks between different Linux ISOs (curious to see how many).

This is relatively low risk since I can always destroy the dataset and go redownload the ISOs if dedupe crushes the system.

4 Likes

Spent a good portion of yesterday playing with Samba AD configurations to use with macOS, Windows clients. The setup is still an experiment, but itā€™s working well so far. Iā€™m going to jot down some things here that took me a while to figure out. If it all goes well, maybe Iā€™ll put together a step-by-step later.

I decided to use Zentyal because afaik, it is the only Linux/Samba based appliance geared primarily at being a Samba4 AD. The commercial version charges per user which is a nonstarter for me, so I am running 2 instances of the dev version and snapshotting before any upgrades. Time will tell if that will be tenable or not. Could go either way. I am not using the exchange mail server or anything else besides AD rn. At most, I will try out RADIUS if things go well.

Anyway, back when FreeNAS Corral was a thing, FreeNAS was going to pivot itā€™s AD DC solution to a Zentyal VM, so I figured Iā€™d give that a shot for the intial config and then add a secondary DC in a VM on another machine so I could reboot the NAS. As you can imagine, having a machine bound to an AD DC that was in a VM running on said machine would create a chicken/egg problem at boot (I tried it, and it will eventually get through errors and boot, but not ideal).

Anyway, onto the minutiaā€¦

I wanted to use a keytab. It had been a while since I had messed with whole kerberos/samba/keytab situation, but what I ended up doing is:

  1. Created a new domain admin user for the NAS to use for binding

  2. samba-tool domain exportkeytab nasadmin.keytab --principal=nasadmin on the dc

  3. Uploaded the keytab to the nas via gui

  4. Set the AD config as follows in FreeNAS gui (leaving out obvious fields)
    4a. recovery attempts 0
    4b. check everything except trusted domains
    4c. pick anything from kerberos principal (comes from the keytab)
    4d. idmap backend ad
    4e nss info rfc2307
    4f. sasl seal

  5. EDIT IDMAP
    4a. range low 2500 <ā€” this is the part that threw me off for quite a while
    4b. rfc2307

Took hours before I realized that the DC was giving domain groups relatively low ids starting at 2500 and if the idmap range didnā€™t include those ids, using ad for the idmap backend wouldnā€™t work (wbinfo worked but gentent/id did not). From my past experience, I thought samba just ignored the idmap range if it was using rfc2307 but this doesnā€™t appear to be the case.

So that works and I have persistent uids and gids which was the goal. I can apply permissions with the domain accounts and log into smb shares. All the stuff youā€™d expect.

I set up a secondary Zentyal DC on an ESXi host and joined it. As always, it is very picky about dns and domain names, but if all of that is in place it will join and changes made on either DC propagate everywhere pretty quickly.

Couple things to note. I added some spns and added additional keytabs to freenas, but Iā€™m not sure if anything is happening with them. kinit was only showing the binding tickets, and after rebooting, kinit shows nothing, yet I am still connected to the domain, so thatā€™s confusing (even tested adding a user and everything). I wonder if it will survive a ticket renewal in that state.

If that is all hunky dory in a week or so, Iā€™ll try to kerberize smb/afp/nfs, and maybe add a certificate (can you use letsencrypt for domain controller certificates?).

I hope it all works out. Iā€™ve maintained Samba DCā€™s that I compiled and configured manually and Iā€™m really not a fan of doing that. Zentyal also letā€™s me offload some basic user management admin stuff onto someone else with virtually no learning curve.

3 Likes

Looking at Zentyal closer, I found the quotaon service was failing. It appears that it would rather not use systemd at all, so:

sudo systemctl stop quotaon
sudo systemctl disable quotaon
sudo quotaoff /
sudo quotacheck -cogm /
sudo quotaon /

Also, sudo zs restart dns says it failed, but I canā€™t find any evidence of why. All the domain stuff is resolving and the forwards are working and Iā€™m not seeing any related error messages in the logs, so maybe false positive there. I did make some manual changes to the config file in /etc/zentyal/ but it was all in spec.


Also discovered the all-servers option in dnsmasq which allowed me to define the ad domain there without creating conflicts with the dc dns. Really hate how fragile ad dns is. I would really rather forward to it instead of the other way around, but joins fail that way for reasons Iā€™m not entirely sure of.

1 Like

Quick update.

Nope.

I also discovered through this that on Ubiquiti Edgerouter, if you have expand-hosts set in dnsmasq and leave the domain field blank in a dhcp server instance, it will assign clients the routerā€™s domain as the search domain. It refused to provide no search domain.

In this case, I just send static addresses for the Zentyal DCā€™s (donā€™t forget to set the default gateway which is on a separate config screen), but it was an interesting quirk in EdgeOS/Vyatta.


Donā€™t check unix extensions. From what I understood, in AD unix extensions implied rfc2307, but for whatever reason, in this case, it implies sssdā€¦ Idk tbh, but when itā€™s checked, sssd tries to init during boot and fails, and everything works fine in idmap ad without it, so keep it off I guess.

I would actually prefer to use sssd but the documentation is scarce and from quickly looking through the FreeNAS sssd tickets, I canā€™t really figure out if itā€™s something theyā€™re actively trying to support or notā€¦

Anyway, Zentyal automatically fills in the uid/gids, eliminating the admin overhead usually associated with rfc2307, and ad backend is working great, so why mess with success?

Another compelling reason for not pursuing sssd is that using a keytab for binding has mysteriously broken for me. I get a generic gssapi error now even though it worked beforeā€¦ when keytabs did work before, nfs was broken and now it isnā€™t. Very mysterious. I did try regenerating the keytab to no avail.

3 Likes

Had a few large transfers going on the FreeNAS box last night and managed to crash it. According to the litany of netdata emails I woke up to, it thinks it ran out of spaceā€¦ but it didnā€™t actually run out of space. If anyone understands whatā€™s going on here, Iā€™d love to know. I rebooted it via IPMI and restarted the transfers.

I was restructuring the dataset hierarchy after experimenting a bit with dedupe. I was simply copying folders from old datasets/snapshots to new datasets in some tmux sessions.

As you can see. No shortage on space after reboot:


If anyone is wondering if itā€™s possible to eke out any additional compression with gzip on media files, the answer is no. They donā€™t call it incompressible for nothing.

image

4 Likes

Something is fishyā€¦

I am running the previously mentioned cp -av from a folder on one dataset into another and it is killing this system. If I run it with my one bhyve VM turned on, everything hangs. When i shutdown the VM, it doesnā€™t hang but netdata is in and out (process is paused every few seconds for a few seconds), and the system appears to be under a lot of load (see below, 2X Xeon X5670s, so 12/24 at 3.06/3.46ghz).

Memory is full, but of course thatā€™s all ARC. Nothing is swapping. Checked dedupe:

image

Check my math, but I figure the dedupe table at about 5GB. System has 192GB of RAM.

What the hell?

The only slightly weird thing is that Iā€™m copying from a case sensitive datastore to a case insensitive oneā€¦ dedupe is not on for either dataset. Compression on both is lz4.

2 Likes

Setting up a Fat Twin tonight. Stay tuned.

Spoke too soon. It didnā€™t show. Maybe tomorrow.

1 Like

If anyone ever wondered what config to use to bind a macOS client to a Zentyal Samba AD using rfc2307, this is the mapping:

38

3 Likes

I thought fan stacking was bullshit, but I guess not? I know static pressure can be increased with counter rotating fans, but these all look identicalā€¦ Iā€™ll found out tonight. Going to try to replace this fan array with NF-A14 industrialPPCā€™s. Afaik, 45drives uses some 140mm Noctuas for intake which gives me hope.

The fans in these boxes are meant to cool high RPM enterprise drives under load 24/7, so thereā€™s definitely room to tone down the cooling. Iā€™m also open to not filling all the bays. The box was just very cheap.

Itā€™s not going to be close to anyone, but it is in a ventilated rack where people walk. My threshold is about 70db.

Worst case, itā€™s intended for an archive and daily backup, so it could be on a power schedule where itā€™s only on after hours. Decent argument for doing that anyway.

2 Likes

I 100% thought this was going to be a disaster. Color me happily surprised.

8 Likes

If I disable cores on the CPU, will I lose DIMM slots? Not sure how that worksā€¦

Itā€™s somewhat borderline. 2x E52630Ls got up to non-critical (but high) temps after being under heavy, but not synthetic load for about 20 minutes.

I have now turned off turbo, hyperthreading, enabled energy efficient power management and would like to disable some cores. The 6 8TB drives in the front never broke 41 degrees.

Disabling 2 cores (each) made a noticeable difference in temps. Going to put it in the rack now and see if that changes anything. Itā€™s pretty cool in here, so want to take that into account.


I actually have some E52630Lv2ā€™s that were intended for this system. Anyone have any idea if those would run hotter or cooler? With the faster base clock, I wouldnā€™t mind running that at 2 cores each (and maybe turn hyperthreading back on).