From: Danilo Godec <danilo.godec@agenda.si>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: [linux-lvm] Removing snapshot often fails
Date: Tue, 03 Apr 2012 15:45:27 +0200 [thread overview]
Message-ID: <4F7AFEF7.2060503@agenda.si> (raw)
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
next reply other threads:[~2012-04-03 13:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-03 13:45 Danilo Godec [this message]
2012-04-03 14:12 ` [linux-lvm] Removing snapshot often fails Peter Rajnoha
2012-04-03 14:34 ` Danilo Godec
2012-04-04 7:48 ` Peter Rajnoha
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F7AFEF7.2060503@agenda.si \
--to=danilo.godec@agenda.si \
--cc=linux-lvm@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.