Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LVM2 seems to work but I cannot mouont the snapshots
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
paddlaren
Tux's lil' helper
Tux's lil' helper


Joined: 23 Nov 2005
Posts: 126
Location: Hörby, Sweden

PostPosted: Sun Sep 30, 2007 6:51 am    Post subject: LVM2 seems to work but I cannot mouont the snapshots Reply with quote

Hi!

I use lvm2 for my /home since I like to use the snapshots for backing up the entire system. This have been working quite a while but now it doesn't.

I can create the volume and snapshot with no messages I relate to errors but I cannot mount the snapshot.
When I create the snapshot I get:

Code:

root:~/lvmsetup#lvcreate -L17G -s -n home_backup /dev/lvm_home/home
  LV lvm_home/home_backup in use: not deactivating
  Couldn't deactivate new snapshot.


When I tries to mount:
Code:

root:~/lvmsetup#mount /dev/lvm_home/home_backup /mnt/mnt/
mount: you must specify the filesystem type

and when I mount with -t reiserfs I get "error in superblock" or simlar and a message in dmesg:
Code:

SQUASHFS error: Can't find a SQUASHFS superblock on dm-1


Code:

root:~/etc#uname -a
Linux xxxxx 2.6.22-gentoo-r5 #6 SMP PREEMPT Thu Sep 27 19:00:22 CEST 2007 i686 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ AuthenticAMD GNU/Linux


Please help, what can gone wrong?

Regards,
Erik
Back to top
View user's profile Send private message
geeojr
n00b
n00b


Joined: 11 Feb 2003
Posts: 15
Location: Missouri, USA

PostPosted: Fri Oct 05, 2007 2:08 am    Post subject: Dirty Work Around Reply with quote

Given the relative lack of solutions to this topic (here and elsewhere), it seems appropriate to share what little I've come up with. Knowing little more than there being a race condition of "some sort" between LVM and udev, I came up with this quick (and dirty) workaround which I believe just takes udev out of the mix.

In /etc/udev/rules.d/64-device-mapper.rules

Change the line:
Code:
KERNEL!="dm-*", GOTO="device_mapper_end"


To Read:
Code:
KERNEL=="dm-*", GOTO="device_mapper_end"
KERNEL!="dm-*", GOTO="device_mapper_end"


I know this generally defeats all purpose; but this cured my snapshot delima - while I've noticed no other consequences with this change, use at your own risk.

Good Luck!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum