Bug #11308
closed"mkfs.btrfs: invalid option -- 'f'"
0%
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?
Updated by Greg Farnum about 9 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.
Updated by Andrew Schoen about 9 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?
Updated by Andrew Schoen about 9 years ago
- Status changed from New to Fix Under 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?
Updated by Sage Weil about 9 years ago
- Status changed from Fix Under Review to Resolved