所以,我有磁盘故障,并将LV从故障磁盘移动到新的PV。 一些LV成功移动,有些则不成功。 之后,我以下列状态结束: – 两个locking的LV – 缺lessPV的卷组
当我尝试删除PV时,我得到:
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
我也尝试执行vcfgbackup,然后编辑锁后,恢复,但无济于事:
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.
所以我走得更远了,把磁盘插回去了 – 失败了,但可以检测一下。
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
而这正是我不知道的时刻。