All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] still problems with removing "non existant" dead snapshots :/
@ 2002-10-24  4:53 Jon Bendtsen
  2002-10-24  6:28 ` Heinz J . Mauelshagen
  0 siblings, 1 reply; 12+ messages in thread
From: Jon Bendtsen @ 2002-10-24  4:53 UTC (permalink / raw)
  To: lvm mailinglist

I take a snapshot every hour, every 8 hour, eveyr day, and every week.
I've got 4 "equal" scripts to do the work, the only difference is the
snapshot name and the mountpoint.

However, when i try to remove the old and unmounted snapshot, i
sometimes
get an error message. Like one in every 10 times.

I get messages like:
--------------------
lvremove -- can't remove open snapshot logical volume
"/dev/optVG/1hour_snapshot_opt_1035237601"

And:
----
lvremove -- ERROR "lv_release(): LV number" releasing logical volume
"/dev/optVG/1hour_snapshot_opt_1035324001"


If i use lvdisplay on them, i get a message like
------------------------------------------------
ve:/dev/optVG# lvdisplay /dev/optVG/1hour_snapshot_opt_1035*
lvdisplay -- logical volume "/dev/optVG/1hour_snapshot_opt_1035324001"
doesn't exist

lvdisplay -- logical volume "/dev/optVG/1hour_snapshot_opt_1035345601"
doesn't exist

lvdisplay -- logical volume "/dev/optVG/1hour_snapshot_opt_1035352801"
doesn't exist

lvdisplay -- logical volume "/dev/optVG/1hour_snapshot_opt_1035381601"
doesn't exist

lvdisplay -- logical volume "/dev/optVG/1hour_snapshot_opt_1035410401"
doesn't exist

lvdisplay -- logical volume "/dev/optVG/1hour_snapshot_opt_1035432001"
doesn't exist

lvdisplay -- logical volume "/dev/optVG/1hour_snapshot_opt_1035439201"
doesn't exist



The problem is that these snapshots take up space. Most take 1GB, since
thats what they
are created with, but some take more, since i run some scripts to ensure
that they dont
reach 100% so they are always readable.
I can remove the "files" from /dev/optVG/, but the space is not released
until i
restart the VG. Even restarting the VG doesnt remove the "dead"
snapshots (the files
in /dev/optVG/)



JonB

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

* Re: [linux-lvm] still problems with removing "non existant" dead snapshots :/
  2002-10-24  4:53 [linux-lvm] still problems with removing "non existant" dead snapshots :/ Jon Bendtsen
@ 2002-10-24  6:28 ` Heinz J . Mauelshagen
  2002-10-24  6:39   ` Jon Bendtsen
  2002-10-25  7:07   ` Jon Bendtsen
  0 siblings, 2 replies; 12+ messages in thread
From: Heinz J . Mauelshagen @ 2002-10-24  6:28 UTC (permalink / raw)
  To: linux-lvm

Jon,

which LVM version are you using?
If the driver it is older than 1.0.5 it can be a lockking bug fixed in
the recent LVM1 version.

Regards,
Heinz    -- The LVM Guy --


On Thu, Oct 24, 2002 at 11:53:01AM +0200, Jon Bendtsen wrote:
> I take a snapshot every hour, every 8 hour, eveyr day, and every week.
> I've got 4 "equal" scripts to do the work, the only difference is the
> snapshot name and the mountpoint.
> 
> However, when i try to remove the old and unmounted snapshot, i
> sometimes
> get an error message. Like one in every 10 times.
> 
> I get messages like:
> --------------------
> lvremove -- can't remove open snapshot logical volume
> "/dev/optVG/1hour_snapshot_opt_1035237601"
> 
> And:
> ----
> lvremove -- ERROR "lv_release(): LV number" releasing logical volume
> "/dev/optVG/1hour_snapshot_opt_1035324001"
> 
> 
> If i use lvdisplay on them, i get a message like
> ------------------------------------------------
> ve:/dev/optVG# lvdisplay /dev/optVG/1hour_snapshot_opt_1035*
> lvdisplay -- logical volume "/dev/optVG/1hour_snapshot_opt_1035324001"
> doesn't exist
> 
> lvdisplay -- logical volume "/dev/optVG/1hour_snapshot_opt_1035345601"
> doesn't exist
> 
> lvdisplay -- logical volume "/dev/optVG/1hour_snapshot_opt_1035352801"
> doesn't exist
> 
> lvdisplay -- logical volume "/dev/optVG/1hour_snapshot_opt_1035381601"
> doesn't exist
> 
> lvdisplay -- logical volume "/dev/optVG/1hour_snapshot_opt_1035410401"
> doesn't exist
> 
> lvdisplay -- logical volume "/dev/optVG/1hour_snapshot_opt_1035432001"
> doesn't exist
> 
> lvdisplay -- logical volume "/dev/optVG/1hour_snapshot_opt_1035439201"
> doesn't exist
> 
> 
> 
> The problem is that these snapshots take up space. Most take 1GB, since
> thats what they
> are created with, but some take more, since i run some scripts to ensure
> that they dont
> reach 100% so they are always readable.
> I can remove the "files" from /dev/optVG/, but the space is not released
> until i
> restart the VG. Even restarting the VG doesnt remove the "dead"
> snapshots (the files
> in /dev/optVG/)
> 
> 
> 
> JonB
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
Mauelshagen@Sistina.com                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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

