All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] lvdisplay -- logical volume "/dev/optVG/1hour_snapshot_opt_1035237601" doesn't exist
@ 2002-10-22  7:08 Jon Bendtsen
  2002-10-22  7:59 ` [linux-lvm] lvdisplay -- logical volume "/dev/optVG/1hour_snapshot_opt_1035237601"doesn't exist Jon Bendtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Jon Bendtsen @ 2002-10-22  7:08 UTC (permalink / raw)
  To: lvm mailinglist

Cron Daemon wrote:
> 
> lvdisplay -- logical volume "/dev/optVG/1hour_snapshot_opt_1035237601" doesn't exist

This is what i get from a script i run every minute to make the
snapshots larger
if they are not big enough to hold the space.
Further more i take a snapshot every hour, 8 hour, day and week.
(another cronscript does that)

It works with a find /dev/optVG/*snapshot* -exec script {} \;
where script contains a lvdisplay $1 | perlscript
where the perlscript actualy finds out if it is too small and makes it
bigger.

However, at the same time another script run every hour
makes a new snapshot (date +%s)
finds the old, umounts it, mounts the new, and removes the old snapshot
with -f
However, sometimes it doesnt actualy remove it, and leaves the file in
/dev/optVG.
So, now i have 800+ emails (all night) from this cronjob that says the
snapshot doesnt exist.
brw-rw----    1 root     disk      58,   4 Oct 22 00:00
1hour_snapshot_opt_1035237601
brw-rw----    1 root     disk      58,   4 Oct 22 06:00
1hour_snapshot_opt_1035259201
brw-rw----    1 root     disk      58,   4 Oct 22 08:00
1hour_snapshot_opt_1035266401
brw-rw----    1 root     disk      58,   3 Oct 22 13:00
1hour_snapshot_opt_1035284401


ve:/dev/optVG# lvdisplay /dev/optVG/1hour_snapshot_opt_10352*
lvdisplay -- logical volume "/dev/optVG/1hour_snapshot_opt_1035237601"
doesn't exist

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

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

--- Logical volume ---
LV Name                /dev/optVG/1hour_snapshot_opt_1035284401
VG Name                optVG
LV Write Access        read only
LV snapshot status     active destination for /dev/optVG/opt
LV Status              available
LV #                   4
# open                 1
LV Size                40 GB
Current LE             2560
Allocated LE           2560
snapshot chunk size    64 KB
Allocated to snapshot  0.01% [64 KB/1020 MB]
Allocated to COW-table 4 MB
Allocation             next free
Read ahead sectors     1024
Block device           58:3


i cant remove it
----------------
ve:/dev/optVG# lvremove /dev/optVG/1hour_snapshot_opt_1035237601
lvremove -- do you really want to remove
"/dev/optVG/1hour_snapshot_opt_1035237601"? [y/n]: y
lvremove -- ERROR "lv_release(): LV number" releasing logical volume
"/dev/optVG/1hour_snapshot_opt_1035237601"

i cant force it
---------------
ve:/dev/optVG# lvremove -f /dev/optVG/1hour_snapshot_opt_1035237601
lvremove -- ERROR "lv_release(): LV number" releasing logical volume
"/dev/optVG/1hour_snapshot_opt_1035237601"


it doesnt exist on disk
-----------------------
ve:/dev/optVG# lvdisplay -D /dev/optVG/1hour_snapshot_opt_1035237601 
lvdisplay -- logical volume "/dev/optVG/1hour_snapshot_opt_1035237601"
doesn't exist


i'm loosing disk space
----------------------
ve:/dev/optVG# ls
1hour_snapshot_opt_1035237601	 1G	doesnt exist
1hour_snapshot_opt_1035259201 	 1G	doesnt exist
1hour_snapshot_opt_1035266401	 1G	doesnt exist
1hour_snapshot_opt_1035284401	 1G
8hours_snapshot_opt_1035266401 	 1G
day_snapshot_opt_1035259201	 1G
group
home				50G
opt				40G
samba				 5G
week_snapshot_opt_1035207494	 1G
-----------------------------------
				99G + those 3 that doesnt exist

which "doesnt" add up with the 102 allocated
------------------------------------------
ve:/dev/optVG# vgdisplay 
--- Volume group ---
VG Name               optVG 
VG Access             read/write
VG Status             available/resizable
VG #                  0
MAX LV                256
Cur LV                10
Open LV               7
MAX LV Size           1023.97 GB
Max PV                256
Cur PV                1
Act PV                1
VG Size               222.06 GB
PE Size               16 MB
Total PE              14212
Alloc PE / Size       6528 / 102 GB		<-------- ### ERROR ERROR ####
Free  PE / Size       7684 / 120.06 GB
VG UUID               FLuF75-RT7G-xecV-pN2X-OqSv-CXH6-YMOgaE


Yesterday i did an rm -rf on one of the 1hour snapshots that "didnt
exists", 
and that seemed to work okay. I'd just like that i dont have to do that


ve:/dev/optVG# vgchange -a n optVG
vgchange -- volume group "optVG" successfully deactivated

ve:/dev/optVG# vgchange -a y optVG
vgchange -- volume group "optVG" successfully activated

ve:/dev/optVG# vgdisplay 
--- Volume group ---
VG Name               optVG 
VG Access             read/write
VG Status             available/resizable
VG #                  0
MAX LV                256
Cur LV                7
Open LV               0
MAX LV Size           1023.97 GB
Max PV                256
Cur PV                1
Act PV                1
VG Size               222.06 GB
PE Size               16 MB
Total PE              14212
Alloc PE / Size       6336 / 99 GB
Free  PE / Size       7876 / 123.06 GB
VG UUID               FLuF75-RT7G-xecV-pN2X-OqSv-CXH6-YMOgaE


So, i stopped the VG, and the size fits with those files in /dev/optVG/
BUT i still cant see those 1hour snapshots :(
	
ve:/dev/optVG# lvdisplay /dev/optVG/1hour_snapshot_opt_10352*
lvdisplay -- logical volume "/dev/optVG/1hour_snapshot_opt_1035237601"
doesn't exist

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

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


So, i removed them, and it does appear to be working. How come it
repports them as
non existing, but doesnt remove the "file" in /dev/optVG/





JonB

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

* Re: [linux-lvm] lvdisplay -- logical volume  "/dev/optVG/1hour_snapshot_opt_1035237601"doesn't exist
  2002-10-22  7:08 [linux-lvm] lvdisplay -- logical volume "/dev/optVG/1hour_snapshot_opt_1035237601" doesn't exist Jon Bendtsen
@ 2002-10-22  7:59 ` Jon Bendtsen
  2002-10-22  9:39   ` Jon Bendtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Jon Bendtsen @ 2002-10-22  7:59 UTC (permalink / raw)
  To: linux-lvm

Jon Bendtsen wrote:
> 
> Cron Daemon wrote:
> >
> > lvdisplay -- logical volume "/dev/optVG/1hour_snapshot_opt_1035237601" doesn't exist

Sometimes i get a 
lvremove -- can't remove open snapshot logical volume
"/dev/optVG/1hour_snapshot_opt_1035266401"

from the hourly script. But it _IS_ unmounted.



JonB

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

* Re: [linux-lvm] lvdisplay -- logical volume  "/dev/optVG/1hour_snapshot_opt_1035237601"doesn't exist
  2002-10-22  7:59 ` [linux-lvm] lvdisplay -- logical volume "/dev/optVG/1hour_snapshot_opt_1035237601"doesn't exist Jon Bendtsen
