depenguin-me / depenguin-run

Installer script for mfsBSD image to install FreeBSD 14.0 with zfs-on-root using qemu
MIT License
16 stars 7 forks source link

Add more than two drives? #49

Closed lukas-at-harren closed 1 year ago

lukas-at-harren commented 2 years ago

Hi,

I am currently bootstrapping a server with four drives, and the script always only selects /dev/sd[ab] and not /dev/sd[abcd] as its listed in lsblk. I found there is a limitation that you can only add 4 drives to qemu, but if you use if=virtio more can be added.

What can be done about this, so that the installation can directly take care of all disks?

Kind regards.

bretton commented 2 years ago

Hi @lukas-at-harren, nice problem!

so if we can get qemu to pass in 4 drives, then editing depenguin_settings.sh to something like

conf_disks="ada0 ada1 ada2 ada3"   # or ada0 | or nvme0n1 | or nvme0n1 nvme1n1
conf_disktype="raid10"   # or raidz1 or mirror or stripe

should allow the depenguin_bsdinstall.sh script to complete installation.

I'm not sure how we'll do it or test it yet.

bretton commented 2 years ago

will you test for me please, it's not very elegant, just expanded the long form logic for the disks

wget https://depenguin.me/test.sh \
&& chmod +x test.sh \
&& ./test.sh your_authorized_keys

and if it boots, ssh in and edit depenguin_settings.sh for

conf_disks="ada0 ada1 ada2 ada3"
conf_disktype="raid10" # or raidz1

then run depenguin_bsdinstall.sh

no idea if it will work or not

lukas-at-harren commented 2 years ago

@bretton thanks, I will give those a try.

bretton commented 1 year ago

sorry I've overwritten the test.sh file with a new PR test, let me know if you need it again or if it worked

lukas-at-harren commented 1 year ago

@bretton my machine that I could play around with quite quickly had to move towards production. And I am OOM right now. Out of machines. The next box will come along, and I will have this to try.

If you want to close the issue for now, that is ok. I would re-open it once I get to it.