operating-system
operating-system copied to clipboard
Move data to SSD not working
The problem
I'm trying to move Home Assistant data to my brand new SSD (120gb). I tried by passing with the Lovelace UI and manually over SSH but both methods not work at all...
Method 1 (with Lovelace UI):
- Open move data modal.
- Select /dev/sda in the select list
- Validate
- A modal with a progress indicator appear and HA seems to restart
- The modal never disappear (tried over 10 times), if I reload the website, storage is again on SD card...
Method 2 (over SSH):
ha os datadisk move /dev/sda- Home Assistant seems to restart
- Storage is again on SD card...
What version of Home Assistant Core has the issue?
8.0
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Core
Integration causing the issue
No response
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
What kind of board are you using? Is there anything in the Supervisor logs?
In my case I am unable to select the datadisk in the frontend, but that seems independent. I created an issue for this: https://github.com/home-assistant/frontend/issues/12729
However, when using the console command moving to data disk seems to work on my test: The system reboots, the disk blinks with lots of activity, and I end up with the data being on the datadisk.
Can you setup SSH access to the underlying OS and access the logs of the following services after a failed moving attempt?
systemctl status hassos-data.service
Thanks for your answer @agners, I will try again soon 👍
@agners So I tried but it seems the command was not found...
-bash: systemctl: command not found
Instead, I tried to watch log inside the "logs" section in the Web UI, for "Supervisor" I see:
22-05-23 18:05:03 INFO (MainThread) [supervisor.hardware.monitor] Detecting HardwareAction.REMOVE hardware /dev/sda1 - /dev/disk/by-id/ata-KINGSTON_SUV400S37120G_50026B776800DF08-part1
22-05-23 18:05:03 INFO (MainThread) [supervisor.hardware.monitor] Detecting HardwareAction.REMOVE hardware /dev/sda2 - /dev/disk/by-id/ata-KINGSTON_SUV400S37120G_50026B776800DF08-part2
Note: The SSD seems to be formatted because it is unreadable when I plug it on my Mac
@istornz are the host log showing anything? What type of system are you using? Is this an upgraded installation or a new installation?
@agners No there is no errors in the host log... I'm using a Raspberry Pi 4 Model B Rev 1.4 (with USB boot enabled, maybe I can try to disable it ?)
Home Assistant Core 2022.5.5
Home Assistant Supervisor 2022.05.3
Home Assistant OS 8.1
Kernel version 5.15.32-v8
I upgraded recently to 8.1 but it was never working in a fresh install 8.0 (did the install over 7 times 😂)
Some SSD devices are known to cause problems, and we added storage quirks in #1864 to Raspberry Pi's config.txt. However, that only gets shipped with a new installation since version 8.0, hence the question. Your installation should have those storage quirks present. Also, since there are no errors in the host log, it seems that the drive is working properly.
At this point I need the logs from the hassos-data.service to debug it further.
You can access it by login on the local terminal (screen/keyboard), using login then bellow commands. Alternatively, you can enable host SSH access (port 22222) as described on this page. With that you should be able to execute the commands directly:
systemctl status hassos-data.service
journalctl -u hassos-data.service
@agners Okay, so I changed the SSD and now HA refuse to boot anymore :/ can't connect to SSH, Web UI not shown too. Here is a screen about what the monitor connected to the raspberry show:
Thanks for your help 👍
It seems the system has issues reading data from the drive. Hard to tell what is the cause, likely a harware issue. How do you power your SSD? Make sure it gets enough power, potentially add a powered USB Hub in between.
There hasn't been any activity on this issue recently. To keep our backlog manageable we have to clean old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant OS version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.