I am using Ubuntu 12.04 & Zfs Native. I created a zpool using the /dev/disk/by-id method, but I can no longer import zpool. When I try zpool status command I get the error message " no such pool " when I try " zpool import " It finds the pool & shows that one disk is missing or unavailable.
pool: tank
id: 14496103743076187609
state: UNAVAIL
status: One or more devices are missing from the system.
action: The pool cannot be imported. Attach the missing
devices and try again.
see: http://zfsonlinux.org/msg/ZFS-8000-6X
config:
aNas6TB UNAVAIL missing device
sdf ONLINE
sdh ONLINE
Additional devices are known to be part of this pool, though their
exact configuration cannot be determined.
I have connected another drive of same size ( bad disk still in original place ) but I am having difficulty replacing bad disk with new one in zpool. I tried the following:
sudo zpool replace tank /dev/sdg /dev/sde
sudo zpool replace tank scsi-SATA_ST32000542AS_9XW04YRP scsi-SATA_ST2000DM001-9YN_S240FE7C
sudo zpool replace tank dev/sdg dev/sde
I get the same error message each time "cannot open 'tank': no such pool"
I am obviously doing something wrong and would be grateful for any help.