Page 1 of 1

How-To Modify ZIL?

Posted: 08 Dec 2013 18:23
by Con7undrum
I added a ZIL to my ZFS pool (mirrored set of two SSDs). I forgot to set the 4k format. Does anyone know if I can drop the ZIL mirror, change the format, and then readd it? My ASHIFT on the ZIL is 9, where my Pool disks are 12.

Thanks!

Re: How-To Modify ZIL?

Posted: 08 Dec 2013 18:31
by ku-gew
You can drop it and then make it again. Check online.

Re: How-To Modify ZIL?

Posted: 08 Dec 2013 19:05
by Con7undrum
I was looking for that but can't find any specific examples. Do you drop the individual disks (e.g. for maintenance), reformat them, readd it to the vdev, then rinse wash repeat for the 2nd disk?

Re: How-To Modify ZIL?

Posted: 09 Dec 2013 23:18
by ku-gew
Instead of ZIL look for "log device", that is the correct name of that thing too many people call "ZIL".

Re: How-To Modify ZIL?

Posted: 13 Dec 2013 16:30
by Lee Sharp
Check to see if it really is a 4k device. Some SSDs are actually only 512 blocks... (I know it seems obvious, but it almost got me once.)

Re: How-To Modify ZIL?

Posted: 13 Dec 2013 20:51
by ku-gew
I would still use 4K: in the future he may then add a second disk, add the new one to the same vdev to make RAID1, then take out the old one.
If you use now 512b, then you have to do more work next time.