Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LVM Problem (rimage, rmeta)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
snova
n00b
n00b


Joined: 08 Dec 2012
Posts: 65
Location: Hannover / Germany

PostPosted: Sun Dec 19, 2021 4:24 pm    Post subject: LVM Problem (rimage, rmeta) Reply with quote

Habe heute mittels pvmove meine Platte von HDD auf SSD migriert.

Nach der Migration sah das ganze dann so aus:
Code:

root:~ # lvs -o +devices
  LV              VG   Attr       LSize  Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert Devices             
  lvapps          vg00 -wi-ao---- 70,00g                                                     /dev/nvme0n1p6(19712)
  lvhome          vg00 -wi-ao---- 18,00g                                                     /dev/nvme0n1p6(768) 
  lvhome_rimage_1 vg00 -wi-a----- 10,00g                                                     /dev/sda5(1)         
  lvhome_rmeta_0  vg00 -wi-a-----  4,00m                                                     /dev/sda5(17665)     
  lvhome_rmeta_1  vg00 -wi-a-----  4,00m                                                     /dev/sda5(0)         
  lvopt           vg00 -wi-ao----  1,00g                                                     /dev/nvme0n1p6(5376)
  lvroot          vg00 -wi-ao----  3,00g                                                     /dev/nvme0n1p6(0)   
  lvtmp           vg00 -wi-ao---- 16,00g                                                     /dev/nvme0n1p6(37632)
  lvusr           vg00 -wi-ao---- 25,00g                                                     /dev/nvme0n1p6(5632)
  lvvar           vg00 -wi-ao---- 30,00g                                                     /dev/nvme0n1p6(12032)
root:~ #


Mir ist nicht bewusst, dass ich mit LVM Mirror oder ähnlichem gespielt habe, aber wie bekomme ich das lvhome_rimage_1, lvhome_rmeta_0, lvhome_rmeta_1 wieder weg?
(ja, neues LV anlegen und rüber kopieren wäre ne Möglichkeit, aber gibt bestimmt einen schickeren Weg, oder?)

Bin für jeden Tipp dankbar.
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5329

PostPosted: Mon Dec 20, 2021 5:39 am    Post subject: Reply with quote

Laut der Doku von pvmove wird ein mirror für die migration der Daten verwendet.
Erst wenn alle Daten migriert sind werden diese wieder entfernt.
Da bei dir diese mirrors noch exitieren ist die Migration noch nicht abgeschlossen

https://linux.die.net/man/8/pvmove wrote:

pvmove works as follows:

1. A temporary 'pvmove' Logical Volume is created to store details of all the data movements required.

2. Every Logical Volume in the Volume Group is searched for contiguous data that need moving according to the command line arguments. For each piece of data found, a new segment is added to the end of the pvmove LV. This segment takes the form of a temporary mirror to copy the data from the original location to a newly-allocated location. The original LV is updated to use the new temporary mirror segment in the pvmove LV instead of accessing the data directly.

3. The Volume Group metadata is updated on disk.

4. The first segment of the pvmove Logical Volume is activated and starts to mirror the first part of the data. Only one segment is mirrored at once as this is usually more efficient.

5. A daemon repeatedly checks progress at the specified time interval. When it detects that the first temporary mirror is in-sync, it breaks that mirror so that only the new location for that data gets used and writes a checkpoint into the Volume Group metadata on disk. Then it activates the mirror for the next segment of the pvmove LV.

6. When there are no more segments left to be mirrored, the temporary Logical Volume is removed and the Volume Group metadata is updated so that the Logical Volumes reflect the new data locations.

_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
snova
n00b
n00b


Joined: 08 Dec 2012
Posts: 65
Location: Hannover / Germany

PostPosted: Mon Dec 20, 2021 3:32 pm    Post subject: Reply with quote

Danke für die Antwort.
Ich hab jetzt einfach die drei unnötigen LV mittels lvremove weggeschmissen. Anscheinend war das tatsächlich ein Schmiereffekt, der nichts zu bedeuten hat.
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5329

PostPosted: Mon Dec 20, 2021 7:21 pm    Post subject: Reply with quote

Ich hoffe mal du hast dadurch jetzt keinen Datenverlust erlitten.
Denn die Doku ist hier eigentlich eindeutig, dass diese mirrors automatisch entfernt werden wenn die migration vollständig abgeschlossen ist.

Hier ist das ganze auch nochmal gut beschrieben. Ich vermute mal du hast die migration auf ähnliche weise gestartet:

https://www.thegeekdiary.com/centos-rhel-how-to-migrate-storage-lvm-with-pvmove-command/
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
snova
n00b
n00b


Joined: 08 Dec 2012
Posts: 65
Location: Hannover / Germany

PostPosted: Tue Dec 21, 2021 9:05 am    Post subject: Reply with quote

Ich hab mir vorher ein TAR gemacht und es zur Seite gelegt.
Aber Datenverluste sehe ich bisher keine. Soweit funktioniert alles.

Anscheint ist der pvmove in diesem Falle nur eine Verkürzung zum Spiegel Aufbau und wieder Abbau.
Das man jedoch dafür ein eigenes LVOL erzeugt finde ich ungewöhnlich. Kenne aber sonst den LVM vom HPUX, welcher zumindest in der Linux-LVM1 Version sehr ähnlich arbeitete. Und da macht man das per Hand und benötigt dafür kein eigenes LVOL.

Wie auch immer, Danke für deine Hilfe :)

firefly wrote:

Hier ist das ganze auch nochmal gut beschrieben. Ich vermute mal du hast die migration auf ähnliche weise gestartet:

https://www.thegeekdiary.com/centos-rhel-how-to-migrate-storage-lvm-with-pvmove-command/

Genauso bin ich vorgegangen.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum