All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] error mounting snapshot of ext3 filesystem
@ 2002-01-22 14:00 Aran Cox
  2002-01-23  8:46 ` Pierrick PONS
  0 siblings, 1 reply; 7+ messages in thread
From: Aran Cox @ 2002-01-22 14:00 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 2891 bytes --]

Ok, I know that several discussions regarding snapshots have occurred in
the last month or two and I've tried to read every post from those
threads.  Nothing I read has helped me solve my problem.

Essentially, I can create a snapshot LV but I cannot mount it.

I have compiled 2.4.17 with the lvm101-rc4 patch created from the source
archive.  (I specified -with-kernel_dir appropriately.)  I tried to
apply to apply the VFS-lock patch but the kernel would not compile after
having done so.  (I wasn't sure if I needed this patch or not, but I
tried applying it anyway.)  It fails like so:


make[2]: Entering directory `/home/spin/src/linux/fs'
gcc -D__KERNEL__ -I/home/spin/src/linux/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
-march=i686    -c -o super.o super.c
super.c: In function `unlockfs':
super.c:403: `mount_sem' undeclared (first use in this function)
super.c:403: (Each undeclared identifier is reported only once
super.c:403: for each function it appears in.)
make[2]: *** [super.o] Error 1


Anyway, continuing without VFS lock:
I have three disks, an IDE disk /dev/hda, and two small SCSI disk,
/dev/sda and /dev/sdb and one VG with /dev/hda4, and the entirety of
both SCSI disks in it which is called main. 

/boot 	/dev/hda3
/ 	/dev/main/root  (entirely on hda4)
/var	/dev/main/var	(entirely on hda4)
/tmp	/dev/main/scratch (on both sda and sdb)
/home	/dev/main/home  (spread out across all three PVs)

There are some PVs left on sdb, otherwise it's all used.
All of the filesystems are ext3, except /boot which is ext2.

This is basically the sequence of events:

[root@benway /]# lvcreate -s -n snaptest -L 200m /dev/main/root 
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/main/snaptest"
lvcreate -- doing automatic backup of "main"
lvcreate -- logical volume "/dev/main/snaptest" successfully created

[root@benway /]# mount /dev/main/snaptest /mnt
mount: block device /dev/main/snaptest is write-protected, mounting
read-only
mount: wrong fs type, bad option, bad superblock on /dev/main/snaptest,
       or too many mounted file systems

Trying to mount it as ext2 doesn't change anything.  No matter which LV
I create the snapshot of, I cannot mount it and it fails with the same
error.  

Even if I create a small LV with ext3 filesystem entirely on sdb, and
then create a snapshot of it, it still won't mount.  I can get this
small-all-on-one LV/FS scenario to work if I create an ext2 fs on the
LV.  

I know this is nearly exactly like the problems discussed in previous
threads but I haven't seen a solution yet that seems like it applied to
my situation.  

Thanks,
Aran
  



[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 232 bytes --]

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

* Re: [linux-lvm] error mounting snapshot of ext3 filesystem
  2002-01-22 14:00 [linux-lvm] error mounting snapshot of ext3 filesystem Aran Cox
