11.10.2015 16:31, Istvan Gabor пишет:
Hello:
I use linux mdraid in openSUSE for device mirroring (raid1). When looking at array properties in /proc/mdstat and mdadm -D I see arrays like:
md13 : active raid1 sdc13[2] sdb13[3] 62918468 blocks super 1.0 [2/2] [UU]
mdadm -D /dev/md13 /dev/md13: Version : 1.0 Creation Time : Mon Jul 15 10:44:48 2013 Raid Level : raid1 Array Size : 62918468 (60.00 GiB 64.43 GB) Used Dev Size : 62918468 (60.00 GiB 64.43 GB) Raid Devices : 2 Total Devices : 2 Persistence : Superblock is persistent
Update Time : Sun Oct 11 15:17:01 2015 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0
Name : pc:13 (local to host pc) UUID : xxxxxxxxxxxxxxxxxxxxxxxxx Events : 2631
Number Major Minor RaidDevice State 3 8 29 0 active sync /dev/sdb13 2 8 45 1 active sync /dev/sdc13
As you see the array has only two devices still the "number" for the devices are 3 and 2. How could I change this to have number 0 for /dev/sdb13 and number 1 for /dev/sdc13?
Does it really matter?
That is, that mdstat would indicate this: md13 : active raid1 sdb13[0] sdc13[1]
Also, what exactly are the meanings of "Number" and "Minor"? Which one is the so called "slot" I see at some page dealing with mdraid?
"Slot" is the very first column, Number. I do not think you can change it. It does not look like it is exposed anywhere in management interface. The only way is probably to recreate (not assemble) array using --assume-clean; that should reinitialize superblock, starting slot allocation anew.
I could not find info regarding this in mdadm manual or raid wiki pages.
Thanks,
Istvan
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org