Is this how time normally passes? Really slowly, in the right order?

Sunday, May 26

Geek

Expanding Your ZFS Attached Storage On DigitalOcean

So, you're off to see DigitalOcean and you want to use ZFS because of the wonderful things it does.

You can't - yet - use ZFS on your root partition, not without a lot of faffing around, but that gets automatically backed up so long as you're paying the extra $1 per month, so we'll focus on external volumes.

There are three ways to expand your ZFS storage on external volumes.


The Quick and Easy Way that May Destroy All Your Data at Some Unspecified Later Time for Basically No Reason

First, attach a second storage volume to your server.  This will be /dev/sdb.

Second, run zpool add platypus /dev/sdb where platypus is the name of your ZFS pool.

That's it.  Done.  No reboots, extra space is available to all your ZFS filesystems intantly.

But you now have two attached drives that are basically RAID-0.  If one of them fails to attach, you go splat.  How likely that is, I don't know.

But as you add more drives the chance of something going wrong increases, and DigitalOcean limits the number of attached drives both per server and per account, so it doesn't scale.



The More Complicated Way that May Destroy All Your Data Immediately If You Get it Wrong but Probably Scales Better


Before anything else, use the DigitalOcean control panel or API to take a snapshot of your attached disk.  This is the big advantage of this method - because it uses a single attached disk, the snapshot tool provides consistent backups without having to shut down your server first.

First, increase the size of your attached drive.  Probably best to do this in decent-sized chunks, rather than every time you need an extra 10GB.

Also, you can't shrink attached drives - but you can't shrink ZFS pools either, so that doesn't matter.

Second, run gdisk /dev/sda.  Select w and exit without doing anything.

Third, run gdisk /dev/sda again, select n, and create a new partition.  All the defaults should be correct.  Select w and exit. 

If you try to do this without the previous step, all the defaults will be wrong and nothing will work.  

Fourth, run partprobe to tell Linux that new partitions have magically appeared.

And finally, run zpool add platypus /dev/sda2 (or whatever partition number you created in gdisk).

Again, all is now working, no reboots.  (Without partprobe you would probably need to reboot before ZFS could use the new partition.)

The advantage of this method is you only have one network-attached drive.  It's either all there, or not.  This allows you to use DigitalOcean's own snapshot tool to take a complete, consistent backup.

Though I suspect that's stored on the same Ceph cluster as your own data and ZFS snapshots and if the whole thing goes bang you're out of luck anyway.  So it protects you from mistakes but for catastrophic failure you'll want to take your ZFS snapshots and rsync them off to a remote location.

Update: There might be a better way, just resizing the existing partition rather than adding new ones to the pool.  Going to try that next.

Update: That seems to work, but I'll need to try it with something running live on the filesystem to make sure.


The Other Way Which I Haven't Actually Tried

If you have a RAID-Z array in ZFS, you can replace the volumes one-by-one with larger devices.  So you can have three 100GB attached drives, detach one, increase it to 150GB, wait for RAID-Z to finish checking everything, and repeat for the other two drives.

This is safer than the first option, but frankly sounds like a pain in the bum.

Posted by: Pixy Misa at 05:34 PM | No Comments | Add Comment | Trackbacks (Suck)
Post contains 615 words, total size 5 kb.

Geek

Daily News Stuff 25 May 2019

Database Shrinkioso Edition

Tech News



Video of the Day




Disclaimer: One does not simply drive into Mordor.

Posted by: Pixy Misa at 12:31 AM | Comments (1) | Add Comment | Trackbacks (Suck)
Post contains 185 words, total size 2 kb.

Friday, May 24

Geek

Daily News Stuff 24 May 2019

Sailing The Digital Ocean Blue Edition

