[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[linux-lvm] still problems with removing "non existant" dead snapshots :/



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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]