Article 6DFG9 How to ged rid of duplicate PV?

How to ged rid of duplicate PV?

by
james000
from LinuxQuestions.org on (#6DFG9)
I am not able to mount /home of 1 TB on my Centos 7.3 VM. Looks like it is complaining about duplicate PVs or UUID.
It is SAN disk coming from Compellent Storage.
If I compare it with other similar and working server, there should not be any /dev/sdc, but I see it here on broken server and can't get rid of that.
Can someone help to review below output and help me fixing it?
Quote:
[root@broken-server dev]# cat /etc/lvm/lvm.conf | grep filter | grep -v "#"
filter = [ "r|/dev/.*/by-path.*|", "r|/dev/.*/by-id/.*|", "a/.*/"]
[root@broken-server dev]#
[root@broken-server dev]# lvmdiskscan -v
WARNING: Not using lvmetad because duplicate PVs were found.
WARNING: Use multipath or vgimportclone to resolve duplicate PVs?
WARNING: After duplicates are resolved, run "pvscan --cache" to enable lvmetad.
Wiping cache of LVM-capable devices
/dev/centos/root [ 50.00 GiB]
/dev/sda1 [ 976.00 MiB]
/dev/centos/swap [ 16.00 GiB]
/dev/centos/home [ 957.07 GiB]
/dev/sdb2 [ 1023.07 GiB] LVM physical volume
/dev/sdc1 [ 953.00 MiB]
WARNING: PV ckoWGr-3kEW-NQRb-Ma18-OkXz-uxrb-HxemwY on /dev/sdc2 was already found on /dev/sdb2.
/dev/sdc2 [ 1023.07 GiB]
3 disks
3 partitions
0 LVM physical volume whole disks
1 LVM physical volume
[root@broken-server dev]# lsblk -f
NAME FSTYPE LABEL UUID MOUNTPOINT
sda
sda1 ext3 0dd9a419-6752-473e-b49b-2138f6519827 /boot
sdb mpath_member
sdb2 LVM2_member ckoWGr-3kEW-NQRb-Ma18-OkXz-uxrb-HxemwY
centos-root xfs 54b2cd4a-dc96-484a-a204-839b0c1ba58a /
centos-swap swap 894e6bbb-2c0d-43cf-93bf-a0d35bd5c97a [SWAP]
centos-home xfs 11f18806-30e4-4681-bac0-b15dd90cb3a1 /home
sdc mpath_member
sdc1 ext3 8100912c-c4f5-488b-8d9e-2e6c93d5e37e
sdc2 LVM2_member ckoWGr-3kEW-NQRb-Ma18-OkXz-uxrb-HxemwY
[root@broken-server dev]#
[root@broken-server dev]# fdisk -l | grep -i Disk
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
Disk /dev/sda: 16.0 GB, 16022241280 bytes, 31293440 sectors
Disk label type: dos
Disk identifier: 0x0006bcf7
Disk /dev/sdb: 1099.5 GB, 1099511627776 bytes, 2147483648 sectors
Disk label type: gpt
Disk /dev/mapper/centos-root: 53.7 GB, 53687091200 bytes, 104857600 sectors
Disk /dev/mapper/centos-swap: 17.2 GB, 17179869184 bytes, 33554432 sectors
Disk /dev/sdc: 1099.5 GB, 1099511627776 bytes, 2147483648 sectors
Disk label type: gpt
Disk /dev/mapper/centos-home: 1027.6 GB, 1027642228736 bytes, 2007113728 sectors
[root@broken-server dev]#
[root@broken-server dev]# multipath -ll -v2
[root@broken-server dev]# multipath -ll -v3
Aug 02 06:44:49 | loading /lib64/multipath/libcheckdirectio.so checker
Aug 02 06:44:49 | loading /lib64/multipath/libprioconst.so prioritizer
Aug 02 06:44:49 | sda: not found in pathvec
Aug 02 06:44:49 | sda: mask = 0x25
Aug 02 06:44:49 | sda: dev_t = 8:0
Aug 02 06:44:49 | sda: size = 31293440
Aug 02 06:44:49 | sda: vendor = DELL
Aug 02 06:44:49 | sda: product = IDSDM
Aug 02 06:44:49 | sda: rev = 0001
Aug 02 06:44:49 | sda: h:b:t:l = 0:0:0:0
Aug 02 06:44:49 | sda: path state = running

Aug 02 06:44:49 | sda: get_state
Aug 02 06:44:49 | sda: path checker = directio (internal default)
Aug 02 06:44:49 | sda: checker timeout = 30000 ms (sysfs setting)
Aug 02 06:44:49 | directio: starting new request
Aug 02 06:44:49 | directio: io finished 4096/0
Aug 02 06:44:49 | sda: state = up
Aug 02 06:44:49 | sdb: not found in pathvec
Aug 02 06:44:49 | sdb: mask = 0x25
Aug 02 06:44:49 | sdb: dev_t = 8:16
Aug 02 06:44:49 | sdb: size = 2147483648
Aug 02 06:44:49 | sdb: vendor = COMPELNT
Aug 02 06:44:49 | sdb: product = Compellent Vol
Aug 02 06:44:49 | sdb: rev = 0607
Aug 02 06:44:49 | sdb: h:b:t:l = 17:0:0:0
Aug 02 06:44:49 | sdb: tgt_node_name = iqn.2002-03.com.compellent:5000d3100098991d
Aug 02 06:44:49 | sdb: path state = running

Aug 02 06:44:49 | sdb: get_state
Aug 02 06:44:49 | loading /lib64/multipath/libchecktur.so checker
Aug 02 06:44:49 | sdb: path checker = tur (controller setting)
Aug 02 06:44:49 | sdb: checker timeout = 30000 ms (sysfs setting)
Aug 02 06:44:49 | sdb: state = up
Aug 02 06:44:49 | sdc: not found in pathvec
Aug 02 06:44:49 | sdc: mask = 0x25
Aug 02 06:44:49 | sdc: dev_t = 8:32
Aug 02 06:44:49 | sdc: size = 2147483648
Aug 02 06:44:49 | sdc: vendor = COMPELNT
Aug 02 06:44:49 | sdc: product = Compellent Vol
Aug 02 06:44:49 | sdc: rev = 0607
Aug 02 06:44:49 | sdc: h:b:t:l = 18:0:0:0
Aug 02 06:44:49 | sdc: tgt_node_name = iqn.2002-03.com.compellent:5000d3100098991c
Aug 02 06:44:49 | sdc: path state = running

Aug 02 06:44:49 | sdc: get_state
Aug 02 06:44:49 | sdc: path checker = tur (controller setting)
Aug 02 06:44:49 | sdc: checker timeout = 30000 ms (sysfs setting)
Aug 02 06:44:49 | sdc: state = up
Aug 02 06:44:49 | dm-0: device node name blacklisted
Aug 02 06:44:49 | dm-1: device node name blacklisted
Aug 02 06:44:49 | dm-2: device node name blacklisted
===== paths list =====
uuid hcil dev dev_t pri dm_st chk_st vend/prod/rev dev_st
0:0:0:0 sda 8:0 -1 undef ready DELL ,IDSDM running
17:0:0:0 sdb 8:16 -1 undef ready COMPELNT,Compellent Vol running
18:0:0:0 sdc 8:32 -1 undef ready COMPELNT,Compellent Vol running
Aug 02 06:44:49 | directio checker refcount 1
Aug 02 06:44:49 | tur checker refcount 2
Aug 02 06:44:49 | tur checker refcount 1
Aug 02 06:44:49 | unloading const prioritizer
Aug 02 06:44:49 | unloading tur checker
Aug 02 06:44:49 | unloading directio checker
[root@broken-server dev]#
And to compare, here is from working server and it is supposed to be similar setup
Quote:
[root@good-server centos]# fdisk -l | grep -i disk
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
Disk /dev/sda: 16.0 GB, 16022241280 bytes, 31293440 sectors
Disk label type: dos
Disk identifier: 0x000d8a7a
Disk /dev/sdb: 1099.5 GB, 1099511627776 bytes, 2147483648 sectors
Disk label type: gpt
Disk /dev/mapper/centos-root: 53.7 GB, 53687091200 bytes, 104857600 sectors
Disk /dev/mapper/centos-swap: 17.2 GB, 17179869184 bytes, 33554432 sectors
Disk /dev/mapper/centos-home: 1027.6 GB, 1027642228736 bytes, 2007113728 sectors
[root@good-server centos]#
Thanks in advance.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments