<div>Hello jim</div>
<div>I have created a bugzilla with my patch attached.</div>
<div>the bug no is 475434.</div>
<div> </div>
<div>Another thing I'd like to know is that if you have plan</div>
<div>to enhance system-config-lvm with more functions.</div>
<div>Such as add swap entries to /etc/fstab and create swap</div>
<div>partition on a lv</div>
<div> </div>
<div>Thanks</div>
<div><br><br> </div>
<div><span class="gmail_quote">2008/12/9, jim parsons <<a href="mailto:jparsons@redhat.com">jparsons@redhat.com</a>>:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hello, Wu. Thanks for your help. Can you please file a new bugzilla and<br>attach your patch, please?<br><br>
Much obliged,<br><br>-Jim<br><br>On Mon, 2008-12-08 at 16:37 +0800, wu jessinay wrote:<br>> Hi,all<br>> I have encountered several bugs of system-config-lvm.<br>> The first one is if there is a logical volume entry in /etc/fstab<br>
> and another raw device entry for swap<br>> such as<br>> /dev/my_vg1/my_lv1   swap  swap  defaults 0 0<br>> /dev/hda1       swap    swap   defaults   0  0<br>><br>> then if we use system-config-lvm to remove my_lv1,<br>
> Not only the my_lv1 entry,but all other swap entries in /etc/fstab<br>> will get removed.<br>><br>> After some investigation on the system-config-lvm python source file.<br>> It seems that the problem is in the InputController.py file.<br>
> When we click the remove button,the program will check if there is any<br>> entry of the removed logical volume in /etc/fstab.<br>> If any entry exist in /etc/fstab, it will remove this line<br>> from /etc/fstab so that when the system reboot it won't mount this<br>
> logical volume(since it has been removed).<br>><br>> This procedure is OK.However,the program will delete the corresponding<br>> entry in the following way:<br>> 1.check what is the mount point of this logical volume.(in our case it<br>
> is swap)<br>> 2.search /etc/fstab file,delete all the entries with the same mount<br>> point.This won't result in any trouble if the logical volume is<br>> mounted on /mnt/mylv1 .but if the mount point is swap ,it will delete<br>
> all swap entries in /etc/fstab file.<br>><br>> I have created a patch to solve this problem,which modify the removing<br>> procedure if the mount point is swap.<br>><br>> There is several other bugs with system-config-lvm but the root cause<br>
> should be the same.<br>><br>> this problem exist in enterprise linux 5 and enterprise linux 5 U1.<br>> Is this a fixed bug?Any advice is appreciated!<br>><br>> Thanks<br>> _______________________________________________<br>
> linux-lvm mailing list<br>> <a href="mailto:linux-lvm@redhat.com">linux-lvm@redhat.com</a><br>> <a href="https://www.redhat.com/mailman/listinfo/linux-lvm">https://www.redhat.com/mailman/listinfo/linux-lvm</a><br>
> read the LVM HOW-TO at <a href="http://tldp.org/HOWTO/LVM-HOWTO/">http://tldp.org/HOWTO/LVM-HOWTO/</a><br><br>_______________________________________________<br>linux-lvm mailing list<br><a href="mailto:linux-lvm@redhat.com">linux-lvm@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/linux-lvm">https://www.redhat.com/mailman/listinfo/linux-lvm</a><br>read the LVM HOW-TO at <a href="http://tldp.org/HOWTO/LVM-HOWTO/">http://tldp.org/HOWTO/LVM-HOWTO/</a><br>
</blockquote></div><br>