linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] Removing snapshot often fails
@ 2012-04-03 13:45 Danilo Godec
  2012-04-03 14:12 ` Peter Rajnoha
  0 siblings, 1 reply; 4+ messages in thread
From: Danilo Godec @ 2012-04-03 13:45 UTC (permalink / raw)
  To: LVM general discussion and development

Hello,

I have an OpenSuSE 11.4 based Xen server. I use LVM as the 'store' for 
VM 's and I'm trying to make use of snapshots for backup.

However I discovered that often removing a snapshot fails - 
unfortunately it's quite unpredictable, as sometimes it works on next 
try but sometimes it fails 20 times in a row - making it very unpleasant 
for scripting...

Even when it succeeds it give's me a message 'give up on open_count' - 
and I couldn't quite find what it means.

Here's what I've been trying by hand:

> # lvcreate -s /dev/vm_store/test_vm1 -n "backup_test_vm1" -l 100%ORIGIN
>   Logical volume "backup_test_vm1" created
> # lvremove -f /dev/vm_store/backup_test_vm1
>   give up on open_count
>   Logical volume "backup_test_vm1" successfully removed
> # lvcreate -s /dev/vm_store/test_vm1 -n "backup_test_vm1" -l 100%ORIGIN
>   Logical volume "backup_test_vm1" created
> # lvremove -f /dev/vm_store/backup_test_vm1
>   give up on open_count
>   Logical volume "backup_test_vm1" successfully removed
> # lvcreate -s /dev/vm_store/test_vm1 -n "backup_test_vm1" -l 100%ORIGIN
>   Logical volume "backup_test_vm1" created
> # lvremove -f /dev/vm_store/backup_test_vm1
>   Can't remove open logical volume "backup_test_vm1"

Am I doing something wrong?

Is this 'expected' and should I just keep re-trying in a loop until it 
succeeds?

  Thanks, Danilo




-- 
Danilo Godec, sistemska podpora / system administration

Predlog! Obiscite prenovljeno spletno stran www.agenda.si

ODPRTA KODA IN LINUX
STORITVE : POSLOVNE RESITVE : UPRAVLJANJE IT : INFRASTRUKTURA IT : IZOBRAZEVANJE : PROGRAMSKA OPREMA

Visit our updated web page at www.agenda.si

OPEN SOURCE AND LINUX
SERVICES : BUSINESS SOLUTIONS : IT MANAGEMENT : IT INFRASTRUCTURE : TRAINING : SOFTWARE

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-04-04  7:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-03 13:45 [linux-lvm] Removing snapshot often fails Danilo Godec
2012-04-03 14:12 ` Peter Rajnoha
2012-04-03 14:34   ` Danilo Godec
2012-04-04  7:48     ` Peter Rajnoha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).