[Bug 215542] Re: mdadm --create with typo overwrites device file

Phillip Susi psusi at ubuntu.com
Mon Jun 3 18:08:27 UTC 2013


This appears to have been fixed.  Now when you try this you get told:

mdadm: device /dev/loop0 exists but is not an md array.


** Changed in: mdadm (Ubuntu)
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to mdadm in Ubuntu.
https://bugs.launchpad.net/bugs/215542

Title:
  mdadm --create with typo overwrites device file

Status in “mdadm” package in Ubuntu:
  Fix Released

Bug description:
  I forgot to specify the new MD device to mdadm when creating a new
  array, resulting in an error message:

  # mdadm --create --level=raid1 --chunk=64  --raid-devices=2 /dev/hdb /dev/hdc
  mdadm: You haven't given enough devices (real or missing) to create this array

  but also resulting in the device file for "/dev/hdb" going AWOL:

  root at yggdrasil:~# ls -la /dev/hd*
  brw-rw---- 1 root cdrom  3,   0 2008-04-10 18:52 /dev/hda
  brw-rw---- 1 root disk   9, 127 2008-04-11 09:43 /dev/hdb
  brw-rw---- 1 root disk  22,   0 2008-04-10 18:52 /dev/hdc
  brw-rw---- 1 root cdrom 22,  64 2008-04-10 18:52 /dev/hdd

  Please check arguments before doing anything to files or devices :-/
  2.6.2-1ubuntu2, ubuntu gutsy.

  cheers,
  Andras

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/215542/+subscriptions




More information about the foundations-bugs mailing list