Umzug RP2 auf RP3 mittels Backup

Begonnen von bastih., 06 August 2018, 19:45:35

Vorheriges Thema - Nächstes Thema

bastih.

Hallo zusammen,
vielleicht wurde das Thema schon behandelt, ich konnte es leider im Forum nicht finden.

Momentan läuft bei mir ein RP2. Ich würde gerne nur mit dem Einspielen des Backups vom RP2 auf einen RP3 umziehen. Hat das schon jemand ausprobiert?
Funktioniert das?

Besten Dank für eure Info

Gruß bastih.

rischbiter123

Bei mir hat es leider nicht geklappt. Ich musste Betriebssystem und Fhem neu installieren und dann das Fhem-Backup neu aufspielen. Und wenn, dann die diversen Perl-Pakete nicht vergessen. Aber vielleicht habe auch nur ich das Pech gehabt. Einen Versuch ist es alle mal Wert.

Andreas
4*Raspi, Max Thermostate und Fensterkontakte, FB7590, Mysensors und NanoCUL, IT und Sonoff, zigbee2mqtt2

Wernieman

Wenn Dein Betriebsystem akuell ist (incl. Kernel), könntest Du Probieren, nur die SDCard umzustecken. Aber VORHER ein Backup der kompletten SDCard machen (Wobei backup IMMER Gut ist!)
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

Otto123

Hi,

neben dem was hier schon gesagt wurde: der Pi3 hat eine andere Anbindung der seriellen Schnittstelle. Falls auf dem Pi2 die UART verwendet wird, muss eventuell etwas anders konfiguriert werden. https://wiki.fhem.de/wiki/Raspberry_Pi
Generell können alle Schnittstellen Probleme bereiten! Andere Bezeichnung, Pfade usw.

Was Werner sagt funktioniert bei relativ aktuellem Raspbian System. Von einem Update des laufenden Systems rate ich ab. Dann besser neues System, notwendige Pakete installieren, FHEM installieren, Backup zurückspielen. Die Bemerkung oben gilt natürlich auch.

Gruß Otto
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz

Frank_Huber

Oder:
Sd karte klonen (ohne Updates oder dergleichen)
Klon im pi2 updaten und upgraden.
Klon In pi3 stecken und booten.

Hast zur Not den unveränderten pi2...

Gesendet von meinem Doogee S60 mit Tapatalk


UweUwe

Hallo, darf nachfragen?
Fall1:
Thema: Klonen RPI 3 mit CUL und myHMUart
Produktionssystem: Raspberry 3 neuestes Linux und neuestes FHEM, alles gepflegt.  8)
Backupsystem (Hardware und Software 1:1 wie Produktionssystem)
Genügt es, wenn man dieselbe Hardware  (RPI, CUL, myHMUart alles jungfräulich, Cul vorab nicht geflasht) zusammenbaut und Flashkarte klont?
Hintergrund: 100% idenstisches Backupsystem erstellen, für den Ausfalldes Systemes bei Abwesenheit des Systemadministrators. Mit Umstecken von Netzwerk und Versorgungsspannung ist dann alles getan.  ;D
Dies gilt dann auch für RPI2 auf RPI2 und RPI auf RPI?
LINUX und FHEM sollte kein Thema sein, aber die Interfaces (myHMUart, CUL, CUL an derselben USB-Position)?
Fall2:
Thema: Umzug RPI 2 mit 2x CUL (HM und FHT) auf  auf  RPI 3 mit CUL (FHT) und myHMUart (HM)
Kommt einem Neuaufbau des Gesamtsystemes gleich. Korrekt?
Falls man auf den Umstieg von Homematic von CUL auf myHMUart verzichten würde, so wäre das Thema mit einem Neuaufbau RPI3 und dann Einspielen des FHEM Backups getan sein. Später könnte man dann die HM Systeme von CUL (HM) nach myHMUART umziehen. (Händisch!). Dies wird wohl der Königsweg für Fall 2 sein. Korrekt?





eazy_isi

Hi,

ich hab das am Sonntag problemlos wie folgt gemacht:

