Linux LVM users
 help / color / mirror / Atom feed
From: "Wolfgang Weisselberg" <uzx87lvfmukwc001@sneakemail.com>
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] dd of a used part of a logical volume?
Date: Thu, 3 Jun 2004 16:57:53 +0200	[thread overview]
Message-ID: <27202-34029@sneakemail.com> (raw)
In-Reply-To: <20040528064553.GA1007%alexy.khrabrov@setup.org>

Alexy Khrabrov wrote 40 lines:

[undeleting files w/ReiserFS]

> Now I'd like to play with the dd copying of the whole reiserfs (I'm
> avoiding the word partition since it covers the whole logical volume
> which spans the whole RAID device).

To any file system a logical volume is a partition.  

It just happens that the underlying system may be split over
several hard disks and do not even have to be continous --- just
as LVM sees a single hard drive, but in reality it's several hard
drives joined by a RAID system.

> I simply do not have space to copy
> the whole RAID, but the size of the used space on this reiserfs volume was
> under about 9 GB.  I wonder how can I copy just about that -- I assume it
> fills the logical volume contiguously,

And each time a file grows, you have to jump to the end of the
currently used space, just for that?  That's one of the things
that makes FAT a simple, slow file system.  ReiserFS --- and
most other intelligent file systems --- spread their data over
the whole disk, so even if files grow, the number of jumps the
hard disk head has to make to read a file completely stays low.

> Are there LVM methods to shrink it/copy just the used blocks in
> conjunction with reiserfs, such as resize_reiserfs?

How about asking if your RAID can't do that?  How *can* LVM know
if one chunk of it's space allocated to ReiserFS has been used
by ReiserFS or not?  And what if your precious files were on a
chunk that's *now* unused?

And even if LVM left out the blocks, wouldn't ReiserFS say "Go
block X (roughly 140 GB from the start) and read this block"
and wouldn't it be just too bad if you only had 9 GB, so this
search would fall wide outside the data range you have?

Do you really want LVM to know all intricacies of all file systems,
just to be able to do the job of a completely different tool,
badly?

-Wolfgang

      parent reply	other threads:[~2004-06-03 14:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-28  6:45 [linux-lvm] dd of a used part of a logical volume? Alexy Khrabrov
2004-05-28 14:02 ` AJ Lewis
2004-05-28 19:44 ` Greg Freemyer
2004-06-03 14:57 ` Wolfgang Weisselberg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=27202-34029@sneakemail.com \
    --to=uzx87lvfmukwc001@sneakemail.com \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox