Linux LVM users
 help / color / mirror / Atom feed
* [linux-lvm] dd of a used part of a logical volume?
@ 2004-05-28  6:45 Alexy Khrabrov
  2004-05-28 14:02 ` AJ Lewis
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Alexy Khrabrov @ 2004-05-28  6:45 UTC (permalink / raw)
  To: Linux LVM List


I cross-post a part of my ReiserFS list message, as it
concernes copying of a used part of a filesystem running
on top of LVM.

I'd like to recover some files from a huge reiserfs file system.  It is
created above an LVM volume, which in its turn sits on a RAID.  The LVM
volume is the only one in a group which consists of the sole RAID device.
I just deleted two files in a directory I know by name, the directory is
still there.  No writing was done after the rm, except all files copied
elsewhere and diff -r'ed checked, hope that does not alter the originals.

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).  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, so I can dd the first 9 GB and then
try the loopback mount/rebuild.  Now that I'm running it, it scrolls lines

pass0: reading block 20626210 failed

like crazy, perhaps up to the whole 150 GB original size declared
somewhere...

Then is quits, saying something about invalid argument to lseek,
not surprisingly as I cut dd short.

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

-- 
Cheers,
Alexy Khrabrov :: www.setup.org :: Age Quod Agis

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

end of thread, other threads:[~2004-06-03 14:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox