Error reading device /dev/bakupvg/bakupvg-baklv01

For the database host, the asm disk group was added after the vg used for data backup was deleted. It was found that the disk serial numbers of the two nodes were inconsistent. The vg was mounted on only one node before it was deleted. Check the PV information of the node with the larger sequence number, which is displayed as follows:

# pvs
  Error reading device /dev/bakupvg/bakupvg-baklv01 at 0 length 512.
  Error reading device /dev/bakupvg/bakupvg-baklv01 at 0 length 4.
  Error reading device /dev/bakupvg/bakupvg-baklv01 at 4096 length 4.
  PV         VG     Fmt  Attr PSize    PFree
  /dev/vda2  centos lvm2 a--  <197.88g     0
  /dev/vda3  centos lvm2 a--    11.11g 16.00m


The main reason for this problem is that after the disk is deleted, the corresponding drive letter is not automatically cleaned up. You can see it through the following command

# dmsetup ls | grep datavg 
bakupvg-baklv01 (253: 2)


Solution:
1. Restart directly
2. dmsetup remove bakupvg-baklv01
1 or 2 choose any one, and then perform the scan operation.

reference:

https://access.redhat.com/solutions/140273

Guess you like

Origin blog.51cto.com/hunt1574/2591526