Page 1 of 1

Adding new harddrives to system

Posted: 20 Mar 2014 18:59
by varilsuhad
Hi,

I have 2 harddisks configured in raid1 (zfs mirror). They have device ids of ada0 and ada1
I have bought 2 more harddisk i wanted to configure them as raid1 also and then add to existing pool.

Problem is,

When i add new harddisks to system and i hit "clear config and import disks", old harddrives become ada2 and ada3. New ones claim ada0 and ada1. It seems harmless BUT
When i try to format new hdds to zfs, only ada2 and ada3 are seem to eligible to format. These are the old ones.
Also when i try to add new virtual device, only ada2 and ada3 are selectable/visible.

What can i do?

Re: Adding new harddrives to system

Posted: 21 Mar 2014 07:47
by raulfg3
varilsuhad wrote:When i add new harddisks to system and i hit "clear config and import disks",
try to add using "+" button, and add then to ZFS.

once you have a working ZFS pool, try to use "Clear config and import disk" , and next go to ZFS to sync webGUI and detected pool.

Re: Adding new harddrives to system

Posted: 22 Mar 2014 00:51
by varilsuhad
Indeed, it solves the confusion,

When i add new harddrives and reboot, in management page ada0 and ada1 were crossed out in red, i manually added ada2 and ada3. But in format page, i could format ada0 and ada1, these are newly added ones. Even though i added them as ada2-3 they were seen as ada0-1 in format page. This is true for ZFS's vdev add page.

Another workaround i've found is changing sata ports of the harddrives before adding new ones. For example old harddrives were in sata2-3 ports that's why they were seen as ada2-3 after i add new harddrives. Changing them to sata0-1 beforehand is a workaround (and clearing config before adding any harddrives).

I also experimented some with "zpool add" command through ssh. WebGUI doesn't allow adding single vdev/hdd and some other unrecommended configs to the pool.

This kind of problems cause mass confusion and could lead to data loss. This should be solved in future releases, especially WebGUI should have forcible zpool add option

Re: Adding new harddrives to system

Posted: 23 Mar 2014 08:15
by raulfg3
varilsuhad wrote:This kind of problems cause mass confusion and could lead to data loss. This should be solved in future releases, especially WebGUI should have forcible zpool add option
can't be corrected because the way BSD use to detect Disk from BIOS ( Disk order is change in BIOS when you add new disks).

Please google a bit about disk shift syndrome, that is what is know this problem.