I'm posting this here to make it easier for people to find and easier to post the details for the ticket I will open. EDIT: Here's the ticket https://support.freenas.org/ticket/1234
Background: This is a 5 disk raidz2 with 4x 2TB Samsung disks and 1x 2TB Hitachi disk that was created on version ~8.0.
Problem: Replace disk from GUI fails without explanation when using identical 2TB disk.
After doing replace disk from GUI, there is no apparent resilvering activity taking place. After trying replace command from the command line, I got the error "disk is too small". When doing a gpart show, I discovered the problem was that 8.0.3-p1 created a 2GB swap partition as opposed to the 1GB swap partition that was created when I initially created my pool from the GUI in version 8.0. So it seems that the GUI needs to check existing swap partition size and makes sure it creates the new one consistent with the size on the other disks. I manually wiped the disk and recreated the partitions and did the replace from the command line using the same command that was issued from the GUI in the log file.
Here is the log file and output from gpart show etc.:
Background: This is a 5 disk raidz2 with 4x 2TB Samsung disks and 1x 2TB Hitachi disk that was created on version ~8.0.
Problem: Replace disk from GUI fails without explanation when using identical 2TB disk.
After doing replace disk from GUI, there is no apparent resilvering activity taking place. After trying replace command from the command line, I got the error "disk is too small". When doing a gpart show, I discovered the problem was that 8.0.3-p1 created a 2GB swap partition as opposed to the 1GB swap partition that was created when I initially created my pool from the GUI in version 8.0. So it seems that the GUI needs to check existing swap partition size and makes sure it creates the new one consistent with the size on the other disks. I manually wiped the disk and recreated the partitions and did the replace from the command line using the same command that was issued from the GUI in the log file.
Here is the log file and output from gpart show etc.:
Code:
Feb 2 12:30:24 acashic freenas[1988]: Popen()ing: /sbin/zfs list -H -o name,volsize -t volume -r cortex Feb 2 12:30:51 acashic freenas[1988]: Popen()ing: /sbin/sysctl -n kern.disks Feb 2 12:30:51 acashic freenas[1988]: Popen()ing: /usr/sbin/diskinfo da0 Feb 2 12:30:51 acashic freenas[1988]: Popen()ing: /usr/sbin/diskinfo ada4 Feb 2 12:30:51 acashic freenas[1988]: Popen()ing: /usr/sbin/diskinfo ada3 Feb 2 12:30:51 acashic freenas[1988]: Popen()ing: /usr/sbin/diskinfo ada2 Feb 2 12:30:51 acashic freenas[1988]: Popen()ing: /usr/sbin/diskinfo ada1 Feb 2 12:30:51 acashic freenas[1988]: Popen()ing: /usr/sbin/diskinfo ada0 Feb 2 12:33:21 acashic freenas[1988]: Popen()ing: /sbin/sysctl -n kern.disks Feb 2 12:33:21 acashic freenas[1988]: Popen()ing: /usr/sbin/diskinfo da0 Feb 2 12:33:22 acashic freenas[1988]: Popen()ing: /usr/sbin/diskinfo ada4 Feb 2 12:33:22 acashic freenas[1988]: Popen()ing: /usr/sbin/diskinfo ada3 Feb 2 12:33:22 acashic freenas[1988]: Popen()ing: /usr/sbin/diskinfo ada2 Feb 2 12:33:22 acashic freenas[1988]: Popen()ing: /usr/sbin/diskinfo ada1 Feb 2 12:33:22 acashic freenas[1988]: Popen()ing: /usr/sbin/diskinfo ada0 Feb 2 12:33:22 acashic freenas[1988]: Popen()ing: zpool status cortex Feb 2 12:33:22 acashic freenas[1988]: Popen()ing: zpool status cortex Feb 2 12:33:23 acashic freenas[1988]: Executing: dd if=/dev/zero of=/dev/ada4 bs=1m count=1 Feb 2 12:33:23 acashic freenas: 1+0 records in Feb 2 12:33:23 acashic freenas: 1+0 records out Feb 2 12:33:23 acashic freenas: 1048576 bytes transferred in 0.006695 secs (156620010 bytes/sec) Feb 2 12:33:23 acashic freenas[1988]: Executing: dd if=/dev/zero of=/dev/ada4 bs=1m oseek=`diskinfo ada4 | awk '{print int($3 / (1024*1024)) - 4;}'` Feb 2 12:33:23 acashic freenas: dd: /dev/ada4: short write on character device Feb 2 12:33:23 acashic freenas: dd: /dev/ada4: end of device Feb 2 12:33:23 acashic freenas: 5+0 records in Feb 2 12:33:23 acashic freenas: 4+1 records out Feb 2 12:33:23 acashic freenas: 4284416 bytes transferred in 0.028429 secs (150706926 bytes/sec) Feb 2 12:33:23 acashic freenas[1988]: Popen()ing: gpart create -s gpt /dev/ada4 Feb 2 12:33:23 acashic freenas[1988]: Popen()ing: gpart add -b 128 -t freebsd-swap -s 4194304 ada4 Feb 2 12:33:23 acashic freenas[1988]: Popen()ing: gpart add -t freebsd-zfs ada4 Feb 2 12:33:23 acashic freenas[1988]: Popen()ing: gpart bootcode -b /boot/pmbr-datadisk /dev/ada4 Feb 2 12:33:24 acashic freenas[1988]: Executing: /sbin/swapon /dev/ada4p1 Feb 2 12:33:24 acashic freenas[1988]: Popen()ing: /sbin/zpool replace cortex 13980078937846798318 ada4p2
Code:
=> 34 3907029101 ada0 GPT (1.8T) 34 94 - free - (47K) 128 2097152 1 freebsd-swap (1.0G) 2097280 3904931855 2 freebsd-zfs (1.8T) => 34 3907029101 ada1 GPT (1.8T) 34 94 - free - (47K) 128 2097152 1 freebsd-swap (1.0G) 2097280 3904931855 2 freebsd-zfs (1.8T) => 34 3907029101 ada2 GPT (1.8T) 34 94 - free - (47K) 128 2097152 1 freebsd-swap (1.0G) 2097280 3904931855 2 freebsd-zfs (1.8T) => 34 3907029101 ada3 GPT (1.8T) 34 94 - free - (47K) 128 2097152 1 freebsd-swap (1.0G) 2097280 3904931855 2 freebsd-zfs (1.8T) => 34 3907029101 ada4 GPT (1.8T) 34 94 - free - (47K) 128 4194304 1 freebsd-swap (2.0G) 4194432 3902834703 2 freebsd-zfs (1.8T)