Skip to contentSkip to conversation

Problem mounting snapshot with reiserfs

linux-lvm Aman Shahi 2 participants 2 messages Aug 27, 2001 1 message not in the archive

lore
Share & tools
lore

Aman Shahi

author
#1 lore raw
In reply to a message not in the archive

Hi,

I am having problem in mounting snapshot with reiserfs.

I am using linux kernel 2.4.8 and lvm 1.0. Here is the sequence of steps I did. Same steps with ext2 I did not have nay problem. But with reiserfs I am not able to do the mounting.

using fdisk I change the type of /dev/sdb2 to "8e". capacity of /dev/sdb2 is around 30G

# pvcreate  /dev/sdb2
# vgcreate  vg1  /dev/sdb2
# lvcreate -L10G  -n  lv1  vg1
# mkfs -t reiserfs  /dev/vg1/lv1
# mount -t reiserfs  /dev/vg1/lv1  /lv1

I copy some data(60M) to /lv1

# lvcreate -L2G  -s  -n back1  /dev/vg1/lv1
# mount -t reiserfs  /dev/vg1/back1  /back1
mount: block device /dev/vg1/back1 is write-protected,
mounting read-only
reiserfs: checking transaction log (device 3a:01) ...
clm-2076: device is readonly, unable to replay log
Replay Failure, unable to mount
reiserfs_read_super: unable to initialize journal
space
mount: wrong fs type, bad option, bad superblock on
/dev/vg1/back1,
       or too many mounted file systems
# mount  /dev/vg1/back1  /back1
mount: block device /dev/vg1/back1 is write-protected,
mounting read-only
FAT: bogus logical sector size 0
VFS: Can't find a valid FAT filesystem on dev 3a:01.
mount: you must specify the filesystem type

I had read a similar problem in the mailing list. But I
think the reiserfs and vfs patches are not required in linux kernel 2.4.8 and lvm 1.0. Or am I missing something or doing something wrong.

Aman Shahi.

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

#2 lore raw
Quoted 7 lines · Aman Shahi

I am having problem in mounting snapshot with reiserfs.

I am using linux kernel 2.4.8 and lvm 1.0. Here is the sequence of steps I did. Same steps with ext2 I did not have nay problem. But with reiserfs I am not able to do the mounting.

You need to use the linux-2.4.x-VFS-lock.patch against the kernel to enable snapshotting to work with LVM and reiserfs.

Signature · 14 lines
AJ Lewis
Sistina Software Inc.                  Voice:  612-638-0500
1313 5th St SE, Suite 111              Fax:    612-638-0500
Minneapolis, MN 55414                  E-Mail: [email protected]
http://www.sistina.com

Current GPG fingerprint = 3B5F 6011 5216 76A5 2F6B  52A0 941E 1261 0029 2648
Get my key at: http://www.sistina.com/~lewis/gpgkey
 (Unfortunately, the PKS-type keyservers do not work with multiple sub-keys)

-----Begin Obligatory Humorous Quote----------------------------------------
Quitters never win, and winners never quit,
but those who never quit AND never win are idiots.
-----End Obligatory Humorous Quote------------------------------------------