* Re: [linux-lvm] still problems with removing "non existant" dead  snapshots :/
  2002-10-24  6:28 ` Heinz J . Mauelshagen
@ 2002-10-24  6:39   ` Jon Bendtsen
  2002-10-25  7:36     ` Heinz J . Mauelshagen
  2002-10-25  7:07   ` Jon Bendtsen
  1 sibling, 1 reply; 12+ messages in thread
From: Jon Bendtsen @ 2002-10-24  6:39 UTC (permalink / raw)
  To: linux-lvm

"Heinz J . Mauelshagen" wrote:
> 
> Jon,
> 
> which LVM version are you using?
> If the driver it is older than 1.0.5 it can be a lockking bug fixed in
> the recent LVM1 version.

lvm_1.1-rc2.tar.gz on default 2.4.18



JonB

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

* Re: [linux-lvm] still problems with removing "non existant" dead  snapshots :/
  2002-10-24  6:28 ` Heinz J . Mauelshagen
  2002-10-24  6:39   ` Jon Bendtsen
@ 2002-10-25  7:07   ` Jon Bendtsen
  1 sibling, 0 replies; 12+ messages in thread
From: Jon Bendtsen @ 2002-10-25  7:07 UTC (permalink / raw)
  To: linux-lvm

"Heinz J . Mauelshagen" wrote:
> 
> Jon,
> 
> which LVM version are you using?
> If the driver it is older than 1.0.5 it can be a lockking bug fixed in
> the recent LVM1 version.

I still get the error, i've got 3 this morning.

	umount: /dev/optVG/1hour_snapshot_opt_1035518401: not mounted
	lvremove -- ERROR "lv_release(): LV number" releasing logical volume
	"/dev/optVG/1hour_snapshot_opt_1035518401"

I'll use the -debug option and save the output.



JonB

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

* Re: [linux-lvm] still problems with removing "non existant" dead snapshots :/
  2002-10-24  6:39   ` Jon Bendtsen
@ 2002-10-25  7:36     ` Heinz J . Mauelshagen
  2002-10-25  7:53       ` Jon Bendtsen
                         ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Heinz J . Mauelshagen @ 2002-10-25  7:36 UTC (permalink / raw)
  To: linux-lvm

On Thu, Oct 24, 2002 at 01:38:34PM +0200, Jon Bendtsen wrote:
> "Heinz J . Mauelshagen" wrote:
> > 
> > Jon,
> > 
> > which LVM version are you using?
> > If the driver it is older than 1.0.5 it can be a lockking bug fixed in
> > the recent LVM1 version.
> 
> lvm_1.1-rc2.tar.gz on default 2.4.18

This is a discontinued (and buggy) development version.

You should give LVM2 + device-mapper a try or downgrade to 1.0.5.

> 
> 
> 
> JonB
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

-- 

Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
Mauelshagen@Sistina.com                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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

