Hello again:

 Include this in lvm.conf

# This is an example configuration file for the LVM2 system.
devices {

 dir = "/dev"

# scan = [ "/dev" ]
 scan = [ "/dev", "/dev/mapper" ]
 types = [ "device-mapper", 253 ]

# filter = [ "r|/dev/.*/by-path/.*|", "r|/dev/.*/by-id/.*|", "a/.*/" ]
 filter = [ "a|/dev/disk/by-id/.*|", "a|/dev/mapper/.*|", "r|.*|" ]

This is the Directory


czpibeintbd:/dev/mapper # pwd
/dev/mapper
czpibeintbd:/dev/mapper # ls -ltra
total 0
brw-r-----  1 root disk 253,  0 Aug 10 18:08 vgroot-lvroot
lrwxrwxrwx  1 root root      16 Aug 10 18:08 control -> ../device-mapper
brw-r-----  1 root disk 253, 13 Aug 10 18:08 vgswap-lvswap
drwxr-xr-x  2 root root     400 Aug 10 18:08 .
brw-r-----  1 root disk 253,  5 Aug 10 18:08 vgboot-lvboot
brw-r-----  1 root disk 253, 14 Aug 10 18:08 vghome-lvhome
brw-r-----  1 root disk 253, 12 Aug 10 18:08 vgopt-lvopt
brw-r-----  1 root disk 253, 15 Aug 10 18:08 vgtmp-lvtmp
brw-r-----  1 root disk 253, 16 Aug 10 18:08 vgusr-lvusr
brw-r-----  1 root disk 253, 11 Aug 10 18:08 vgvar-lvvar
brw-r-----  1 root disk 253,  9 Aug 10 18:08 vgctrlm-lvctrlm
brw-r-----  1 root disk 253, 10 Aug 10 18:08 vgpatrol-lvpatrol
brw-r-----  1 root disk 253,  8 Aug 10 18:08 vgseguridad-lvseguridad
brw-r-----  1 root disk 253,  6 Aug 10 18:08 vgnetbackup-lvnetbackup
brw-r-----  1 root disk 253,  7 Aug 10 18:08 vgoracle10-lvoracle10
brw-r-----  1 root disk 253,  1 Aug 10 18:08 bkdpopb2vg-lvarch01bkdpopb2
brw-r-----  1 root disk 253,  2 Aug 10 18:08 bkdpopb2vg-lvdata01bkdpopb2
brw-r-----  1 root disk 253,  3 Aug 10 18:08 bkdpopb2vg-lvlog01bkdpbpb2
brw-r-----  1 root disk 253,  4 Aug 10 18:08 bkdpopb2vg-lvund01bkdpopb2
drwxr-xr-x 23 root root    3920 Aug 12 14:34 ..
czpibeintbd:/dev/mapper #



But still fails..........That's What happens.


czpibeintbd:/etc/lvm # vgscan
  Reading all physical volumes.  This may take a while...
  Found volume group "vgboot" using metadata type lvm2
czpibeintbd:/etc/lvm # lvscan
  ACTIVE            '/dev/vgboot/lvboot' [76.00 MB] inherit
czpibeintbd:/etc/lvm #



Regards

ATTE

Victor Hugo Ochoa Avila



2011/9/6 Pedro Principeza <[email protected]>

> Greetings Victor.
>
> I would add a "/dev/mapper" entry in that filter string:
>
> filter = [ "a|/dev/disk/by-id/.*|", "a|/dev/mapper/.*" "r|.*|" ]
>
> ( . . . )
>
> Please, ensure that /etc/lvm/lvm.conf has the following info as well (by
> the book, indeed):
>
> scan = [ "/dev", "/dev/mapper" ]
>
> types = [ "device-mapper". 16]
>
> HTH,
> Pedro Principeza
>
>
>
> From:   Victor Hugo Ochoa Avila <[email protected]>
> To:     [email protected]
> Date:   06/09/2011 14:51
> Subject:        Re: Found duplicate PV in Guest Linux SUSE 10
> Sent by:        Linux on 390 Port <[email protected]>
>
>
>
> Hi Rogério,  I replace the filter and only detect vgboot and lvboot, but
> not
> detect the others..???
>
> czpibeintbd:/etc/lvm # vgscan
>  Reading all physical volumes.  This may take a while...
>  Found volume group "vgboot" using metadata type lvm2
> czpibeintbd:/etc/lvm # lvscan
>  ACTIVE            '/dev/vgboot/lvboot' [76.00 MB] inherit
>
>
>
> This is my Guests:
>
>
> czpibeintbd:/etc/lvm # df -h
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/mapper/vgroot-lvroot
>                      2.0G  381M  1.5G  20% /
> devtmpfs             1002M  512K 1002M   1% /dev
> tmpfs                1002M     0 1002M   0% /dev/shm
> /dev/mapper/vgboot-lvboot
>                       74M   22M   49M  32% /boot
> /dev/mapper/vghome-lvhome
>                      1.5G   40M  1.4G   3% /home
> /dev/mapper/vgopt-lvopt
>                      1.5G  145M  1.3G  11% /opt
> /dev/mapper/vgtmp-lvtmp
>                      2.0G  174M  1.7G  10% /tmp
> /dev/mapper/vgusr-lvusr
>                      4.5G  3.2G  1.1G  76% /usr
> /dev/mapper/vgvar-lvvar
>                      1.5G  176M  1.3G  13% /var
> /dev/mapper/vgctrlm-lvctrlm
>                     1004M  152M  802M  16% /ctrlmagt
> /dev/mapper/vgpatrol-lvpatrol
>                      1.5G  286M  1.2G  20% /patrol
> /dev/mapper/vgseguridad-lvseguridad
>                      2.0G  220M  1.7G  12% /seguridad
> /dev/mapper/vgnetbackup-lvnetbackup
>                      2.0G   36M  1.9G   2% /NetBackup
> /dev/mapper/vgoracle10-lvoracle10
>                      9.9G  2.3G  7.2G  24% /oracle10
> /dev/mapper/bkdpopb2vg-lvarch01bkdpopb2
>                      6.0G  141M  5.5G   3% /ORA/oraarch01/bkdpopb2
> /dev/mapper/bkdpopb2vg-lvdata01bkdpopb2
>                      7.9G  2.9G  4.6G  39% /ORA/oradata01/bkdpopb2
> /dev/mapper/bkdpopb2vg-lvlog01bkdpbpb2
>                      2.0G  568M  1.4G  30% /ORA/oralogs01/bkdpopb2
> /dev/mapper/bkdpopb2vg-lvund01bkdpopb2
>                      4.0G  937M  2.9G  25% /ORA/oraundo01/bkdpopb2
>
>
> czpibeintbd:/etc/lvm # vgscan
>  Reading all physical volumes.  This may take a while...
>  Found duplicate PV 6p351Kfhs3GMsdtgfljqkvA9Gn32pvC7: using /dev/dasdp1
> not
> /dev/dasdf1
>  Found volume group "bkdpopb2vg" using metadata type lvm2
>  Found volume group "vgboot" using metadata type lvm2
>  Found volume group "vgnetbackup" using metadata type lvm2
>  Found volume group "vgoracle10" using metadata type lvm2
>  Found volume group "vgseguridad" using metadata type lvm2
>  Found volume group "vgctrlm" using metadata type lvm2
>  Found volume group "vgpatrol" using metadata type lvm2
>  Found volume group "vgvar" using metadata type lvm2
>  Found volume group "vgopt" using metadata type lvm2
>  Found volume group "vgswap" using metadata type lvm2
>  Found volume group "vghome" using metadata type lvm2
>  Found volume group "vgtmp" using metadata type lvm2
>  Found volume group "vgusr" using metadata type lvm2
>  Found volume group "vgroot" using metadata type lvm2
> czpibeintbd:/etc/lvm # lvscan
>  Found duplicate PV 6p351Kfhs3GMsdtgfljqkvA9Gn32pvC7: using /dev/dasdp1
> not
> /dev/dasdf1
>  ACTIVE            '/dev/bkdpopb2vg/lvarch01bkdpopb2' [6.00 GB] inherit
>  ACTIVE            '/dev/bkdpopb2vg/lvdata01bkdpopb2' [8.00 GB] inherit
>  ACTIVE            '/dev/bkdpopb2vg/lvlog01bkdpbpb2' [2.00 GB] inherit
>  ACTIVE            '/dev/bkdpopb2vg/lvund01bkdpopb2' [4.00 GB] inherit
>  ACTIVE            '/dev/vgboot/lvboot' [76.00 MB] inherit
>  ACTIVE            '/dev/vgnetbackup/lvnetbackup' [2.00 GB] inherit
>  ACTIVE            '/dev/vgoracle10/lvoracle10' [9.99 GB] inherit
>  ACTIVE            '/dev/vgseguridad/lvseguridad' [2.00 GB] inherit
>  ACTIVE            '/dev/vgctrlm/lvctrlm' [1020.00 MB] inherit
>  ACTIVE            '/dev/vgpatrol/lvpatrol' [1.50 GB] inherit
>  ACTIVE            '/dev/vgvar/lvvar' [1.50 GB] inherit
>  ACTIVE            '/dev/vgopt/lvopt' [1.50 GB] inherit
>  ACTIVE            '/dev/vgswap/lvswap' [2.00 GB] inherit
>  ACTIVE            '/dev/vghome/lvhome' [1.50 GB] inherit
>  ACTIVE            '/dev/vgtmp/lvtmp' [2.00 GB] inherit
>  ACTIVE            '/dev/vgusr/lvusr' [4.50 GB] inherit
>  ACTIVE            '/dev/vgroot/lvroot' [2.00 GB] inherit
>
>
>
>
> Apparently missing something ...???
>
>
> Thanks for Your support
>
> Regards
>
> ATTE
>
> Victor Hugo Ochoa Avila
> BBVA America
>
>
> 2011/9/5 Rogério Soares <[email protected]>
>
> > Victor, i change my filter to suggested on Sles 10 Storage
> administration
> > guide:
> >
> > filter = [ "a|/dev/disk/by-id/.*|", "r|.*|" ]
> >
> > and we had no more this error today. :)
> >
> > PS: Thanks Mark Post ;)
> >
> > On Mon, Sep 5, 2011 at 9:53 PM, Victor Hugo Ochoa Avila
> > <[email protected]>wrote:
> >
> > > Hello to the group.
> > > In a Guests Linux  with Suse 10 SP2 when run the vgscan command I get
> the
> > > following error:
> > >
> > > Found duplicate PV 6p351Kfhs3GMsdtgfljqkvA9Gn32pvC7: using /dev/dasdp1
> > not
> > > /dev/dasdf1
> > >
> > > What is the appropriate filter to avoid this error
> > >
> > > My filter is:
> > >
> > >  filter = [ "r|/dev/.*/by-path/.*|", "r|/dev/.*/by-id/.*|", "a/.*/" ]
> > >
> > > and my dasd list is:
> > >
> > >
> > > Bus-ID     Status      Name      Device  Type  BlkSz  Size      Blocks
> > >
> > >
> >
>
> ============================================================================
> > > 0.0.0501   active      dasda     94:0    FBA   512    2048MB 4194304
> > > 0.0.0500   active      dasdb     94:4    FBA   512    4608MB 9437184
> > > 0.0.0502   active      dasdc     94:8    FBA   512    2048MB 4194304
> > > 0.0.0504   active      dasdd     94:12   FBA   512    1536MB 3145728
> > > 0.0.0503   active      dasde     94:16   FBA   512    2048MB 4194304
> > > 0.0.0400   active      dasdf     94:20   FBA   512    80MB      163840
> > > 0.0.0505   active      dasdg     94:24   FBA   512    1536MB 3145728
> > > 0.0.0506   active      dasdh     94:28   FBA   512    1536MB 3145728
> > > 0.0.0600   active      dasdi     94:32   FBA   512    1536MB 3145728
> > > 0.0.0601   active      dasdj     94:36   FBA   512    1024MB 2097152
> > > 0.0.0602   active      dasdk     94:40   FBA   512    2048MB 4194304
> > > 0.0.0603   active      dasdl     94:44   FBA   512    5120MB 10485760
> > > 0.0.0604   active      dasdm     94:48   FBA   512    5120MB 10485760
> > > 0.0.0605   active      dasdn     94:52   FBA   512    2048MB 4194304
> > > 0.0.0606   active      dasdo     94:56   FBA   512    10240MB 20971520
> > > 0.0.0607   active      dasdp     94:60   FBA   512    2048MB 4194304
> > > 0.0.0608   active      dasdq     94:64   FBA   512    2048MB 4194304
> > > 0.0.0609   active      dasdr     94:68   FBA   512    2048MB 4194304
> > > 0.0.0610   active      dasds     94:72   FBA   512    2048MB 4194304
> > > 0.0.0611   active      dasdt     94:76   FBA   512    2048MB 4194304
> > > 0.0.0612   active      dasdu     94:80   FBA   512    2048MB 4194304
> > > 0.0.0613   active      dasdv     94:84   FBA   512    2048MB 4194304
> > > 0.0.0614   active      dasdw     94:88   FBA   512    2048MB 4194304
> > > 0.0.0615   active      dasdx     94:92   FBA   512    2048MB 4194304
> > > 0.0.0616   active      dasdy     94:96   FBA   512    2048MB 4194304
> > > 0.0.0617   active      dasdz     94:100   FBA   512    2048MB 4194304
> > > 0.0.0618   active      dasdaa    94:104   FBA   512    2048MB 4194304
> > > 0.0.0619   active      dasdab    94:108   FBA   512    8191MB 16777200
> > > 0.0.0620   active      dasdac    94:112   FBA   512    431MB 884720
> > > 0.0.0621   active      dasdad    94:116   FBA   512    17407MB
> 35651568
> > > 0.0.0622   active      dasdae    94:120   FBA   512    1455MB 2981872
> > >
> > > Change the filter in this way, but I keep getting the error
> > >
> > > filter = [ "r|/dev/.*/by-path/.*|", "r|/dev/.*/by-id/.*|",
> > > "a|/dev/mapper/*|", "a/.*/" ]
> > >
> > >
> > > What would be the correct filter for the linux guest?
> > >
> > >
> > >
> > > Thanks to all
> > >
> > > ATTE
> > >
> > >
> > >
> > > Victor Hugo Ochoa Avila
> > > BBVA CCR America
> > >
> > > ----------------------------------------------------------------------
> > > For LINUX-390 subscribe / signoff / archive access instructions,
> > > send email to [email protected] with the message: INFO LINUX-390
> or
> > > visit
> > > http://www.marist.edu/htbin/wlvindex?LINUX-390
> > > ----------------------------------------------------------------------
> > > For more information on Linux on System z, visit
> > > http://wiki.linuxvm.org/
> > >
> >
> > ----------------------------------------------------------------------
> > For LINUX-390 subscribe / signoff / archive access instructions,
> > send email to [email protected] with the message: INFO LINUX-390 or
> > visit
> > http://www.marist.edu/htbin/wlvindex?LINUX-390
> > ----------------------------------------------------------------------
> > For more information on Linux on System z, visit
> > http://wiki.linuxvm.org/
> >
>
> ----------------------------------------------------------------------
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO LINUX-390 or
> visit
> http://www.marist.edu/htbin/wlvindex?LINUX-390
> ----------------------------------------------------------------------
> For more information on Linux on System z, visit
> http://wiki.linuxvm.org/
>
>
>
> ----------------------------------------------------------------------
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO LINUX-390 or
> visit
> http://www.marist.edu/htbin/wlvindex?LINUX-390
> ----------------------------------------------------------------------
> For more information on Linux on System z, visit
> http://wiki.linuxvm.org/
>

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to