Aber eigentlich bin ich nicht schlauer geworden, eher mehr verwirrt und meiner Ansicht nach nichts passendes zu einem encrypted LVM Umzug gefunden
Ich möchte an einem älteren Laptop mit Debian 9 die HDD (320 GB) durch ein SSD 128 GB ersetzen.
Kleinere Größe ist kein Problem, da etwa nur 30-40 GB tatsächlich belegt sind.
Da der Laptop nur Platz für eine Platte hat, wollte ich die SSD erst einmal mit einem USB-SATA-Billig-Adapter anschließen und dann die logical volumes transferieren.
Allerdings bin ich immer noch etwas ratlos, wie ich dies richtig anstelle
Klar ist, daß ich zuerst auf der Quelle die home-lv deutlich verkleinern muß (da reichen vorerst 10 GB absolut aus)
Aber wie bekomme ich die logical volumes dann auf die neue Platte? SSD am USB-Anschluß in die physical volume aufnehmen und dann die logical volumes verschieben?
Und wie bekomme ich dann die SSD bootfähig?
ein Umzugsanfänger ist für jeden Tipp und Link dankbar
Als Anhang die pv- und lv-display Ausgaben
Das System wurde mir so vom Debian-Installer automatisch eingerichtet, hatte nur die Option "verschlüsselte LVM" ausgewählt.
Code: Alles auswählen
root@HP-Exyz:/home/exyz# pvs
PV VG Fmt Attr PSize PFree
/dev/mapper/sda5_crypt HP-Exyz-vg lvm2 a-- 297,85g 0
root@HP-Exyz:/home/exyz# pvdisplay
--- Physical volume ---
PV Name /dev/mapper/sda5_crypt
VG Name HP-Exyz-vg
PV Size 297,85 GiB / not usable 2,00 MiB
Allocatable yes (but full)
PE Size 4,00 MiB
Total PE 76249
Free PE 0
Allocated PE 76249
PV UUID 0gWiN0-SODk-l3il-ezEC-cR4u-pyCi-2t5Q1m
root@HP-Exyz:/home/exyz# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
home HP-Exyz-vg -wi-ao---- 259,46g
root HP-Exyz-vg -wi-ao---- 23,28g
swap_1 HP-Exyz-vg -wi-ao---- 3,93g
tmp HP-Exyz-vg -wi-ao---- 1,86g
var HP-Exyz-vg -wi-ao---- 9,31g
oot@HP-Exyz:/home/exyz# lvdisplay
--- Logical volume ---
LV Path /dev/HP-Exyz-vg/root
LV Name root
VG Name HP-Exyz-vg
LV UUID fN0NQT-2rUw-m2pX-ayzl-WOkU-43d1-7UgIKo
LV Write Access read/write
LV Creation host, time HP-Exyz, 2018-02-04 15:04:51 +0100
LV Status available
# open 1
LV Size 23,28 GiB
Current LE 5960
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:1
--- Logical volume ---
LV Path /dev/HP-Exyz-vg/var
LV Name var
VG Name HP-Exyz-vg
LV UUID kBGJLg-oa1A-zdRM-CvPV-dkUA-vci3-eRUKqq
LV Write Access read/write
LV Creation host, time HP-Exyz, 2018-02-04 15:04:51 +0100
LV Status available
# open 1
LV Size 9,31 GiB
Current LE 2384
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:2
--- Logical volume ---
LV Path /dev/HP-Exyz-vg/swap_1
LV Name swap_1
VG Name HP-Exyz-vg
LV UUID xqwJ82-GCeu-N11e-0dyi-xUCr-emYe-L4a9Pj
LV Write Access read/write
LV Creation host, time HP-Exyz, 2018-02-04 15:04:52 +0100
LV Status available
# open 2
LV Size 3,93 GiB
Current LE 1007
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:3
--- Logical volume ---
LV Path /dev/HP-Exyz-vg/tmp
LV Name tmp
VG Name HP-Exyz-vg
LV UUID T32O0o-ToJX-0YH4-xXab-3lIz-3cec-hkVExG
LV Write Access read/write
LV Creation host, time HP-Exyz, 2018-02-04 15:04:52 +0100
LV Status available
# open 1
LV Size 1,86 GiB
Current LE 476
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:4
--- Logical volume ---
LV Path /dev/HP-Exyz-vg/home
LV Name home
VG Name HP-Exyz-vg
LV UUID JgIdIc-EolJ-2E6L-jxyf-6Yhc-0Fr7-PCNP2t
LV Write Access read/write
LV Creation host, time HP-Exyz, 2018-02-04 15:04:52 +0100
LV Status available
# open 1
LV Size 259,46 GiB
Current LE 66422
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:5