Hi, I''d like to move a disk from one controller to another. This disk is part of a mirror in a zfs pool. How can one do this without having to export/import the pool or reboot the system? I tried taking it offline and online again, but then zpool says the disk is unavailable. Trying a zpool replace didn''t work because it complains that the "new" disk is part of a zfs pool... So how can one do this? TIA, Thomas
Hello Thomas, Friday, January 18, 2008, 10:31:17 AM, you wrote: TMK> Hi, TMK> I''d like to move a disk from one controller to another. This disk is TMK> part of a mirror in a zfs pool. How can one do this without having to TMK> export/import the pool or reboot the system? TMK> I tried taking it offline and online again, but then zpool says the disk TMK> is unavailable. Trying a zpool replace didn''t work because it complains TMK> that the "new" disk is part of a zfs pool... TMK> So how can one do this? Instead of offline''ing it try to detach it and then attach it. However offline/online should work... -- Best regards, Robert Milkowski mailto:milek at task.gda.pl http://milek.blogspot.com
Robert Milkowski schrieb:> Hello Thomas, > > Friday, January 18, 2008, 10:31:17 AM, you wrote: > > TMK> Hi, > > TMK> I''d like to move a disk from one controller to another. This disk is > TMK> part of a mirror in a zfs pool. How can one do this without having to > TMK> export/import the pool or reboot the system? > > TMK> I tried taking it offline and online again, but then zpool says the disk > TMK> is unavailable. Trying a zpool replace didn''t work because it complains > TMK> that the "new" disk is part of a zfs pool... > > TMK> So how can one do this? > > Instead of offline''ing it try to detach it and then attach it. > > However offline/online should work... >does detach/attach work with just a very short resilvering or will this resync the disk completely?
> I tried taking it offline and online again, but then zpool says the disk > is unavailable. Trying a zpool replace didn''t work because it complains > that the "new" disk is part of a zfs pool...So you offlined the disk and moved it to the new controller and then tried to add it back to the pool? A brute force approach might work, offline the disk, move it and format -e to restore the vtoc label and then zpool replace it. Of course it would have to resync but you would have avoided an export/import or reboot. Regards, Vic
Hello Victor, Friday, January 18, 2008, 11:35:27 AM, you wrote:>> I tried taking it offline and online again, but then zpool says the disk >> is unavailable. Trying a zpool replace didn''t work because it complains >> that the "new" disk is part of a zfs pool...VE> So you offlined the disk and moved it to the new controller and then VE> tried to add it back to the pool? A brute force approach might work, VE> offline the disk, move it and format -e to restore the vtoc label and VE> then zpool replace it. Of course it would have to resync but you would VE> have avoided an export/import or reboot. Why would he need to restore vtoc? We''re talking about the same disk here. -- Best regards, Robert mailto:milek at task.gda.pl http://milek.blogspot.com
> I tried taking it offline and online again, but then zpool says the disk > is unavailable. Trying a zpool replace didn''t work because it complains > that the "new" disk is part of a zfs pool...So it would look like a new disk to ZFS and not like a disk belonging to a zpool. Vic
Hello Thomas, Friday, January 18, 2008, 11:29:11 AM, you wrote: TMK> Robert Milkowski schrieb:>> Hello Thomas, >> >> Friday, January 18, 2008, 10:31:17 AM, you wrote: >> >> TMK> Hi, >> >> TMK> I''d like to move a disk from one controller to another. This disk is >> TMK> part of a mirror in a zfs pool. How can one do this without having to >> TMK> export/import the pool or reboot the system? >> >> TMK> I tried taking it offline and online again, but then zpool says the disk >> TMK> is unavailable. Trying a zpool replace didn''t work because it complains >> TMK> that the "new" disk is part of a zfs pool... >> >> TMK> So how can one do this? >> >> Instead of offline''ing it try to detach it and then attach it. >> >> However offline/online should work... >>TMK> does detach/attach work with just a very short resilvering or will this TMK> resync the disk completely? completly -- Best regards, Robert mailto:milek at task.gda.pl http://milek.blogspot.com
Hello Victor, Friday, January 18, 2008, 11:53:23 AM, you wrote:>> I tried taking it offline and online again, but then zpool says the disk >> is unavailable. Trying a zpool replace didn''t work because it complains >> that the "new" disk is part of a zfs pool...VE> So it would look like a new disk to ZFS and not like a disk belonging VE> to a zpool. just detach disk and then attach it instead of "corrupting" data on it -- Best regards, Robert mailto:milek at task.gda.pl http://milek.blogspot.com