I recently added 2 new bigger drives, one at a time to migrate the
existing pool (attach/detach).
Initially I installed the first new drive on SATA1, it was given
device /dev/sdb, and the original changed to /dev/sdc!
zpool status -v showed /dev/sdb as UNAVAIL. Switching the cables put
things back to normal, and the attach command worked perfectly
generating a 3-way mirror. But it did show 5 CKSUM errors for sdb?
Previously scrubbed weekly, so could this have been caused by ZFS
writes continuing on hda when the device names were changed and simply
needing to be fixed later?
Can ZFS automatically scan all of the devices to see which ones belong
together? As LVM does.
I am changing the drive layout to use a single DOS/Linux partition for
now so the pool can be used in Nexenta too - then it will be easier to
change to EFI in future if that provides a better method for auto-
detecting.
If I didn't want to share the pool, creating 2 LVM volume groups and
logical volumes would be another way to guarantee consistent device
names.
Daniel.
This is mostly likely a bit not implemented in ZFS-FUSE. ZFS first tries
to open components by remembered names/paths. If that fails, it tries to
lookup components by their IDs (for example disk serial number). I
needed to add code that allows to obtain disk serial number to FreeBSD
kernel, so I'm guessing its not implemented in linux port. As a
work-around you should be able to remove /etc/zfs/zpool.cache file and
import the pool (zpool export also removes pool from zpool.cache, that's
why it worked for you).
--
Pawel Jakub Dawidek http://www.wheel.pl
p...@FreeBSD.org http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!
This is mostly likely a bit not implemented in ZFS-FUSE. ZFS first tries
to open components by remembered names/paths. If that fails, it tries to
lookup components by their IDs (for example disk serial number). I
needed to add code that allows to obtain disk serial number to FreeBSD
kernel, so I'm guessing its not implemented in linux port. As a
work-around you should be able to remove /etc/zfs/zpool.cache file and
import the pool (zpool export also removes pool from zpool.cache, that's
why it worked for you).
--
Pawel Jakub Dawidek http://www.wheel.pl
p...@FreeBSD.org http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!
zpool import -d /dev/disk/by-id tank
This way, your zpool.cache will remember disks with persistent names.
I'm away from my office at the moment and have lost access to my
workstation, but if I recall correctly, that's approximately what I did.
- Aaron
This works well, thanks for you help.