@ 2002-01-23  8:46 ` Pierrick PONS
  2002-01-23  9:08   ` Patrick Caulfield
  2002-01-23 10:31   ` Aran Cox
  0 siblings, 2 replies; 7+ messages in thread
From: Pierrick PONS @ 2002-01-23  8:46 UTC (permalink / raw)
  To: linux-lvm

> Ok, I know that several discussions regarding snapshots have occurred in
> the last month or two and I've tried to read every post from those
> threads.  Nothing I read has helped me solve my problem.
> 
> Essentially, I can create a snapshot LV but I cannot mount it.
> 
> I have compiled 2.4.17 with the lvm101-rc4 patch created from the source
> archive.  (I specified -with-kernel_dir appropriately.)  I tried to
> apply to apply the VFS-lock patch but the kernel would not compile after
> having done so.  (I wasn't sure if I needed this patch or not, but I
> tried applying it anyway.)  It fails like so:
> 
> 
> make[2]: Entering directory `/home/spin/src/linux/fs'
> gcc -D__KERNEL__ -I/home/spin/src/linux/include -Wall
> -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
> -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
> -march=i686    -c -o super.o super.c
> super.c: In function `unlockfs':
> super.c:403: `mount_sem' undeclared (first use in this function)
> super.c:403: (Each undeclared identifier is reported only once
> super.c:403: for each function it appears in.)
> make[2]: *** [super.o] Error 1
> 
> 
> Anyway, continuing without VFS lock:
> I have three disks, an IDE disk /dev/hda, and two small SCSI disk,
> /dev/sda and /dev/sdb and one VG with /dev/hda4, and the entirety of
> both SCSI disks in it which is called main. 
> 
> /boot 	/dev/hda3
> / 	/dev/main/root  (entirely on hda4)
> /var	/dev/main/var	(entirely on hda4)
> /tmp	/dev/main/scratch (on both sda and sdb)
> /home	/dev/main/home  (spread out across all three PVs)
> 
> There are some PVs left on sdb, otherwise it's all used.
> All of the filesystems are ext3, except /boot which is ext2.
> 
> This is basically the sequence of events:
> 
> [root@benway /]# lvcreate -s -n snaptest -L 200m /dev/main/root 
> 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/main/snaptest"
> lvcreate -- doing automatic backup of "main"
> lvcreate -- logical volume "/dev/main/snaptest" successfully created
> 
> [root@benway /]# mount /dev/main/snaptest /mnt
> mount: block device /dev/main/snaptest is write-protected, mounting
> read-only
> mount: wrong fs type, bad option, bad superblock on /dev/main/snaptest,
>        or too many mounted file systems
> 
> Trying to mount it as ext2 doesn't change anything.  No matter which LV
> I create the snapshot of, I cannot mount it and it fails with the same
> error.  
> 
> Even if I create a small LV with ext3 filesystem entirely on sdb, and
> then create a snapshot of it, it still won't mount.  I can get this
> small-all-on-one LV/FS scenario to work if I create an ext2 fs on the
> LV.  
> 
> I know this is nearly exactly like the problems discussed in previous
> threads but I haven't seen a solution yet that seems like it applied to
> my situation.  
> 
> Thanks,
> Aran
>   
> 
> 

I do have the same problem :

mount /dev/testlvm/snap /mnt/snap 
mount: block device /dev/testlvm/snap is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/testlvm/snap,
       or too many mounted file systems

I tried with -text2 or -text3 option and it's the same. 
What is the type wanted  ?

Is there a more documentated snapshot section where to found some more 
explanation ?

Thanks in advance.


Pierrick

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

