Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Oct 2012 16:31:04 +0200
From:      Karolis Eigelis <karolis.eigelis@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   4k alignment for attaching new disk to zfs mirror
Message-ID:  <CA+cNU30ftzzA1cHsU+zJ6vNau1LwZff2_HEjr5c87aw4JGPF1A@mail.gmail.com>

Next in thread | Raw E-Mail | Index | Archive | Help
Hi,

Before creating a pool i setup two disks mirror with gnop trick to have
ashift=12 - 4k pool alignment. I also did that for the disk partitions (gpt
-a 4k option) to have partitions 4k alignment (diskinfo -v disk shows
stripesize=4096 for both disks).

Now i replaced one disk with a new one, but cant get the diskinfo or gpart
list to display stripesize=4096 - did everything as usual (gpt -a 4k for
partitions). Or do i have to re-create my pool with gnop trick again ?

Do you have an idea if that at all is needed ? Some other information i
found says that as long as pool is 4k alignment is done (ashif=12) you do
not need to do 4k alignment for new disk for partitions with gpart -a 4k
option. Could someone please comment on that ?

Many Thanks,
Karolis



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?CA+cNU30ftzzA1cHsU+zJ6vNau1LwZff2_HEjr5c87aw4JGPF1A>