Migrate Home Assistant from Pi3 to P4

8 comments started 2022-08-27 last 2022-08-30
Home Automation
#1 TheDragon (GivEnergy)

Wow that was fun.
Had to do a full back up of the old HA instance, upload to Google
Down load to PC
Build a new Pi4 HA 64 bit, as the Pi3 wouldnt boot.
Then import the backup (Partial, everything but the HA Supervisor)

Now up and running again on a Pi4 4GB

GivTCP 1.1.7

A
#2 anglefire

TheDragon (GivEnergy) are you booting from an ssd or sd card? I can highly recommend ssd if you are using an sd!

#3 TheDragon (GivEnergy)

anglefire yes SD card.
Transcend 300x Endurance Pro
Have the recorder interval at 5 seconds.

A
#4 anglefire

TheDragon (GivEnergy) I’ve heard several stories of sd cards failing (sooner or later) if used with Home assistant. Think it cost me about £30 for a usb to ssd lead and a smallish ssd

#5 TheDragon (GivEnergy)

anglefire

How do you get it to boot from it though? As the SDCard would still be always written to with log files from all the integrations and Addons

I read that a High Endurance SDCard designed with A2 spec will last years. Get one over sized, so as it wears you still have plenty of capacity, you will notice the capacity slowly falling over time, apparently years for the SanDisk Endurance range

T
#6 Tim

TheDragon (GivEnergy) To boot from a USB or SSD:
plug USB/SSD drive into your RPi
use SD Card copier to copy the SD card partitions
Shut down Rpi
Remove SD Card
Power up

If you have a bigish SSD and you want additional partitions:
After power up above,
wait for the filesystem root to resize
shut it down
put the SD card back in and reboot (if it doesn't reboot from SD, you might have to remove USB/SSD and insert once booted)
run GParted to change the partition size on your USB/SSD
remove SD card again
Reboot

Then wait for the USB/SSD to fail!! In the meantime, do a SD Card copy regularly to keep as backup unless you want to rebuild from scratch when you're under time pressure.

#7 TheDragon (GivEnergy)

Tim

Didn't realize Pi4 could boot from USB natively.