LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 03-05-2012, 12:33 AM   #1
mario.almeida
Member
 
Registered: May 2008
Location: India
Distribution: Ubuntu 10.04, CentOS
Posts: 177

Rep: Reputation: 26
Question 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
 
Old 03-05-2012, 07:19 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,514
Blog Entries: 27

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


Reply

Tags
lvm


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
EXT4 and Extent question please Help me!!! jebwalid Linux - Kernel 2 02-15-2012 02:59 PM
Extending logical volume LogVol01 Insufficient allocatable logical exte swap space umeshsharma Linux - Newbie 4 06-22-2009 12:26 PM
extent size of a logical volume tajamari Linux - Server 0 02-24-2009 04:53 AM
how can i extent the root partition ? linuxsikandar Linux - General 5 02-12-2008 11:06 PM
LVM: How to create logical (physical) volume with extent sie 32 Mb consistgd Linux - Software 4 11-14-2006 05:03 PM


All times are GMT -5. The time now is 04:07 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration