LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Remove Logical Extent (http://www.linuxquestions.org/questions/linux-hardware-18/remove-logical-extent-932752/)

mario.almeida 03-05-2012 01:33 AM

Remove Logical Extent
 
Dear All,

I have issue with one of my server HDD. (/dev/sd)

Code:

Info fld=0x7251240
end_request: I/O error, dev sda, sector 119870016
sd 0:0:0:0: SCSI error: return code = 0x08000002
sda: Current: sense key: Medium Error
Add. Sense: Read retries exhausted

Info fld=0x731faba
end_request: I/O error, dev sda, sector 120715962
sd 0:0:0:0: SCSI error: return code = 0x08000002
sda: Current: sense key: Medium Error
 Add. Sense: Read retries exhausted

how can I remove /dev/sda7 from /dev/vg0/lv4?

Code:

lvdisplay -m /dev/vg0/lv4
  --- Logical volume ---
  LV Name                /dev/vg0/lv4
  VG Name                vg0
  LV UUID                iiLWK1-Gn7I-zUAk-7F8V-Bv1c-dFCV-SIXaOu
  LV Write Access        read/write
  LV Status              available
  # open                0
  LV Size                492.91 GB
  Current LE            15773
  Segments              5
  Allocation            inherit
  Read ahead sectors    auto
  - currently set to    256
  Block device          253:1
 
  --- Segments ---
  Logical extent 0 to 4115:
    Type                linear
    Physical volume        /dev/sda7
    Physical extents        0 to 4115
 
  Logical extent 4116 to 7021:
    Type                linear
    Physical volume        /dev/sdb1
    Physical extents        500 to 3405
 
  Logical extent 7022 to 7022:
    Type                linear
    Physical volume        /dev/sdb1
    Physical extents        4374 to 4374
 
  Logical extent 7023 to 11397:
    Type                linear
    Physical volume        /dev/sdc
    Physical extents        0 to 4374
 
  Logical extent 11398 to 15772:
    Type                linear
    Physical volume        /dev/sdd
    Physical extents        0 to 4374


catkin 03-05-2012 08:19 AM

Use the pvmove command to empty the unwanted PV and then pvremove to, er, remove it.


All times are GMT -5. The time now is 02:42 PM.