View previous topic :: View next topic |
Author |
Message |
afabco Guru
Joined: 24 Feb 2004 Posts: 380
|
Posted: Fri Sep 22, 2006 6:04 am Post subject: mdadm, findng out wht mdx a partition is really assigned to? |
|
|
I am (attempting to) setting up a raid0 /tmp file. I'm using the following command:
Code: | michelle ~ # mdadm -C /dev/md5 -l 0 -n 2 /dev/sda9 /dev/sdb9
|
Which gives the following message:
Code: | mdadm: /dev/sda9 appears to contain an ext2fs file system
size=29302272K mtime=Wed Sep 20 22:14:14 2006
mdadm: /dev/sda9 appears to be part of a raid array:
level=raid0 devices=2 ctime=Wed Sep 20 22:12:20 2006
mdadm: /dev/sdb9 appears to be part of a raid array:
level=raid0 devices=2 ctime=Wed Sep 20 22:12:20 2006
Continue creating array? |
Of course I say 'no'.
First question is what raid array are they part of? It doesn't say. Nor does cat /proc/mdstat have either sda9 or sdb9 listed anywhere.
Code: | michelle ~ # cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid5] [raid4] [raid6]
md1 : active raid1 sdb5[1]
4883648 blocks [2/1] [_U]
md2 : active raid1 sdb6[1]
4883648 blocks [2/1] [_U]
md3 : active raid1 sdb7[1]
4883648 blocks [2/1] [_U]
md4 : active raid1 sdb8[1]
4883648 blocks [2/1] [_U]
md6 : active raid1 sdb10[1]
19534912 blocks [2/1] [_U]
md8 : active raid1 sdb12[1]
19534912 blocks [2/1] [_U]
md13 : active raid5 sde1[2] sdd1[1] sdc1[0]
488391808 blocks level 5, 64k chunk, algorithm 2 [3/3] [UUU]
md0 : active raid1 sdb1[1]
96256 blocks [2/1] [_U]
unused devices: <none> |
And there isn't already an /dev/md5
Code: | michelle ~ # mdadm --detail --scan
ARRAY /dev/md0 level=raid1 num-devices=2 UUID=8aa590c0:ffcb5e34:fcf0f84a:b3f6154e
ARRAY /dev/md13 level=raid5 num-devices=3 UUID=aeaa46ba:4cc72d05:d58a5dd6:2e2fa766
ARRAY /dev/md8 level=raid1 num-devices=2 UUID=6a065dd8:5b208fd6:1014e603:be9cc068
ARRAY /dev/md6 level=raid1 num-devices=2 UUID=58a141c7:126c06aa:b3088e08:e681fa66
ARRAY /dev/md4 level=raid1 num-devices=2 UUID=830228d0:eaf9e2cd:908a2acc:bae56654
ARRAY /dev/md3 level=raid1 num-devices=2 UUID=330ba20d:37285952:451771b3:277a456e
ARRAY /dev/md2 level=raid1 num-devices=2 UUID=5fc1e1df:6b688fa0:129c147e:418ed8ea
ARRAY /dev/md1 level=raid1 num-devices=2 UUID=da55822d:0bc81dd4:45e3448b:42880da9
michelle ~ # |
Code: | michelle ~ # mdadm --detail --scan --verbose
ARRAY /dev/md0 level=raid1 num-devices=2 UUID=8aa590c0:ffcb5e34:fcf0f84a:b3f6154e
devices=/dev/sdb1
ARRAY /dev/md13 level=raid5 num-devices=3 UUID=aeaa46ba:4cc72d05:d58a5dd6:2e2fa766
devices=/dev/sdc1,/dev/sdd1,/dev/sde1
ARRAY /dev/md8 level=raid1 num-devices=2 UUID=6a065dd8:5b208fd6:1014e603:be9cc068
devices=/dev/sdb12
ARRAY /dev/md6 level=raid1 num-devices=2 UUID=58a141c7:126c06aa:b3088e08:e681fa66
devices=/dev/sdb10
ARRAY /dev/md4 level=raid1 num-devices=2 UUID=830228d0:eaf9e2cd:908a2acc:bae56654
devices=/dev/sdb8
ARRAY /dev/md3 level=raid1 num-devices=2 UUID=330ba20d:37285952:451771b3:277a456e
devices=/dev/sdb7
ARRAY /dev/md2 level=raid1 num-devices=2 UUID=5fc1e1df:6b688fa0:129c147e:418ed8ea
devices=/dev/sdb6
ARRAY /dev/md1 level=raid1 num-devices=2 UUID=da55822d:0bc81dd4:45e3448b:42880da9
devices=/dev/sdb5 |
So, I'm at a loss. How do I find out where these partitions have been assigned, and then how would I deassign them so that I can set up /dev/md5 ?
Thanks in advance! _________________ Anyone who puts a small gloss on a fundamental technology, calls it proprietary, and then tries to keep others from building on it, is a thief.
-Tim O'Reilly |
|
Back to top |
|
|
MrUlterior Guru
Joined: 22 Mar 2005 Posts: 511 Location: Switzerland
|
Posted: Fri Sep 22, 2006 6:07 pm Post subject: |
|
|
It sounds like the partitions were previously used in an array, so when you're trying to create a new array it's detecting the ID of those old arrays.
If you're absolutely certain they're not in-use, either just respond "yes" or dd /dev/zero over the first few Mbytes of the partitionts.
Alternatively, create a new array with each of them, don't create a filesystem then mount them & see what's there .. _________________
Misanthropy 2.0 - enough hate to go around
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|