Move from RPi4 4GB > 8GB

Hi All,

Can i replace my RPi4 4GB without any problems to a 8GB?
In my router i need to change the mac address so it gets the same IP number.

But wondering if this can be done without strange errors etc.

I think you can swap the SD card between the pi4’s without issue. There’s only the one 64bit image for this hardware.

Whether or not it will pick up the extra RAM on start up… I’m not sure.

Make a full snapshot and copy it off the card before you do, just in case.

I already have Debian 10 64Bit installed. I will make a backup and see what happen

Well that’s very relevant information you should have included in your first post.

If you are not running Home Assistant OS on the SD card forget what I said.

Sorry, no i’m running Debian 10 64Bit on a SSD, and Home Assistant in a docker.

System Health

Version core-2021.2.3
Installation Type Home Assistant Supervised
Development false
Supervisor true
Docker true
Virtual Environment false
Python Version 3.8.7
Operating System Family Linux
Operating System Version 5.4.79-v8+
CPU Architecture aarch64
Timezone Europe/Amsterdam

Home Assistant Community Store

GitHub API ok
Github API Calls Remaining 4928
Installed Version 1.11.3
Stage running
Available Repositories 748
Installed Repositories 38

Hass.io

Host Operating System Debian GNU/Linux 10 (buster)
Update Channel stable
Supervisor Version supervisor-2021.02.9
Docker Version 20.10.1
Disk Total 109.7 GB
Disk Used 23.4 GB
Healthy true
Supported true
Supervisor API ok
Version API ok
Installed Add-ons Let’s Encrypt (4.11.0), Mosquitto broker (5.1), Z-Wave to MQTT (0.9.2), Check Home Assistant configuration (3.6.0), Home Assistant Google Drive Backup (0.103.1), AdGuard Home (3.0.0), Portainer (1.4.0), WireGuard (0.5.0), Visual Studio Code (3.1.0), MariaDB (2.2.1), InfluxDB (4.0.3), Grafana (6.1.1), Nextcloud Backup (0.15.0), Bitwarden RS (0.8.0), Mailserver (1.1.3), phpMyAdmin (0.2.0), Signal Messenger (0.34), Nginx Proxy Manager (0.10.0), DSMR Reader (0.0.4), TimescaleDB (1.1.6), TooGoodToGo Home Assistant MQTT Bridge (1.4.0), pgAdmin4 (1.1.0), FTP (4.0.0)

Lovelace

Dashboards 1
Resources 31
Views 13
Mode storage

Spotify

Spotify API endpoint reachable

You have couple options:

  1. Fixed IP address
  2. Go to Supervisor ==> System ==> Host System ==> IP Address and hit CHANGE

I have add the Mac address into my router and gave it a fixed IP
My only concern is can I switch SSD to new RPI4 8GB without problem.

  1. Shutdown old RPi
  2. change MAC address in router
  3. connect SSD to new RPi
  4. Turn it on.

If you’ll change IP Address on PI4 Supervisor ==> System ==> ==> Host System, router will pick new MAC for IP address. Old one will be/should removed/disabled from router, by router automatically.
Not sure if about switching SSD, many dependences.
You can do following to be save:
Create snapshot, save on NAS or local computer drive.
In case something goes wrong, when you swap SSD you can restore snapshot. Not full, but choosing items to restore.

Yes the current using SSD will be the same. So disconnect SSD from the old pi and connect to the new one. I will always make snapshot before those kind of things.

But would be nice if nothing goes wrong haha

For me best one is Samba Backup: Create and store snapshots on a Samba share

1 Like

I use Nextcloud Backup. All snapshots will be uploaded to Nextcloud…

Ok,

DONE… Had some issues:

  1. Supervisor > System > IP address > Change
    I fill in all the info on DHCP mode (hard Mac address in router for static IP)
    But when I enter it, the IP number is not showing.

The system is working, also all external stuff like Ngnix Proxy

There where no issues based in 4GB to 8GB:

root@ha:/home/poudenes# free
              total        used        free      shared  buff/cache   available
Mem:          7.7Gi       1.4Gi       4.4Gi        18Mi       1.9Gi       6.4Gi
Swap:            0B          0B          0B

Amount in use was same on 4GB. Now will start some more docker Addons.
But this seems ok :slight_smile:

1 Like

Also the issue with the IP number is solved. Reboot HA and now I see the given IP number.

1 Like

Thanks for documenting your approach. This was very helpful.