Hi. I'm jon.404, a Unix/Linux/Database/Openstack/Kubernetes Administrator, AWS/GCP/Azure Engineer, mathematics enthusiast, and amateur philosopher. This is where I rant about that which upsets me, laugh about that which amuses me, and jabber about that which holds my interest most: *nix.
Adventures in OpenBSD softraid
Posted 12-09-2018 at 08:55 AM by rocket357
Hosted at one of the small-ish cloud providers I have a small VM that I recently resized. Along with a small bump in RAM (for the same price), I was able to secure a bit more storage space. Win-win, right?
I have an OpenBSD RAID volume on the server. Built within this RAID volume is a softraid crypto virtual disk. I decided to resize this crypto volume, so I've booted the server up with the ramdisk kernel. First, I resized the physical volume's layout, so a quick "fdisk -iy sd0" and disklabel of sd0 gives me the expected larger size for the RAID partition on the "physical" disk. Now I just need to resize the crypto volume so I can adjust the partition table on the crypto volume. fdisk -iy sd1 and...hrmmm. That didn't change the size of the volume. It is managed by softraid, though, so perhaps that's the issue...
The man pages don't say much past *creation* of the crypto volume. Resizing a crypto volume isn't mentioned in the softraid man page, nor the bioctl man page, etc...
I guess this is intended to be a "wipe and restore" type of operation, and an in-place expansion of a crypto volume just isn't possible at this time.
Bummer.
I have an OpenBSD RAID volume on the server. Built within this RAID volume is a softraid crypto virtual disk. I decided to resize this crypto volume, so I've booted the server up with the ramdisk kernel. First, I resized the physical volume's layout, so a quick "fdisk -iy sd0" and disklabel of sd0 gives me the expected larger size for the RAID partition on the "physical" disk. Now I just need to resize the crypto volume so I can adjust the partition table on the crypto volume. fdisk -iy sd1 and...hrmmm. That didn't change the size of the volume. It is managed by softraid, though, so perhaps that's the issue...
The man pages don't say much past *creation* of the crypto volume. Resizing a crypto volume isn't mentioned in the softraid man page, nor the bioctl man page, etc...
I guess this is intended to be a "wipe and restore" type of operation, and an in-place expansion of a crypto volume just isn't possible at this time.
Bummer.
Total Comments 0