Re: Zpool surgery

看板FB_current作者時間12年前 (2013/04/27 13:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串15/16 (看更多)
--Sig_/WXg2ahZC0rmXbVAQa_iy9g/ Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Dan Nelson <dnelson@allantgroup.com> wrote: > In the last episode (Jan 28), Fabian Keil said: > > Ulrich Sp=C3=B6rlein <uqs@FreeBSD.org> wrote: > > > On Mon, 2013-01-28 at 07:11:40 +1100, Peter Jeremy wrote: > > > > On 2013-Jan-27 14:31:56 -0000, Steven Hartland <killing@multiplay.c= o.uk> wrote: > > > > >----- Original Message -----=20 > > > > >From: "Ulrich Sp=C3=B6rlein" <uqs@FreeBSD.org> > > > > >> I want to transplant my old zpool tank from a 1TB drive to a new > > > > >> 2TB drive, but *not* use dd(1) or any other cloning mechanism, as > > > > >> the pool was very full very often and is surely severely > > > > >> fragmented. > > > > > > > > > >Cant you just drop the disk in the original machine, set it as a > > > > >mirror then once the mirror process has completed break the mirror > > > > >and remove the 1TB disk. > > > >=20 > > > > That will replicate any fragmentation as well. "zfs send | zfs rec= v" > > > > is the only (current) way to defragment a ZFS pool. > >=20 > > It's not obvious to me why "zpool replace" (or doing it manually) > > would replicate the fragmentation. >=20 > "zpool replace" essentially adds your new disk as a mirror to the parent > vdev, then deletes the original disk when the resilver is done. Since > mirrors are block-identical copies of each other, the new disk will conta= in > an exact copy of the original disk, followed by 1TB of freespace. Thanks for the explanation. I was under the impression that zfs mirrors worked at a higher level than traditional mirrors like gmirror but there seems to be indeed less magic than I expected. Fabian --Sig_/WXg2ahZC0rmXbVAQa_iy9g/ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlEH4kgACgkQBYqIVf93VJ1Z4ACgsP2gJkFDDqwImnab1rnKF5Xu gc8AoJuwpBMZrXVyX8ZSboeS6co0PHOk =8PGU -----END PGP SIGNATURE----- --Sig_/WXg2ahZC0rmXbVAQa_iy9g/--
文章代碼(AID): #1HUrkxKf (FB_current)
文章代碼(AID): #1HUrkxKf (FB_current)