New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
datactl move not using external drive? #1040
Comments
Hm, it seems the system opted to use the SD card non-the-less. Do you have that system still booted after that first reboot after using the |
Last night I decided to delete the partition and take another try, it was still doing the setting up the data partition after 14 hours, then... power outage, so I'll have to take another crack at it. 😞 |
So the process was stuck when running It could be a disk size problem, I never tried with such a large disk. |
@agners here is the additional logging
|
Based on the errors in that log output, I wiped the drive and set it up for GPT, then reran |
Hm, the screenshot with the stack traces don't look good. It seems as if the bus the harddrive is connected to (USB?) or the harddrive itself had some issues writing data which made the "write" commands time out. Is that driver powered externally? Are you sure the harddrive is fine? The log then sounds like Home Assistant OS tried to create a very small partition which then filled up immediately. I think ideally you should not have any partition table or partition since this is done by the I am planning to work on the feature tomorrow to improve its usability. Mainly I like to move more logic into datactl to catch problems before moving data. |
The drive is powered externally. I ran Gparted on it and it says it fixed a bunch of issues. I reattached it to the pi but HA still isn't using it. Tried
🤷♂️ |
Yeah I think that happens when there is still some parts of the partition table there. Can you try:
before using datactl? |
Here is what is currently on the external drive.
Should I still |
There should be single partition with all data on it. Is the old data partition still there? |
here is the fdisk info.
|
Yeah so While in theory the current script should work, it will take quite a while since your source partition is quite large. I am working on a rewrite of datactl which should be faster, see #1046. It will be part of the next pre-release, so if you can wait couple of days it might be more efficient. |
Thanks @agners I'll hold off, I can live without the Plex stuff for a while 😉 |
Hey @agners just checking in to see if any progress has been made on the |
I have a followup on this. I updated the OS to 5.9, reran the datactl move. After the reboot I can see that is it using the external drive, the new partition was created to fill the drive, but the file system is only the size of the SD card.
|
Sorry for the delay, and thanks for the detailed reports! The file system should grow with the next release (fixed with #1133). You can grow the file system manually using |
Hardware Environment
Home Assistant OS release:
Supervisor logs:
Journal logs:
Kernel logs:
Description of problem:
New setup, I attached a 5TB external drive to use for the Plex add-on. I ran
datactl move /dev/sda
, rebooted and let it run for a little over an hour,. After logging in the system does not appear to be using the external drive for/mnt/data
.I attached the drive to another machine and it's "empty"
The text was updated successfully, but these errors were encountered: