giomania Posted February 9 Posted February 9 I saw this blog post about configuring the eisy to boot from an NVMe SSD, and it clearly states the process will wipe out any VMs installed. I just installed Home Assistant a few weeks ago on the NVMe SSD, and don't really want to lose it. That said, I would like to use the SSD for the extra performance benefits noted in the blog post. Will the migration without the loss of installed VMs be supported in the future? Thank you. https://developer.isy.io/blog/Supercharged
tazman Posted February 9 Posted February 9 I saw that today and thought it would have been nice to do this when we first added the SSD drive! 2
jec6613 Posted February 9 Posted February 9 (edited) sudo vm poweroff -f homeassistant And then backup everything in /storage, and you should be able to boot from the NVME and put everything back. Edit: doesn't seem the case, but this is BSD, I'm sure there's a method of doing it, you just may be restricted in storage space for the backup. Edited February 9 by jec6613
paulbates Posted February 10 Posted February 10 Related question: I haven't added home assistant, and have no immediate plans to, but .. If I do this ssd upgrade process to my stock eisy, and at some point want to execute the script to add an HA VM to my eisy, would that script be exactly the same on the HW modified eisy?
giomania Posted February 10 Author Posted February 10 34 minutes ago, paulbates said: Related question: I haven't added home assistant, and have no immediate plans to, but .. If I do this ssd upgrade process to my stock eisy, and at some point want to execute the script to add an HA VM to my eisy, would that script be exactly the same on the HW modified eisy? There are separate instructions for installing and initializing the SSD and for installing for HA in a VM, so it seems like it would be the same script to install HA, but we would need an expert to chime in. Mark 1
paulbates Posted February 10 Posted February 10 36 minutes ago, giomania said: There are separate instructions for installing and initializing the SSD and for installing for HA in a VM, so it seems like it would be the same script to install HA, but we would need an expert to chime in. Mark Right, understood Mark. I'm wondering if installing the drive makes it a different volume, etc, so that that HA vm script wouldn't work (?) Paul
KSaccullo01 Posted February 11 Posted February 11 Save the home assistant configuration then restore it. It worked for me after doing the SSD boot upgrade. in HA: Settings, --> System --> Backup. Save the backup file, tar file, on the computer the you remoted into HA. After a full reinstall and a new HA is running, restore the backup. At the main HA login screen don't setup a new account. select restore from backup. Select complete backup
tazman Posted February 11 Posted February 11 Well I threw all caution to the wind and tried to perform the action but I can not get it to run. I created the file with vi and when I perform ./setup.nvme.boot I get ./setup.nvme.boot: Command not found. Maybe once it is included in the next udx release it will work for me.
tazman Posted February 11 Posted February 11 20 minutes ago, hart2hart said: Try it as setup_nvme_boot. I did and it returns to the next line but does not seem to do anything.
hart2hart Posted February 11 Posted February 11 Does one of the setup commands describe itself as making the script file an executable file?
tazman Posted February 11 Posted February 11 3 minutes ago, hart2hart said: Does one of the setup commands describe itself as making the script file an executable file? I thought the .sh file did that Once the file is saved, make sure you update its permission: chmod 700 setup_nvme_boot.sh Run the script Type: sudo -i This way, you will be running as root. So, be very careful! Once done, type: ./setup.nvme.boot Wait for the process to complete!
hart2hart Posted February 11 Posted February 11 I think you need to execute this:chmod +x setup_nvme_boot.shConfirm I’m recalling that rightbefore doing it.
tazman Posted February 11 Posted February 11 @hart2hart thanks for the help before chmod 700 setup_nvme_boot.sh -rw-r--r-- 1 root wheel 4517 Feb 11 14:39 setup_nvme_boot.sh then -rwx------ 1 root wheel 4517 Feb 11 14:39 setup_nvme_boot.sh after chmod +x setup_nvme_boot.sh -rwx--x--x 1 root wheel 4517 Feb 11 14:39 setup_nvme_boot.sh But still just goes to next line I think there has to be something wrong with the script because it goes to the next line. Or maybe because my NVME is already setup not sure.
TJF1960 Posted February 11 Posted February 11 I am having the same issue with the installation, "setup_nvme_boot: command not found" I even tried adding .sh to the end of the command " setup_nvme_boot.sh: command not found -Tim
tazman Posted February 11 Posted February 11 2 minutes ago, TJF1960 said: I am having the same issue with the installation, "setup_nvme_boot: command not found" I even tried adding .sh to the end of the command " setup_nvme_boot.sh: command not found -Tim Did you try ./setup_nvme_boot.sh When I run that it goes to the next line but nothing happens.
tazman Posted February 11 Posted February 11 I noticed pasting the script from the website it was cutting the #!/bin/sh remove_emmc_ out of the beginning for some reason so I used ee to create the file and that did not cut off the beginning but I get the same results. @Michel Kohanim do you have any idea why when I run the script it just returns to the next line and does not seem to do anything?
stevesreed Posted February 12 Posted February 12 (edited) 7 hours ago, tazman said: Did you try ./setup_nvme_boot.sh When I run that it goes to the next line but nothing happens. To get the script to run I had to use: bash -c "source ~admin/setup_nvme_boot.sh; setup_nvme_boot" To get the function to be called in the shell script. Edited February 12 by stevesreed
stevesreed Posted February 12 Posted February 12 (edited) after running with bash -c "source ~admin/setup_nvme_boot.sh; setup_nvme_boot" everything works correctly. rebooted and everything is up and running on a big, fast SSD [admin@eisy ~]$ gpart show => 40 1953525088 nvd0 GPT (932G) 40 131072 1 efi (64M) 131112 1927282688 2 freebsd-zfs (919G) 1927413800 8388608 3 freebsd-swap (4.0G) 1935802408 17722720 - free - (8.5G) Edited February 12 by stevesreed removed my stupid mistake 1
tazman Posted February 12 Posted February 12 8 hours ago, stevesreed said: To get the script to run I had to use: bash -c "source ~admin/setup_nvme_boot.sh; setup_nvme_boot" To get the function to be called in the shell script. If I have time tonight I will give that a try thanks!
stevesreed Posted February 12 Posted February 12 I was trying to avoid changing the script file, but if you're editing it anyway. You can just add a single line to the end of the script: setup_nvme_boot which will call the function to start the process. 1
Whitehambone Posted February 12 Posted February 12 @stevesreed when I run: bash -c "source ~admin/setup_nvme_boot.sh; setup_nvme_boot" I get this: nvme0: WD_BLACK SN850X 1000GB nvme0ns1 (953869MB) adding GTP partition to nvd0 ... gpart: geom 'nvd0': Operation not permitted error: failed creating gpt partition ... I get the same error even if I run this: sudo gpart create -s gpt nvd0 I am stuck...
Solution mapeter Posted February 13 Solution Posted February 13 I opened a ticket over the weekend about the script and Michel's response stated to wait for the next udx release (mid this week). It includes fully tested scripts so that all you have to do is to run couple of commands. 3
Recommended Posts