Tech News

  • QNAP has a USB 5Gb Ethernet adaptor.  (AnandTech)

    This works for all-in-ones and laptops and also - pure coincidence - for small NAS boxes that have USB 3.0 or later but only 1Gb Ethernet.

    The switch situation is still pretty dire though.

  • Techdirt is suing ICE.  (TechDirt)

    For good cause.  ICE boasted of seizing a million websites over the past few years, often on very shaky grounds.  TechDirt filed a FOIA request for information about the million sites they publicly claimed to have seized.  ICE responded, "never heard of them".

  • Chinese company clones a popular game.  Chinese company trademarks name of the game in China.  Chinese company then files a trademark complaint against the original game with the App Store.

    Apple removes the original game..  (Reddit)

    Don't be Apple.

  • Crossfit has always been at war with Facebook.

    Crossfit is marginally less annoying.

  • It's basically the Dread PirateBay Roberts.

  • Google doesn't know what to do with Gophers anymore.

    Sad.

  • The US Senate is coming for loot boxes.  (Tech Crunch)

    Demarcation dispute, I take it.

  • File it under "Sure, Jan": China isn't spying on Americans.  (ZDNet)

  • One of the reasons I didn't go with DigitalOcean before and ended up paying a heap of money for a server I never really managed to use was because all the cloud providers lock you into their infrastructure.

    Here's how to migrate your VPS between DigitalOcean, Vultr, and LunaNode.  It's harder than it needs to be, but it works.

    I have DigitalOcean and Vultr accounts.  DO has a better range of services; Vultr has broader distribution, including, importantly, Sydney.  (DO says "use Singapore".  Ping times from Sydney to Singapore are often worse than San Francisco, rendering it worse than useless.)

  • You can use DigitalOcean's Spaces (object storage) as a filesystem.

    Sort of.  Reading mostly works fine.  Creating, deleting, and replacing files is fine.  Updating files is a train wreck.  Not surprising that it has a problem; it's doing well to work at all.

    It's a fifth the price of block storage and can be shared across multiple servers.  If you're publicly service files out of your Space storage they also offer a free global CDN.  Australian CDN nodes are in beta, but I'll see if it's at least a public beta.


Anime Opening of the Day


Well, that was different.



Disclaimer: Things fall apart.  The CentOS cannot stand.  Mere Antergos is loosed upon the world.  Fuck everything about Linux networking.

Posted by: Pixy Misa at 07:00 PM | No Comments | Add Comment | Trackbacks (Suck)
Post contains 418 words, total size 4 kb.

Geek

Yeah, Well, About That

That shiny (and expensive) new server I got months ago so we could all migrate into a brand new virtualised environment with LXC and ZFS and all the other latest and greatest toys?

Just opened a ticket to cancel it.

I can not get it to work properly.

This server - this one right here - is running in a virtualised environment using OpenVZ.  That just works.  Dead simple.  But it's also dead dead now; EOL is November this year.

I tried setting up LXC, couldn't get networking right.  Tried setting up Proxmox VE, couldn't get networking right.  Tried setting up VMware ESXi, couldn't get it to even install.

We're moving to Digital Ocean.  This server isn't as urgent - we still have six months in theory and maybe more in practice, but Ace is on an old server and it needs to be fixed.

It's a shame.  The new server would have given us a great environment going forward.  But I've spent several days now installing and configuring and reinstalling and reconfiguring without any sign of progress.  I should probably have done this three months ago.

I can get a Digital Ocean instance up and running for $6 per month, including automated backups and 1TB of bandwidth, in two minutes flat.  Sure, I need to install the software, but that doesn't simply refuse to work for no reason.  Except sometimes MySQL.

Posted by: Pixy Misa at 02:22 PM | Comments (3) | Add Comment | Trackbacks (Suck)
Post contains 236 words, total size 2 kb.

Thursday, May 23

Geek

Daily News Stuff 23 May 2019

It's Going To Be Epi-Wait For It-Dary Edition

Tech News


Anime Opening of the Day



NetoJuu is definitely better than Netoge.


Disclaimer: ALVIN!