1. Image der SD-Karte mit Win32 Disk Imager angelegt.
2. SD-Karte wieder rein in den pi2 und updaten:

  • sudo apt-get update && sudo apt-get upgrade
  • sudo apt-get distupgrade
  • sudo rpi-update

3. PI2 runterfahren und ab mit der SD-Karte in den PI3
4. Alle angeschlossenen USB-Devices 1:1 auf dieselben Ports anschließen.
5. PI3 einschalten und freuen  :)

Hat bei mir so absolut problemlos funktioniert, musste danach nur die IP-Adresse des PI3 ändern, da hier eine neue vergeben wurde.
Alle angeschlossenen USB-Devices (Z-Wave, HM-CUL, Signalduino, Fhemduino) funktionieren ohne Probleme.
Zeitaufwand 20min

Gruß
Thomas


UweUwe

Hi, eazy_isi

so werde ich dies auch versuchen. Nächste Woche ist D-Day für mich. Werde mich definitiv wieder melden und berichten.


Frank_Huber

Punkt 1 nicht vergessen! Dann kann nichts schief gehen. [emoji6][emoji1360]

Gesendet von meinem Doogee S60 mit Tapatalk


Wernieman

#9
Man kann "Punkt 1" verallgemeinern:
Backup ist immer gut!  ;D
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

Frank_Huber

und als Zusatz: "RAID is NOT a backup" :-)

UweUwe

Hallo, bei mir klappt der Umzug von RPI-1 nach RPI-3 gar nicht.
1. Versuch: Mit der Kopie der RPI-1 Flashkarte startete der RPI-3 Raspberry überhaupt nicht. Leider
2. Versuch: Ich verwendete die Vorlagen von Otto:  "Installation Raspberry Pi, Setup FHEM und Backup und Restore von FHEM um die aktuellste Version meines FHEM Systeme vom Backup zu portieren. War soweit ok. FHEM läuft insoweit, dass ich die LOG Files aus der bisherigen Installation sehe, aber auch sonst nichts, kein device ..
Verwendete Hardware: In meinem alten RPI-1 habe ich 2 CULs (für FHT und Homematic). Jetzt habe ich 2 nagelneue Culkd  und eine Homematic-Funkmodul. Die gesamte Hardware war von Beginn der Installation an zusammen.
Ich habe nicht den Eindruck, dass die CULs erkannt sind, weder vom Linux noch von FHEM. Mit dem Homematic Funkmodul kann der Raspberry noch nichts anfangen, das ist klar. Die CULs blinken auch nicht, ich vermute, die erwarten noch Fürsorge. Aber wie kann ich den beiden Culs helfen?
Von meinem bisherigen System ist das List der beiden CULs:
Internals:
   CMDS       BbCFiAZEGMKUYRTVWXefmltux
   CUL_0_MSGCNT 37
   CUL_0_TIME 2019-02-13 17:29:38
   Clients    :FS20:FHT.*:KS300:USF1000:BS:HMS:FS20V: :CUL_EM:CUL_WS:CUL_FHTTK:CUL_HOERMANN: :ESA2000:CUL_IR:CUL_TX:Revolt:IT:UNIRoll:SOMFY: :STACKABLE_CC:TSSTACKED:STACKABLE:CUL_RFR::CUL_TCM97001:CUL_REDIRECT:
   DEF        /dev/ttyACM0@9600 1034
   DeviceName /dev/ttyACM0@9600
   FD         12
   FHTID      1034
   FUUID      5c644318-f33f-1e06-86da-5590c597e2f3c51f
   NAME       CUL_0
   NR         60
   PARTIAL   
   RAWMSG     T165700B6000F
   RSSI       -66.5
   STATE      Initialized
   TYPE       CUL
   VERSION    V 1.61 CUL868
   initString X21
   MatchList:
     0:FS20V    ^81..(04|0c)..0101a001......00[89a-f]...
     1:USF1000  ^81..(04|0c)..0101a001a5ceaa00....
     2:BS       ^81..(04|0c)..0101a001a5cf
     3:FS20     ^81..(04|0c)..0101a001
     4:FHT      ^81..(04|09|0d)..(0909a001|83098301|c409c401)..
     5:KS300    ^810d04..4027a001
     6:CUL_WS   ^K.....
     7:CUL_EM   ^E0.................$
     8:HMS      ^810e04......a001
     9:CUL_FHTTK ^T[A-F0-9]{8}
     A:CUL_RFR  ^[0-9A-F]{4}U.
     B:CUL_HOERMANN ^R..........
     C:ESA2000  ^S................................$
     D:CUL_IR   ^I............
     E:CUL_TX   ^TX[A-F0-9]{10}
     F:Revolt   ^r......................$
     G:IT       ^i......
     H:STACKABLE_CC ^\*
     I:UNIRoll  ^[0-9A-F]{5}(B|D|E)
     J:SOMFY    ^Y[r|t|s]:?[A-F0-9]+
     K:CUL_TCM97001 ^s[A-F0-9]+
     L:CUL_REDIRECT ^o+
     M:TSSTACKED ^\*
     N:STACKABLE ^\*
   READINGS:
     2019-02-13 17:25:15   cmds             B b C F i A Z E G M K U Y R T V W X e f m l t u x
     2019-02-13 17:29:38   state           Initialized
   SOFTBUFFER:
