LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-07-2012, 08:29 AM   #1
Biederony
LQ Newbie
 
Registered: Jun 2012
Posts: 4

Rep: Reputation: Disabled
Cannot mount LVM2 snapshot


Hi guys,

I´m not able to mount a lvm2 snapshot.
I searched for related topic in this forum, but I was not able to solve the problem yet :-(

The volume group is XenVG, there is no other volume group on the system (Ubuntu with kernel 3.0.0-13-generic-pae)

I create a snapshot from a running xen VM:

root@node-2:/dev/XenVG# lvcreate -L600M -s -n hvm-snapshot /dev/XenVG/hvm
Logical volume "hvm-snapshot" created

I know that I have to run kpartx on the snapshot image before I can mount it:

root@node-2:/dev/XenVG# kpartx -av /dev/XenVG/hvm-snapshot
add map XenVG-hvm--snapshot (252:16): 0 16773120 linear /dev/mapper/XenVG-hvm--snapshot 2048

This seems to work, but I still cannot mount the snapshot:

root@node-2:/dev/XenVG# mount /dev/XenVG/hvm-snapshot /mnt/foo
mount: /dev/mapper/XenVG-hvm--snapshot is already mounted or /mnt/foo is already in use

/mnt/foo is definitely not mounted...
It seems that the snapshot is still in use, but I have no possibility to stop it somehow:

root@node-2:/dev/XenVG# lvscan
ACTIVE Original '/dev/XenVG/hvm' [8,00 GiB] inherit
ACTIVE Snapshot '/dev/XenVG/hvm-snapshot' [600,00 MiB] inherit

how can I deactivate or suspend it and then mount it?

I cannot even remove it :-(
root@node-2:/dev/XenVG# lvremove /dev/XenVG/hvm-snapshot
Can't remove open logical volume "hvm-snapshot"

I have no control over the snapshot..

Can anyone give me a hint?

Thank you!

Last edited by Biederony; 06-08-2012 at 04:28 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mount a LVM2 volume in a foreign machine apueyo Linux - Server 1 09-28-2009 09:44 AM
Unable to mount LVM Snapshot andrewboring Linux - Server 2 09-11-2009 06:47 PM
LVM snapshot mount not working syacko Linux - Server 9 02-05-2009 01:16 AM
Slackware 12 won't mount lvm2 vols if shutdown with a snapshot vol. akschu Slackware 3 01-03-2008 12:02 AM
After reboot LVM2 partitions will not mount sendas4 Linux - General 0 10-12-2004 04:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration