[Bug 803557] installer is unable to remove existing LVM partitions
http://bugzilla.suse.com/show_bug.cgi?id=803557 --- Comment #6 from Lidong Zhong <lzhong@suse.com> ---
From the y2log, I picked up the following logs:
1043 2013-02-13 13:40:48 <1> linux(2736) [libstorage] Storage.cc(dumpObjectList):266 CType:LVM Name:bazowka Device:/dev/bazowka SizeK:385777664 SizeK:385777664 PeSize:4096 NumPE:94184 FreePE:94184 pv:</dev/sda4> status:resizable UUID:SZjJ7P-q9RV-i9Lp-n77N-sYVF-emnm-pVBhBY ... 9342 nm:sda1 -->deleted 9343 nm:sda4 -->deleted usedby:<lvm[/dev/bazowka]>--><> ... 9379 2013-02-13 18:41:30 <1> linux(2736) [libstorage] Storage.cc(dumpObjectList):266 CType:LVM Name:bazowka Device:/dev/bazowka SizeK:385777664 deleted SizeK:385777664 PeSize:4096 NumPE:94184 FreePE:94184 pv:</dev/sda4> status:resizable UUID:SZjJ7P-q9RV-i9Lp-n77N-sYVF-emnm-pVBhBY ... 14502 2013-02-13 18:44:24 <1> linux(2736) [libstorage] SystemCmd.cc(execute):90 SystemCmd Executing:"/sbin/vgremove 'bazowka'" 14503 2013-02-13 18:44:24 <1> linux(2736) [libstorage] SystemCmd.cc(addLine):592 Adding Line 1 " /dev/sdb: open failed: No medium found" 14504 2013-02-13 18:44:24 <1> linux(2736) [libstorage] SystemCmd.cc(getUntilEOF):558 pid:3708 added lines:1 stderr:true 14505 2013-02-13 18:44:24 <1> linux(2736) [libstorage] SystemCmd.cc(doExecute):279 stopwatch 0.460951s for "/sbin/vgremove 'bazowka'" 14506 2013-02-13 18:44:24 <1> linux(2736) [libstorage] SystemCmd.cc(doExecute):299 system() Returns:5
From the above log, we could see that /dev/sda4 is deleted in line 9343 and the result of dumpObjectList in line 9349 contains 'deleted' compared to line 1043. I think it's the reason why `vgremove` command failed.
So users should avoid deleting partitions that are being used. It would be much better for yast2 to check the partition if it's being used before could be deleted. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com