@ 2002-10-22  9:39   ` Jon Bendtsen
  0 siblings, 0 replies; 3+ messages in thread
From: Jon Bendtsen @ 2002-10-22  9:39 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 509 bytes --]

Jon Bendtsen wrote:
> 
> Jon Bendtsen wrote:
> >
> > Cron Daemon wrote:
> > >
> > > lvdisplay -- logical volume "/dev/optVG/1hour_snapshot_opt_1035237601" doesn't exist
> 
> Sometimes i get a
> lvremove -- can't remove open snapshot logical volume
> "/dev/optVG/1hour_snapshot_opt_1035266401"
> 
> from the hourly script. But it _IS_ unmounted.

I ran lvdisplay and lvremove with -debug, and attached the output as 2
.gz
files, which i expect the lvm mailinglist to remove ;-D
Mailme if you want them.



JonB

[-- Attachment #2: lvdisplay.debug.txt.gz --]
[-- Type: application/x-gzip, Size: 3082 bytes --]

[-- Attachment #3: lvremove.debut.txt.gz --]
[-- Type: application/x-gzip, Size: 3180 bytes --]

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

end of thread, other threads:[~2002-10-22  9:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-22  7:08 [linux-lvm] lvdisplay -- logical volume "/dev/optVG/1hour_snapshot_opt_1035237601" doesn't exist Jon Bendtsen
2002-10-22  7:59 ` [linux-lvm] lvdisplay -- logical volume "/dev/optVG/1hour_snapshot_opt_1035237601"doesn't exist Jon Bendtsen
2002-10-22  9:39   ` 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.