Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 272861

Summary: mkqdisk cannot use device with 4kb sector size
Product: Red Hat Enterprise Linux 5 Reporter: Rob Kenna <rkenna>
Component: cmanAssignee: Lon Hohberger <lhh>
Status: CLOSED ERRATA QA Contact: Cluster QE <mspqa-list>
Severity: high Docs Contact:
Priority: high    
Version: 5.0CC: cluster-maint, rkenna
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2008-0347 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-05-21 15:57:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 253803    
Bug Blocks:    
Attachments:
Description Flags
Allows any size sector
none
Fix none

Comment 1 Lon Hohberger 2007-09-18 20:58:20 UTC
+++ This bug was initially created as a clone of Bug #253803 +++

Description of problem:
mkqdisk cannot use device with 4kb sector size(probably only 512b sector size is ok)

Version-Release number of selected component (if applicable):
cluster-1.04.00.tar.gz

How reproducible:
# mkqdisk -c /dev/vg0/qdisk0 -l qdisk0
mkqdisk v0.5.1
Writing new quorum disk label 'qdisk0' to /dev/vg0/qdisk0.
WARNING: About to destroy all data on /dev/vg0/qdisk0; proceed [N/y] ? y
diskRawWriteShadow: Invalid argument
diskRawWriteShadow: aligned write returned -1, not 512
diskRawWriteShadow: Invalid argument

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:


Comment 2 Lon Hohberger 2007-09-20 13:54:36 UTC
Created attachment 200741 [details]
Allows any size sector

Comment 5 Lon Hohberger 2007-12-17 19:25:02 UTC
Patch in cvs

Comment 6 Lon Hohberger 2008-01-24 00:31:32 UTC
Patch in CVS is broken; requires additional patch in order to make it work.



Comment 7 Lon Hohberger 2008-01-24 00:34:39 UTC
Created attachment 292718 [details]
Fix

Comment 9 Lon Hohberger 2008-03-27 19:23:40 UTC
I do not have any 4kb blocksize devices configured.  However, qdiskd is
correctly using I/O sizes derived from the quorum device:

[3734] debug: I/O Size: 512  Page Size: 4096

[root@molly ~]# mkqdisk -L
mkqdisk v0.5.2
/dev/xvdb1:
        Magic:                eb7a62c2
        Label:                lolcats
        Created:              Mon Feb  4 12:15:33 2008
        Host:                 molly
        Kernel Sector Size:   512
        Recorded Sector Size: 512


Comment 11 errata-xmlrpc 2008-05-21 15:57:39 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2008-0347.html