Bug 682513 - VDSM - Storage: VDSM should work with new mke2fs default of discard=enabled
Summary: VDSM - Storage: VDSM should work with new mke2fs default of discard=enabled
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: vdsm
Version: 6.1
Hardware: Unspecified
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Erez Shinan
QA Contact: Jakub Libosvar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-06 10:15 UTC by Daniel Paikov
Modified: 2013-07-04 07:41 UTC (History)
7 users (show)

Fixed In Version: vdsm-4.9-65.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-06 07:08:29 UTC
Target Upstream Version:


Attachments (Terms of Use)
vdsm.log (1.10 MB, application/x-gzip)
2011-03-06 10:15 UTC, Daniel Paikov
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2011:1782 0 normal SHIPPED_LIVE new packages: vdsm 2011-12-06 11:55:51 UTC

Description Daniel Paikov 2011-03-06 10:15:27 UTC
Created attachment 482503 [details]
vdsm.log

As of RHEL 6.1, mke2fs has a default of discard=enabled. Creating new storage domain on a storage that doesn't support discard now fails with the following errors. We should disable discard on our side by using "mke2fs -K".

I'll test this on RHEL 6.0 to see whether the default there is already discard=enabled. I'll update this bug when I have new info.

Thread-4576::DEBUG::2011-03-03 11:47:20,433::blockSD::913::Storage.Misc.excCmd::(_cr
eateVMSfs) FAILED: <err> = 'Warning: could not erase sector 2: Attempt to write bloc
k from filesystem resulted in short write\nWarning: could not read block 0: Attempt
to read block from filesystem resulted in short read\nWarning: could not erase secto
r 0: Attempt to write block from filesystem resulted in short write\n\nWarning, had
trouble writing out superblocks.'; <rc> = 1
Thread-4576::ERROR::2011-03-03 11:47:20,434::task::854::TaskManager.Task::(_setError
) Unexpected error
Traceback (most recent call last):
  File "/usr/share/vdsm/storage/task.py", line 862, in _run
    return fn(*args, **kargs)
  File "/usr/share/vdsm/storage/hsm.py", line 1199, in public_createStorageDomain
    domClass=domClass, typeSpecificArg=typeSpecificArg, version=domVersion)
  File "/usr/share/vdsm/storage/sdf.py", line 60, in create
    version=version)
  File "/usr/share/vdsm/storage/blockSD.py", line 286, in create
    _createVMSfs(os.path.join("/dev", vgName, MASTERLV))
  File "/usr/share/vdsm/storage/blockSD.py", line 915, in _createVMSfs
    raise se.MkfsError(dev)
MkfsError: Cannot create filesystem on device: ('/dev/3a135f20-612f-4bf4-8081-2e1fd4
767ea7/master',)

Comment 2 Daniel Paikov 2011-03-06 12:27:16 UTC
I tested this on RHEL 6.0, mke2fs fails on 6.0 as well.

Comment 3 Erez Shinan 2011-05-05 13:27:29 UTC
http://gerrit.usersys/#change,370

Comment 5 Jakub Libosvar 2011-05-18 14:41:34 UTC
Verified in vdsm-4.9-67.el6.x86_64

Comment 6 errata-xmlrpc 2011-12-06 07:08:29 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2011-1782.html


Note You need to log in before you can comment on or make changes to this bug.