error mounting LVM snap volume

From: Dave (dspear99ca_at_yahoo.delete.com)
Date: 02/25/04


Date: Wed, 25 Feb 2004 17:13:15 GMT

I am using LVM 1.0.3 on RH 9, kernel 2.4.20-8. I'd like to set up snapshots
for nightly backups but am having problems. I've got lots of space in vg
Volume00, so I do:

# lvcreate -s -L 100m -n SnapVol /dev/Volume00/RootVol
lvcreate -- WARNING: the snapshot will be automatically disabled once it
gets full
lvcreate -- INFO: using default snapshot chunk size of 64 KB for
"/dev/Volume00/SnapVol"
lvcreate -- doing automatic backup of "Volume00"
lvcreate -- logical volume "/dev/Volume00/SnapVol" successfully created

# lvscan
lvscan -- ACTIVE Original "/dev/Volume00/RootVol" [10 GB]
lvscan -- ACTIVE "/dev/Volume00/SwapVol" [1 GB]
lvscan -- ACTIVE Snapshot "/dev/Volume00/SnapVol" [98.44 MB] of
/dev/Volume00/RootVol
lvscan -- 3 logical volumes with 11.10 GB total in 1 volume group
lvscan -- 3 active logical volumes

# lvdisplay /dev/Volume00/SnapVol
--- Logical volume ---
LV Name /dev/Volume00/SnapVol
VG Name Volume00
LV Write Access read only
LV snapshot status active destination for /dev/Volume00/RootVol
LV Status available
LV # 3
# open 0
LV Size 10 GB
Current LE 2560
Allocated LE 2560
snapshot chunk size 64 KB
Allocated to snapshot 2.86% [2.81 MB/98.44 MB]
Allocated to COW-table 1.56 MB
Allocation next free
Read ahead sectors 1024
Block device 58:2

So far, so good. BUT, when I do:

# mount /dev/Volume00/SnapVol /tmp/snapvol
mount: block device /dev/Volume00/SnapVol is write-protected, mounting
read-only
mount: wrong fs type, bad option, bad superblock on /dev/Volume00/SnapVol,
       or too many mounted file systems

The only potential problem above that I can safely eliminate is "too many
mounted filesystems"... I have only one filesystem mounted. The filesystem
is read-only so if it's a bad superblock, well, game over. BTW I repeated
the create/mount/remove cycle a whole bunch of times with identical result.
I tried mounting with the "-t ext2" flag set, no change.

Ideas? I don't see anything in google...

Dave



Relevant Pages

  • LVM snapshot creation hang
    ... I started my experiments with loopback device. ... lvcreate. ... snapshot creation hangs the process: ... For XFS, it's in D state but has no WCHAN. ...
    (Linux-Kernel)
  • [Woody] Mounting LVM-snapshots with ext3 + ACL + user_xattr-Patch
    ... But I have some troubles mounting a snapshot of a live lvm- ... I tried to specify a superblock using the mount-options ... An additional "-t ext3" failed also. ... with ACLs are highly welcome. ...
    (Debian-User)
  • Re: Restore UFS snapshot
    ... the snapshot system is that a snapshot ... creates it's own file system by remembering, for example, what the ... superblock was at the time of the snapshot. ... It's not just a question of references. ...
    (freebsd-questions)
  • Re: sget() misuse in nilfs
    ... The nilfs_get_sballocates a new super_block struct or assigns ... That's the first kind of sb; no MS_RDONLY, no SNAPSHOT, snapshot_cno is 0. ... ro-mount is not so because the ro-mount cannot follow changes ... On the same superblock, that is... ...
    (Linux-Kernel)
  • LVM snapshot error
    ... Can anyone help me solve the follwoing error when trying to create an ... LVM snapshot in Debian Sarge. ... lvcreate -- WARNING: the snapshot will be automatically disabled once ...
    (comp.os.linux.misc)