fdisk(8) vs gpart(8), and gnop

看板FB_hackers作者時間11年前 (2014/06/01 09:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/38 (看更多)
Folks, $SUBJECT have been two contentious points of discussion in private mail, Twitter, the BSDCan bar track, and random people passing on the street. I was very surprised at the number of knowledgeable people who have different ideas on this and argue about it at length. I'm hoping to verify what seems to be correct. First, is fdisk EVER necessary? I *believe* that gpart's '-a 4k' handles all alignment issues for the 512B/4KB sector issues. If you sometimes need to use fdisk, when exactly is that? Similarly, I *believe* that you need to "gnop -S 4096 $device" any time you want to use ZFS, so that 1) zfs sets ashift=12 and 2) you can later replace a 512B-sector drive with a 4096KB-sector drive without ZFS having a hissy fit about mismatched sector sizes. Finally, while UFS isn't picky about changing the underlying sector size on a dump/restore, I believe it's a good idea to always gnop the underlying disk. Disks lie about sector size, and while it's OK to assume a 4k-sector disk, assuming a 512b-sector disk on a 4k-sector disk causes write multiplication. Are my beliefs correct? I need to get this part of the book correct, or the rest of it will go wildly astray... Thanks, ==ml -- Michael W. Lucas - mwlucas@michaelwlucas.com, Twitter @mwlauthor http://www.MichaelWLucas.com/, http://blather.MichaelWLucas.com/ _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
文章代碼(AID): #1JYdjEWy (FB_hackers)
討論串 (同標題文章)
文章代碼(AID): #1JYdjEWy (FB_hackers)