Attributes:





Und der Homematic CUL:
Internals:
   CMDS       BCFiAGMRTVWXefmltux
   Clients    :CUL_HM:HMS:CUL_IR:STACKABLE_CC:TSSTACKED:STACKABLE:
   DEF        /dev/ttyACM1@38400 1111
   DeviceName /dev/ttyACM1@38400
   FD         13
   FHTID      1111
   FUUID      5c6444eb-f33f-1e06-a528-f072f29fb2210ec3
   NAME       CUL_1
   NR         67
   PARTIAL   
   STATE      Initialized
   TYPE       CUL
   VERSION    V 1.46 CUL868
   initString X21
Ar
   MatchList:
     1:CUL_HM   ^A....................
     8:HMS      ^810e04....(1|5|9).a001
     D:CUL_IR   ^I............
     H:STACKABLE_CC ^\*
     M:TSSTACKED ^\*
     N:STACKABLE ^\*
   READINGS:
     2019-02-13 17:25:15   cmds             B C F i A G M R T V W X e f m l t u x
     2019-02-13 17:25:15   state           Initialized
   helper:
Attributes:
   hmId       555555
   rfmode     HomeMatic




Wernieman

/dev/ttyACM1
Du weißt bei dieser Verwendung nie, in welcher Reihenfolge Deine USB-Stivks angesprochen werden. Besser durch /dev/serial/by-id/....
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

UweUwe

