[sles-beta] LVM commands in SLES12 doesn't print any message after successful exection

Mark Post mpost at suse.com
Thu Jun 26 14:26:54 MDT 2014


>>> On 6/26/2014 at 05:05 AM, Nikita Kodkani <Nikita_Kodkani at symantec.com> wrote: 
> Hi,
> 
> I want to create the physical volumes using pvcreate command & then view them 
> using pvscan command.

The pvscan command was never intended to _display_ physical volumes.  It was intended to discover them.  The pvdisplay command, or "pvs" command should be used to display the physical volume(s).

s390vsl210:~ # pvdisplay 
  "/dev/dasdb1" is a new physical volume of "210.84 MiB"
  --- NEW Physical volume ---
  PV Name               /dev/dasdb1
  VG Name               
  PV Size               210.84 MiB
  Allocatable           NO
  PE Size               0   
  Total PE              0
  Free PE               0
  Allocated PE          0
  PV UUID               GHS9GV-Nkg3-MFQW-aCo0-DWoq-c1QX-CFBYp5
   
s390vsl210:~ # pvs
  PV          VG   Fmt  Attr PSize   PFree  
  /dev/dasdb1      lvm2 a--  210.84m 210.84m

-snip-
> Just a query, will these changes made in LVM commands be persistent in 
> SLES12 GA as well?

I would have to say yes.

> [root ~]# pvcreate /dev/sdc
>   Physical volume "/dev/sdc" successfully created
> [root ~]# pvscan /dev/sdc
>   Found duplicate PV a07tWNxVkvsmQ1hsSXAmn5VmjqLND0Ay: using /dev/sdb1 not 
> /dev/sdb
>   Found duplicate PV a07tWNxVkvsmQ1hsSXAmn5VmjqLND0Ay: using /dev/sdb3 not 
> /dev/sdb1
>   Found duplicate PV 8OZWF8UtIPQRXH3EqkNHu7LdnFZ3xZhp: using /dev/sdc3 not 
> /dev/sdc
>   Found duplicate PV a07tWNxVkvsmQ1hsSXAmn5VmjqLND0Ay: using /dev/sdo not 
> /dev/sdb3
>   Found duplicate PV a07tWNxVkvsmQ1hsSXAmn5VmjqLND0Ay: using /dev/sdo3 not 
> /dev/sdo
>   Found duplicate PV 8OZWF8UtIPQRXH3EqkNHu7LdnFZ3xZhp: using /dev/sdp not 
> /dev/sdc3
>   Found duplicate PV 8OZWF8UtIPQRXH3EqkNHu7LdnFZ3xZhp: using /dev/sdp3 not 
> /dev/sdp
>   PV /dev/sdo3                      lvm2 [2.00 GiB]
>   PV /dev/sdp3                      lvm2 [2.00 GiB]
>   Total: 2 [4.00 GiB] / in use: 0 [0   ] / in no VG: 2 [4.00 GiB]

This isn't something you asked about, but it seems pretty clear you have a multipathing environment, but you're not using the multipath names to the PVs.  You should probably fix that.


Mark Post




More information about the sles-beta mailing list