Created
August 9, 2012 02:34
-
-
Save ymmt2005/3300419 to your computer and use it in GitHub Desktop.
mdadm crap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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