Project

General

Profile

Bug #23080

Broken 'ceph-volume lvm prepare' mount options

Added by Alexander Kokh over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
High
Assignee:
Target version:
% Done:

0%

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

Description

Broken 'ceph-volume lvm prepare' mount options.

After run "ceph-volume lvm prepare --filestore --data vg-sda/ceph-data-sda --journal vg-sda/ceph-journal-sda" got error:

[2018-02-22 04:30:30,091][ceph_volume.process][INFO  ] Running command: mount -t xfs -o rw noatime inode64 /dev/vg-sda/ceph-data-sda /var/lib/ceph/osd/ceph-16
[2018-02-22 04:30:30,098][ceph_volume.process][INFO  ] stderr Usage:
 mount [-lhV]
 mount -a [options]
 mount [options] [--source] <source> | [--target] <directory>
 mount [options] <source> <directory>
 mount <operation> <mountpoint> [<target>]

Script run command:

mount -t xfs -o rw noatime inode64 /dev/vg-sda/ceph-data-sda var/lib/ceph/osd/ceph-16

Must be:

mount -t xfs -o rw,noatime,inode64 /dev/vg-sda/ceph-data-sda var/lib/ceph/osd/ceph-16

History

#2 Updated by Alfredo Deza over 2 years ago

  • Status changed from New to 12
  • Assignee set to Alfredo Deza
  • Priority changed from Normal to High

#3 Updated by Alfredo Deza over 2 years ago

Do you have any custom mount options in ceph.conf?

#4 Updated by Alfredo Deza over 2 years ago

We can replicate this without custom options. The workaround for this problem is to add the following to ceph.conf:

[osd]
osd_mount_options_xfs = rw,noatime,inode64

#5 Updated by Alfredo Deza over 2 years ago

  • Status changed from 12 to In Progress

#6 Updated by Alfredo Deza over 2 years ago

  • Status changed from In Progress to Fix Under Review

#8 Updated by Alfredo Deza over 2 years ago

  • Status changed from Fix Under Review to Resolved

merged commit f584df7 into master
merged commit 599a042 into luminous

Also available in: Atom PDF