LinuxQuestions.org
Help answer threads with 0 replies.
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 01-30-2006, 09:19 PM   #1
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD
Posts: 2,032

Rep: Reputation: 309Reputation: 309Reputation: 309Reputation: 309
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?
Code:
# 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):
hal.dev[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, 10:14 PM   #2
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD
Posts: 2,032

Original Poster
Rep: Reputation: 309Reputation: 309Reputation: 309Reputation: 309
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!
 
  


Reply


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/Novell 2 02-04-2005 07:59 AM
LVM creation in post installation lewkh Linux - Hardware 0 11-17-2004 10:52 PM
Using Portage Snapshot Error ? krissly1 Linux - Software 1 12-24-2003 03:46 PM
xf86config creation error CraigA Linux - Software 1 08-14-2001 05:42 PM
boot disk creation error in rh 6.2 mikez Linux - Software 3 05-26-2001 04:46 PM


All times are GMT -5. The time now is 08:01 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration