Answer the question
In order to leave comments, you need to log in
How to restore LVM?
Tell me, in what sequence is it correct to reinitialize one LVM disk so as not to affect others that are currently running?
There is / dev / sdd
On it, the / dev / sdd1 partition, declared as pv
On this pv, one vg: vg-backup
On this vg, one lv: vg-backup / data
The disk was pulled, apparently. The logs show that it stops, and then start. It seems that the uuid has changed or the letter (there was sdc, it's not immediately clear yet - there is no direct access to the logs)
In general, how to initialize from scratch, saving the information if possible?
Answer the question
In order to leave comments, you need to log in
Found the answer. Everything worked out. Indeed, if you take out a live sata disk in debian, and then insert it (observing all power off and on), it will change both ata#, scsi 0:0:#:0 and UUID (I’m not sure about UUID, multi-book, could not carefully evaluate)
Here is the solution https://www.linuxtechi.com/fixing-lvm-io-errors/
If the link ever goes sour, here's the gist:
Deactivate lv, then vg. Then back scan and activate vg and finally scan and activate lv.
1) Check which Volume Group have the issue , run “vgscan” command .
2) Find out the Logical Volumes attached with that Volume Group .
3) Inactive the logical volumes as :
# lvchange -an <lv-name>
4) Inactive Volume group as :
# vgchange -an <vg-name>
5) Again Scan Volume group using “vgscan” .
6) Now activate the Volume Group :
# vgchange -ay <volume-group-name>
7) Run command “lvscan” , the error should be gone now .
8) Now activate the Logical Volume Name :
# lvchange -ay <lv-name>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question