A person with way too many hobbies, but I still continue to learn new things.

  • 6 Posts
  • 222 Comments
Joined 1 year ago
cake
Cake day: June 7th, 2023

help-circle

  • Are you sure about that? Ever hear about this supposed predictable network names in recent linux versions? Yeah those can change too. I was trying to set up a new firewall with two internal NICs plus a 4-port card, and they kept moving around. I finally figured out that if I cold-booted the NICs would come up in one order, and if I warm-booted they would come up in a completely different order (like the ports on the card would reverse which order they were detected). This was completely the fault of systemd because when I installed an older linux and used udev to map the ports, it worked exactly as predicted. These days I trust nothing.


  • Shdwdrgn@mander.xyztoSelfhosted@lemmy.worldHelp with ZFS Array
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    1
    ·
    edit-2
    3 days ago

    OP – if your array is in good condition (and it looks like it is) you have an option to replace drives one by one, but this will take some time (probably over a period of days). The idea is to remove a disk from the pool by its old name, then re-add the disk under the corrected name, wait for the pool to rebuild, then do the process again with the next drive. Double-check, but I think this is the proper procedure…

    zpool offline poolname /dev/nvme1n1p1

    zpool replace poolname /dev/nvme1n1p1 /dev/disk/by-id/drivename

    Check zpool status to confirm when the drive is done rebuilding under the new name, then move on to the next drive. This is the process I use when replacing a failed drive in a pool, and since that one drive is technically in a failed state right now, this same process should work for you to transfer over to the safe names. Keep in mind that this will probably put a lot of strain on your drives since the contents have to be rebuilt (although there is a small possibility zfs may recognize the drive contents and just start working immediately?), so be prepared in case a drive does actually fail during the process.


  • That is definitely true of zfs as well. In fact I have never seen a guide which suggests anything other than using the names found under /dev/disk/by-id/ or /dev/disk/by-id/uuid and that is to prevent this very problem. If the proper convention is used then you can plug the drives in through any available interface, in any order, and zfs will easily re-assemble the pool at boot.

    So now this begs the question… is proxmox using some insane configuration to create drive clusters using the name they happen to boot up with???







  • If you want to do it right, try to get a static IP (you may need to get a business account). If your provider doesn’t provide IPv6 to static IPs, go to some place like Hurricane Electric and get a free IPv6 range pointed to your IPv4 static address.

    Alternatively, you might do a search for any DDNS services that provide IPv6 (I’m not sure if any do?), then that service will fllow your residential address when it changes. Either way I think you’ll have some additional costs you need to weigh against your current hosting provider.



  • My best lens for capturing the sun and moon is a Canon EF 70-300mm f/4.5-5.6, which sounds like pretty much the same lens you have with a different mount? I found a Kenco doubler that doesn’t seem to produce any artifacts (this one goes on the back side of the lens) which has worked really well for grabbing sunspots. Wish I’d had more ambition to get out this Summer, there’s been a LOT of sunspot activity that I’ve missed.

    On the other end I have a Sigma DC 17-70mm f2.8-4 which I’ve been using for model trains. I paid $233 for that one so it’s my most expensive, but getting a faster lens really helped with those low-light shots. Sometimes you find great deals, sometimes you find Chinese garbage. Luckily I never paid much for garbage.


  • When you say old gear is not cheaper… I take it you’re looking for some pretty modern stuff? When I decided to get more involved in photography I picked up a Canon Ti4 used from ebay. It was about 6 years old at the time and I picked up a good one for around $250. The same thing with lenses, everything I have is from ebay and everything was relatively cheap (although I’d love to get one of those Sigma 600mm lenses, but oof!). Yeah my body is closer to 12 years old now but I still use it all the time and it’s done well for me, plus the EF mounts are common as hell, and all of my lenses have image stabilization built in.

    If you’re having trouble getting trash photos, maybe check back with this group on what lenses match the shots you’re trying to take? There’s definitely some garbage lenses out there, and early-on I discovered Canon’s own 300mm EF lens have two different models that look identical, but there’s a huge difference in the quality between them (which is why the good one costs twice as much, even used).

    One good thing about Canon is that you have Magick Lantern available. Most of us can’t afford the functionality that this software provides for free! If you want to stick with Canon and get the best bang for your buck, check to see which bodies ML is compatible with to narrow down your selections. After that I would check the lens mounts to see what other mounts can be adapted to fit a body to give you the widest selection of lenses possible. This is usually a one-way street due to focal length so it might pay to choose a body with greater adaptability.


  • I think I missed something in your description, but what are you running on your local server? I think most people set up postfix to relay the emails over to gmail or whoever, and there are options in postfix for backwards compatibility with Outlook or even Microsoft Mail so your wife could use whatever client she wants. If you don’t have a local mail server set up then this is probably what you want to do. This method allow a local or remote connection from any client so you could run K9 on your phone instead of a VPN.

    For opening such a setup to the internet (and allowing access from anywhere), make sure you have strong passwords on your accounts, require SASL authentication, and set up fail2ban to block repeated attempts to hack your mailboxes. Don’t run anything else on the same server (or use virtual machines or strong containers) to reduce the chance of your mail server getting compromised other ways, and you should be good to go.




  • At that capacity, I’ll cast another vote for SSD if at all possible, but you can certainly get small HDDs pretty cheap now.

    If you want the easiest and cheapest way to add more drives, do a search for “sata port multiplier”. These cards go for around $25US on Amazon or Ebay. They are NOT fast! It uses a single SATA port to run up to five drives, so all the drives split the bandwidth, but long ago I ran some of them for a few years without any problems. You simply run a sata and power cable from your motherboard to the card, then plug in your drives, it doesn’t even require a slot on your motherboard.


  • I’ve always relied on multiple aspects for my used drives (currently ZFS raidz2 which itself provides multiple checks, but I also do backups of the really important stuff). It doesn’t matter though, all drives new or old are going to fail and you just have to be ready for it. The worst case is multiple drives failing at once, and I had that happen several times when using a weak power supply.

    So far I’ve been really happy with the refurbs from Amazon though, plus the NAS is nothing to sneeze at. I upgraded the server to a newer machine, then realized that allowed me to step up in families for my SAS cards. Basically went from a machine that could push data at 70MB/s (and was constantly behind) to a new machine pushing 450MB/s or more with almost no lag. I run a lot of stuff on my home network so it’s been nice having the new speed, and the zfs pools are providing around 92TB on one set and 22TB on another set so I have room to go crazy. If I had to buy new drives I’d have maybe half that amount of space.


  • Check the SMART info on the drives you receive, if they already show signs of failure then return them immediately.

    For “reputable” sellers, I typically go with ones who are selling drives in bulk and have a history of more than five minutes with lots of recent good reviews. I took a chance on a good deal for a “new” drive once and received an obviously used drive where the previous person had cut out the SAS bridge (these pins are required to power on some SAS models like what I bought, so the drive was a paperweight). You’ll get some lemons, but I’ve been running mostly used drives on my fileserver for the past twenty years and had reasonably good luck from bulk sellers (and easy replacements when I got a bad drive from one of them).

    Oh, you might also check refurbs from Amazon. My current fileserver is running a set of eight 18TB refurbs which were significantly cheaper at the time, but the drive model itself was only a year old so I knew there couldn’t be much wear on what I received. And Amazon has a good return policy.