inovermyhead Posted March 17 Share Posted March 17 Living up to my moniker, I'm stumped: Per the "Increase performance or add redundancy?" blog, I installed and set up a NVMe in my new EISY using the script (sudo fl.ops setup.nvme.boot). I did answer "Y" (I thought) to creating an additional "Storage" partition (of 500 Gb) and zpool, for setting up Home Assistant in a VM. However when I run the HA install script (curl -s https://pkg.isy.io/script/create_ha_vm.sh | sudo bash) it errors at "cannot create 'storage/vms': no such pool 'storage'" (attached screen capture from Terminal). "gpart show" does show the 500 Gb partition (2nd screen capture); however "zpool list" shows only one pool (zudi). So while I have the disk partition, I apparently didn't successfully get a zpool set up? How do I fix this? I did set the NVMe up for maximum performance, not mirrored, so I can't go back and rerun the NVMe set up script again. Suggestions and/or directions for a FreeBSD & ZFS noob would be most appreciated. John Link to comment
inovermyhead Posted March 22 Author Share Posted March 22 Bump. Anyone have suggestions? Link to comment
MWoods329 Posted March 22 Share Posted March 22 What do you get when you run "zfs list"? Link to comment
MWoods329 Posted March 22 Share Posted March 22 Also, it looks like you have to change directories to storage before running the script. From a fresh terminal, try cd /storage then curl -s https://pkg.isy.io/script/create_ha_vm.sh | sudo bash) Link to comment
inovermyhead Posted March 23 Author Share Posted March 23 @MWoods329 Thanks for the suggestions; however no luck. Attached are the the results of zfs list (there does not seem to be a "Storage" file system. Changing the directory to /storage before running the curl command gave the same error .. Link to comment
apnar Posted March 23 Share Posted March 23 Look at “zpool list” and see if storage is there. If not try “sudo zpool import storage” and then look again. If you see it then you likely are hitting the bug with missing /etc/zfs directory which causes /storage not to mount at boot.To fix it do a “sudo mkdir /etc/zfs”, “sudo zpool export storage”, “sudo zpool import storage”. Edit: added fix and sudo command” Link to comment
inovermyhead Posted March 23 Author Share Posted March 23 It looks like I have a partition "storage" but not a pool...... Link to comment
apnar Posted March 23 Share Posted March 23 It looks like I have a partition "storage" but not a pool......http://d2z8ydsemzif1x.cloudfront.net/monthly_2024_03/Screenshot2024-03-23at8_55_04AM.png.d2a77ca55a53d93ad5542ad3b45219eb.pnghttp://d2z8ydsemzif1x.cloudfront.net/monthly_2024_03/Screenshot2024-03-23at8_51_10AM.thumb.png.2a5e30adf4b203f88a9a68bb3b7d93c4.pngTry the commands I posted above to see if it imports. There was a bug in the scripts where it didn’t create the /etc/zfs directory and that stopped any non-root zfs pools from importing on reboot. Link to comment
inovermyhead Posted March 23 Author Share Posted March 23 @apnar That worked; thanks very much. The HA VM install script ran with no errors. For my education, please: 1. Now that I've made the directory /etc/zfs, the "storage" zpool will mount automatically upon a reboot of the EISY? 2. What does the zpool export then immediate import do? I haven't been able to log into HA yet; the http://homeassistant.local.8123 URL doesn't work and I can't find HA in my router devices/hosts lists but I'll follow the "Home Assistant on easy not online" thread for help with that. Again, thanks for your help. John Link to comment
inovermyhead Posted March 23 Author Share Posted March 23 After updating & rebooting the EISY, the HA VM is up and accessible via a browser - everything is good. Thanks for help. Link to comment
apnar Posted March 23 Share Posted March 23 1 hour ago, inovermyhead said: @apnar That worked; thanks very much. The HA VM install script ran with no errors. For my education, please: 1. Now that I've made the directory /etc/zfs, the "storage" zpool will mount automatically upon a reboot of the EISY? 2. What does the zpool export then immediate import do? I haven't been able to log into HA yet; the http://homeassistant.local.8123 URL doesn't work and I can't find HA in my router devices/hosts lists but I'll follow the "Home Assistant on easy not online" thread for help with that. Again, thanks for your help. John 1) yes 2) In FreeBSD zfs keeps a list/cache of which file systems are mounted in the file "/etc/zfs/zpool.cache". Since the /etc/zfs directory was missing the file couldn't be created so on boot nothing was mounted. You first created the directory, but that didn't actually create the cache file. Reimporting the pool triggered it to be written to the cache file. Link to comment
Recommended Posts