Posted by: Pixy Misa at 09:30 PM | Comments (6) | Add Comment | Trackbacks (Suck)
Post contains 130 words, total size 3 kb.

Wednesday, May 22

Geek

Daily News Stuff 22 May 2019

Too Many Tabs Edition

Tech News



Disclaimer: If you need to open more than three browser tabs to solve a problem, whatever it is you're working with is fucked.

Posted by: Pixy Misa at 11:33 PM | Comments (1) | Add Comment | Trackbacks (Suck)
Post contains 144 words, total size 2 kb.

Tuesday, May 21

Geek

Daily News Stuff 21 May 2019

Yet Another Edition

Tech News


Anime Opening of the Day


Finished watching Noragami season one.  It's perhaps not groundbreaking and a bit confused about what it wants to be when it grows up, but the art and animation direction, soundtrack, and acting are all first rate.  It's like spotting something shiny in the distance that looks like it might be a silver dollar and when you get there and pick it up turns out to be a silver dollar.



Disclaimer: I told you butter wouldn't suit the works.

Posted by: Pixy Misa at 05:57 PM | Comments (10) | Add Comment | Trackbacks (Suck)
Post contains 451 words, total size 6 kb.

Monday, May 20

Geek

Daily News Stuff 20 May 2019

Oops There Goes Huawei Edition

Tech News


Disclaimer: The computer is your friend.  The computer is scheduled to restart outside of active hours.  Do not disconnect power from the computer.  Insufficient storage available for update.  Please free up 137PB and press any key to continue.  Failure to comply is punishable by dddddddddddddddddddddddddddddd

Posted by: Pixy Misa at 09:57 PM | Comments (3) | Add Comment | Trackbacks (Suck)
Post contains 319 words, total size 3 kb.

Sunday, May 19

Geek

Daily News Stuff 19 May 2019

Skipped A Day Somewhere Edition

Tech News



Anime Stuff

Netoge: I Can't Believe My Party's Healer Is A Complete Airhead But At Least She's Got Big Tits: Not great, not even particularly good, but watchable.  And the soundtrack is good.  Interesting conceit that everything in the real world is brighter and more colourful than in the fantasy world, where so often it's the other way around.

Really, the single biggest problem with this series - after the school uniforms, which are believably hideous - is that all the girls have exactly the same smile.  Aforementioned airhead, pettanko tsundere, student council president, only sane woman, even the teacher.  Lazy character design there, and the end result is slightly creepy.

Inō-Batoru wa Nichijō-kei no Naka de: Just when you think it might actually get interesting, it falls off a cliff.  Dropped hard.

Actually, I Am: Terrible rubbish.

Noragami: Ah, that's what I was looking for.



Disclaimer: Ask not for whom your country's bell tolls.  Ask rather what bell you can toll for your country.

Posted by: Pixy Misa at 06:42 PM | Comments (4) | Add Comment | Trackbacks (Suck)
Post contains 432 words, total size 5 kb.

Geek

Daily News Stuff 18 May 2019

Pyloric Victory Edition

Local News

  • It looks like the Liberals (Australia's conservative party) have pulled off an upset win against Labor to retain power for the nineteenth consecutive year.* (Sydney Morning Herald)

    The Liberals suck and deserved to lose, but Labor are markedly worse, so... Eh.

    * Numbers may total to more than 100% due to rounding.

Tech News



Disclaimer: I guess I'm glad that the least worst party won.  I just wish we had a less worst party that could have won instead so I could rub it in their faces.  In the meantime, I have a busy day ahead, lots of dopey mopey leftists to make fun of.

Posted by: Pixy Misa at 12:42 AM | Comments (3) | Add Comment | Trackbacks (Suck)
Post contains 300 words, total size 3 kb.

<< Page 265 of 711 >>
99kb generated in CPU 0.1054, elapsed 0.4032 seconds.
58 queries taking 0.3531 seconds, 408 records returned.
Powered by Minx 1.1.6c-pink.
Using http / http://ai.mee.nu / 406