Hallo Wernieman,
danke für deine schnelle Hilfe. Ich bin leider nicht erfahren in diesen Dinge und benötige noch einen Hinweis.
Das mit den USB-Ports ist mir bewusst, leider weiss ich keine Umleitung um das Problem.
In meinem RPI3 habe ich keine /dev/ttyACM.
Dies ist der Inhalt meunes /dev/pi@mymachine:/dev $ ls -la
total 4
drwxr-xr-x 14 root root        3280 Feb 13 16:17 .
drwxr-xr-x 21 root root        4096 Nov 13 15:02 ..
crw-r--r--  1 root root     10, 235 Feb 13 16:17 autofs
drwxr-xr-x  2 root root         580 Feb 13 16:17 block
crw-------  1 root root     10, 234 Feb 13 16:17 btrfs-control
drwxr-xr-x  3 root root          60 Jan  1  1970 bus
crw-------  1 root root     10,  63 Feb 13 16:17 cachefiles
drwxr-xr-x  2 root root        2460 Feb 13 16:17 char
crw-------  1 root root      5,   1 Feb 13 16:51 console
crw-------  1 root root     10,  62 Feb 13 16:17 cpu_dma_latency
crw-------  1 root root     10, 203 Feb 13 16:17 cuse
drwxr-xr-x  7 root root         140 Feb 13 16:17 disk
crw-rw----  1 root video    29,   0 Feb 13 16:17 fb0
lrwxrwxrwx  1 root root          13 Nov  3  2016 fd -> /proc/self/fd
crw-rw-rw-  1 root root      1,   7 Feb 13 16:17 full
crw-rw-rw-  1 root root     10, 229 Feb 13 16:17 fuse
crw-rw----  1 root gpio    254,   0 Feb 13 16:17 gpiochip0
crw-rw----  1 root gpio    254,   1 Feb 13 16:17 gpiochip1
crw-rw----  1 root gpio    248,   0 Feb 13 16:17 gpiomem
crw-------  1 root root     10, 183 Feb 13 16:17 hwrng
lrwxrwxrwx  1 root root          25 Feb 13 16:17 initctl -> /run/systemd/initctl/fifo
drwxr-xr-x  2 root root          60 Jan  1  1970 input
crw-r--r--  1 root root      1,  11 Feb 13 16:17 kmsg
lrwxrwxrwx  1 root root          28 Nov  3  2016 log -> /run/systemd/journal/dev-log
crw-rw----  1 root disk     10, 237 Feb 13 16:17 loop-control
brw-rw----  1 root disk      7,   0 Feb 13 16:17 loop0
brw-rw----  1 root disk      7,   1 Feb 13 16:17 loop1
brw-rw----  1 root disk      7,   2 Feb 13 16:17 loop2
brw-rw----  1 root disk      7,   3 Feb 13 16:17 loop3
brw-rw----  1 root disk      7,   4 Feb 13 16:17 loop4
brw-rw----  1 root disk      7,   5 Feb 13 16:17 loop5
brw-rw----  1 root disk      7,   6 Feb 13 16:17 loop6
brw-rw----  1 root disk      7,   7 Feb 13 16:17 loop7
drwxr-xr-x  2 root root          60 Feb 13 16:17 mapper
crw-r-----  1 root kmem      1,   1 Feb 13 16:17 mem
crw-------  1 root root     10,  59 Feb 13 16:17 memory_bandwidth
brw-rw----  1 root disk    179,   0 Feb 13 16:17 mmcblk0
brw-rw----  1 root disk    179,   1 Feb 13 16:17 mmcblk0p1
brw-rw----  1 root disk    179,   2 Feb 13 16:17 mmcblk0p2
drwxrwxrwt  2 root root          40 Jan  1  1970 mqueue
drwxr-xr-x  2 root root          60 Feb 13 16:17 net
crw-------  1 root root     10,  61 Feb 13 16:17 network_latency
crw-------  1 root root     10,  60 Feb 13 16:17 network_throughput
crw-rw-rw-  1 root root      1,   3 Feb 13 16:17 null
crw-------  1 root root    108,   0 Feb 13 16:17 ppp
crw-rw-rw-  1 root tty       5,   2 Feb 13 19:39 ptmx
drwxr-xr-x  2 root root           0 Nov  3  2016 pts
brw-rw----  1 root disk      1,   0 Feb 13 16:17 ram0
brw-rw----  1 root disk      1,   1 Feb 13 16:17 ram1
brw-rw----  1 root disk      1,  10 Feb 13 16:17 ram10
brw-rw----  1 root disk      1,  11 Feb 13 16:17 ram11
brw-rw----  1 root disk      1,  12 Feb 13 16:17 ram12
brw-rw----  1 root disk      1,  13 Feb 13 16:17 ram13
brw-rw----  1 root disk      1,  14 Feb 13 16:17 ram14
brw-rw----  1 root disk      1,  15 Feb 13 16:17 ram15
brw-rw----  1 root disk      1,   2 Feb 13 16:17 ram2
brw-rw----  1 root disk      1,   3 Feb 13 16:17 ram3
brw-rw----  1 root disk      1,   4 Feb 13 16:17 ram4
brw-rw----  1 root disk      1,   5 Feb 13 16:17 ram5
brw-rw----  1 root disk      1,   6 Feb 13 16:17 ram6
brw-rw----  1 root disk      1,   7 Feb 13 16:17 ram7
brw-rw----  1 root disk      1,   8 Feb 13 16:17 ram8
brw-rw----  1 root disk      1,   9 Feb 13 16:17 ram9
crw-rw-rw-  1 root root      1,   8 Feb 13 16:17 random
drwxr-xr-x  2 root root          60 Jan  1  1970 raw
crw-rw-r--  1 root netdev   10,  58 Feb 13 16:17 rfkill
lrwxrwxrwx  1 root root           7 Feb 13 16:17 serial1 -> ttyAMA0
drwxrwxrwt  2 root root          40 Nov  3  2016 shm
drwxr-xr-x  3 root root         160 Feb 13 16:17 snd
lrwxrwxrwx  1 root root          15 Nov  3  2016 stderr -> /proc/self/fd/2
lrwxrwxrwx  1 root root          15 Nov  3  2016 stdin -> /proc/self/fd/0
lrwxrwxrwx  1 root root          15 Nov  3  2016 stdout -> /proc/self/fd/1
crw-rw-rw-  1 root tty       5,   0 Feb 13 16:17 tty
crw--w----  1 root tty       4,   0 Feb 13 16:17 tty0
crw--w----  1 root tty       4,   1 Feb 13 16:51 tty1
crw--w----  1 root tty       4,  10 Feb 13 16:17 tty10
crw--w----  1 root tty       4,  11 Feb 13 16:17 tty11
crw--w----  1 root tty       4,  12 Feb 13 16:17 tty12
crw--w----  1 root tty       4,  13 Feb 13 16:17 tty13
crw--w----  1 root tty       4,  14 Feb 13 16:17 tty14
crw--w----  1 root tty       4,  15 Feb 13 16:17 tty15
crw--w----  1 root tty       4,  16 Feb 13 16:17 tty16
crw--w----  1 root tty       4,  17 Feb 13 16:17 tty17
crw--w----  1 root tty       4,  18 Feb 13 16:17 tty18
crw--w----  1 root tty       4,  19 Feb 13 16:17 tty19
crw--w----  1 root tty       4,   2 Feb 13 16:17 tty2
crw--w----  1 root tty       4,  20 Feb 13 16:17 tty20
crw--w----  1 root tty       4,  21 Feb 13 16:17 tty21
crw--w----  1 root tty       4,  22 Feb 13 16:17 tty22
crw--w----  1 root tty       4,  23 Feb 13 16:17 tty23
crw--w----  1 root tty       4,  24 Feb 13 16:17 tty24
crw--w----  1 root tty       4,  25 Feb 13 16:17 tty25
crw--w----  1 root tty       4,  26 Feb 13 16:17 tty26
crw--w----  1 root tty       4,  27 Feb 13 16:17 tty27
crw--w----  1 root tty       4,  28 Feb 13 16:17 tty28
crw--w----  1 root tty       4,  29 Feb 13 16:17 tty29
crw--w----  1 root tty       4,   3 Feb 13 16:17 tty3
crw--w----  1 root tty       4,  30 Feb 13 16:17 tty30
crw--w----  1 root tty       4,  31 Feb 13 16:17 tty31
crw--w----  1 root tty       4,  32 Feb 13 16:17 tty32
crw--w----  1 root tty       4,  33 Feb 13 16:17 tty33
crw--w----  1 root tty       4,  34 Feb 13 16:17 tty34
crw--w----  1 root tty       4,  35 Feb 13 16:17 tty35
crw--w----  1 root tty       4,  36 Feb 13 16:17 tty36
crw--w----  1 root tty       4,  37 Feb 13 16:17 tty37
crw--w----  1 root tty       4,  38 Feb 13 16:17 tty38
crw--w----  1 root tty       4,  39 Feb 13 16:17 tty39
crw--w----  1 root tty       4,   4 Feb 13 16:17 tty4
crw--w----  1 root tty       4,  40 Feb 13 16:17 tty40
crw--w----  1 root tty       4,  41 Feb 13 16:17 tty41
crw--w----  1 root tty       4,  42 Feb 13 16:17 tty42
crw--w----  1 root tty       4,  43 Feb 13 16:17 tty43
crw--w----  1 root tty       4,  44 Feb 13 16:17 tty44
crw--w----  1 root tty       4,  45 Feb 13 16:17 tty45
crw--w----  1 root tty       4,  46 Feb 13 16:17 tty46
crw--w----  1 root tty       4,  47 Feb 13 16:17 tty47
crw--w----  1 root tty       4,  48 Feb 13 16:17 tty48
crw--w----  1 root tty       4,  49 Feb 13 16:17 tty49
crw--w----  1 root tty       4,   5 Feb 13 16:17 tty5
crw--w----  1 root tty       4,  50 Feb 13 16:17 tty50
crw--w----  1 root tty       4,  51 Feb 13 16:17 tty51
crw--w----  1 root tty       4,  52 Feb 13 16:17 tty52
crw--w----  1 root tty       4,  53 Feb 13 16:17 tty53
crw--w----  1 root tty       4,  54 Feb 13 16:17 tty54
crw--w----  1 root tty       4,  55 Feb 13 16:17 tty55
crw--w----  1 root tty       4,  56 Feb 13 16:17 tty56
crw--w----  1 root tty       4,  57 Feb 13 16:17 tty57
crw--w----  1 root tty       4,  58 Feb 13 16:17 tty58
crw--w----  1 root tty       4,  59 Feb 13 16:17 tty59
crw--w----  1 root tty       4,   6 Feb 13 16:17 tty6
crw--w----  1 root tty       4,  60 Feb 13 16:17 tty60
crw--w----  1 root tty       4,  61 Feb 13 16:17 tty61
crw--w----  1 root tty       4,  62 Feb 13 16:17 tty62
crw--w----  1 root tty       4,  63 Feb 13 16:17 tty63
crw--w----  1 root tty       4,   7 Feb 13 16:17 tty7
crw--w----  1 root tty       4,   8 Feb 13 16:17 tty8
crw--w----  1 root tty       4,   9 Feb 13 16:17 tty9
crw-rw----  1 root dialout 204,  64 Feb 13 16:51 ttyAMA0
crw-------  1 root root      5,   3 Feb 13 16:17 ttyprintk
crw-------  1 root root     10, 239 Feb 13 16:17 uhid
crw-------  1 root root     10, 223 Feb 13 16:17 uinput
crw-rw-rw-  1 root root      1,   9 Feb 13 16:17 urandom
crw-------  1 root root    250,   0 Feb 13 16:17 vc-mem
crw-rw----  1 root video   245,   0 Feb 13 16:17 vchiq
crw-rw----  1 root video   249,   0 Feb 13 16:17 vcio
crw-rw----  1 root tty       7,   0 Feb 13 16:17 vcs
crw-rw----  1 root tty       7,   1 Feb 13 16:17 vcs1
crw-rw----  1 root tty       7,   2 Feb 13 16:17 vcs2
crw-rw----  1 root tty       7,   3 Feb 13 16:17 vcs3
crw-rw----  1 root tty       7,   4 Feb 13 16:17 vcs4
crw-rw----  1 root tty       7,   5 Feb 13 16:17 vcs5
crw-rw----  1 root tty       7,   6 Feb 13 16:17 vcs6
crw-rw----  1 root tty       7, 128 Feb 13 16:17 vcsa
crw-rw----  1 root tty       7, 129 Feb 13 16:17 vcsa1
crw-rw----  1 root tty       7, 130 Feb 13 16:17 vcsa2
crw-rw----  1 root tty       7, 131 Feb 13 16:17 vcsa3
crw-rw----  1 root tty       7, 132 Feb 13 16:17 vcsa4
crw-rw----  1 root tty       7, 133 Feb 13 16:17 vcsa5
crw-rw----  1 root tty       7, 134 Feb 13 16:17 vcsa6
crw-rw----  1 root video   246,   0 Feb 13 16:17 vcsm
crw-------  1 root root     10, 137 Feb 13 16:17 vhci
crw-------  1 root root     10, 130 Feb 13 16:17 watchdog
crw-------  1 root root    252,   0 Feb 13 16:17 watchdog0
crw-rw-rw-  1 root root      1,   5 Feb 13 16:17 zero
Ich vermute, dass da was schiefgelaufen in der Installation.



Wernieman

ls -lha /dev/serial/by-id/

Was für eine Distri hast Du am laufen?
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html