All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] LE/PE Question
@ 2002-11-19 14:56 kalle
  2002-11-21  5:04 ` Heinz J . Mauelshagen
  0 siblings, 1 reply; 6+ messages in thread
From: kalle @ 2002-11-19 14:56 UTC (permalink / raw)
  To: linux-lvm

Hi!

Im researching some diffrent what-if-scenarios to be more prepared if our lvm fails.
and I'm wondering..Is there any utility to find which file (or fs inode) a specific LE/PE is assigned to?
  What I would like to acomplish it to be able to know what files are located on a specific disk in a 

VG/LV. So if I detect that a disk in a LV is starting to fail I would like to know which files are more 

likely to be non-recoverable.


Thanks!


Regards
Kalle

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [linux-lvm] LE/PE Question
  2002-11-19 14:56 [linux-lvm] LE/PE Question kalle
@ 2002-11-21  5:04 ` Heinz J . Mauelshagen
  2002-11-21 10:33   ` Steven Lembark
  0 siblings, 1 reply; 6+ messages in thread
From: Heinz J . Mauelshagen @ 2002-11-21  5:04 UTC (permalink / raw)
  To: linux-lvm

On Tue, Nov 19, 2002 at 09:50:39PM +0100, kalle@idlar.nu wrote:
> Hi!
> 
> Im researching some diffrent what-if-scenarios to be more prepared if our lvm fails.
> and I'm wondering..Is there any utility to find which file (or fs inode) a specific LE/PE is assigned to?

# lvdisplay -v /dev/YourVG/YourLV # displays mapping logical -> physical extents
# lvdisplay -v /dev/YourPV # displays mapping physical -> logical extents

>   What I would like to acomplish it to be able to know what files are located on a specific disk in a 
> 
> VG/LV. So if I detect that a disk in a LV is starting to fail I would like to know which files are more 
> 
> likely to be non-recoverable.

You need to 'ask' the filesystem, where it puts stuff ;)
I.e. "debugfs /dev/YourVG/YourLV" for ext[23].

> 
> 
> Thanks!
> 
> 
> Regards
> Kalle
> 
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

-- 

Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
Mauelshagen@Sistina.com                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [linux-lvm] LE/PE Question
  2002-11-21  5:04 ` Heinz J . Mauelshagen
@ 2002-11-21 10:33   ` Steven Lembark
  2002-11-22  3:45     ` Heinz J . Mauelshagen
  0 siblings, 1 reply; 6+ messages in thread
From: Steven Lembark @ 2002-11-21 10:33 UTC (permalink / raw)
  To: linux-lvm


-- "Heinz J . Mauelshagen" <mauelshagen@sistina.com>

> On Tue, Nov 19, 2002 at 09:50:39PM +0100, kalle@idlar.nu wrote:
>> Hi!
>>
>> Im researching some diffrent what-if-scenarios to be more prepared if
>> our lvm fails. and I'm wondering..Is there any utility to find which
>> file (or fs inode) a specific LE/PE is assigned to?
>
># lvdisplay -v /dev/YourVG/YourLV # displays mapping logical -> physical
># extents lvdisplay -v /dev/YourPV # displays mapping physical -> logical
># extents
>
>>   What I would like to acomplish it to be able to know what files are
>>   located on a specific disk in a
>>
>> VG/LV. So if I detect that a disk in a LV is starting to fail I would
>> like to know which files are more
>>
>> likely to be non-recoverable.
>
> You need to 'ask' the filesystem, where it puts stuff ;)
> I.e. "debugfs /dev/YourVG/YourLV" for ext[23].

The unit of failure, for all pratical purposes, is the LV
(unless you are into using dd on raw disk devices to make
your backups). If one drive is likely to fail then any LV
crossing that LV is going to get fried (short of RAID) and
will have to be restored.



