Raid Z2 help - Lemmy.World
tldr: I’m going to set up raid z2 with 4x8TB hard drives. I’ll have photos,
documents (text, pdf, etc.), movies/tv shows, and music on the pool. Are the
below commands good enough? Anything extra you think I should add? sudo zpool
create mypool raidz2 -o ashift=12 /dev/disk/by-id/12345 ... zfs set
compression=lz4 mypool #maybe zstd? zpool set autoexpand=on mypool zpool set
autoreplace=on mypool zpool set listsnapshots=on mypool With ai raising hard
drive prices, I over spent on 3x10TB drives in order to reorganize my current
pool and have 3 hard drives sitting on a shelf in the event of a failure. My
current pool was built over time but it currently consists of 4x8TB drives. They
are a mirrored stripe so a usable 16TB. If I understand it correctly, I can lose
1 drive for sure without losing data and maybe a second drive depending on which
drive fails. Because of that, I want to move to raid z2 to ensure I can lose 2
drives without data loss. I’m going to move data from my 4x8TB drives, to the
3x10TB, reconfigure the 4x8TB, and move everything back. I run Immich,
plex/jellyfin, and navidrome off the pool. All other documents are basically
there for storage just in case. What options should I use for raid z2 when
setting it up?
Element/Matrix Official Docker Install Method?
https://lemmy.world/post/43025075
Element/Matrix Official Docker Install Method? - Lemmy.World
My friends are open to leaving Discord which has finally given me a reason to
look into Element/Matrix. I found the install instructions
[https://github.com/element-hq/ess-helm] and am immediately put off. Is this it?
No official docker compose? 😞
Help with understanding memory usage discrepancy
https://lemmy.world/post/41836991
Help with understanding memory usage discrepancy - Lemmy.World
I recently noticed that htop displays a much lower ‘memory in use’ number than
free -h, top, or fastfetch on my Ubuntu 25.04 server. I am using ZFS on this
server and I’ve read that ZFS will use a lot of RAM. I also read a forum where
someone commented that htop doesn’t show caching used by the kernel but I’m not
sure how to confirm ZFS is what’s causing the discrepancy. I’m also running a
bunch of docker containers and am concerned about stability since I don’t know
what number I should be looking at. I either have a usable ~22GB of available
memory left, ~4GB, or ~1GB depending on what tool I’m using. Is htop the better
metric to use when my concern is available memory for new docker containers or
are the other tools better? Server Memory Usage: - htop = 8.35G / 30.6G - free
-h = total used free shared buff/cache available Mem: 30Gi 26Gi 1.3Gi 730Mi
4.2Gi 4.0Gi - top = MiB Mem : 31317.8 total, 1241.8 free, 27297.2 used, 4355.9
buff/cache - fastfetch = 26.54GiB / 30.6GiB EDIT: Answer
[https://lemmy.world/post/41836991/21642591] My Results
[https://lemmy.world/post/41836991/21642365]
How do you all handle security and monitoring for your publicly accessible services?
https://lemmy.world/post/25340024
How do you all handle security and monitoring for your publicly accessible services? - Lemmy.World
This is a continuation of my other post [https://lemmy.world/post/24128832] I
now have homeassistant, immich, and authentik docker containers exposed to the
open internet. Homeassistant has built in 2FA and authentik is being used as the
authentication for immich which supports 2FA. I went ahead and blocked
connections from every country except for my own via cloudlfare (I’m aware this
does almost nothing but I feel better about it). At the moment, if my machine
became compromised, I wouldn’t know. How do I monitor these docker containers?
What’s a good way to block IPs based on failed login attempts? Is there a tool
that could alert me if my machine was compromised? Any recommendations?
How do you handle SSL certs and internet access in your setup?
https://lemmy.world/post/24128832
How do you handle SSL certs and internet access in your setup? - Lemmy.World
tldr: I’d like to set up a reverse proxy with a domain and an SSL cert so my
partner and I can access a few selfhosted services on the internet but I’m not
sure what the best/safest way to do it is. Asking my partner to use tailsclae or
wireguard is asking too much unfortunately. I was curious to know what you all
recommend. I have some services running on my LAN that I currently access via
tailscale. Some of these services would see some benefit from being accessible
on the internet (ex. Immich sharing via a link, switching over from Plex to
Jellyfin without requiring my family to learn how to use a VPN, homeassistant
voice stuff, etc.) but I’m kind of unsure what the best approach is. Hosting
services on the internet has risk and I’d like to reduce that risk as much as
possible. 1. I know a reverse proxy would be beneficial here so I can put all
the services on one box and access them via subdomains but where should I host
that proxy? On my LAN using a dynamic DNS service? In the cloud? If in the
cloud, should I avoid a plan where you share cpu resources with other users and
get a dedicated box? 2. Should I purchase a memorable domain or a domain with a
random string of characters so no one could reasonably guess it? Does it matter?
3. What’s the best way to geo-restrict access? Fail2ban? Realistically, the only
people that I might give access to live within a couple hundred miles of me. 4.
Any other tips or info you care to share would be greatly appreciated. 5. Feel
free to talk me out of it as well.
Help with understanding MySQL column & row size limits
https://lemmy.world/post/6953382
Help with understanding MySQL column & row size limits - Lemmy.World
To preface, I’m currently rewriting a personal webapp to use MySQL instead of
storing everything in hundreds of JSON files. I’m currently in the testing phase
of generating tables with the data from the JSON files, destroying the tables,
adding more columns and data, repeat, all to make sure everything is working as
intended. My issue is that occasionally I’ll create too many columns and then I
get an error saying something about the row being too large? I’ve also noticed
that if I change the parameters of what data is allowed to go in the column, I
can generate more columns. I know there is some relationship between number of
columns, the data that can go in a column, data size, and row size but I don’t
know what’s going on. I’d appreciate it if someone could broadly go over how row
length(?) can affect number of columns. Thank you
Help with understanding throughput of pcie and hard drives
https://lemmy.world/post/5724579
Help with understanding throughput of pcie and hard drives - Lemmy.world
I’ve been interested in building a DIY NAS out of an SBC for a while now. Not as
my main NAS but as a backup I can store offsite at a friend or relative’s house.
I know any old x86 box will probably do better, this project is just for the fun
of it. The Orange Pi 5 looks pretty decent with its RK3588 chip and M.2 PCIe 3.0
x4 connector. I’ve seen some adapters that can turn that M.2 slot into a few
SATA ports
[https://www.amazon.com/SilverStone-Technology-ECS07-Expansion-SST-ECS07/dp/B0B8TV1QRG/ref=sr_1_1?crid=1F2JKUZR7D8MI&keywords=ECS07&qid=1695671791&sprefix=ecs07%2Caps%2C138&sr=8-1&ufe=app_do%3Aamzn1.fos.18630bbb-fcbb-42f8-9767-857e17e03685]
or even a full x16 slot
[https://www.amazon.com/ADT-Link-Extender-Graphics-Adapter-PCI-Express/dp/B07YDH8KW9?th=1]
which might let me use an HBA. Anyway, my question is, assuming the CPU isn’t a
bottle neck, how do I figure out what kind of throughput this setup could
theoretically give me? After a few google searches: - PCIe Gen 3 x4 should give
me 4 GB/s throughput - that M.2 to SATA adapter claims 6 GB/s throughput - a
single 7200rpm hard drive should give about 80-160MB/s throughput My guess is
that ultimately, I’m limited by that 4GB/s throughput on the PCIe Gen 3 x4 slot
but since I’m using hard drives, I’d never get close to that, even if I was
using 4 hard drives in a RAID 0 config (which I wouldn’t do), I wouldn’t come
close. Am I understanding that correctly; is it really that simple?
Cracking/tinny sound on Apple TV 4k after TvOS 17 update
https://lemmy.world/post/5389734
Cracking/tinny sound on Apple TV 4k after TvOS 17 update - Lemmy.world
PSA After updating to TvOS 17, my Sonos Beam sound bar started making weird
crackling sounds and music sounded tinny. Turns out, I had to change the audio
format in the Apple TV settings from Stereo to Dolby Digital 5.1 for the issue
to be fixed. Not sure what I had that setting set to before but I’m leaning
toward the idea that the update reset the audio format back to default settings.
If you are having sound issues after updating, that might be the issue.
Heart rate zone training - what percentages do you use?
https://lemmy.world/post/1787202
Heart rate zone training - what percentages do you use? - Lemmy.world
My garmin has it set up like this: Z1 = 50-60% Z2 = 60-70% Z3 = 70-80% Z4 =
80-90% Z5 = 90%+ As of right now, I’m seeing my Z3 improve but improving Z2 is
going to take me a while. I can have a conversation in Z3 here. I’ve also seen
other forums/websites have different percentages. Ex. Z1 = 68-73% Z2 = 73-80% Z3
= 80-87% Z4 = 87-93% Z5 = 93%+ If I used this method, then my Z2 is the one that
has been improving this whole time. This one ‘feels’ right to me when I’m
running but also I’ve only been running for a few months at this point so maybe
I just need to stick to it and the garmin method will start to make more sense.
So I was just curious how everyone has their percentages set set up. What do you
all actually train at?
Setting up a Home Assistant as a KVM - resize qcow2 & set up network bridge device [Guide]
https://lemmy.world/post/1182788
Setting up a Home Assistant as a KVM - resize qcow2 & set up network bridge device [Guide] - Lemmy.world
I occasionally find myself reinstalling home assistant and every time I do, I
get stuck on two steps because I didn’t write them down the previous time. I’m
writing them below mainly for myself but also for anyone else who may get stuck.
For future reference, I’m using Ubuntu 23.04 with Virt-Manager. Before you begin
the installation of the provided qcow2
[https://www.home-assistant.io/installation/linux] image, you might want to
resize that image from 32G to whatever size you want. ex: qemu-img resize
haos_ova-10.3.qcow2 +68G Next, you might want to make a network bridge device.
Navigate to your netplan folder and backup the yaml file that’s in there (your
file may be named differently) cd /etc/netplan cp ./01-network-manager-all.yaml
./01-network-manager-all.yaml.old Edit the yaml config. nano
./01-network-manager-all.yaml Change the renderer to networkd and add the bridge
device (br0) network: renderer: networkd ethernets: enp12s0: dhcp4: true
version: 2 bridges: br0: dhcp4: yes interfaces: - enp12s0 parameters: stp: true
save the file. generate and apply the new netplan. WARNING - If you are hosting
this on your own network, it’s possible the Ubuntu host IP could change. If you
were doing these steps over SSH, you might need to find the new IP and
reconnect. Static IPs can be set in the netplan config but I usually just do it
from my router settings afterwards which is probably why the IP changed. netplan
generate netplan apply