Page 1 of 2

Problem (bug ?) with disk management

Posted: 04 Aug 2012 12:23
by iron31
Hello,

to solve a problem with WD30EZRX detection, I try this command :
$ camcontrol devlist

<WDC WD30EZRX-00MMMB0 80.00A80> at scbus1 target 0 lun 0 (ada0,pass0)
<Marvell 91xx Config 1.01> at scbus7 target 0 lun 0 (pass1)
<SAMSUNG HD401LJ ZZ100-15> at scbus11 target 0 lun 0 (ada1,pass2)
<WDC WD20EARX-00PASB0 51.0AB51> at scbus12 target 0 lun 0 (ada2,pass3)
<WDC WD15EADS-00P8B0 01.00A01> at scbus13 target 0 lun 0 (ada3,pass4)
<WDC WD15EADS-00P8B0 01.00A01> at scbus14 target 0 lun 0 (ada4,pass5)
<WDC WD15EARS-00MVWB0 51.0AB51> at scbus15 target 0 lun 0 (ada5,pass6)
<WDC WD15EADS-00P8B0 01.00A01> at scbus16 target 0 lun 0 (ada6,pass7)
<WDC WD20EARS-00MVWB0 50.0AB50> at scbus20 target 0 lun 0 (ada7,pass8)
<WDC WD20EARS-00MVWB0 51.0AB51> at scbus22 target 0 lun 0 (ada8,pass9)
<WDC WD20EARS-00MVWB0 50.0AB50> at scbus23 target 0 lun 0 (ada9,pass10)
<WDC WD20EARS-00J99B0 80.00A80> at scbus28 target 0 lun 0 (ada10,pass11)
<WDC WD20EARS-00MVWB0 51.0AB51> at scbus29 target 0 lun 0 (ada11,pass12)
<WDC WD20EARS-00MVWB0 51.0AB51> at scbus30 target 0 lun 0 (ada12,pass13)
<WDC WD20EARS-00MVWB0 51.0AB51> at scbus31 target 0 lun 0 (ada13,pass14)
<Kingston DT Mini Slim 1.00> at scbus32 target 0 lun 0 (pass15,da0)


Cool, Nas4Free .175 see my WD30EZRX as ADA0 !!!

Problem, the disk (and all dsiks) don't appear correctly on disk managment page, there is a shift :
Image
And if I wan to add the disk there is problem, a wrong disk is offer :
Image

Help !

Re: Problem (bug ?) with disk management

Posted: 14 Aug 2012 18:40
by netprince
I can confirm the mis-ordered disk management. It happened to me after I installed a new drive. ada0 became the new disc, and bumped my two older discs to ada1 and ada2. The zpool started up fine, but the 'status|disks' page was mixed up as well as the 'disks|management' page, much like described by iron31.

Re: Problem (bug ?) with disk management

Posted: 14 Aug 2012 20:18
by Onichan
netprince wrote:I can confirm the mis-ordered disk management. It happened to me after I installed a new drive. ada0 became the new disc, and bumped my two older discs to ada1 and ada2. The zpool started up fine, but the 'status|disks' page was mixed up as well as the 'disks|management' page, much like described by iron31.
How do you fix that? I can foresee that happening to me when I go to add more disks.

Re: Problem (bug ?) with disk management

Posted: 14 Aug 2012 20:47
by netprince
I didn't fix it, this happened during testing.

I would like to know how to fix it as well.

Re: Problem (bug ?) with disk management

Posted: 15 Aug 2012 09:25
by iron31
I'm waiting for a fix too !

Re: Problem (bug ?) with disk management

Posted: 16 Aug 2012 01:22
by Dagg
I've had the same kind of problem

In my case, the order of sata ports used was the key.
But it was simple, I have only 3 disks :)

Re: Problem (bug ?) with disk management

Posted: 24 Aug 2012 04:13
by ghelfrich919
Well, I have to say I am actually glad to hear I am not the only one having this issue. It has been a real issue for me when disks are re-ordered and my boot drive is bumped to the end of the order as I have changed disks. I thought maybe it was an issue with the sata controller I was using. I also have a problem then when I try to format the first drive in the order as I get error messages complaining "...Can't format the OS origin disk!".

Does anyone have an idea when there might be a fix? Looking forward and excited to use NAS4free.

Re: Problem (bug ?) with disk management

Posted: 24 Aug 2012 08:47
by iron31
http://nas4free.svn.sourceforge.net/vie ... /?view=log :
Revision 197 - Directory Listing
Modified Thu Aug 23 21:24:03 2012 UTC (9 hours, 20 minutes ago) by zoon01
Fix disk informations. (Thanks to Paul Barber)
I hope this fix .197 will close the problem

Re: Problem (bug ?) with disk management

