Diskless Linux boot using ZFS, iSCSI and PXE
1–10 of 108 posts
Re: Diskless Linux boot using ZFS, iSCSI and PXE
#2[deleted]
Re: Diskless Linux boot using ZFS, iSCSI and PXE
#3NFS diskless is the more common approach I've used but this is very cool.
Re: Diskless Linux boot using ZFS, iSCSI and PXE
#4[dead]
Re: Diskless Linux boot using ZFS, iSCSI and PXE
#5NFS diskless is the more common approach I've used but this is very cool.
When I tried root-on-nfs I had a lot of issues. The Redhat and Arch package managers don't seem to like it (presumably a sqlite thing?).
Re: Diskless Linux boot using ZFS, iSCSI and PXE
#6Pretty cool! You could also boot into an ephemeral minimal initrd that displays a selection menu instead of doing it in iPXE. That would grab the new kernel and initrd from the network and kexecs it without reboot.
Re: Diskless Linux boot using ZFS, iSCSI and PXE
#7Nice. I'm extra fond of ZFS backed network root filesystem, because it lets you put an OS on ZFS without needing to deal with ZFS support in that OS. (One of these days I want to try OpenBSD with its root on NFS on ZFS, either from Linux or FreeBSD.)
Does anyone have an opinion on iSCSI vs NBD?
Re: Diskless Linux boot using ZFS, iSCSI and PXE
#8You might find it worth upgrading to 10gbps if you continue to go down this road. The Mikrotik CRS-309 has served me well, and a couple Intel X520-DA2s. I believe those NICs can do iSCSI natively, and pass the session to the operating system with iBFT.
SFP28 might be cheap enough now too, I'm not sure...
Re: Diskless Linux boot using ZFS, iSCSI and PXE
#9something worth mentioning here is that iSCSI is quite unhappy on congested networks or packet loss caused by incast traffic.
to make this actually work well, consider modifying your switches QoS settings to carve out a priority VLAN for iSCSI traffic
Re: Diskless Linux boot using ZFS, iSCSI and PXE
#10NFS diskless is the more common approach I've used but this is very cool.
When I tried root-on-nfs I had a lot of issues. The Redhat and Arch package managers don't seem to like it (presumably a sqlite thing?).
You can download the rootfs, extract it to a ramdisk, and just run in memory. This is fast for everything. Unfortunately, memory just got super expensive. Fortunately, Linux requires ~no memory to do many useful things.