Selfhosted
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.
Rules:
-
Be civil.
-
No spam.
-
Posts are to be related to self-hosting.
-
Don't duplicate the full text of your blog or readme if you're providing a link.
-
Submission headline should match the article title.
-
No trolling.
-
Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.
-
AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.
Resources:
- selfh.st Newsletter and index of selfhosted software and apps
- awesome-selfhosted software
- awesome-sysadmin resources
- Self-Hosted Podcast from Jupiter Broadcasting
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
view the rest of the comments

One more hopefully happy update:
Based on everything youโve shown so far in the information you have given, the most probable cause is that the drive was formatted with T10 DIF / Protection Information enabled (
PROTECT=1), and you are now accessing it through a controller path that does not support DIF.This is a very common failure mode with enterprise SAS drives and
sg_format.(edit: oh, how I am in a love/hate relationship with my brain on delayed thoughts...)
In your paste from sg_format you can see this flag:
sudo sg_format -vv /dev/sda open /dev/sda with flags=0x802 inquiry cdb: [12 00 00 00 24 00] SEAGATE ST4000NM0023 XMGG peripheral_type: disk [0x0] PROTECT=1(end of edit)
What this means in practice:
PROTECT=1= the drive was formatted with DIF Type 1This is not bricking. It is a configuration mismatch.
How to fix it (most reliable path)
You need to connect the drive to a DIF-capable SAS HBA (LSI/Broadcom, same type as originally used if possible).
Best option is to do this on the original hardware, even via a USB live Linux environment.
Once the drive is on a T10-capable controller, reformat it with protection disabled.
Example (this will ERASE the drive and might take a LONG time to complete):
sudo sg_format --format --size=512 --fmtpinfo=0 --pfu=0 /dev/sdX
Key flags:
--fmtpinfo=0โ disables DIF / PROTECT--size=512(or 4096 if you prefer standard 4K)--pfu=0(disables PROTECTION flag, your GPT forgot to include this which actually disables the protection)/dev/sdXAfter this completes and the system is power-cycled, the drive should behave like a normal disk again on non-DIF controllers.
Important notes
sg_formatalone almost never permanently damages SAS drivesIf you cannot access a T10-capable controller, the drive may remain unusable on that system, but still be perfectly recoverable elsewhere.
A case of a user with another problem but where he needed to disable DIF, got it fixed after a new format with these parameters (from Google):
https://www.truenas.com/community/threads/drives-formatted-with-type-1-protection-eventually-lead-to-data-loss.86007/