install emc powerpath on redhat linux and 'Found duplicate PV' 問題解決

djb1008發表於2010-06-28

  1. 安裝EMC POWERAPTH FOR LINUX

EMC比較變態,在emc的網站上,無法下載powerpath軟體。

我是透過別人拿到了emc powerpath的安裝包。

使用RPM -Uvh EMCpower.LINUX-5.1.2.00.00-021.rhel5.x86_64.rpm

完成軟體安裝後,最好重新啟動一下作業系統。

[@more@]
  1. 重新啟動後可以識別到/dev/emcpowera,/dev/emcpowerb兩個裝置

Pvcreate /dev/emcpowera

Pvcreate /dev/emcpowerb

Vgcreate datavg2 /dev/emcpowera

Vgcreate datavg3 /dev/emcpowerb

Lvcreate -L99g -n lv_oradata2 datavg2

Mke2fs /dev/datavg2/lv_oradata2

Mkdir /oradata2

Mount /dev/datavg2/lv_oradata2 /oradata2

……

  1. 使用lvmvgspvslvs都會顯示Found duplicate PV的錯誤

Found duplicate PV nFTGkmv17AAJb33RGtAMPqv8iy61: using /dev/emcpowera not /dev/sda

Found duplicate PV Wlpy6GP0n3GM81XyhflHOBK5wTzp6: using /dev/emcpowerb not /dev/sdb

Found duplicate PV nFTGkmv17AAJbRGtAMPqv8iy61: using /dev/sdc not /dev/emcpowera

Found duplicate PV Wlpy6GP0n3GcXyhflHOBK5wTzp6: using /dev/sdd not /dev/emcpowerb

Found duplicate PV nFTGkmv17AAJAD3RGtAMPqv8iy61: using /dev/sde not /dev/sdc

Found duplicate PV Wlpy6GP0n3GMcXyhflHOBK5wTzp6: using /dev/sdf not /dev/sdd

Found duplicate PV nFTGkmv17AAJbD3RGtAMPqv8iy61: using /dev/sdg not /dev/sde

Found duplicate PV Wlpy6GP0n3GM8cXhflHOBK5wTzp6: using /dev/sdh not /dev/sdf

VG #PV #LV #SN Attr VSize VFree

VolGroup00 1 2 0 wz--n- 33.75G 64.00M

datavg 1 2 0 wz--n- 273.23G 32.00M

datavg2 1 1 0 wz--n- 100.00G 1020.00M

datavg3 1 1 0 wz--n- 100.00G 1020.00M

  1. 修改/etc/lvm/lvm.conf filter,可以過濾到這些錯誤

# filter = [ "a/.*/" ]

filter=["r/disk.*/","r|/dev/sda|","r|/dev/sdb|","r|/dev/sdc|","r|/dev/sdd|","r|/dev/sde|","r|/dev/sdf|","r|/dev/sdg|","r|/dev/sdh|","a/.*/"

編輯完成後,執行vgscan -v

#vgscan -v

Wiping cache of LVM-capable devices

Wiping internal VG cache

Reading all physical volumes. This may take a while...

Finding all volume groups

Finding volume group "datavg"

Found volume group "datavg" using metadata type lvm2

Finding volume group "VolGroup00"

Found volume group "VolGroup00" using metadata type lvm2

Finding volume group "datavg3"

Found volume group "datavg3" using metadata type lvm2

Finding volume group "datavg2"

Found volume group "datavg2" using metadata type lvm2

透過lvmdiskscan命令檢查filter是否設定正確

[root@dmis lvm]# lvmdiskscan

/dev/ram0 [ 16.00 MB]

/dev/emcpowera [ 100.00 GB] LVM physical volume

/dev/root [ 31.75 GB]

/dev/ram [ 16.00 MB]

/dev/dm-1 [ 1.94 GB]

/dev/ram2 [ 16.00 MB]

/dev/dm-2 [ 250.00 GB]

/dev/ram3 [ 16.00 MB]

/dev/dm-3 [ 23.20 GB]

/dev/ram4 [ 16.00 MB]

/dev/dm-4 [ 99.00 GB]

/dev/ram5 [ 16.00 MB]

/dev/dm-5 [ 99.00 GB]

/dev/ram6 [ 16.00 MB]

/dev/ram7 [ 16.00 MB]

/dev/ram8 [ 16.00 MB]

/dev/ram9 [ 16.00 MB]

/dev/ram10 [ 16.00 MB]

/dev/ram11 [ 16.00 MB]

/dev/ram12 [ 16.00 MB]

/dev/ram13 [ 16.00 MB]

/dev/ram14 [ 16.00 MB]

/dev/ram15 [ 16.00 MB]

/dev/emcpowerb [ 100.00 GB] LVM physical volume

/dev/sdi1 [ 99.98 MB]

/dev/sdi2 [ 33.77 GB] LVM physical volume

/dev/sdj1 [ 273.24 GB] LVM physical volume

2 disks

21 partitions

2 LVM physical volume whole disks

2 LVM physical volumes

[root@dmis lvm]# vgs

VG #PV #LV #SN Attr VSize VFree

VolGroup00 1 2 0 wz--n- 33.75G 64.00M

datavg 1 2 0 wz--n- 273.23G 32.00M

datavg2 1 1 0 wz--n- 100.00G 1020.00M

datavg3 1 1 0 wz--n- 100.00G 1020.00M

[root@dmis lvm]# pvs

PV VG Fmt Attr PSize PFree

/dev/emcpowera datavg2 lvm2 a- 100.00G 1020.00M

/dev/emcpowerb datavg3 lvm2 a- 100.00G 1020.00M

/dev/sdi2 VolGroup00 lvm2 a- 33.75G 64.00M

/dev/sdj1 datavg lvm2 a- 273.23G 32.00M

[root@dmis lvm]# lvs

LV VG Attr LSize Origin Snap% Move Log Copy%

LogVol00 VolGroup00 -wi-ao 31.75G

LogVol01 VolGroup00 -wi-ao 1.94G

lv_archivelog datavg -wi-ao 23.20G

lv_oradata datavg -wi-ao 250.00G

lv_oradata2 datavg2 -wi-ao 99.00G

lv_oradata3 datavg3 -wi-ao 99.00G

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/32980/viewspace-1034726/,如需轉載,請註明出處,否則將追究法律責任。

相關文章