raidsetfaulty / mdctl --fail problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

i stuffed up the setup of the raid and have 3 partitions in a raid 1 array,
instead of 2 partitions and a hot spare. i also want to move the partitions
around for better load balancing on the scsi channels.
i dont want to blow away the data, so i tried to raidsetfaulty,
but i get an error. i also tried mdctl, but get some wierd results.
may indicate something? or maybe just a simple syntax error.
when i examine each drive in the array, the state info looks corrupt?
thanks for any help.
Brin


/sbin/raidsetfaulty /dev/md0 /dev/sdj1
/dev/md0: can not set disk faulty: invalid argument.
/sbin/mdctl --fail /dev/md0 /dev/sdj1
mdctl: set disk faulty failed for /dev/sdj1:  Invalid argument

proc
------
md0 : active raid1 sdj1[1] sdb1[2] sda1[0] 14272 blocks [3/3] [UUU]
md1 : active raid1 sda4[0] 8296896 blocks [3/1] [U__]

uname
---------
Linux sunny 2.2.19-6.2.12smp #1 SMP Fri Oct 26 12:56:49 EDT 2001 sparc64

mdctl --details /dev/md0
/dev/md0:
        Version : 00.90.00
  Creation Time : Fri Dec 28 11:46:24 2001
     Raid Level : raid1
           Size : 14272
     Raid Disks : 3
    Total Disks : 3
Preferred Minor : 0
    Persistance : Superblock is persistant

    Update Time : Wed Feb 20 12:34:58 2002
          State : dirty, no-errors
  Active Drives : 3
 Working Drives : 3
  Failed Drives : 0
   Spare Drives : 0

    Number   Major   Minor   RaidDisk   State
       0       8        1        0      active sync   /dev/sda1
       1       8      145        1      active sync   /dev/sdj1
       2       8       17        2      active sync   /dev/sdb1
           UUID : ebb91537:7e1a6584:6af43831:df6271f0

mdctl --examine /dev/sda1
/dev/sda1:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : ebb91537:7e1a6584:6af43831:df6271f0
  Creation Time : Fri Dec 28 11:46:24 2001
     Raid Level : raid1
           Size : 14272
     Raid Disks : 3
    Total Disks : 3
Preferred Minor : 0

    Update Time : Wed Feb 20 12:34:58 2002
          State : dirty, no-errors
  Active Drives : 3
 Working Drives : 3
  Failed Drives : 0
   Spare Drives : 0
       Checksum : d5f56b6e - correct
         Events : 0.0

      Number   Major   Minor   RaidDisk   State
this     0       0        8        1
   0     0       0        8        1
   1     0       1        8      145      faulty   /dev/ram8
   2     0       2        8       17      active   /dev/fd0h1200
									^
									This
looks strange to me?



---------------------------------------------------
Brinley Craig
Network Administrator
Godfrey Hirst Australia Pty. Ltd.
Ph: 03 5225-0139 Fx: 03 5222-3885
brinley.craig@godfreyhirst.com
---------------------------------------------------



PLEASE NOTE:
Whilst we use software to detect viruses we exclude all liability
for the presence of any virus or alike in any attachments.

-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux