homelab.

195 readers
2 users here now

Welcome to your friendly /r/homelab, where techies and sysadmin from everywhere are welcome to share their labs, projects, builds, etc.

founded 2 years ago
MODERATORS
1
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homelab by /u/ummmitscaiden on 2025-05-30 13:59:31+00:00.

2
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homelab by /u/bobro2svk on 2025-05-30 13:40:34+00:00.

3
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homelab by /u/ComeWriteWithMe on 2025-05-30 12:14:55+00:00.

4
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homelab by /u/Avatarus23 on 2025-05-29 20:09:53+00:00.

5
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homelab by /u/Illustrious-Radio-18 on 2025-05-30 03:39:36+00:00.

6
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homelab by /u/arcade3145 on 2025-05-30 01:17:55+00:00.

7
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homelab by /u/Hot-Diver115 on 2025-05-30 00:30:06+00:00.


what is the best way to do this? ideally i would like to use nginx, but not access any of the redirects on the internet...just want to have everything with ssl and easy host names...

alot of people recommend cloudflare the free version, but i could not see how to get a domain for free...what is better cloudflare or dynudns? any suggestions to put me in the right path

8
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homelab by /u/Abject_Arm_895 on 2025-05-30 00:41:20+00:00.

9
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homelab by /u/Ok-Nefariousness6082 on 2025-05-29 22:49:03+00:00.

10
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homelab by /u/Chemical-Emu-3740 on 2025-05-29 16:38:29+00:00.


I am a second year Computer engineering student from Spain, some weeks ago we had a Blackout, and although having an UPS, it lacks USB or Ethernet ports, so it just provides a warning by shouting through an internal speaker. As you could assume, it did nothing. In order to fix it, I have seen second hand UPS that allow the use of NUT to manage power outages, but wanting to avoid spending money to solve the issue (I know they aren't expensive, but I didn't want to spend money if another solution was possible) And I also start thinking of using NUT without a proper UPS.

First of all, my homelab consist of two computers, my NAS, running TrueNAS scale, and my primary server running Proxmox, both of them and the switch that connects them to the router are connected to my UPS. So the idea is that every two minutes my primary server pings the router (the task is scheduled using cron), if it is successful, perfect, if not it tries to ping one minute later just to confirm, if everything fails, run upsmon -c fsd to simulate that the UPS lost power. The primary pc is configured as master and my NAS as slave, and it is listening to the default port of NUT in the primary server ip's.

This is a link to the PDF where I go step by step, explaining what I did.

I want your opinions. I know it may be too janky, but I believe it fits my homelab's vibes.

11
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homelab by /u/Scary-Break-5384 on 2025-05-29 15:06:46+00:00.

12
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homelab by /u/Catchgate on 2025-05-29 18:40:23+00:00.

13
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homelab by /u/Sh2_ on 2025-05-29 13:56:29+00:00.

14
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homelab by /u/Maninii on 2025-05-29 13:53:19+00:00.

15
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homelab by /u/Individual_Map_7392 on 2025-05-29 06:42:27+00:00.

16
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homelab by /u/zachsandberg on 2025-05-29 04:40:08+00:00.

17
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homelab by /u/Knurpel on 2025-05-29 03:43:32+00:00.


When you do a smartctl self test on your NVMe, you probably will get this error, every time you try:

“Read Self-test Log failed: Invalid Field in Command (0x2002)”

As if this alone isn’t quite disconcerting enough, on closer inspection of the NVMe data, you will find many, possibly thousands of errors reporting “Invalid Field  NVMe error count increased in Command.” Your smartd service will tell you that your “NVMe error count increased” to some ungodly number.

Is your NVMe on is last gasp?

No, it is not. The error is caused by smartctl, an app  routinely installed on most Linux machines as part of the smartmontools package. Smartctl is supposed to warn you of drive errors, and an impending death of your unit.

Smartctl in its current version simply does not work with most NVMe drives, it errors-out when you try, only after filling the log with another useless entry, and the user with endless angst. It also will fill the coffers of NVMe suppliers when you rush out to buy a new device, only to notice that the errors continue.

What’s worse, smartctl’s attendant smartd service will simply ignore your NVMe devices, and it will NOT warn you when the device is about to really kick the bucket. You get a false sense of security on top of false errors.

This has been going on for years.

Finally, a new version of smartctl has been developed that avoids this problem. The version number is 7.5.  Your smartctl version most likely is 7.4.

HOWEVER, when you try to update smartmontools, you will most likely hear that the latest version is 7.4, the one with the errors.

The new version of smartmontools will take a while to hit the major distros.  Compiled versions of smartmontools 7.5 are available for only a few platforms.

Currently, the only alternative is to compile your own. http://smartmontools.org/ is down as I am typing this, so here is a short howto for Ubuntu-based machines:

 

apt install libsystemd-dev  #you need this for the smartd service to work

cd /tmp  #or wherever you prefer

wget https://sourceforge.net/projects/smartmontools/files/smartmontools/7.5/smartmontools-7.5.tar.gz

tar zxvf smartmontools-7.5.tar.gz

cd smartmontools-7.5

./configure

make -j $(nproc --all)

sudo make install

 

Note:  Your new smartctl version 7.5 will be installed to /usr/local/sbin/smartctl.  Your old 7.4 version will still be in /usr/sbin/smartctl.   When you hit “smartctl” on the command line, it most likely will use the new version, do check.

Applications that use smartctl, for instance Webmin,  will have to be pointed at the new /usr/local/sbin/smartctl.

Also, your smartd service needs to know of the new smartctl. Edit /etc/systemd/system/smartd.service to make the ExecStart line read as follows:

ExecStart=/usr/local/sbin/smartd -n $smartd_opts

 

Now on the command line:

systemctl daemon-reload

systemctl restart smartd

For a wellness check, do a

systemctl status smartd

If everything was done right, smartd will now monitor your NVMe devices on a regular basis. If you are uncomfortable mucking with the command line and following the advice of random redditors, you will have to live with the problems until the new smartctl hits your distro. The long list of faux errors isn’t the problem. Smartctl ignoring your NVMe will be a huge problem once the device dies without a warning.

18
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homelab by /u/foobarney on 2025-05-29 02:59:44+00:00.

19
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homelab by /u/nokerb on 2025-05-29 03:46:42+00:00.

20
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homelab by /u/cdarrigo on 2025-05-29 00:30:30+00:00.


I recently replaced a battery in one of my cyber power UPS units. I suspect I'll be replacing some others in the upcoming months.

What do you guys do with the old battery? I think APC offers a return service. I haven't found one for cyber power UPS.

21
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homelab by /u/HubbleWho on 2025-05-29 00:43:49+00:00.

22
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homelab by /u/balthasar127 on 2025-05-28 23:15:40+00:00.

23
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homelab by /u/wreckemberry21 on 2025-05-28 13:53:49+00:00.

24
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homelab by /u/Kirys79 on 2025-05-28 19:24:20+00:00.

25
 
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homelab by /u/MageLD on 2025-05-28 17:14:26+00:00.

view more: next ›