Hacker Newsnew | past | comments | ask | show | jobs | submit | atmosx's commentslogin

Once a month is fine ("/etc/cron.monthly/zfs-scrub"):

    #!/bin/bash
    #
    # ZFS scrub script for monthly maintenance
    # Place in /etc/cron.monthly/zfs-scrub
    
    POOL="storage"
    TAG="zfs-scrub"
    
    # Log start
    logger -t "$TAG" -p user.notice "Starting ZFS scrub on pool: $POOL"
    
    # Run the scrub
    if /sbin/zpool scrub "$POOL"; then
        logger -t "$TAG" -p user.notice "ZFS scrub initiated successfully on pool: $POOL"
    else
        logger -t "$TAG" -p user.err "Failed to start ZFS scrub on pool: $POOL"
        exit 1
    fi
    
    exit 0

Didn't know about the logger script, looks nice. Can it wrap the launch of the scrub itself so that it logs like logger too, or do you separately track its stdout/stderr when something happens?

update: figured how you can improve that call to add logs to logger


Scrub doesn't log anything by default, you run it and it returns quickly... you have to get the results out of zpool status or through zed.

That script might do with the "-w" parameter passed to scrub. Then "zpool scrub" won't return until the scrub is finished.

Will try this one soon, ty!

Thanks!!! If you find something that can be improved, don't doubt opening an issue!

The Nobel Prize was given at the beginning of his tenure. Of course it was a majestic failure because by the end, he held the record of "most dropped bombs by any US president"... IIRC it must have been something 25-30k.

> he held the record of "most dropped bombs by any US president".

Disregarding WW2, I'd assume LBJ or Nixon holds that record.


I imagine the 100k+ tons of bombs dropped on Gaza has subsequently reshuffled that list.

Iran doesn't have the ability to control what you see online. If BigCorps play along, the US can largely do that, to much much greater extend. So they don't really need to bring the internet down, they can just have LLMs create custom "reddit pages" on the fly.

Oh good point. I mixed it up, UTM is using qemu under hood, but as someone mentioned now OpenBSD snapshot boots with qemu seemlesly. It's still virtualised though.

It can also use the apple native hypervisor.

Tried it earlier using UTM and the Apple hypervisor but didn’t boot.

Do sales backup these claims that come up very often or not? Does anyone has any data?

Although the op is not wrong, maybe their decisions are data driven and pay off?


“Welcome to the real world Neo!”

“There is no cloud, it’s just somebody else’s computer”

etc etc…


> Nothing happening in the federal governemnt or the middle east or eastern Europe affects me from a local standpoint, and it's easy to stay informed on those events through a variety of sources.

This is something that - for whatever reason - takes a surprising amount of time for ppl to understand.


> The problem with local journalism is simple: the product is produces is not worth what it costs to produce it.

I find this approach superficial and dangerous.

Maybe local journalism has been superseded or looks like not important to the locals. The lack of local journalism IMO will end up costing a lot more to any community in the long run for obvious reasons.


I think the nuance is that is doesn't produce what it's worth - it's that it's value to society is more than what people are willing to pay for it (and also more than what it costs to produce).

Of course there will be exceptions to the rule, but these dynamics seem pretty strong.


Absolutely.

And as someone who’s seen some condo boards, I can tell you that when presented with “we all need to pay a small amount of money now to avoid a big bill later” the response will generally be “no way!”

It’s a tragedy of the commons issue, mixed with people who don’t agree on the value of it in the first place.


Sure, but the community has to somehow decide to pay the people doing that good thing. There are a lot of projects that would likely be a net benefit not being paid for.

Externalities, coordination failure...

It's simultaneously worth vastly more to the community as a whole than the cost of producing it, and yet, to any single individual, the marginal benefit of having it is not enough to justify paying for it.

The naïve solution might be to collectively subsidize it, but then that creates its own moral hazards and perverse incentives.

...It's a bit scary how much of democracy relies on institutions that were only able to form because we lucked into social conditions making them sustainable.


Just make sure you have a local and remote backup server.

From to time, test the restore process.


I haven't tried it yet, but the evil twin to this practice is to nuke everything periodically to ensure that your agent isn't relying on any filesystem state that it hasn't specified builds for (i.e. https://grahamc.com/blog/erase-your-darlings/).

They tend to slip out of declarative mode and start making untracked changes to the system from time to time.


Claude with root access will ensure there's "motivation" to run the restore process regularly.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: