Project

General

Profile

Actions

Bug #23080

closed

Broken 'ceph-volume lvm prepare' mount options

Added by Alexander Kokh about 6 years ago. Updated about 6 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 (v1):
Crash signature (v2):

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

Actions #2

Updated by Alfredo Deza about 6 years ago

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

Updated by Alfredo Deza about 6 years ago

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

Actions #4

Updated by Alfredo Deza about 6 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
Actions #5

Updated by Alfredo Deza about 6 years ago

  • Status changed from 12 to In Progress
Actions #6

Updated by Alfredo Deza about 6 years ago

  • Status changed from In Progress to Fix Under Review
Actions #8

Updated by Alfredo Deza about 6 years ago

  • Status changed from Fix Under Review to Resolved

merged commit f584df7 into master
merged commit 599a042 into luminous

Actions

Also available in: Atom PDF