Skip to content

Instantly share code, notes, and snippets.

@ymmt2005
Created August 9, 2012 02:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ymmt2005/3300419 to your computer and use it in GitHub Desktop.
Save ymmt2005/3300419 to your computer and use it in GitHub Desktop.
mdadm crap
$ sudo /sbin/mdadm -A /dev/md/a -R --auto=md --symlink=no --update=devicesize /dev/sda
Size was 2097128
Size is 2097128
mdadm: /dev/md/a has been started with 1 drive (out of 2).
$ ls -l /dev/md
total 0
lrwxrwxrwx 1 root root 8 Aug 9 02:28 a -> ../md127
$ sudo /sbin/mdadm -A /dev/md/b -R --auto=md --symlink=no --update=devicesize /dev/sdb
Size was 2097128
Size is 2097128
mdadm: /dev/md/b has been started with 1 drive (out of 2).
$ ls -l /dev/md total 0
lrwxrwxrwx 1 root root 8 Aug 9 02:28 a -> ../md126
WTF!
* /dev/md/b is missing.
* /dev/md/a is erroneously replaced.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment