Received: from mx3.redhat.com (mx3.redhat.com [172.16.48.32]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m9K7eHvf011323 for ; Mon, 20 Oct 2008 03:40:17 -0400 Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.226]) by mx3.redhat.com (8.13.8/8.13.8) with ESMTP id m9K7e2M3015387 for ; Mon, 20 Oct 2008 03:40:03 -0400 Received: by rv-out-0506.google.com with SMTP id f6so1645638rvb.51 for ; Mon, 20 Oct 2008 00:40:02 -0700 (PDT) Message-ID: Date: Mon, 20 Oct 2008 13:10:02 +0530 From: "himanshu padmanabhi" Subject: Re: [linux-lvm] [IMPORTANT]LVM+iSCSI issue..Local Disk disappeared.. In-Reply-To: <1224170455.7716.4.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_101436_618356.1224488402525" References: <1224086814.7418.11.camel@localhost.localdomain> <1224170455.7716.4.camel@localhost.localdomain> Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: To: LVM general discussion and development ------=_Part_101436_618356.1224488402525 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thnx everyone(Esp. peter).....Your comments were really useful. Just want to ask one thing.... We can get physical volumes associated with given LV using "lvdisplay -m "/dev/vgname/lvname".....Is the information given by it no so sure..... Because you specified that "we cannot get which PV's are associated with which LV". On Thu, Oct 16, 2008 at 8:50 PM, Peter Larsen wrote: > On Thu, 2008-10-16 at 15:57 +0530, himanshu padmanabhi wrote: > > We configured it as > > > > Case 1 > > [....] > > Deleted lv1, > > removed pv2, > > vg is getting displayed properly in vgs command > > Case 2 > > [...] > > Deleted lv1, > > logout from iscsi target > > vg is not getting displayed properly in vgs command > > Those are not the same? In case 1 you tell LVM to drop a storage (I > assume by removing pv2 you first take it out of the vg and then apply > pvremove). In case 2 you you're simulating media failure to LVM. You > can't just remove a media it depends on. Regardless if LVM has data on > the PV or not. > > Are you trying to make failover work? If so, your approach is a bit > wrong. Setup a software raid 1 first, then build your PV on that. Once > done, you can remove one disk and your LVM will continue to run > (degraded). > > > --- > Regards > Peter Larsen > > I don't kill flies, but I like to mess with their minds. I hold them > above > globes. They freak out and yell "Whooa, I'm *way* too high." > -- Bruce Baum > > _______________________________________________ > linux-lvm mailing list > linux-lvm@redhat.com > https://www.redhat.com/mailman/listinfo/linux-lvm > read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/ > -- Regards, Himanshu Padmanabhi ------=_Part_101436_618356.1224488402525 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Thnx everyone(Esp. peter).....Your comments were really useful.

Just want to ask one thing....

We can get physical volumes associated with given LV using "lvdisplay -m "/dev/vgname/lvname".....Is the information given by it no so sure.....

Because you specified that "we cannot get which PV's are associated with which LV".


On Thu, Oct 16, 2008 at 8:50 PM, Peter Larsen <plarsen@ciber.com> wrote:
On Thu, 2008-10-16 at 15:57 +0530, himanshu padmanabhi wrote:
> We configured it as
>
> Case 1
> [....]
> Deleted lv1,
> removed pv2,
> vg is getting displayed properly in vgs command
> Case 2
> [...]
> Deleted lv1,
> logout from iscsi target
> vg is not getting displayed properly in vgs command

Those are not the same? In case 1 you tell LVM to drop a storage (I
assume by removing pv2 you first take it out of the vg and then apply
pvremove). In case 2 you you're simulating media failure to LVM. You
can't just remove a media it depends on. Regardless if LVM has data on
the PV or not.

Are you trying to make failover work? If so, your approach is a bit
wrong. Setup a software raid 1 first, then build your PV on that. Once
done, you can remove one disk and your LVM will continue to run
(degraded).


---
Regards
   Peter Larsen

I don't kill flies, but I like to mess with their minds.  I hold them
above
globes.  They freak out and yell "Whooa, I'm *way* too high."
               -- Bruce Baum

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/



--
Regards,
Himanshu Padmanabhi

------=_Part_101436_618356.1224488402525--