Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have a RAID 1 array:

# mdadm --detail /dev/md0
/dev/md0:
        Version : 1.2
  Creation Time : Thu Oct 18 21:52:43 2012
     Raid Level : raid1
     Array Size : 1048564 (1024.16 MiB 1073.73 MB)
  Used Dev Size : 1048564 (1024.16 MiB 1073.73 MB)
   Raid Devices : 2
  Total Devices : 3
    Persistence : Superblock is persistent

    Update Time : Fri Oct 19 16:25:32 2012
          State : clean
 Active Devices : 2
Working Devices : 3
 Failed Devices : 0
  Spare Devices : 1

           Name : cow:0  (local to host cow)
           UUID : 9e691db1:f8fcc7d8:f56d9c11:1c202693
         Events : 98

    Number   Major   Minor   RaidDevice State
       2       8        2        0      active sync   /dev/sda2
       3       8       18        1      active sync   /dev/sdb2

       4       8       34        -      spare   /dev/sdc2

Is it possible to change the numbers in the Number column to 0, 1, 2 instead of 2, 3, 4? They were 0, 1, 2 until I messed around a bit with the array, removing and adding devices.

share|improve this question
    
If you recreate the array, that'll do it. Or maybe stop and start, not sure. I confess I've never cared, and I'm not sure why anyone should... –  derobert Oct 19 '12 at 16:20
1  
Ohh, someone who is as anal-retentive as me! Would also like to know the answer to this. –  Magnus Oct 19 '12 at 18:47
    
@Magnus: I think a lot of "us" are that way. By the way, if you find value in the question, there is a link for that. ;-) –  Deleted Oct 19 '12 at 18:50
    
@derobert: I'm just slightly OCD'ing over it. ;-) And maybe it's a learning experience too. Stop and start didn't do it. –  Deleted Oct 19 '12 at 18:54
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.