Avatar by eveoart. Artwork - Artist

  • 0 Posts
  • 2 Comments
Joined 2 years ago
cake
Cake day: June 9th, 2023

help-circle
  • IronKrill@lemmy.catoSelfhosted@lemmy.worldAm I corrupting my data?
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    5 days ago

    I have two identical HDDs as a mirror, another one that has no failsafe (but it’s fine, because the data it contains is non-critical)

    On separate pools, I hope? My understanding of ZFS is that the loss of any vdev will mean the loss of the pool, so your striped vdev should be in its own pool that you don’t mind losing.


  • on most of my systems I get tired of constantly lsing after a cd so I combine them:

    cd(){
        cd $1 && ls
    }
    

    (excuse if this doesn’t work, I am writing this from memory)

    I also wrote a function to access docker commands quicker on my Truenas system. If passed nothing, it enters the docker jailmaker system, else it passes the command to docker running inside the system.

    docker () {
            if [[ "$1" == "" ]]; then
                    jlmkr shell docker
                    return
            else
                    sudo systemd-run --pipe --machine docker docker "$@"
                    return
            fi
    }
    

    I have a few similar shortcuts for programs inside jailmaker and long directories that I got sick of typing out.