I'm booting my Raspberry Pi 4 from a USB SSD
jeffgeerling.com
I'm booting my Raspberry Pi 4 from a USB SSD
1–10 of 33 posts
Re: I'm booting my Raspberry Pi 4 from a USB SSD
#2Re: I'm booting my Raspberry Pi 4 from a USB SSD
#3I've looked in the past and have only found links to partitioning the drive so that it could be used when moving from one pi to another. But nothing about using it concurrently.
I'm not even sure what this would look like physically. Like if a hub exists that could pass traffic to a single drive connected on the other side. Or how the drive would internally separate the writes. But im curious if something like this has been done before. Or why it couldn't be done
Re: I'm booting my Raspberry Pi 4 from a USB SSD
#4Does anyone know if its theoretically possible to run a cluster of Pi's off of the same external ssd at the same time? I'd like for say 4 Pi's to get a speed boost of not running off microSD, but I also don't want to shell out for 4 separate hard drives. I've looked in the past and have only found links to partitioning the drive so that it could be used when moving from one pi to another. But nothing about using it c…
Re: I'm booting my Raspberry Pi 4 from a USB SSD
#5Excellent. The biggest obstacle ive had to using Pis for practical things is that the memory cards eventually go bad. Looking forward to seeing this in the main release.
Re: I'm booting my Raspberry Pi 4 from a USB SSD
#6Does anyone know if its theoretically possible to run a cluster of Pi's off of the same external ssd at the same time? I'd like for say 4 Pi's to get a speed boost of not running off microSD, but I also don't want to shell out for 4 separate hard drives. I've looked in the past and have only found links to partitioning the drive so that it could be used when moving from one pi to another. But nothing about using it c…
Re: I'm booting my Raspberry Pi 4 from a USB SSD
#7Does anyone know if its theoretically possible to run a cluster of Pi's off of the same external ssd at the same time? I'd like for say 4 Pi's to get a speed boost of not running off microSD, but I also don't want to shell out for 4 separate hard drives. I've looked in the past and have only found links to partitioning the drive so that it could be used when moving from one pi to another. But nothing about using it c…
PXE Boot w/ NFS root - you won't get the bandwidth (about 112MB/s over gigabit Ethernet), but you'll definitely see the response time improvements (IOPS + latency).
Re: I'm booting my Raspberry Pi 4 from a USB SSD
#8Excellent. The biggest obstacle ive had to using Pis for practical things is that the memory cards eventually go bad. Looking forward to seeing this in the main release.
Re: I'm booting my Raspberry Pi 4 from a USB SSD
#9Earlier quoted context omitted.
PXE Boot w/ NFS root - you won't get the bandwidth (about 112MB/s over gigabit Ethernet), but you'll definitely see the response time improvements (IOPS + latency).
This. I intend to do some more testing with my current cluster to see how much improvement I can get with one Pi 4 serving the traffic (vs each Pi running from its microSD card). And ideally seeing if a faster machine with faster storage could do even better.
Re: I'm booting my Raspberry Pi 4 from a USB SSD
#10Excellent. The biggest obstacle ive had to using Pis for practical things is that the memory cards eventually go bad. Looking forward to seeing this in the main release.
Putting /var/log/ somewhere else mitigates this.
- don't use swap
- make sure you have noatime on all your filesystems
- identify other folders with frequently changing data (/tmp, $HOME/tmp, etc.) and also make sure you keep them in memory
- you can use NFS for many of these things if that is possible