* Re: [linux-lvm] error mounting snapshot of ext3 filesystem
  2002-01-23  8:46 ` Pierrick PONS
@ 2002-01-23  9:08   ` Patrick Caulfield
  2002-01-23 10:31   ` Aran Cox
  1 sibling, 0 replies; 7+ messages in thread
From: Patrick Caulfield @ 2002-01-23  9:08 UTC (permalink / raw)
  To: linux-lvm

On Wed, Jan 23, 2002 at 03:45:41PM +0100, Pierrick PONS wrote:
> 
> I do have the same problem :
> 
> mount /dev/testlvm/snap /mnt/snap 
> mount: block device /dev/testlvm/snap is write-protected, mounting read-only
> mount: wrong fs type, bad option, bad superblock on /dev/testlvm/snap,
>        or too many mounted file systems
> 
> I tried with -text2 or -text3 option and it's the same. 
> What is the type wanted  ?
> 
> Is there a more documentated snapshot section where to found some more 
> explanation ?

You do need the VFS lock patch if you want to mount snapshots of reiserfs or
ext3 filesystems. The 2.4.11 patch inthe LVM distribution works with 2.4.17.

patrick

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

* Re: [linux-lvm] error mounting snapshot of ext3 filesystem
  2002-01-23  8:46 ` Pierrick PONS
  2002-01-23  9:08   ` Patrick Caulfield
@ 2002-01-23 10:31   ` Aran Cox
  2002-01-23 12:04     ` Wiktor Wodecki
  1 sibling, 1 reply; 7+ messages in thread
From: Aran Cox @ 2002-01-23 10:31 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 4428 bytes --]

Somehow I missed the final release of 1.0.1... I was trying to use the
patch from 101rc4, for kernel 2.4.9.  I've been using the 101rc4 and
earlier versions for a while now, and frankly the LVM system is superb.
I have one server with LVM 0.9.1_beta7 which has been running for 210
days now.  Thanks for the work on this... now if only the installers for
popular distros would allow you to set up LVM at install time... 

Thanks,
Aran

On Wed, 2002-01-23 at 08:45, Pierrick PONS wrote:
> > Ok, I know that several discussions regarding snapshots have occurred in
> > the last month or two and I've tried to read every post from those
> > threads.  Nothing I read has helped me solve my problem.
> > 
> > Essentially, I can create a snapshot LV but I cannot mount it.
> > 
> > I have compiled 2.4.17 with the lvm101-rc4 patch created from the source
> > archive.  (I specified -with-kernel_dir appropriately.)  I tried to
> > apply to apply the VFS-lock patch but the kernel would not compile after
> > having done so.  (I wasn't sure if I needed this patch or not, but I
> > tried applying it anyway.)  It fails like so:
> > 
> > 
> > make[2]: Entering directory `/home/spin/src/linux/fs'
> > gcc -D__KERNEL__ -I/home/spin/src/linux/include -Wall
> > -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
> > -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
> > -march=i686    -c -o super.o super.c
> > super.c: In function `unlockfs':
> > super.c:403: `mount_sem' undeclared (first use in this function)
> > super.c:403: (Each undeclared identifier is reported only once
> > super.c:403: for each function it appears in.)
> > make[2]: *** [super.o] Error 1
> > 
> > 
> > Anyway, continuing without VFS lock:
> > I have three disks, an IDE disk /dev/hda, and two small SCSI disk,
> > /dev/sda and /dev/sdb and one VG with /dev/hda4, and the entirety of
> > both SCSI disks in it which is called main. 
> > 
> > /boot 	/dev/hda3
> > / 	/dev/main/root  (entirely on hda4)
> > /var	/dev/main/var	(entirely on hda4)
> > /tmp	/dev/main/scratch (on both sda and sdb)
> > /home	/dev/main/home  (spread out across all three PVs)
> > 
> > There are some PVs left on sdb, otherwise it's all used.
> > All of the filesystems are ext3, except /boot which is ext2.
> > 
> > This is basically the sequence of events:
> > 
> > [root@benway /]# lvcreate -s -n snaptest -L 200m /dev/main/root 
> > 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/main/snaptest"
> > lvcreate -- doing automatic backup of "main"
> > lvcreate -- logical volume "/dev/main/snaptest" successfully created
> > 
> > [root@benway /]# mount /dev/main/snaptest /mnt
> > mount: block device /dev/main/snaptest is write-protected, mounting
> > read-only
> > mount: wrong fs type, bad option, bad superblock on /dev/main/snaptest,
> >        or too many mounted file systems
> > 
> > Trying to mount it as ext2 doesn't change anything.  No matter which LV
> > I create the snapshot of, I cannot mount it and it fails with the same
> > error.  
> > 
> > Even if I create a small LV with ext3 filesystem entirely on sdb, and
> > then create a snapshot of it, it still won't mount.  I can get this
> > small-all-on-one LV/FS scenario to work if I create an ext2 fs on the
> > LV.  
> > 
> > I know this is nearly exactly like the problems discussed in previous
> > threads but I haven't seen a solution yet that seems like it applied to
> > my situation.  
> > 
> > Thanks,
> > Aran
> >   
> > 
> > 
> 
> I do have the same problem :
> 
> mount /dev/testlvm/snap /mnt/snap 
> mount: block device /dev/testlvm/snap is write-protected, mounting read-only
> mount: wrong fs type, bad option, bad superblock on /dev/testlvm/snap,
>        or too many mounted file systems
> 
> I tried with -text2 or -text3 option and it's the same. 
> What is the type wanted  ?
> 
> Is there a more documentated snapshot section where to found some more 
> explanation ?
> 
> Thanks in advance.
> 
> 
> Pierrick
> 
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 232 bytes --]

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

