All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] ext3 on an logical volume - snapshot using how?
@ 2002-04-08  8:49 Ph. Marek
  2002-04-08 10:02 ` [linux-lvm] " Stephen C. Tweedie
  0 siblings, 1 reply; 3+ messages in thread
From: Ph. Marek @ 2002-04-08  8:49 UTC (permalink / raw)
  To: ext3-users, linux-lvm

Hi everybody!

I'm using LVM and ext3 and am very satisfied with it.


But now I have the following problem:
I have a filesystem on a LV which is in use -
files are created, modified and so on.
To do a backup I'd like to create a snapshot
of this volume which gets backup'd  and then dropped.

	 # lvcreate -s -L 20M -n snapshot /dev/vg/data
	lvcreate -- WARNING: the snapshot will be automatically disabled once it gets full
	lvcreate -- INFO: using default snapshot chunk size of 64.00 KB for "/dev/vg/snapshot"
	lvcreate -- doing automatic backup of "vg"
	lvcreate -- logical volume "/dev/vg/snapshot" successfully created

So far, so good.
Now I want to mount that filesystem - after all, it's 
possible several GB of which only parts are used.

(statements mixed with output in /var/log/messages ">")

	 # mount /dev/vg/snapshot /mnt/tmp/
	mount: block device /dev/vg/snapshot is write-protected, mounting read-only
	mount: wrong fs type, bad option, bad superblock on /dev/vg/snapshot,
	       or too many mounted file systems
	> EXT2-fs: lvm(58,12): couldn't mount because of unsupported optional features (4).

	 # mount /dev/vg/snapshot /mnt/tmp/ -t ext3
	mount: block device /dev/vg/snapshot is write-protected, mounting read-only
	mount: wrong fs type, bad option, bad superblock on /dev/vg/snapshot,
	       or too many mounted file systems
	> EXT3-fs: INFO: recovery required on readonly filesystem.
	> EXT3-fs: write access unavailable, cannot proceed.

So looking in the kernel sources I find some mount-options ...

	 # mount /dev/vg/snapshot /mnt/tmp/ -t ext3 -o ro,errors=remount-ro
	mount: wrong fs type, bad option, bad superblock on /dev/vg/snapshot,
	       or too many mounted file systems
	> EXT3-fs: INFO: recovery required on readonly filesystem.
	> EXT3-fs: write access unavailable, cannot proceed.

	 # mount /dev/vg/snapshot /mnt/tmp/ -t ext3 -o ro,errors=remount-ro,noload
	mount: wrong fs type, bad option, bad superblock on /dev/vg/snapshot,
	       or too many mounted file systems
	> ext3: No journal on filesystem on lvm(58,12) 

If the snapshot wasn't ro I'd do a tune2fs or e2fsck or something.

So can somebody please drop me a hint?
Is that not possible?


Thanks in advance!!


Regards,

Phil

^ permalink raw reply	[flat|nested] 3+ messages in thread
* [linux-lvm] RE: ext3 on an logical volume - snapshot using how?
@ 2002-04-08  9:21 Rechenberg, Andrew
  0 siblings, 0 replies; 3+ messages in thread
From: Rechenberg, Andrew @ 2002-04-08  9:21 UTC (permalink / raw)
  To: Ph. Marek, ext3-users, linux-lvm

I believe you need the VFS-lock patch applied to your kernel to be able to do snapshots on a journaling filesystem (LVM/ext3 gurus correct me if I am incorrect).  Patches for various kernels are in PATCHES directory in the LVM source.  Read the README file in the PATCHES directory for more info.

I have applied this patch to clean 2.4.18 source, compiled and running on RedHat 7.2 (which doesn't include LVM in the distro), and have successfully created snapshots of logical volumes.

Hope this helps.

Regards,
Andy.


Andrew Rechenberg
Network Team, Sherman Financial Group


-----Original Message-----
From: Ph. Marek [mailto:marek@bmlv.gv.at]
Sent: Monday, April 08, 2002 9:53 AM
To: ext3-users@redhat.com; linux-lvm@sistina.com
Subject: ext3 on an logical volume - snapshot using how?


Hi everybody!

I'm using LVM and ext3 and am very satisfied with it.


But now I have the following problem:
I have a filesystem on a LV which is in use -
files are created, modified and so on.
To do a backup I'd like to create a snapshot
of this volume which gets backup'd  and then dropped.

	 # lvcreate -s -L 20M -n snapshot /dev/vg/data
	lvcreate -- WARNING: the snapshot will be automatically disabled once it gets full
	lvcreate -- INFO: using default snapshot chunk size of 64.00 KB for "/dev/vg/snapshot"
	lvcreate -- doing automatic backup of "vg"
	lvcreate -- logical volume "/dev/vg/snapshot" successfully created

So far, so good.
Now I want to mount that filesystem - after all, it's 
possible several GB of which only parts are used.

(statements mixed with output in /var/log/messages ">")

	 # mount /dev/vg/snapshot /mnt/tmp/
	mount: block device /dev/vg/snapshot is write-protected, mounting read-only
	mount: wrong fs type, bad option, bad superblock on /dev/vg/snapshot,
	       or too many mounted file systems
	> EXT2-fs: lvm(58,12): couldn't mount because of unsupported optional features (4).

	 # mount /dev/vg/snapshot /mnt/tmp/ -t ext3
	mount: block device /dev/vg/snapshot is write-protected, mounting read-only
	mount: wrong fs type, bad option, bad superblock on /dev/vg/snapshot,
	       or too many mounted file systems
	> EXT3-fs: INFO: recovery required on readonly filesystem.
	> EXT3-fs: write access unavailable, cannot proceed.

So looking in the kernel sources I find some mount-options ...

	 # mount /dev/vg/snapshot /mnt/tmp/ -t ext3 -o ro,errors=remount-ro
	mount: wrong fs type, bad option, bad superblock on /dev/vg/snapshot,
	       or too many mounted file systems
	> EXT3-fs: INFO: recovery required on readonly filesystem.
	> EXT3-fs: write access unavailable, cannot proceed.

	 # mount /dev/vg/snapshot /mnt/tmp/ -t ext3 -o ro,errors=remount-ro,noload
	mount: wrong fs type, bad option, bad superblock on /dev/vg/snapshot,
	       or too many mounted file systems
	> ext3: No journal on filesystem on lvm(58,12) 

If the snapshot wasn't ro I'd do a tune2fs or e2fsck or something.

So can somebody please drop me a hint?
Is that not possible?


Thanks in advance!!


Regards,

Phil



_______________________________________________
Ext3-users mailing list
Ext3-users@redhat.com
https://listman.redhat.com/mailman/listinfo/ext3-users

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

end of thread, other threads:[~2002-04-08 10:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-08  8:49 [linux-lvm] ext3 on an logical volume - snapshot using how? Ph. Marek
2002-04-08 10:02 ` [linux-lvm] " Stephen C. Tweedie
  -- strict thread matches above, loose matches on Subject: below --
2002-04-08  9:21 [linux-lvm] " Rechenberg, Andrew

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.