Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 01-30-2006, 08:19 PM   #1
Senior Member
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian
Posts: 2,192

Rep: Reputation: 339Reputation: 339Reputation: 339Reputation: 339
LVM snapshot creation error

I'm seeing the error below when creating an LVM2 snapshot. Has anyone run into something similar and have a clue what's going on?
# lvcreate --snapshot --size 1Gb --name sss /dev/vg0/debian_home
LV vg0/sss in use: not removing
Couldn't deactivate new snapshot.
I initially created the snapshot then immediately removed it and tried to recreate it again. I can't remember if I saw the error the FIRST time I ever created this snapshot. But I see it every time I try lvcreate now. I ran "modprobe dm-snapshot" before every trying to create the first snapshot. I did this because I had found earlier in the day, on a different Debian Sarge box, that the modprobe was required before snapshots would work. The Sarge box did not experience the error that I'm seeing with Sid.

After the above lvcreate, lvdisplay lists the /dev/vg0/sss LV, but with a line "#open 0". All other LV's have "#open 1"

/var/log/syslog has this error, triggered by the lvcreate (where xxxx are digits):[xxxx]: DEVNAME is not set

lvremove /dev/vg0/sss appears to work without error. After running lvremove, lvdisplay no longer shows the /dev/vg0/sss LV.

Debian SID
kernel 2.6.14-1-686
lvm2 2.01.14-3
lvm-common 1.5.20
libdevmapper1.01 2:1.01.05-1
Old 01-30-2006, 09:14 PM   #2
Senior Member
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian
Posts: 2,192

Original Poster
Rep: Reputation: 339Reputation: 339Reputation: 339Reputation: 339
Is this possibly a timing issue ???

Some additional info on my problem:

I walked away for 30 minutes, came back and tried the lvcreate again. IT WORKED!

So I ran the lvremove, then tried the lvcreate immediately after that. IT FAILED AGAIN.

So this appears to be some kind of timing thing. If I wait long enough after the lvremove before re-trying lvcreate, things work. It could be my previous report about not seeing problems in Sarge might be wrong (I'll have to check tomorrow). I only did lvcreate/lvremove once on Sarge and it appears to be the second and subsequent lvcreates that generate the error on Sid (until whatever times out, times out, and things get reset!)

Now I'm really confused!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Mad error (services) go LVM JZL240I-U SUSE / openSUSE 2 02-04-2005 06:59 AM
LVM creation in post installation lewkh Linux - Hardware 0 11-17-2004 09:52 PM
Using Portage Snapshot Error ? krissly1 Linux - Software 1 12-24-2003 02:46 PM
xf86config creation error CraigA Linux - Software 1 08-14-2001 04:42 PM
boot disk creation error in rh 6.2 mikez Linux - Software 3 05-26-2001 03:46 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:36 AM.

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