[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] error mounting snapshot of ext3 filesystem



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: signature.asc
Description: This is a digitally signed message part


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]