linux 查看lv占用哪个pv

发布时间 2024-01-12 14:46:35作者: shn7798

lvdisplay -m LV

[root@lvm ~]# lvdisplay -m /dev/datavg/gfslv 
  --- Logical volume ---
  LV Path                /dev/datavg/gfslv
  LV Name                gfslv
  VG Name                datavg
  LV UUID                7RTU9u-t5X9-FQ6o-AuOS-oVjI-s33i-roSqoL
  LV Write Access        read/write
  LV Creation host, time lvm, 2018-12-16 21:52:18 +0800
  LV Status              available
  # open                 0
  LV Size                1.00 GiB
  Current LE             256
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     8192
  Block device           253:5
    
  --- Segments ---
  Logical extents 0 to 255:
    Type                striped
    Stripes             2
    Stripe size         64.00 KiB
    Stripe 0:
      Physical volume   /dev/sdb
      Physical extents  21 to 148
    Stripe 1:
      Physical volume   /dev/sdc
      Physical extents  129 to 256
    ```