Posted: 27 Aug 2012 13:43
by iron31
Version .228 don't fix the problem.....
Image

Re: Problem (bug ?) with disk management

Posted: 29 Aug 2012 16:45
by ghelfrich919
I downloaded 228 and upgraded last evening and have a similar status to report. I am still having the same issue - and it appears this release hasn't fixed the problem.

Re: Problem (bug ?) with disk management

Posted: 29 Aug 2012 17:59
by alexey123

Re: Problem (bug ?) with disk management

Posted: 30 Aug 2012 08:09
by iron31
Sorry, can you be more explicit
Version 9.1.0.1 - Sandstorm (revision 236) tested this morning, always the problem with discs
:cry:

Re: Problem (bug ?) with disk management

Posted: 30 Aug 2012 08:27
by alexey123
I search online about your problem.
Marwell controller make troubles not only for Freebsd, also Windows sometimes make BSODs, linux. Need wait for driver.
Also please read post from daoyama
How system see it in /dev folder ?

Re: Problem (bug ?) with disk management

Posted: 30 Aug 2012 20:29
by iron31
I don't think it's a driver or recognition problem, bios and Nas4Free see all the disks

The 3Tb wd ( and all disks) are seen by Nas4Free, the diagnostic page show all disks with good informations :
$ camcontrol devlist
<WDC WD30EZRX-00MMMB0 80.00A80> at scbus1 target 0 lun 0 (ada0,pass0)
<Marvell 91xx Config 1.01> at scbus7 target 0 lun 0 (pass1)
<SAMSUNG HD401LJ ZZ100-15> at scbus11 target 0 lun 0 (ada1,pass2)
<WDC WD20EARX-00PASB0 51.0AB51> at scbus12 target 0 lun 0 (ada2,pass3)
<WDC WD15EADS-00P8B0 01.00A01> at scbus13 target 0 lun 0 (ada3,pass4)
<WDC WD15EADS-00P8B0 01.00A01> at scbus14 target 0 lun 0 (ada4,pass5)
<WDC WD15EARS-00MVWB0 51.0AB51> at scbus15 target 0 lun 0 (ada5,pass6)
<WDC WD15EADS-00P8B0 01.00A01> at scbus16 target 0 lun 0 (ada6,pass7)
<WDC WD20EARS-00MVWB0 50.0AB50> at scbus20 target 0 lun 0 (ada7,pass8)
<WDC WD20EARS-00MVWB0 51.0AB51> at scbus22 target 0 lun 0 (ada8,pass9)
<WDC WD20EARS-00MVWB0 50.0AB50> at scbus23 target 0 lun 0 (ada9,pass10)
<WDC WD20EARS-00J99B0 80.00A80> at scbus28 target 0 lun 0 (ada10,pass11)
<WDC WD20EARS-00MVWB0 51.0AB51> at scbus29 target 0 lun 0 (ada11,pass12)
<WDC WD20EARS-00MVWB0 51.0AB51> at scbus30 target 0 lun 0 (ada12,pass13)
<WDC WD20EARS-00MVWB0 51.0AB51> at scbus31 target 0 lun 0 (ada13,pass14)
<Kingston DT Mini Slim 1.00> at scbus33 target 0 lun 0 (da0,pass15)
The Disk page display bad infos, a disk miss etc etc : php bug !?

Image

So I think there is un bug on webgui, even on version .247.

Re: Problem (bug ?) with disk management

Posted: 31 Aug 2012 12:31
by daoyama
diag page fetch all drives from online lists.
usually, "camcontrol devlist".

But Disks|Management is taken from your config.xml.
This is static until you modify or ZFS config sync.

It's same as old FreeNAS specific. I don't know since.

Re: Problem (bug ?) with disk management

Posted: 01 Sep 2012 15:37
by raulfg3
This mean that to sollution, user can edit by hand config.xml?

Re: Problem (bug ?) with disk management

Posted: 03 Sep 2012 18:40
by ghelfrich919
FYI - Just downloaded 9.1.0.1 rev. 262 and installed. This rev didn't fix the problem either. Disks are still re-ordered when added.

Hostname nas4free.local
Version 9.1.0.1 - Sandstorm (revision 262)
Built date Sat Sep 1 06:27:16 JST 2012
Platform OS FreeBSD 9.1-RC1 (reldate 901000)

Re: Problem (bug ?) with disk management

Posted: 03 Sep 2012 20:37
by iron31
Fresh install or just update ?

Re: Problem (bug ?) with disk management

Posted: 05 Sep 2012 06:35
by ghelfrich919
For me - I did an update - and was NOT a fresh install

Re: Problem (bug ?) with disk management

Posted: 05 Sep 2012 08:53
by raulfg3
ghelfrich919 wrote:For me - I did an update - and was NOT a fresh install
as Daoyama say in previosus post is because you update your config, if you do a fresh install, you don't have this problem.