* Re: [linux-lvm] error mounting snapshot of ext3 filesystem
  2002-01-23 10:31   ` Aran Cox
@ 2002-01-23 12:04     ` Wiktor Wodecki
  2002-01-23 12:16       ` Heinz J . Mauelshagen
  2002-01-23 13:33       ` kyi
  0 siblings, 2 replies; 7+ messages in thread
From: Wiktor Wodecki @ 2002-01-23 12:04 UTC (permalink / raw)
  To: linux-lvm

On Wed, Jan 23, 2002 at 10:30:38AM -0600, Aran Cox wrote:
> days now.  Thanks for the work on this... now if only the installers for
> popular distros would allow you to set up LVM at install time... 

I'm not sure, but AFAIK suse professional allows that!

-- 
Regards,

Wiktor Wodecki      |    http://johoho.eggheads.org
wodecki@gmx.de      |    IRC: Johoho@IrcNET

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

* Re: [linux-lvm] error mounting snapshot of ext3 filesystem
  2002-01-23 12:04     ` Wiktor Wodecki
@ 2002-01-23 12:16       ` Heinz J . Mauelshagen
  2002-01-23 13:33       ` kyi
  1 sibling, 0 replies; 7+ messages in thread
From: Heinz J . Mauelshagen @ 2002-01-23 12:16 UTC (permalink / raw)
  To: linux-lvm

On Wed, Jan 23, 2002 at 06:30:48PM +0100, Wiktor Wodecki wrote:
> On Wed, Jan 23, 2002 at 10:30:38AM -0600, Aran Cox wrote:
> > days now.  Thanks for the work on this... now if only the installers for
> > popular distros would allow you to set up LVM at install time... 
> 
> I'm not sure, but AFAIK suse professional allows that!

That's correct.

> 
> -- 
> Regards,
> 
> Wiktor Wodecki      |    http://johoho.eggheads.org
> wodecki@gmx.de      |    IRC: Johoho@IrcNET
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

-- 

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] 7+ messages in thread

* Re: [linux-lvm] error mounting snapshot of ext3 filesystem
  2002-01-23 12:04     ` Wiktor Wodecki
  2002-01-23 12:16       ` Heinz J . Mauelshagen
@ 2002-01-23 13:33       ` kyi
  1 sibling, 0 replies; 7+ messages in thread
From: kyi @ 2002-01-23 13:33 UTC (permalink / raw)
  To: linux-lvm

Mandrake-8.1 does as well.

-Jayson Garrell

----- Original Message -----
From: "Wiktor Wodecki" <wodecki@gmx.de>
To: <linux-lvm@sistina.com>
Sent: Wednesday, January 23, 2002 9:30 AM
Subject: Re: [linux-lvm] error mounting snapshot of ext3 filesystem


> On Wed, Jan 23, 2002 at 10:30:38AM -0600, Aran Cox wrote:
> > days now.  Thanks for the work on this... now if only the installers for
> > popular distros would allow you to set up LVM at install time...
>
> I'm not sure, but AFAIK suse professional allows that!
>
> --
> Regards,
>
> Wiktor Wodecki      |    http://johoho.eggheads.org
> wodecki@gmx.de      |    IRC: Johoho@IrcNET
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

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

end of thread, other threads:[~2002-01-23 13:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-22 14:00 [linux-lvm] error mounting snapshot of ext3 filesystem Aran Cox
2002-01-23  8:46 ` Pierrick PONS
2002-01-23  9:08   ` Patrick Caulfield
2002-01-23 10:31   ` Aran Cox
2002-01-23 12:04     ` Wiktor Wodecki
2002-01-23 12:16       ` Heinz J . Mauelshagen
2002-01-23 13:33       ` kyi

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.