When a new system CentOS-4.4 is built the swap partition is always reversed... Note md3 below, the raidtab is OK, I have tried various raid commands to correct. swapoff -a raidstop /dev/md3 mkraid /dev/md3 --really-force swapon -a And then I get a proper ourput for /proc/mdstat, but when I reboot /proc/mdstat again reads as below, with md3 [0] [1] reversed.
[root]# cat /proc/mdstat Personalities : [raid1] md3 : active raid1 hda3[0] hdc3[1] 1000320 blocks [2/2] [UU]
md1 : active raid1 hdc1[1] hda1[0] 1953408 blocks [2/2] [UU]
md2 : active raid1 hdc2[1] hda2[0] 1953408 blocks [2/2] [UU]
md5 : active raid1 hdc5[1] hda5[0] 1953408 blocks [2/2] [UU]
md6 : active raid1 hdc6[1] hda6[0] 71295232 blocks [2/2] [UU]
unused devices: <none>
Quoting Gerald Waugh gwaugh@frontstreetnetworks.com:
When a new system CentOS-4.4 is built the swap partition is always reversed...
[root]# cat /proc/mdstat Personalities : [raid1] md3 : active raid1 hda3[0] hdc3[1] 1000320 blocks [2/2] [UU]
It's totally unimportant in which order you see them in /proc/mdstat. It's just the order kernel module detected them. There's really no "first" or "second" device here. They are equal. It's just that when printing them out, one of them had to be printed out first. So, they are not "reversed" regardless of the output of "cat /proc/mdstat". Simply because there no such thing as "reversed" ;-)
Quoting Gerald Waugh gwaugh@frontstreetnetworks.com:
When a new system CentOS-4.4 is built the swap partition is always reversed...
[root]# cat /proc/mdstat Personalities : [raid1] md3 : active raid1 hda3[0] hdc3[1] 1000320 blocks [2/2] [UU]
It's totally unimportant in which order you see them in /proc/mdstat. It's just the order kernel module detected them. There's really no "first" or "second" device here. They are equal. It's just that when printing them out, one of them had to be printed out first. So, they are not "reversed" regardless of the output of "cat /proc/mdstat". Simply because there no such thing as "reversed" ;-)
Thanks, I was mistakem, "hda3" is [0] and hdc3 is [1] I thought they were reversed, they are just listed in reverse order.
Gerald