You can try two ways to resolve:

1- Do a fresh install, and configure all by hand ( do not import your previosly saved config, because is your config the origen of the problem).
2 -Try to delete / order lines in config.xml to have the same order that BSD detect it.

Re: Problem (bug ?) with disk management

Posted: 06 Sep 2012 05:49
by ghelfrich919
I did a fresh install, and I had the same problem with disks re-ordering as I added them following the install. As suggested above in option #1, I interpreted I would not need to fix or change the config.xml file. Possibly I mis-interpreted this. After a fresh install, do I need to change the config.xml files as I add drives?

It looks like I need to work with the config.xml file to fix and move forward. Is this an on-going issue, or only temporary problem until resolved in a later build/release?

Re: Problem (bug ?) with disk management

Posted: 11 Sep 2012 20:25
by BodgeIT
As I understand this now after having come accross the issue myself, this is a FreeBSD "Feature"

I think the the thing todo is bring a labeling function into the GUI so that disks can be labelled.

I'm currently doing this for my ZFS arrays but would also like to get system and iSCSI disks labelled too.

See this link
http://forums.freebsd.org/showthread.php?t=28181

Re: Problem (bug ?) with disk management

Posted: 27 Sep 2012 18:12
by iron31
Hello all.

All is ok after a fresh install :
my 4 3tb wd are seen by bios & nas4free

I have also tested Live usb install with .306 : all is ok !!!!

Thanks for help and your hard work on this project.

Image

Re: Problem (bug ?) with disk management

Posted: 29 Sep 2012 02:18
by diablos666
Has anyone found a fix to this yet (running 306)? Is there a way to correct this misaligned disks? I have 2x80GB, 2x1.5TB, 2x2.5TB disks and everything was fine until today when I added 2x3TB drives and now the order of all my disks is messed up. Should I just remove the 3TB drives until there is a fix?

ad0 - 2TB Vol1 Stayed
ad1 - 2TB Vol2 Stayed
ad2 - 1.5TB Vol1 now 3TB Vol1
ad3 - 80GB Vol1 now 1.5TB Vol1
ad4 - 80GB Vol2 Stayed
ad5 - 1.5TB Vol2 now 80GB Vol1
ad6 - 1.5TB Vol1 now 1.5TB Vol2
ad7 - 3TB Vol 2 New stayed

Thanks.

Re: Problem (bug ?) with disk management

Posted: 29 Sep 2012 08:27
by iron31
Only a fresh install has resolved the problem for me after lot of search

Re: Problem (bug ?) with disk management

Posted: 29 Sep 2012 17:47
by diablos666
This was a fresh install of 306. I had done an upgrade from 7.x and had this problem so I started from scratch. Same issue as before. The addition of drives rearranges the drives for some reason.

Re: Problem (bug ?) with disk management

Posted: 02 Oct 2012 03:16
by diablos666
Is this an issue that the NAS4Free developers are even looking at? Has anyone officially submitted a Bug Report? If they don't know about it and aren't monitoring the forums then we can't expect it to get fixed and there is surely a problem here that needs to be resolved.

Update : I did check the bug list and it was submitted (details below).

#29 Disk management page bug
Status: open
Owner: nobody
Labels: webgui (15)
Priority: 5
Updated: 2012-09-08
Created: 2012-08-04
Creator: iron31
Private: No

On the disk management page, the gui dont show correctly all the disk on my systèm.

UPDATE #2 : Upgraded my system to 323 to see if there was any difference..added the two drives and now in this version it clearly indicates which drives labels are misaligned but it still does nothing to fix it!

Re: Problem (bug ?) with disk management

Posted: 02 Oct 2012 09:30
by daoyama
diablos666 wrote:UPDATE #2 : Upgraded my system to 323 to see if there was any difference..added the two drives and now in this version it clearly indicates which drives labels are misaligned but it still does nothing to fix it!
Yes, currently it have no auto reorder, it may not want by every user.
Try click clear and import, it clear current disk config, and re-add all disks with correct serial.

Re: Problem (bug ?) with disk management

Posted: 02 Oct 2012 14:35
by diablos666
Yes I did that initially but in doing so it completely destroys the existing raid arrays since they now reference incorrect disk IDs. If the disks can be identified (which they are) then the raid arrays should also be able to be updated to include the correct disks. The disks ids are so messed up that every array is effected. You can see this in the attachment.
DiskIDs.gif

Re: Problem (bug ?) with disk management

Posted: 02 Oct 2012 15:49
by daoyama
If you use Software RAID, you must run both "clear and import disks" and "clear and import raid disks".
This update all member of RAID, and update mount point depend on the array and individual disks.