* Re: [linux-lvm] still problems with removing "non existant" dead  snapshots :/
  2002-10-25  7:36     ` Heinz J . Mauelshagen
@ 2002-10-25  7:53       ` Jon Bendtsen
  2002-10-28  3:14         ` Heinz J . Mauelshagen
  2002-10-25  8:25       ` James Hawtin
  2002-10-25 11:33       ` Luben Tuikov
  2 siblings, 1 reply; 12+ messages in thread
From: Jon Bendtsen @ 2002-10-25  7:53 UTC (permalink / raw)
  To: linux-lvm

"Heinz J . Mauelshagen" wrote:
> 
> On Thu, Oct 24, 2002 at 01:38:34PM +0200, Jon Bendtsen wrote:
> > "Heinz J . Mauelshagen" wrote:
> > >
> > > Jon,
> > >
> > > which LVM version are you using?
> > > If the driver it is older than 1.0.5 it can be a lockking bug fixed in
> > > the recent LVM1 version.
> >
> > lvm_1.1-rc2.tar.gz on default 2.4.18
> 
> This is a discontinued (and buggy) development version.

Oh ?? i didnt get that impression from the website, and
definately not from
ftp://linux.msede.com/lvm/1.1/README

 
> You should give LVM2 + device-mapper a try or downgrade to 1.0.5.

it's a production server, so i'll downgrade.



JonB

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

* Re: [linux-lvm] still problems with removing "non existant" dead snapshots :/
  2002-10-25  7:36     ` Heinz J . Mauelshagen
  2002-10-25  7:53       ` Jon Bendtsen
@ 2002-10-25  8:25       ` James Hawtin
  2002-10-28  3:16         ` Heinz J . Mauelshagen
  2002-10-25 11:33       ` Luben Tuikov
  2 siblings, 1 reply; 12+ messages in thread
From: James Hawtin @ 2002-10-25  8:25 UTC (permalink / raw)
  To: linux-lvm


On Fri, 25 Oct 2002, Heinz J . Mauelshagen wrote:

> You should give LVM2 + device-mapper a try or downgrade to 1.0.5.

Hmmm what are the problems with 1.1-rc2? thats the version I am currently
running, 1.0.5 I beleive has a problem with pvmove > 2 gig? or am I
rembering the wrong version.

James

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

* Re: [linux-lvm] still problems with removing "non existant" dead  snapshots :/
  2002-10-25  7:36     ` Heinz J . Mauelshagen
  2002-10-25  7:53       ` Jon Bendtsen
  2002-10-25  8:25       ` James Hawtin
@ 2002-10-25 11:33       ` Luben Tuikov
  2002-10-25 11:45         ` Joe Thornber
  2 siblings, 1 reply; 12+ messages in thread
From: Luben Tuikov @ 2002-10-25 11:33 UTC (permalink / raw)
  To: linux-lvm

"Heinz J . Mauelshagen" wrote:
> 
> On Thu, Oct 24, 2002 at 01:38:34PM +0200, Jon Bendtsen wrote:
> > "Heinz J . Mauelshagen" wrote:
> > >
> > > Jon,
> > >
> > > which LVM version are you using?
> > > If the driver it is older than 1.0.5 it can be a lockking bug fixed in
> > > the recent LVM1 version.
> >
> > lvm_1.1-rc2.tar.gz on default 2.4.18


What is the version on 2.4.19 (stock)?


> This is a discontinued (and buggy) development version.
> 
> You should give LVM2 + device-mapper a try or downgrade to 1.0.5.

-- 
Luben

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

* Re: [linux-lvm] still problems with removing "non existant" dead snapshots :/
  2002-10-25 11:33       ` Luben Tuikov
@ 2002-10-25 11:45         ` Joe Thornber
  0 siblings, 0 replies; 12+ messages in thread
From: Joe Thornber @ 2002-10-25 11:45 UTC (permalink / raw)
  To: linux-lvm

On Fri, Oct 25, 2002 at 11:25:32AM -0400, Luben Tuikov wrote:
> "Heinz J . Mauelshagen" wrote:
> > 
> > On Thu, Oct 24, 2002 at 01:38:34PM +0200, Jon Bendtsen wrote:
> > > "Heinz J . Mauelshagen" wrote:
> > > >
> > > > Jon,
> > > >
> > > > which LVM version are you using?
> > > > If the driver it is older than 1.0.5 it can be a lockking bug fixed in
> > > > the recent LVM1 version.
> > >
> > > lvm_1.1-rc2.tar.gz on default 2.4.18
> 
> 
> What is the version on 2.4.19 (stock)?

1.0.5ish

- Joe

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

* Re: [linux-lvm] still problems with removing "non existant" dead snapshots :/
  2002-10-25  7:53       ` Jon Bendtsen
