Project

General

Profile

Bug #15604

RBD image mounted by command "rbd-nbd" the status is read-only.

Added by Mika ch over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
High
Assignee:
-
Target version:
-
Start date:
04/26/2016
Due date:
% Done:

0%

Source:
Tags:
Backport:
jewel
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
rbd
Pull request ID:

Description

rbd-nbd can map and mount rbd image to /dev/nbdX successfully.
But can not write any files. The error message is "Read-only file system".

Test enviorment:
With Ubuntu kernel 3.14、3.16、4.4.0.
ceph version: 10.2.0 (3a9fba20ec743699b69bd0181dd6c54dc01c64b9)/ceph version 10.1.2 (4a2a6f72640d6b74a3bbd92798bb913ed380dcd4)

Test steps:
1.$rbd create testdisk -s 1G
2.$sudo rbd-nbd map testdisk
3.$sudo mkfs.ext4 -m 0 /dev/nbd0
4.$sudo mount /dev/nbd0 /mnt/mydisk
5.$echo 'Hello! ceph'|sudo tee /mnt/mydisk/he.txt
6.dmesg:
[71493.643241] block nbd0: Other side returned error (5)
[71493.643395] blk_update_request: I/O error, dev nbd0, sector 100224
[71493.643581] block nbd0: Other side returned error (5)
[71493.643780] blk_update_request: I/O error, dev nbd0, sector 100352
[71493.643954] block nbd0: Other side returned error (5)
[71493.644114] blk_update_request: I/O error, dev nbd0, sector 100480
[71493.644313] block nbd0: Other side returned error (5)
[71493.644498] block nbd0: Other side returned error (5)
[71493.644682] block nbd0: Other side returned error (5)
[71493.708647] block nbd0: Other side returned error (5)


Related issues

Copied to rbd - Backport #15716: jewel: RBD image mounted by command "rbd-nbd" the status is read-only. Resolved

History

#1 Updated by Chang-Yi Lee over 2 years ago

I am working on this item

#3 Updated by Jason Dillaman over 2 years ago

  • Status changed from New to Need Review
  • Backport set to jewel

#4 Updated by Josh Durgin over 2 years ago

  • Project changed from Ceph to rbd
  • Subject changed from [rbd]RBD image mounted by command "rbd-nbd" the status is read-only. to RBD image mounted by command "rbd-nbd" the status is read-only.
  • Priority changed from Normal to High

#5 Updated by Jason Dillaman over 2 years ago

  • Status changed from Need Review to Pending Backport

#6 Updated by Nathan Cutler over 2 years ago

  • Copied to Backport #15716: jewel: RBD image mounted by command "rbd-nbd" the status is read-only. added

#7 Updated by Jason Dillaman over 2 years ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF