Michelle Bhaal
2010-Apr-18 06:57 UTC
[zfs-discuss] zpool lists 2 controllers the same, how do I replace one?
Hello. zpool lists my pool as having 2 disks which have identical names. One is offline, the other is online. How do I tell zpool to replace the offline one? I want to replace the offline c5t5d0 with c5t2d0 but when I run the command: pfexec zpool replace -f space c5t5d0 c5t2d0 I get the error: cannot replace c5t5d0 with c5t2d0: c5t2d0 is busy here is the status of my pool: zpool status -v space pool: space state: DEGRADED status: One or more devices has been taken offline by the administrator. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Online the device using ''zpool online'' or replace the device with ''zpool replace''. scrub: none requested config: NAME STATE READ WRITE CKSUM space DEGRADED 0 0 0 raidz1-0 DEGRADED 0 0 0 c5t3d0 ONLINE 0 0 0 c5t4d0 ONLINE 0 0 0 c5t5d0 ONLINE 0 0 0 c5t5d0 OFFLINE 0 0 0 errors: No known data errors How can I replace the offline disk? Michelle
Mark J Musante
2010-Apr-19 11:37 UTC
[zfs-discuss] zpool lists 2 controllers the same, how do I replace one?
On Sun, 18 Apr 2010, Michelle Bhaal wrote:> zpool lists my pool as having 2 disks which have identical names. One > is offline, the other is online. How do I tell zpool to replace the > offline one?If you''re lucky, the device will be marked as not being present, and then you can use the GUID. To find out, use the command "zdb -C" to dump out the configuation information. In the output, look for the offline disk (it should be under a heading "children[3]"). If the "not_present" value is there, then you can use the guid to do the replace. The guid is the really long number listed after the "id" value (which should also be 3 in your config). # zpool replace space <really long number> <new disk>
Markus Kovero
2010-Apr-23 08:22 UTC
[zfs-discuss] zpool lists 2 controllers the same, how do I replace one?
> If you''re lucky, the device will be marked as not being present, and then > you can use the GUID.> To find out, use the command "zdb -C" to dump out the configuation > information. In the output, look for the offline disk (it should be under > a heading "children[3]"). If the "not_present" value is there, then you > can use the guid to do the replace. The guid is the really long number > listed after the "id" value (which should also be 3 in your config).What if not_present isn''t there; children[1]: type: ''disk'' id: 1 guid: 9311942279929207354 path: ''/dev/dsk/c6t33d0s0'' devid: ''id1,sd at n50014ee0010dd179/a'' phys_path: ''/pci at 0,0/pci8086,340e at 7/pci8086,32c at 0/pci1028,1f04 at 8/sd at 21,0:a'' whole_disk: 1 DTL: 584 create_txg: 40 children[14]: type: ''disk'' id: 14 guid: 13886071452172028089 path: ''/dev/dsk/c6t33d0s0'' devid: ''id1,sd at n50014ee101e8fc90/a'' phys_path: ''/pci at 0,0/pci8086,340e at 7/pci8086,32c at 0/pci1028,1f04 at 8/sd at 21,0:a'' whole_disk: 1 DTL: 449 create_txg: 64771 Other is failed and other is online on pool, in different raidz2-sets Yours Markus Kovero