Project

General

Profile

Bug #11308

"mkfs.btrfs: invalid option -- 'f'"

Added by Greg Farnum over 4 years ago. Updated over 4 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
QA Suite
Target version:
-
Start date:
04/02/2015
Due date:
% Done:

0%

Source:
Q/A
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:

Description

http://pulpito.ceph.com/gregf-2015-04-01_15:56:32-fs-greg-fs-testing---basic-multi/832166/

There are several other examples from that run.

2015-04-01T19:00:21.009 INFO:tasks.ceph:Running mkfs on osd nodes...
2015-04-01T19:00:21.010 INFO:tasks.ceph:ctx.disk_config.remote_to_roles_to_dev: {Remote(name='ubuntu@plana26.front.sepia.ceph.com'): {'1': '/dev/sdb', '0': '/dev/sdd'}, Remote(name='ubuntu@plana96.front.sepia.ceph.com'): {'3': '/dev/sdb', '2': '/dev/sdd'}}
2015-04-01T19:00:21.010 INFO:teuthology.orchestra.run.plana26:Running: 'sudo mkdir -p /var/lib/ceph/osd/ceph-0'
2015-04-01T19:00:21.023 INFO:tasks.ceph:{}
2015-04-01T19:00:21.023 INFO:tasks.ceph:0
2015-04-01T19:00:21.023 INFO:tasks.ceph:['mkfs.btrfs', '-f', '-m', 'single', '-l', '32768', '-n', '32768'] on /dev/sdd on ubuntu@plana26.front.sepia.ceph.com
2015-04-01T19:00:21.023 INFO:teuthology.orchestra.run.plana26:Running: 'yes | sudo mkfs.btrfs -f -m single -l 32768 -n 32768 /dev/sdd'
2015-04-01T19:00:21.139 INFO:teuthology.orchestra.run.plana26.stderr:mkfs.btrfs: invalid option -- 'f'
2015-04-01T19:00:21.139 INFO:teuthology.orchestra.run.plana26.stderr:usage: mkfs.btrfs [options] dev [ dev ... ]
2015-04-01T19:00:21.139 INFO:teuthology.orchestra.run.plana26.stderr:options:
2015-04-01T19:00:21.139 INFO:teuthology.orchestra.run.plana26.stderr:    -A --alloc-start the offset to start the FS
2015-04-01T19:00:21.140 INFO:teuthology.orchestra.run.plana26.stderr:    -b --byte-count total number of bytes in the FS
2015-04-01T19:00:21.140 INFO:teuthology.orchestra.run.plana26.stderr:    -d --data data profile, raid0, raid1, raid10 or single
2015-04-01T19:00:21.140 INFO:teuthology.orchestra.run.plana26.stderr:    -l --leafsize size of btree leaves
2015-04-01T19:00:21.140 INFO:teuthology.orchestra.run.plana26.stderr:    -L --label set a label
2015-04-01T19:00:21.140 INFO:teuthology.orchestra.run.plana26.stderr:    -m --metadata metadata profile, values like data profile
2015-04-01T19:00:21.140 INFO:teuthology.orchestra.run.plana26.stderr:    -n --nodesize size of btree nodes
2015-04-01T19:00:21.140 INFO:teuthology.orchestra.run.plana26.stderr:    -s --sectorsize min block allocation
2015-04-01T19:00:21.140 INFO:teuthology.orchestra.run.plana26.stderr:Btrfs Btrfs v0.19

This is an Ubuntu Precise machine, so my naive assumption is that it's just too old to have the "-f" flag?

History

#1 Updated by Greg Farnum over 4 years ago

I pushed a simpel revert to greg-btrfs-master so I could run some tests, but not understanding the purpose of the patch I didn't want to try and merge it in.

#2 Updated by Andrew Schoen over 4 years ago

Yeah, I think your suspicion is right concerning precise. This was the commit that changed the behavior here: https://github.com/ceph/ceph-qa-suite/commit/182cb630346344a6cb3773012d460fc8dfd14285

We used to try first without -f and then try the command again with -f if it failed. Maybe we should have still try without -f if the command fails with it?

#3 Updated by Andrew Schoen over 4 years ago

  • Status changed from New to Need Review
  • Assignee changed from Andrew Schoen to Greg Farnum

Greg, please take a look. Maybe you could try out this branch on your next test run to see if it helps?

https://github.com/ceph/ceph-qa-suite/pull/392

#4 Updated by Sage Weil over 4 years ago

  • Status changed from Need Review to Resolved

Also available in: Atom PDF