Então, eu tive uma falha de disco e movi LVs do disco com defeito para os novos PVs. Alguns LVs foram movidos com sucesso, outros não.
Depois acabei com o seguinte estado:
- dois LVs bloqueados
- grupo de volume com PV ausente
Quando tento remover o PV, recebo:
vgreduce --removemissing --force vg3
Couldn't find device with uuid RQr0HS-17ts-1k6Y-Xnex-IZwi-Y2kM-vCc5mP.
Removing partial LV var.
Can't remove locked LV var
lvremove -fff vg3/var
Couldn't find device with uuid RQr0HS-17ts-1k6Y-Xnex-IZwi-Y2kM-vCc5mP.
Can't remove locked LV var
pvmove --abort
Couldn't find device with uuid RQr0HS-17ts-1k6Y-Xnex-IZwi-Y2kM-vCc5mP.
Cannot change VG vg3 while PVs are missing.
Consider vgreduce --removemissing.
Skipping volume group vg3
Eu também tentei executar o vcfgbackup e restaurar depois de editar os bloqueios, mas sem sucesso:
vgcfgrestore --force vg3
Couldn't find device with uuid RQr0HS-17ts-1k6Y-Xnex-IZwi-Y2kM-vCc5mP.
Cannot restore Volume Group vg3 with 1 PVs marked as missing.
Restore failed.
Então eu fui ainda mais longe, e inseri o disco de volta - ele falhou, mas ele é detectado por um tempo.
vgreduce --removemissing vg3
/dev/vg3/var: read failed after 0 of 4096 at 9638445056: Input/output error
/dev/vg3/var: read failed after 0 of 4096 at 9638502400: Input/output error
WARNING: Partial LV var needs to be repaired or removed.
WARNING: Partial LV pvmove1 needs to be repaired or removed.
There are still partial LVs in VG vg3.
To remove them unconditionally use: vgreduce --removemissing --force.
Proceeding to remove empty missing PVs.
lvremove -fff vg3/var
/dev/vg3/var: read failed after 0 of 4096 at 9638445056: Input/output error
/dev/vg3/var: read failed after 0 of 4096 at 9638502400: Input/output error
Can't remove locked LV var
pvmove --abort
/dev/vg3/var: read failed after 0 of 4096 at 9638445056: Input/output error
/dev/vg3/var: read failed after 0 of 4096 at 9638502400: Input/output error
Cannot change VG vg3 while PVs are missing.
Consider vgreduce --removemissing.
Skipping volume group vg3
E este é o momento em que estou sem ideias.