Open mwberry opened 7 years ago
$ tkperf --version
TKperf Version: 2.1
$ git log | head -n 1
commit 8967b6dbf2b701b83cdef229f1ec8fa088718748
I've taken a look at the man page, maybe the "-R" option helps?
-R, --run Insist that mdadm run the array, even if some of the components appear to be active in another array or filesystem. Normally mdadm will ask for confirmation before including such components in an array. This option causes that question to be suppressed.
I recently started a
tkperf
run against a number of disks. I wanted to validate the performance of the disks in a RAID 0 array. I started the test, noticed that it invokedmdadm
and then I disconnected from my session to let it run. The next day I connected and noticed thatmdadm
was still running. The log file did not have anything in it indicating why it was taking so long or whether it was blocked. I stracedmdadm
and noticed that it was blocked on reading file descriptor 0, so I suspected that it was prompting the user to confirm something.So I killed TKPerf and sure enough, if I ran the same
mdadm
command the first thing it did was prompt me that some of the disks have what looked like raid headers. After I killedTKPerf
, it did log information into the log file, but due to what appears to be buffering that output didn't appear while it was hung.TKPerf
should probably do its own check and then zero-out possible RAID, LVM, and LUKS headers before calling any external tools. Alternatively, it could givemdadm
additional arguments to auto-agree or force creation.