Skip to contentSkip to conversation

bug? shrink lv by specifying pv extent to be removed does not behave as expected

linux-lvm matthew patton 4 participants 5 messages Apr 11, 2023 – Apr 13, 2023 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 1 line

 my plan is to scan a disk for usable sectors and map the logical volume> around the broken sectors.

1977 called, they'd like their non-self-correcting HD controller implementations back.

Quoted 1 line

From a real-world perspective there is ZERO (more like negative) utility to this exercise. Controllers remap blocks all on their own and the so-called geometry is entirely fictitious anyway. From a script/program "because I want to" perspective you could leave LVM entirely out of it and just use a file with arbitrary offsets scribbled with a "bad" signature.

_______________________________________________
linux-lvm mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

#2 lore raw
Quoted 7 lines · matthew patton
Quoted 3 lines

my plan is to scan a disk for usable sectors and map the logical volume around the broken sectors.

1977 called, they'd like their non-self-correcting HD controller implementations back.

From a real-world perspective there is ZERO (more like negative) utility to this exercise. Controllers remap blocks all on their own and the so-called geometry is entirely fictitious anyway. From a script/program "because I want to" perspective you could leave LVM entirely out of it and just use a file with arbitrary offsets scribbled with a "bad" signature.

The disks should be able to remap sectors all on their own. Few (none?) of the sata/sas non-raid controllers I know of do any disk
level remapping. Some of the hardware raid ones may. As implemented
the decision to remap (in the disk) seems to not always work correctly. I have a number of disks over several generations that will refuse to re-map what is a clearly bad sector (re-writes to a given sector succeed, and then immediate re-reads fail and on another re-write succeed again and immediately fail on re-read, but do not get remapped.

So given this, if one does not want to be replacing the given disks there is room for software level remaps still to use the significant number of disks with limited bad sectors on them.

_______________________________________________
linux-lvm mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

#3 lore raw
In reply to matthew patton
Quoted 1 line

Controllers remap blocks all on their own and the so-called geometry

is entirely fictitious anyway

so tell me then, why i have a shelf full with dead disks where half of them are out of business for nothing but a couple of bad sectors ?

i don't see the point that hardware capable storing terabytes of data is being put to trash, because of some <0.01% of it's sectors is defective for this or for that reason.  it's that "the vendor tells it's dead now
- so please better buy a new one" paradigm, which seems to rule everewhere today.

i dislike this attitude.

if you had a self healing diving suit which quits healing itself after the 5th small hole, would you throw that away after the 5th hole - or would you put a patch on that? same goes for bicycle inner tubing. there were times, where you put patches on that because new ones where expensive. nowadays, everbody puts them to trash and buys a new one.

so, if some drive controller isn't able to fix your 20 broken sectors - i'd like to fix it myself. and i'd like to try the lvm apporach, because i think it's a sensible way of putting some abstraction layer between your filesystem and your rotating disks.

and even if it's dumb to do or if it's something which will not succeed , it's at least worth a try to show if it works or show why it can't work - and if it doesn't work - there is at least something to learn about lvm or dead disks.

roland

Am 09.04.23 um 22:18 schrieb matthew patton:

Quoted 13 lines
Quoted 2 lines

my plan is to scan a disk for usable sectors and map the logical volume around the broken sectors.

1977 called, they'd like their non-self-correcting HD controller implementations back.

From a real-world perspective there is ZERO (more like negative) utility to this exercise. Controllers remap blocks all on their own and the so-called geometry is entirely fictitious anyway. From a script/program "because I want to" perspective you could leave LVM entirely out of it and just use a file with arbitrary offsets scribbled with a "bad" signature.

Quoted 5 lines

_______________________________________________
linux-lvm mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO athttp://tldp.org/HOWTO/LVM-HOWTO/

_______________________________________________
linux-lvm mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

#4 lore raw

If you are in trouble with the disks set because of bad healthiness of the drives

they helped me with really convenient fee-per-disk in Verona , Italy

It is the most well reputate (checked and compared with Google reviews) data recovery lab in Italy.

If you want the reference, just drop me an email

⁣kind regards

R. ​

Il giorno 12 apr 2023, 08:39, alle ore 08:39, Roland <[email protected]> ha scritto:

Quoted 58 lines
Quoted 1 line

Controllers remap blocks all on their own and the so-called geometry

is entirely fictitious anyway

so tell me then, why i have a shelf full with dead disks where half of them are out of business for nothing but a couple of bad sectors ?

i don't see the point that hardware capable storing terabytes of data is
being put to trash, because of some <0.01% of it's sectors is defective for this or for that reason.  it's that "the vendor tells it's dead now
- so please better buy a new one" paradigm, which seems to rule everewhere today.

i dislike this attitude.

if you had a self healing diving suit which quits healing itself after the 5th small hole, would you throw that away after the 5th hole - or would you put a patch on that? same goes for bicycle inner tubing. there
were times, where you put patches on that because new ones where expensive. nowadays, everbody puts them to trash and buys a new one.

so, if some drive controller isn't able to fix your 20 broken sectors - i'd like to fix it myself. and i'd like to try the lvm apporach, because
i think it's a sensible way of putting some abstraction layer between your filesystem and your rotating disks.

and even if it's dumb to do or if it's something which will not succeed , it's at least worth a try to show if it works or show why it can't work - and if it doesn't work - there is at least something to learn about lvm or dead disks.

roland

Am 09.04.23 um 22:18 schrieb matthew patton:

Quoted 1 line
Quoted 1 line

my plan is to scan a disk for usable sectors and map the logical

volume

Quoted 12 lines
Quoted 1 line

around the broken sectors.

1977 called, they'd like their non-self-correcting HD controller implementations back.

From a real-world perspective there is ZERO (more like negative) utility to this exercise. Controllers remap blocks all on their own and the so-called geometry is entirely fictitious anyway. From a script/program "because I want to" perspective you could leave LVM entirely out of it and just use a file with arbitrary offsets scribbled with a "bad" signature.

Quoted 5 lines

_______________________________________________
linux-lvm mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO athttp://tldp.org/HOWTO/LVM-HOWTO/

Quoted 7 lines

------------------------------------------------------------------------

_______________________________________________
linux-lvm mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

_______________________________________________
linux-lvm mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

#5 lore raw
In reply to Roland

P.S. needless to be said, that they eventually can reassemble damaged LVM , until LVM's metadata tables are still good enough

Il giorno 12 apr 2023, 08:39, alle ore 08:39, Roland <[email protected]> ha scritto:

Quoted 58 lines
Quoted 1 line

Controllers remap blocks all on their own and the so-called geometry

is entirely fictitious anyway

so tell me then, why i have a shelf full with dead disks where half of them are out of business for nothing but a couple of bad sectors ?

i don't see the point that hardware capable storing terabytes of data is
being put to trash, because of some <0.01% of it's sectors is defective for this or for that reason.  it's that "the vendor tells it's dead now
- so please better buy a new one" paradigm, which seems to rule everewhere today.

i dislike this attitude.

if you had a self healing diving suit which quits healing itself after the 5th small hole, would you throw that away after the 5th hole - or would you put a patch on that? same goes for bicycle inner tubing. there
were times, where you put patches on that because new ones where expensive. nowadays, everbody puts them to trash and buys a new one.

so, if some drive controller isn't able to fix your 20 broken sectors - i'd like to fix it myself. and i'd like to try the lvm apporach, because
i think it's a sensible way of putting some abstraction layer between your filesystem and your rotating disks.

and even if it's dumb to do or if it's something which will not succeed , it's at least worth a try to show if it works or show why it can't work - and if it doesn't work - there is at least something to learn about lvm or dead disks.

roland

Am 09.04.23 um 22:18 schrieb matthew patton:

Quoted 1 line
Quoted 1 line

my plan is to scan a disk for usable sectors and map the logical

volume

Quoted 12 lines
Quoted 1 line

around the broken sectors.

1977 called, they'd like their non-self-correcting HD controller implementations back.

From a real-world perspective there is ZERO (more like negative) utility to this exercise. Controllers remap blocks all on their own and the so-called geometry is entirely fictitious anyway. From a script/program "because I want to" perspective you could leave LVM entirely out of it and just use a file with arbitrary offsets scribbled with a "bad" signature.

Quoted 5 lines

_______________________________________________
linux-lvm mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO athttp://tldp.org/HOWTO/LVM-HOWTO/

Quoted 7 lines

------------------------------------------------------------------------

_______________________________________________
linux-lvm mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

_______________________________________________
linux-lvm mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/