Menu

#579 disk status is missleading

v0.7
open
nobody
5
2012-10-28
2009-06-05
No

Even if a disk is failed/missing, disk status might say "ONLINE".

I have 6 scsi disks in RAID + USB flash with freenas image for boot.

freenas:~# camcontrol devlist
<MAXTOR ATLAS10K5_147SCA="" JNZR=""> at scbus1 target 0 lun 0 (pass0,da0)
<MAXTOR ATLAS10K5_147SCA="" JNZR=""> at scbus1 target 1 lun 0 (pass1,da1)
<MAXTOR ATLAS10K5_147SCA="" JNZR=""> at scbus1 target 2 lun 0 (pass2,da2)
<MAXTOR ATLAS10K5_147SCA="" JNZR=""> at scbus1 target 3 lun 0 (pass3,da3)
<MAXTOR ATLAS10K5_147SCA="" JNZR=""> at scbus1 target 4 lun 0 (pass4,da4)
<MAXTOR ATLAS10K5_147SCA="" JNZR=""> at scbus1 target 5 lun 0 (pass5,da5)
<SDR GEM318="" 0=""> at scbus1 target 9 lun 0 (ses0,pass6)
<Generic USB="" Flash="" Disk="" 0.00=""> at scbus2 target 0 lun 0 (pass7,da6)

Imagine da3 fails. Upon reboot, the disks get device names da0 - da5. da5 is now not a SCSI disk, but USB flash.
It's online and working, so freenas reports all SCSI disks as online and working when in fact one of them is missing and RAID is degraded. Disks should probably be checked by id/lun and not device name.

Disk fails:
freenas:~# camcontrol devlist
<MAXTOR ATLAS10K5_147SCA="" JNZR=""> at scbus1 target 0 lun 0 (pass0,da0)
<MAXTOR ATLAS10K5_147SCA="" JNZR=""> at scbus1 target 1 lun 0 (pass1,da1)
<MAXTOR ATLAS10K5_147SCA="" JNZR=""> at scbus1 target 2 lun 0 (pass2,da2)
<MAXTOR ATLAS10K5_147SCA="" JNZR=""> at scbus1 target 4 lun 0 (pass4,da4)
<MAXTOR ATLAS10K5_147SCA="" JNZR=""> at scbus1 target 5 lun 0 (pass5,da5)
<SDR GEM318="" 0=""> at scbus1 target 9 lun 0 (ses0,pass6)
<Generic USB="" Flash="" Disk="" 0.00=""> at scbus2 target 0 lun 0 (pass7,da6)

upon reboot:
freenas:~# camcontrol devlist
<MAXTOR ATLAS10K5_147SCA="" JNZR=""> at scbus1 target 0 lun 0 (pass0,da0)
<MAXTOR ATLAS10K5_147SCA="" JNZR=""> at scbus1 target 1 lun 0 (pass1,da1)
<MAXTOR ATLAS10K5_147SCA="" JNZR=""> at scbus1 target 2 lun 0 (pass2,da2)
<MAXTOR ATLAS10K5_147SCA="" JNZR=""> at scbus1 target 4 lun 0 (pass3,da3)
<MAXTOR ATLAS10K5_147SCA="" JNZR=""> at scbus1 target 5 lun 0 (pass4,da4)
<SDR GEM318="" 0=""> at scbus1 target 9 lun 0 (ses0,pass5)
<Generic USB="" Flash="" Disk="" 0.00=""> at scbus2 target 0 lun 0 (pass6,da5)

Discussion

  • Bostjan Hojkar

    Bostjan Hojkar - 2009-06-05

    Upon reboot: The disks are still reported ONLINE when in fact one is missing

     
  • Volker

    Volker - 2009-06-05

    Hi,

    you did not tell which RAID you are using (0/1/5/vinum). Your problem is know, but i do not have an idea how to fix that. FreeBSD automatically names the devices (that's bad in some cases), but i do not understand why gmirror/gstripe/graid5/gvinum does not recognize that correctly.

    If anyone has some ideas or suggestions he is welcome to provide a working fix.

    Regards
    Volker

     
  • Bostjan Hojkar

    Bostjan Hojkar - 2009-06-05

    Soory. I'm using 0.7x with ZFS raidz1.

     
  • Bostjan Hojkar

    Bostjan Hojkar - 2009-06-05

    Just to clarify: The status of ZFS is degraded drive. It's just "Disks|Management" and "Status|Disks" that are misleading.

    "Status|System" is reporting "Total: 818G | Used: 3.15G | Free: 666G | State: DEGRADED" which is correct.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.