[Bug 749946] New: partitioner: no check when resizing LVM logical volume
https://bugzilla.novell.com/show_bug.cgi?id=749946 https://bugzilla.novell.com/show_bug.cgi?id=749946#c0 Summary: partitioner: no check when resizing LVM logical volume Classification: openSUSE Product: openSUSE 11.4 Version: Final Platform: x86-64 OS/Version: Other Status: NEW Severity: Critical Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: bluedzins@wp.pl QAContact: jsrain@suse.com Found By: --- Blocker: --- partitioner: no check when resizing LVM logical volume Yast partitioner lets user resize LVM logical volume. However when doing so it does not inform what exactly will be done (*), and what is way worse it does not check if selected LV is mounted!!! (*) not only it resizes LV but also underlying file system So as the result, today my computer was frozen because of clash -- it appeared I had running program using LV and partitioner resizing the same LV at the same time. I had to reboot computer, and then my problems begun -- because mounted didn't detect valid file system, and e2fsck refused to correct anything because: e2fsck: "unable to set superblock flags on" So basically I was stuck. Just by pure luck running vgscan and vgdisplay somehow made e2fsck to run anyway, after that I repeated all the steps, this time manually (from console, without using Yast at all). However, the the result of this bug is a lot of wasted time, and loss of some data (so far I didn't figure out which files were corrupted in the process). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=749946
https://bugzilla.novell.com/show_bug.cgi?id=749946#c1
kk zhang
https://bugzilla.novell.com/show_bug.cgi?id=749946
https://bugzilla.novell.com/show_bug.cgi?id=749946#c2
Maciej Pilichowski
https://bugzilla.novell.com/show_bug.cgi?id=749946
https://bugzilla.novell.com/show_bug.cgi?id=749946#c
kk zhang
https://bugzilla.novell.com/show_bug.cgi?id=749946
https://bugzilla.novell.com/show_bug.cgi?id=749946#c3
Thomas Fehr
https://bugzilla.novell.com/show_bug.cgi?id=749946
https://bugzilla.novell.com/show_bug.cgi?id=749946#c4
Thomas Fehr
https://bugzilla.novell.com/show_bug.cgi?id=749946
https://bugzilla.novell.com/show_bug.cgi?id=749946#c5
Maciej Pilichowski
Could you look into /var/log/messages if there are kernel error messages at the time you did the resize.
I don't see any message even related to the fact I was resizing partition.
I did that numerous times and it always worked flawlessly.
However we both know, there is a difference between such operations: a) resize on unmounted partition b) resize on mounted partition while copying 2TB of data It is 100% in reach of system, to detect if the partition is mounted or not, and ask for sure. Please note that programs ask if user is really sure to quit them (Eclipse for example), and I think resizing partition is way more important task. It is common sense even in terms of speed -- it is faster, to quit normally programs, unmount the partition, resize, and run them back, then struggle with all activities going on -- here multitasking does more harm than good. Another thing is, to this date IMHO there underlying problems with scheduling heavy I/O traffic, my current situation is better now, not because kernel is so mature, but because I have maxed out available memory. But as this case shows, when you have (my guess) 2 heavy I/O tasks running and you are doing partitioning computer eventually freezes. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=749946
https://bugzilla.novell.com/show_bug.cgi?id=749946#c6
--- Comment #6 from Thomas Fehr
https://bugzilla.novell.com/show_bug.cgi?id=749946
https://bugzilla.novell.com/show_bug.cgi?id=749946#c7
--- Comment #7 from Maciej Pilichowski
Why do you think the system needs to copy 2TB of data when resizing from 2.5TB to 5TB? Or did you do this manually while the resize was running?
The latter (2TB is my guess, I had 2 tasks running with copying a lot of data). Please note this is HDD, not SDD, so moving heads is costly operation.
I can add a popup that advises the user that resize can be sped up if he umounts the fs.
I will strongly suggest _confirmation_dialog, instead of any passive popup, stating something that: " Your mounted partition supports resizing FS on-fly, however it is safer and faster, to unmount it first. Do you want to continue with resizing. [cancel] [resize] " Note, user does not have to quit, all it takes is to switch, unmount, and get back clicking "resize".
I will not automatically umount in YaST2 resize code
Yes, sure. With _confirmation_ box, this is enough, user has to click Yes or No, to continue. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=749946
https://bugzilla.novell.com/show_bug.cgi?id=749946#c8
Thomas Fehr
participants (1)
-
bugzilla_noreply@novell.com