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 mB97oV3j001290 for ; Tue, 9 Dec 2008 02:50:31 -0500 Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by mx3.redhat.com (8.13.8/8.13.8) with ESMTP id mB97mVKw025391 for ; Tue, 9 Dec 2008 02:48:32 -0500 Received: by nf-out-0910.google.com with SMTP id d3so744445nfc.21 for ; Mon, 08 Dec 2008 23:48:31 -0800 (PST) Message-ID: Date: Tue, 9 Dec 2008 15:48:31 +0800 From: "wu jessinay" Subject: Re: [linux-lvm] system-config-lvm bug with using lv as swap space In-Reply-To: <1228768424.4271.1.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_56885_19638970.1228808911140" References: <1228768424.4271.1.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_56885_19638970.1228808911140 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello jim I have created a bugzilla with my patch attached. the bug no is 475434. Another thing I'd like to know is that if you have plan to enhance system-config-lvm with more functions. Such as add swap entries to /etc/fstab and create swap partition on a lv Thanks 2008/12/9, jim parsons : > > Hello, Wu. Thanks for your help. Can you please file a new bugzilla and > attach your patch, please? > > Much obliged, > > -Jim > > On Mon, 2008-12-08 at 16:37 +0800, wu jessinay wrote: > > Hi,all > > I have encountered several bugs of system-config-lvm. > > The first one is if there is a logical volume entry in /etc/fstab > > and another raw device entry for swap > > such as > > /dev/my_vg1/my_lv1 swap swap defaults 0 0 > > /dev/hda1 swap swap defaults 0 0 > > > > then if we use system-config-lvm to remove my_lv1, > > Not only the my_lv1 entry,but all other swap entries in /etc/fstab > > will get removed. > > > > After some investigation on the system-config-lvm python source file. > > It seems that the problem is in the InputController.py file. > > When we click the remove button,the program will check if there is any > > entry of the removed logical volume in /etc/fstab. > > If any entry exist in /etc/fstab, it will remove this line > > from /etc/fstab so that when the system reboot it won't mount this > > logical volume(since it has been removed). > > > > This procedure is OK.However,the program will delete the corresponding > > entry in the following way: > > 1.check what is the mount point of this logical volume.(in our case it > > is swap) > > 2.search /etc/fstab file,delete all the entries with the same mount > > point.This won't result in any trouble if the logical volume is > > mounted on /mnt/mylv1 .but if the mount point is swap ,it will delete > > all swap entries in /etc/fstab file. > > > > I have created a patch to solve this problem,which modify the removing > > procedure if the mount point is swap. > > > > There is several other bugs with system-config-lvm but the root cause > > should be the same. > > > > this problem exist in enterprise linux 5 and enterprise linux 5 U1. > > Is this a fixed bug?Any advice is appreciated! > > > > Thanks > > _______________________________________________ > > 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/ > > _______________________________________________ > 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/ > ------=_Part_56885_19638970.1228808911140 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hello jim
I have created a bugzilla with my patch attached.
the bug no is 475434.
 
Another thing I'd like to know is that if you have plan
to enhance system-config-lvm with more functions.
Such as add swap entries to /etc/fstab and create swap
partition on a lv
 
Thanks


 
2008/12/9, jim parsons <jparsons@redhat.com>:
Hello, Wu. Thanks for your help. Can you please file a new bugzilla and
attach your patch, please?

Much obliged,

-Jim

On Mon, 2008-12-08 at 16:37 +0800, wu jessinay wrote:
> Hi,all
> I have encountered several bugs of system-config-lvm.
> The first one is if there is a logical volume entry in /etc/fstab
> and another raw device entry for swap
> such as
> /dev/my_vg1/my_lv1   swap  swap  defaults 0 0
> /dev/hda1       swap    swap   defaults   0  0
>
> then if we use system-config-lvm to remove my_lv1,
> Not only the my_lv1 entry,but all other swap entries in /etc/fstab
> will get removed.
>
> After some investigation on the system-config-lvm python source file.
> It seems that the problem is in the InputController.py file.
> When we click the remove button,the program will check if there is any
> entry of the removed logical volume in /etc/fstab.
> If any entry exist in /etc/fstab, it will remove this line
> from /etc/fstab so that when the system reboot it won't mount this
> logical volume(since it has been removed).
>
> This procedure is OK.However,the program will delete the corresponding
> entry in the following way:
> 1.check what is the mount point of this logical volume.(in our case it
> is swap)
> 2.search /etc/fstab file,delete all the entries with the same mount
> point.This won't result in any trouble if the logical volume is
> mounted on /mnt/mylv1 .but if the mount point is swap ,it will delete
> all swap entries in /etc/fstab file.
>
> I have created a patch to solve this problem,which modify the removing
> procedure if the mount point is swap.
>
> There is several other bugs with system-config-lvm but the root cause
> should be the same.
>
> this problem exist in enterprise linux 5 and enterprise linux 5 U1.
> Is this a fixed bug?Any advice is appreciated!
>
> Thanks
> _______________________________________________
> 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/

_______________________________________________
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/

------=_Part_56885_19638970.1228808911140--