@ 2002-10-28  3:14         ` Heinz J . Mauelshagen
  0 siblings, 0 replies; 12+ messages in thread
From: Heinz J . Mauelshagen @ 2002-10-28  3:14 UTC (permalink / raw)
  To: linux-lvm

On Fri, Oct 25, 2002 at 02:52:48PM +0200, Jon Bendtsen wrote:
> "Heinz J . Mauelshagen" wrote:
> > 
> > On Thu, Oct 24, 2002 at 01:38:34PM +0200, Jon Bendtsen wrote:
> > > "Heinz J . Mauelshagen" wrote:
> > > >
> > > > Jon,
> > > >
> > > > which LVM version are you using?
> > > > If the driver it is older than 1.0.5 it can be a lockking bug fixed in
> > > > the recent LVM1 version.
> > >
> > > lvm_1.1-rc2.tar.gz on default 2.4.18
> > 
> > This is a discontinued (and buggy) development version.
> 
> Oh ?? i didnt get that impression from the website, and
> definately not from
> ftp://linux.msede.com/lvm/1.1/README

Sorry, we'll change that.

> 
>  
> > You should give LVM2 + device-mapper a try or downgrade to 1.0.5.
> 
> it's a production server, so i'll downgrade.

Ok.

> 
> 
> 
> JonB
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

-- 

Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
Mauelshagen@Sistina.com                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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

* Re: [linux-lvm] still problems with removing "non existant" dead snapshots :/
  2002-10-25  8:25       ` James Hawtin
@ 2002-10-28  3:16         ` Heinz J . Mauelshagen
  2002-10-28  8:34           ` James Hawtin
  0 siblings, 1 reply; 12+ messages in thread
From: Heinz J . Mauelshagen @ 2002-10-28  3:16 UTC (permalink / raw)
  To: linux-lvm

On Fri, Oct 25, 2002 at 01:23:18PM +0000, James Hawtin wrote:
> 
> 
> On Fri, 25 Oct 2002, Heinz J . Mauelshagen wrote:
> 
> > You should give LVM2 + device-mapper a try or downgrade to 1.0.5.
> 
> Hmmm what are the problems with 1.1-rc2? thats the version I am currently
> running, 1.0.5 I beleive has a problem with pvmove > 2 gig? or am I
> rembering the wrong version.

No, there's no such problem in 1.1.

It is just an intermediate development version which got replaced by
LVM2/device-mapper.

Use that combination if you want stable, cutting-edge Linux LVM :)

> 
> James
> 
> 
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

-- 

Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
Mauelshagen@Sistina.com                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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

* Re: [linux-lvm] still problems with removing "non existant" dead snapshots :/
  2002-10-28  3:16         ` Heinz J . Mauelshagen
@ 2002-10-28  8:34           ` James Hawtin
  0 siblings, 0 replies; 12+ messages in thread
From: James Hawtin @ 2002-10-28  8:34 UTC (permalink / raw)
  To: linux-lvm


On Mon, 28 Oct 2002, Heinz J . Mauelshagen wrote:

> On Fri, Oct 25, 2002 at 01:23:18PM +0000, James Hawtin wrote:
> >
> >
> > On Fri, 25 Oct 2002, Heinz J . Mauelshagen wrote:
> >
> > > You should give LVM2 + device-mapper a try or downgrade to 1.0.5.
> >
> > Hmmm what are the problems with 1.1-rc2? thats the version I am currently
> > running, 1.0.5 I beleive has a problem with pvmove > 2 gig? or am I
> > rembering the wrong version.
>
> No, there's no such problem in 1.1.

no no I ment is there a pvmove greater than 2 gig problem with 1.0.5? I
seem to rember that was why i upgraded to 1.1-rc2

>
> It is just an intermediate development version which got replaced by
> LVM2/device-mapper.
>
> Use that combination if you want stable, cutting-edge Linux LVM :)
>

Cutting or Bleeding edge?

How painful is the upgrade from 1.1-rc2 to the 2 series (which I have not
tried yet). Does it require a complete lvm system rebuild or can it use my
old pvs, vgs? Which version is the best to go for? Ie any "known problems"
why I should not use the latest....

James

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

end of thread, other threads:[~2002-10-28  8:34 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-24  4:53 [linux-lvm] still problems with removing "non existant" dead snapshots :/ Jon Bendtsen
2002-10-24  6:28 ` Heinz J . Mauelshagen
2002-10-24  6:39   ` Jon Bendtsen
2002-10-25  7:36     ` Heinz J . Mauelshagen
2002-10-25  7:53       ` Jon Bendtsen
2002-10-28  3:14         ` Heinz J . Mauelshagen
2002-10-25  8:25       ` James Hawtin
2002-10-28  3:16         ` Heinz J . Mauelshagen
2002-10-28  8:34           ` James Hawtin
2002-10-25 11:33       ` Luben Tuikov
2002-10-25 11:45         ` Joe Thornber
2002-10-25  7:07   ` Jon Bendtsen

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.