Say I have a raidz of 3 disks: ad4 ad6 ad8 I want to tell zfs that I am pulling ad4 and replacing it with a new disk on the same controller, but I can''t get it to release its hold on ad4. [0138][root at ztest:/home/matt]# zpool offline pond ad4 Bringing device ad4 offline [0140][root at ztest:/home/matt]# zpool replace pond ad4 cannot replace ad4 with ad4: ad4 is busy ''remove'' and ''detach'' are only useful for inactive spares and mirrors/vdevs respectively. In practice I am likely to have an empty SATA port, but I would like to figure out how to replace in place too--what''s the trick? (This is on freebsd 7, by the way.) This message posted from opensolaris.org
Ralf Bertling
2008-Apr-25 16:53 UTC
[zfs-discuss] replace-in-place: cannot replace, device is busy
Hi Matt, you can use zpool replace pond ad4 after removing your old disk. The problem is, if something goes wrong during the replace, you might lose data, because you have to remove the redundant disk first. Hope this helps, ralf Am 25.04.2008 um 16:42 schrieb zfs-discuss-request at opensolaris.org:> [zfs-discuss] replace-in-place: cannot replace, device is > busy > To: zfs-discuss at opensolaris.org > Message-ID: <27958780.1209114235363.JavaMail.Twebapp at oss-app1> > Content-Type: text/plain; charset=UTF-8 > > Say I have a raidz of 3 disks: ad4 ad6 ad8 > > I want to tell zfs that I am pulling ad4 and replacing it with a new > disk on the same controller, but I can''t get it to release its hold > on ad4. > > [0138][root at ztest:/home/matt]# zpool offline pond ad4 > Bringing device ad4 offline > [0140][root at ztest:/home/matt]# zpool replace pond ad4 > cannot replace ad4 with ad4: ad4 is busy > > ''remove'' and ''detach'' are only useful for inactive spares and > mirrors/vdevs respectively. > > In practice I am likely to have an empty SATA port, but I would like > to figure out how to replace in place too--what''s the trick? > > (This is on freebsd 7, by the way.)