solarisguy
Guru
- Joined
- Apr 4, 2014
- Messages
- 1,125
My 9.2.1.5 system is in use, I cannot do any non-trivial testing for a very long time.
I did gpart show, and noticed that ada2 and ada3 are partitioned differently:
ada0 and ada1 (WD10JPVX, AF 512e) are connected to a SATA card. Their partitions were created by FreeNAS GUI using system defaults when creating a RAID-1 pool.
Then I changed in the GUI the swap size on each drive to be zero (0), and created without changing anything else a RAID-Z2 pool out of ada2-ada7 drives. These drives are not identical nor they are connected the same.
Intel motherboard with Xeon, 16GB RAM and C222 Intel chipset. ada2 and ada3 are connected using its SATA III ports. ada4-ada7 are connected using SATA II ports (I do not think that is relevant).
ada2-ada3 are WD4001FAEX (Black) with 512 byte sectors.
ada4-ada7 are WD4003FZEX (Black) with 512 bytes logical, 4096 bytes physical = Advanced Format 512e
I am assuming that gpart senses AF 512e drives, why then it does not partition all the disks in RAID-Z2 the same (to smallest common denominator)? Wouldn't it be simpler or at least more meaningful?
My question is not an academic one. I had realized that I might be forced to replace 512-byte sector disks with AF 512e disks. ZFS could be very unhappy? Anyone with real experience of replacing a disk with a smaller one? What would FreeNAS GUI do as far as the partition on the replacement disk are concerned?
Does this qualify for bug report, so gpart would be using the same partition schema on all RAID-Z* disks?
I did gpart show, and noticed that ada2 and ada3 are partitioned differently:
Code:
[root@freenas] ~# gpart show => 34 1953525101 ada0 GPT (931G) 34 94 - free - (47k) 128 4194304 1 freebsd-swap (2.0G) 4194432 1949330696 2 freebsd-zfs (929G) 1953525128 7 - free - (3.5k) => 34 1953525101 ada1 GPT (931G) 34 94 - free - (47k) 128 4194304 1 freebsd-swap (2.0G) 4194432 1949330696 2 freebsd-zfs (929G) 1953525128 7 - free - (3.5k) => 34 7814037101 ada2 GPT (3.7T) 34 94 - free - (47k) 128 7814037007 1 freebsd-zfs (3.7T) => 34 7814037101 ada3 GPT (3.7T) 34 94 - free - (47k) 128 7814037007 1 freebsd-zfs (3.7T) => 34 7814037101 ada4 GPT (3.7T) 34 94 - free - (47k) 128 7814037000 1 freebsd-zfs (3.7T) 7814037128 7 - free - (3.5k) => 34 7814037101 ada5 GPT (3.7T) 34 94 - free - (47k) 128 7814037000 1 freebsd-zfs (3.7T) 7814037128 7 - free - (3.5k) => 34 7814037101 ada6 GPT (3.7T) 34 94 - free - (47k) 128 7814037000 1 freebsd-zfs (3.7T) 7814037128 7 - free - (3.5k) => 34 7814037101 ada7 GPT (3.7T) 34 94 - free - (47k) 128 7814037000 1 freebsd-zfs (3.7T) 7814037128 7 - free - (3.5k) => 63 15124929 da0 MBR (7.2G) 63 1930257 1 freebsd [active] (942M) 1930320 63 - free - (31k) 1930383 1930257 2 freebsd (942M) 3860640 3024 3 freebsd (1.5M) 3863664 41328 4 freebsd (20M) 3904992 11220000 - free - (5.4G) => 0 1930257 da0s1 BSD (942M) 0 16 - free - (8.0k) 16 1930241 1 !0 (942M) => 34 30282941 da1 GPT (14G) 34 94 - free - (47k) 128 30282847 1 freebsd-zfs (14G) [root@freenas] ~#
ada0 and ada1 (WD10JPVX, AF 512e) are connected to a SATA card. Their partitions were created by FreeNAS GUI using system defaults when creating a RAID-1 pool.
Then I changed in the GUI the swap size on each drive to be zero (0), and created without changing anything else a RAID-Z2 pool out of ada2-ada7 drives. These drives are not identical nor they are connected the same.
Intel motherboard with Xeon, 16GB RAM and C222 Intel chipset. ada2 and ada3 are connected using its SATA III ports. ada4-ada7 are connected using SATA II ports (I do not think that is relevant).
ada2-ada3 are WD4001FAEX (Black) with 512 byte sectors.
ada4-ada7 are WD4003FZEX (Black) with 512 bytes logical, 4096 bytes physical = Advanced Format 512e
I am assuming that gpart senses AF 512e drives, why then it does not partition all the disks in RAID-Z2 the same (to smallest common denominator)? Wouldn't it be simpler or at least more meaningful?
My question is not an academic one. I had realized that I might be forced to replace 512-byte sector disks with AF 512e disks. ZFS could be very unhappy? Anyone with real experience of replacing a disk with a smaller one? What would FreeNAS GUI do as far as the partition on the replacement disk are concerned?
Does this qualify for bug report, so gpart would be using the same partition schema on all RAID-Z* disks?