Bug 105205

Summary: Deleting logical volume failed -3002
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Forgotten User vd_J2WSqeK <forgotten_vd_J2WSqeK>
Component: YaST2Assignee: Thomas Fehr <fehr>
Status: VERIFIED FIXED QA Contact: Klaus Kämpf <kkaempf>
Severity: Normal    
Priority: P5 - None    
Version: Beta 2   
Target Milestone: Beta 3   
Hardware: i386   
OS: SUSE Other   
Whiteboard:
Found By: System Test Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Logs

Description Forgotten User vd_J2WSqeK 2005-08-17 14:13:06 UTC
code10 beta2 on i386 Installed on a single ide drive
Created a 200M /boot partition
created 2 5G LVM (type 8E) partitions as group "system"
within "system" I created 2 logical volumes: / as "rot" and /usr as "user".
continued the installation.
next I attempted one of the yast2 test cases:
- Try to edit a LVM partition w/ normal partitioner
  (it should tell you to first unlink the LVM volume)
- Try to unlink a group/volume/partition from LV
- Try to delete complete LVM stuff

This TC would lead me to beleive that I'm not supposed to be able to delete a
logical volume outside of the LVM code.
I was infact allowed to do this (up until the error that is).

The Critical Assumption on my part:  I assume that if I delete a file system
"logical volume" such as /usr, the files\directories will be moved to / and the
deletion of the logical volume would be allowed. 

I attempted to delete the logical volume by simply pressing the delete button on
the main partition screen ( not within LVM sub menu)

I was asked to confirm the deletion and then an error popped up.
error Storage modification failed system errorcode was -3002  Failure occured
during the following action: deleting logical volume /dev/system/user

Will attach yast logs
Comment 1 Forgotten User vd_J2WSqeK 2005-08-17 14:13:57 UTC
Created attachment 46323 [details]
Logs
Comment 2 Thomas Fehr 2005-08-18 09:28:09 UTC
The Volume you wanted to delete was mounted to /usr.
YaST2 tried umounting it but failed therefore the removal could not be done.

I changed the code now to check for a mounted LVM volume the same way 
as for a mounted disk partition. The user will get a popup that tells him
about the device being mounted.