All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gerry Reno <greno@verizon.net>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] F7 will not boot after running backup w/snapshot
Date: Fri, 02 May 2008 10:00:13 -0400	[thread overview]
Message-ID: <481B1E6D.3040000@verizon.net> (raw)
In-Reply-To: <1311113506.20080502101444@marki-online.net>

Marek Podmaka wrote:
> Hi Gerry,
>
> Thursday, May 1, 2008, 22:21:00, Gerry Reno wrote:
>
>   
>> At least in the case where the snapshot is read-only (LVM1 default,
>> LVM2 by config?), if the snapshot is lost, invalid, not removed from
>> VG prior to reboot, when LVM comes back up it should see this and
>> immediately know that it can just vgreduce VG --removemissing for
>> the old snapshot. In the case of rw (no LVM1, LVM2 default), it
>> should be a user choice and LVM should prompt the user at boot as to
>> whether to remove this old snapshot so it can attempt to activate
>> the VG. Unless the user knows that there were non-backup related lvm
>> mods written during the snapshot (eg: pvmove) then the user will
>> just answer yes and the system should boot. This is how LVM should
>> operate in this scenario.
>>     
>
> I don't think that automatically making changes to the VG is a good
> idea. Imagine that you have a snapshot on disk mapped from SAN storage
> array and that becomes temporary unavailable (SAN switch failure or
> whatever). It would be a bad idea to remove this PV from VG just
> because it is TEMPORARY unavailable. 
This was part of my point about the ramdisk, in that other types of 
devices can also disappear not just ramdisk.
Once the device with the snapshot disappears, I'm not sure I would trust 
that snapshot even if the device comes back online.
The backup process would try to keep running and it would probably get 
all kinds of errors at this point so to me it
makes sense to consider that snapshot invalid from that standpoint of 
the backup. Now if it was a read-write snapshot
and you've used some lvm commands to pvmove something onto the snapshot 
then that is why I suggest that the user
be able to make decision at reboot about whether to remove the PV. If 
they answer 'no' to the removal then the boot will
stop and they will have to perform some recovery through the rescue mode 
to see if they can recover some data from
the device before allowing the PV to be removed from the VG so the 
system can boot.

> And how do you distinguish
> between ram disk and normal disk and if it is totally gone or it is
> only temp issue? Also if real HDD fails, you don't want to vgreduce
> it, you want to replace it, vgcfgrestore it and sync it (in case you
> are using mirroring). Also imagine that you can have also real data on
> the same PV, not only snapshot.
>   
You don't vgreduce the entire hdd. Only for the PV that contained the 
snapshot.
If you used an entire hdd to be the snapshot then you can restore it. 
Recover data
in the case of read-write and then vgreduce it from the VG so system can 
boot.

> What would help is the ability to activate the VG also with missing
> PVs, 
You cannot activate a VG with missing PV's because at some point then 
LVM would attempt to write
on one of the missing PV and then you get panic.


Regards,
Gerry


> I'm not sure if that is possible in linux LVM.
>
>
>
>   

  reply	other threads:[~2008-05-02 14:01 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-30  0:53 [linux-lvm] F7 will not boot after running backup w/snapshot Gerry Reno
2008-04-30  2:29 ` Gerry Reno
2008-04-30  3:51   ` Gerry Reno
2008-04-30 14:00     ` Gerry Reno
2008-04-30 15:09       ` Larry Dickson
2008-04-30 17:23         ` Gerry Reno
2008-04-30 18:19           ` Gerry Reno
2008-04-30 18:28           ` Charles Marcus
2008-04-30 20:24             ` Gerry Reno
2008-04-30 21:19               ` Milan Broz
2008-04-30 22:30                 ` Gerry Reno
2008-05-01 15:48                   ` malahal
2008-05-01 16:30                     ` Mikulas Patocka
2008-05-01 18:15                       ` Gerry Reno
2008-05-01 18:38                         ` Charles Marcus
2008-05-01 19:37                           ` Gerry Reno
2008-05-01 19:42                             ` Charles Marcus
2008-05-01 19:53                               ` Gerry Reno
2008-05-01 20:03                                 ` Charles Marcus
2008-05-01 20:21                                   ` Gerry Reno
2008-05-01 20:25                                     ` Alasdair G Kergon
2008-05-01 20:30                                       ` Gerry Reno
2008-05-01 20:34                                         ` Charles Marcus
2008-05-01 20:36                                           ` Gerry Reno
2008-05-01 20:44                                             ` Charles Marcus
2008-05-01 20:57                                               ` Gerry Reno
2008-05-01 21:59                                                 ` Alasdair G Kergon
2008-05-01 22:12                                                   ` Gerry Reno
2008-05-01 23:50                                                     ` Gerry Reno
2008-05-02  0:38                                                       ` Stuart D. Gathman
2008-05-02  0:47                                           ` Stuart D. Gathman
2008-05-02  2:03                                             ` Gerry Reno
2008-05-02  8:14                                     ` Marek Podmaka
2008-05-02 14:00                                       ` Gerry Reno [this message]
2008-05-02 14:14                                         ` Charles Marcus
2008-05-02 14:25                                         ` Larry Dickson
2008-05-02 14:45                                         ` Marek Podmaka
2008-05-02 14:38                                       ` Stuart D. Gathman
2008-05-02 14:47                                         ` Bryn M. Reeves
2008-05-02 15:05                                           ` Marek Podmaka
2008-05-02 15:17                                           ` Stuart D. Gathman
2008-05-02 15:30                                             ` Gerry Reno
2008-05-02 15:36                                               ` Bryn M. Reeves
2008-05-03  2:27                         ` Mikulas Patocka
2008-05-04  0:45                           ` [linux-lvm] Temporary shapshots Stuart D. Gathman
2008-05-05 14:30                             ` Larry Dickson
2008-05-05 14:45                               ` Charles Marcus

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=481B1E6D.3040000@verizon.net \
    --to=greno@verizon.net \
    --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.