All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] LVM 1.0.7, kernel 2.4.21 and snapshots over ext3 filesystem
@ 2003-07-01 12:09 Alberto Picon Couselo
  2003-07-01 16:17 ` Wolfgang Weisselberg
  0 siblings, 1 reply; 6+ messages in thread
From: Alberto Picon Couselo @ 2003-07-01 12:09 UTC (permalink / raw)
  To: linux-lvm

Hello everybody. I'm having a lot problems trying to enable snapshots on an
EXT3 Logical Volume. I was using LVM 1.0.4 and I decided to upgrade to LVM
1.0.7 and Linux kernel 2.4.21 on a Debian 3.0 to fix it. I have downloaded
the following sources:

Sistina WebPage LVM Sources: lvm 1.0.7
LinuxKernel Kernel 2.4.21 sources from http://www.kernel.org

After executing ./configure script of LVM, I built VFS patch for 2.4.21,
lvm-1.0.7-2.4.21.patch, and I patched the kernel (2.4.21 at /usr/src/linux)
using "patch -p1 < /usr/src/LVM/1.0.7/PATCHES/lvm-1.0.7-2.4.21.patch". I
compiled and installed LVM package using "make" and "make install". After
that, I enabled LVM as a module and FileSystems->Vistual Memory Filesystem
option in the kernel using "make menuconfig". I compiled the kernel and
after reboor LVM seems to work correctly.

However, when I create a snapshot volume:

$:/usr/src/linux# lvcreate -L500M -s -n spoolbackup /dev/storage/spool
lvcreate -- WARNING: the snapshot will be automatically disabled once it
gets full
lvcreate -- INFO: using default snapshot chunk size of 64 KB for
"/dev/storage/spoolbackup"
lvcreate -- doing automatic backup of "storage"
lvcreate -- logical volume "/dev/storage/spoolbackup" successfully created

And I try to mount it:

$:/usr/src/linux# mount -t ext3 -r /dev/storage/spoolbackup /mnt/temp/
mount: wrong fs type, bad option, bad superblock on
/dev/storage/spoolbackup,
       or too many mounted file systems

What's happenning?. I have upgraded LVM to 1.0.7, compiled VFS-lock kernel
patch for LVM using LVM native utility, compiled the kernel, and everything
seems to work fine. However, snapshots do not mount correctly.   

Please, please, help me,
Thanks in advance,
Alberto Picon

Alberto Picón Couselo
Departamento Informática y Telecomunicaciones
Asociación SER (Ser, Estar, Responder)
------------------------------------------------------------------
Teléfono: (91)554.36.37 - Móvil: 615.22.77.55 - FAX: (91)534.27.59
Email: albertopicon@asociacionser.org
------------------------------------------------------------------ 
 

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: [linux-lvm] LVM 1.0.7, kernel 2.4.21 and snapshots over ext3 filesystem
@ 2003-07-03 11:14 C R Ritson
  2003-07-04 15:59 ` Wolfgang Weisselberg
  0 siblings, 1 reply; 6+ messages in thread
From: C R Ritson @ 2003-07-03 11:14 UTC (permalink / raw)
  To: linux-lvm

> Date: Tue, 1 Jul 2003 23:16:54 +0200
> To: linux-lvm@sistina.com
> Subject: Re: [linux-lvm] LVM 1.0.7, kernel 2.4.21 and 
> 
> My bet is that you first patched the kernel for VFS-lock and
> *then* patched the kernel for LVM.  This undoes (parts of)
> the VFS-lock.  The reason is as follows:
> 
> - AFAICS the LVM kernel patch generator has functions as they
>   should be in the kernel
> - this means the 'patch' is dynamically build by comparing
>   the current kernel with the functions LVM wants there.
> - so if the VFS-lock patch is in the kernel, LVM will
>   'correct' it, undoing it's efforts.

That is strange - my exprience with kernel 2.4.20 and LVM 1.0.7 was as
follows:

With no VFS-lock patch I get problems with snapshots as described.

Attempting to apply the VFS-lock patch AFTER the LVM generated patch
gives me an un-compilable tree with with unresolved reverences to
fsync_dev_lockfs and unlockfs.

On one test machine I am running a 2.4.20 kernel in which the VFS-lock
patch was applied BEFORE the LVM patch. Here, I am taking a snapshot at
about 23:30 every night, and backing that up to tape to ensure that
backup sees a stable volume, then leaving the snapshot around for the
next 24 hours to allow users to recover from sinple file deletions and
corruptions themselves.

Would Heinz care to comment on these two apparently conflicting results?

Chris Ritson (Computing Officer)

Rm 618, Claremont Bridge,       EMAIL: C.R.Ritson@newcastle.ac.uk
School of Computing Science,    PHONE: +44 191 222 8175
University of Newcastle,        FAX  : +44 191 222 8232
Newcastle on Tyne, UK NE1 7RU.  http://www.cs.ncl.ac.uk/~c.r.ritson/

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

end of thread, other threads:[~2003-07-04 15:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-01 12:09 [linux-lvm] LVM 1.0.7, kernel 2.4.21 and snapshots over ext3 filesystem Alberto Picon Couselo
2003-07-01 16:17 ` Wolfgang Weisselberg
2003-07-02  8:05   ` Alberto Picon Couselo
2003-07-04 15:31     ` Wolfgang Weisselberg
  -- strict thread matches above, loose matches on Subject: below --
2003-07-03 11:14 C R Ritson
2003-07-04 15:59 ` Wolfgang Weisselberg

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.