[Bug 684178] New: lvresize (from lvm tools) ask for confirmation and ignore
https://bugzilla.novell.com/show_bug.cgi?id=684178 https://bugzilla.novell.com/show_bug.cgi?id=684178#c0 Summary: lvresize (from lvm tools) ask for confirmation and ignore Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: x86-64 OS/Version: openSUSE 11.3 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: diego.ercolani@gmail.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0.0) Gecko/20100101 Firefox/4.0 this is lvm2-2.02.67-4.1.1.x86_64 version. I issued the lvresize command to add 5GB on a mounted ext4 filesystem. As you see from the log included, lvresize ask for confirmation telling that procedure WILL damage the filesystem. I answered "no" and the procedure have been done so.... fortunately no damage but why asking if you do the job? lvresize -r -L +5G /dev/nonraid/dati-ntop fsck from util-linux-ng 2.17.2 e2fsck 1.41.11 (14-Mar-2010) /dev/mapper/nonraid-dati--ntop is mounted. WARNING!!! The filesystem is mounted. If you continue you ***WILL*** cause ***SEVERE*** filesystem damage. Do you really want to continue (y/n)? no check aborted. Extending logical volume dati-ntop to 30.00 GiB Logical volume dati-ntop successfully resized resize2fs 1.41.11 (14-Mar-2010) Filesystem at /dev/dm-5 is mounted on /var/lib/ntop; on-line resizing required old desc_blocks = 2, new_desc_blocks = 2 Performing an on-line resize of /dev/dm-5 to 7864320 (4k) blocks. The filesystem on /dev/dm-5 is now 7864320 blocks long. Reproducible: Always Steps to Reproduce: 1. 2. 3. -- 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=684178
https://bugzilla.novell.com/show_bug.cgi?id=684178#c2
Xinwei Hu
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0.0) Gecko/20100101 Firefox/4.0
this is lvm2-2.02.67-4.1.1.x86_64 version.
I issued the lvresize command to add 5GB on a mounted ext4 filesystem. As you see from the log included, lvresize ask for confirmation telling that procedure WILL damage the filesystem. I answered "no" and the procedure have been done so.... fortunately no damage but why asking if you do the job?
lvresize -r -L +5G /dev/nonraid/dati-ntop fsck from util-linux-ng 2.17.2 e2fsck 1.41.11 (14-Mar-2010) /dev/mapper/nonraid-dati--ntop is mounted.
WARNING!!! The filesystem is mounted. If you continue you ***WILL*** cause ***SEVERE*** filesystem damage.
Do you really want to continue (y/n)? no
check aborted. The warning above is from e2fsck I think. So nothing related to lvresize ;)
Would you confirm that? -- 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=684178
https://bugzilla.novell.com/show_bug.cgi?id=684178#c3
--- Comment #3 from Diego Ercolani
https://bugzilla.novell.com/show_bug.cgi?id=684178
https://bugzilla.novell.com/show_bug.cgi?id=684178#c4
--- Comment #4 from Xinwei Hu
The question is that I answered "no" and the utility ignored my answer... so why that utility is asking if it doesn't read my asnwer?
lvresize tries to call fsck before actually resizing. I think it's e2fsck who WARN you at that time. And your answer was taking care of, because the fsck step was skipped then. lvresize continued without fsck. -- 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=684178
https://bugzilla.novell.com/show_bug.cgi?id=684178#c5
--- Comment #5 from Diego Ercolani
https://bugzilla.novell.com/show_bug.cgi?id=684178
https://bugzilla.novell.com/show_bug.cgi?id=684178#c6
Diego Ercolani
https://bugzilla.novell.com/show_bug.cgi?id=684178
https://bugzilla.novell.com/show_bug.cgi?id=684178#c
Xinwei Hu
https://bugzilla.novell.com/show_bug.cgi?id=684178
https://bugzilla.novell.com/show_bug.cgi?id=684178#c7
dong mao zhang
participants (1)
-
bugzilla_noreply@novell.com