--
Steven Lembark                               2930 W. Palmer
Workhorse Computing                       Chicago, IL 60647
                                            +1 800 762 1582

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [linux-lvm] LE/PE Question
  2002-11-21 10:33   ` Steven Lembark
@ 2002-11-22  3:45     ` Heinz J . Mauelshagen
  2002-11-22 12:27       ` Steven Lembark
  0 siblings, 1 reply; 6+ messages in thread
From: Heinz J . Mauelshagen @ 2002-11-22  3:45 UTC (permalink / raw)
  To: linux-lvm

On Thu, Nov 21, 2002 at 10:38:31AM -0600, Steven Lembark wrote:
> 
> 
> -- "Heinz J . Mauelshagen" <mauelshagen@sistina.com>
> 
> > On Tue, Nov 19, 2002 at 09:50:39PM +0100, kalle@idlar.nu wrote:
> >> Hi!
> >>
> >> Im researching some diffrent what-if-scenarios to be more prepared if
> >> our lvm fails. and I'm wondering..Is there any utility to find which
> >> file (or fs inode) a specific LE/PE is assigned to?
> >
> ># lvdisplay -v /dev/YourVG/YourLV # displays mapping logical -> physical
> ># extents lvdisplay -v /dev/YourPV # displays mapping physical -> logical
> ># extents
> >
> >>   What I would like to acomplish it to be able to know what files are
> >>   located on a specific disk in a
> >>
> >> VG/LV. So if I detect that a disk in a LV is starting to fail I would
> >> like to know which files are more
> >>
> >> likely to be non-recoverable.
> >
> > You need to 'ask' the filesystem, where it puts stuff ;)
> > I.e. "debugfs /dev/YourVG/YourLV" for ext[23].
> 
> The unit of failure, for all pratical purposes, is the LV
> (unless you are into using dd on raw disk devices to make
> your backups). If one drive is likely to fail then any LV
> crossing that LV is going to get fried (short of RAID) and
> will have to be restored.

With LVM2 (and deprecated LVM1.1) you are able to activate a VG even though
some of its PVs are inaccessable.
If any filesystem is mountable still depends on the availability
of alternate superblocks and (at least) the root directory.

> 
> 
> 
> --
> Steven Lembark                               2930 W. Palmer
> Workhorse Computing                       Chicago, IL 60647
>                                             +1 800 762 1582
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

-- 

Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
Mauelshagen@Sistina.com                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [linux-lvm] LE/PE Question
  2002-11-22  3:45     ` Heinz J . Mauelshagen
@ 2002-11-22 12:27       ` Steven Lembark
  2002-11-22 15:49         ` Heinz J . Mauelshagen
  0 siblings, 1 reply; 6+ messages in thread
From: Steven Lembark @ 2002-11-22 12:27 UTC (permalink / raw)
  To: linux-lvm


-- "Heinz J . Mauelshagen" <mauelshagen@sistina.com>

>> The unit of failure, for all pratical purposes, is the LV
>> (unless you are into using dd on raw disk devices to make
>> your backups). If one drive is likely to fail then any LV
>> crossing that LV is going to get fried (short of RAID) and
>> will have to be restored.
>
> With LVM2 (and deprecated LVM1.1) you are able to activate a VG even
> though some of its PVs are inaccessable.
> If any filesystem is mountable still depends on the availability
> of alternate superblocks and (at least) the root directory.

Which seems to mean that the unit of failure still is
the LV: if an LV spans PV's and the PV looses data then
the LV is unusable. The VG being able to survive an offline
PV is a Very Good Thing but doesn't do anything to help
someone with a filesystem on an LV with half its extents
missing.


--
Steven Lembark                               2930 W. Palmer
Workhorse Computing                       Chicago, IL 60647
                                            +1 800 762 1582

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [linux-lvm] LE/PE Question
  2002-11-22 12:27       ` Steven Lembark
@ 2002-11-22 15:49         ` Heinz J . Mauelshagen
  0 siblings, 0 replies; 6+ messages in thread
From: Heinz J . Mauelshagen @ 2002-11-22 15:49 UTC (permalink / raw)
  To: linux-lvm

On Fri, Nov 22, 2002 at 12:32:57PM -0600, Steven Lembark wrote:
> 
> 
> -- "Heinz J . Mauelshagen" <mauelshagen@sistina.com>
> 
> >> The unit of failure, for all pratical purposes, is the LV
> >> (unless you are into using dd on raw disk devices to make
> >> your backups). If one drive is likely to fail then any LV
> >> crossing that LV is going to get fried (short of RAID) and
> >> will have to be restored.
> >
> > With LVM2 (and deprecated LVM1.1) you are able to activate a VG even
> > though some of its PVs are inaccessable.
> > If any filesystem is mountable still depends on the availability
> > of alternate superblocks and (at least) the root directory.
> 
> Which seems to mean that the unit of failure still is
> the LV: if an LV spans PV's and the PV looses data then
> the LV is unusable.

Yes, the unit of (partial) failure is the LV.
Point is, that the LV still might be partially accessable.

> The VG being able to survive an offline
> PV is a Very Good Thing but doesn't do anything to help
> someone with a filesystem on an LV with half its extents
> missing.

Well, that very much depends on _which_ extents are actually missing and
what filesystem metadata and data they contain.

I.e. if those containing (alternate) superblocks _and_ the root directory are
accessable still, user might be very happy to be able to retrieve that partial
filesystem. In particular if his updated critical files not backed up last
night are still retrievable.

Regards,
Heinz    -- The LVM Guy --

> 
> 
> --
> Steven Lembark                               2930 W. Palmer
> Workhorse Computing                       Chicago, IL 60647
>                                             +1 800 762 1582
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
Mauelshagen@Sistina.com                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-11-22 15:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-19 14:56 [linux-lvm] LE/PE Question kalle
2002-11-21  5:04 ` Heinz J . Mauelshagen
2002-11-21 10:33   ` Steven Lembark
2002-11-22  3:45     ` Heinz J . Mauelshagen
2002-11-22 12:27       ` Steven Lembark
2002-11-22 15:49         ` Heinz J . Mauelshagen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.