Thanks. I cleared the error message using "zpool clear" and then performed a scrub. Zero errors :)
I guess the single checksum flag occured due to the drive being disconnected and reconnected.
I'll leave this thread alone now, but it's been a great learning experience for a noob. Cheers!
Let's assume ada0 is your existing disk, ada1 is the new one, tank is the pool name.
Test this first in a VM to verify that you understand everything.
- gpart create -s gpt /dev/ada1
- gpart add -i 1 -b 128 -t freebsd-swap -s 2g /dev/ada1
- gpart add -i 2 -t freebsd-zfs /dev/ada1
- Run zpool status and note the gptid of the existing disk
- Run glabel status and find the gptid of the newly created partition. It is the gptid associated with ada1p2.
- zpool attach tank /dev/gptid/[gptid_of_the_existing_disk] /dev/gptid/[gptid_of_the_new_partition]
Edit: Updated the steps to create the default 2GB swap partition.
I'm going to have a go in the next couple of days. Cheers.
Edit: I have now resilvered a new HDD I got at Christmas using the guide in this thread and it worked fine on 9.3. :)
I get
Code:[root@freenas] ~# zpool attach tank /dev/gptid/0f0b0ca1-9bea-11e4-9afd-10604b92bc3c /dev/gptid/cba87a20-c413-11e4-88d7-10604b92bc3c cannot open 'tank': no such pool
No.I have a 3TB volume comprised of three 1TB disks in a striped configuration and I'm wanting to add redundancy to this volume by adding another 3TB volume, this time consisting of a single 3TB disk. Is this possible?
Adding a second disk as a mirror of a first can't be done through the web GUI. We'd heard that this feature was going to be added to 9.3, but it didn't make it. We now hear that it should be in 10. I can only assume that this was found to be more complicated than expected, but I really don't know the reasoning for why it was dropped.Can the task described above be done via the Web GUI? (If not, why is it that some seemingly simple tasks can be done via the Web GUI, and others cant? Eg, We can extend an existing volume via the Web GUI but not add redundancy?)
Yes.Is it true that some changes made "behind the scenes" via shell are not retained after a restart?
I have a few questions relating to this thread. I hope some of them aren't too off-topic...
- I have a 3TB volume comprised of three 1TB disks in a striped configuration and I'm wanting to add redundancy to this volume by adding another 3TB volume, this time consisting of a single 3TB disk. Is this possible?
- Can the task described above be done via the Web GUI? (If not, why is it that some seemingly simple tasks can be done via the Web GUI, and others cant? Eg, We can extend an existing volume via the Web GUI but not add redundancy?)
Thank you to those that help :)
- Is it true that some changes made "behind the scenes" via shell are not retained after a restart?
swapctl -l
A note for people not familiar with FreeBSD and UNIX in general. The new swap partition that is created following the steps in this guide goes unused until it's enabled—FreeBSD doesn't automagically find and use swap space. You can verify this via the swapctl(8) command:
swapctl -l
which will list all of the active swap devices.
In fact, prior to 9.3 to permanently enable the new swap space you have to know how to mount the root partition as writeable and add the appropriate entry to /etc/fstab and then reboot before the new swap space would be used. In 9.3 and 9.10 you still need to edit /etc/fstab and reboot. (See swapon(8) if you want to use the new swap space immediately, but don't want to reboot until later.)
If you don't care about drive ids or more swap space you can just attach the new drive to the exiting pool using the dev ID, skipping all of the low level FreeBSD commands. If you want to use GTPIDs but don't care about adding more swap then use gpart(8) to create a new partition scheme with a single partition and then attach that partition using its GPTID to the pool.
This information is not correct for FreeNAS. FreeNAS automatically creates the swap space on zpool creation/expansion (unless changed from the default) and will automatically find and use such swapspace with no action from the end user.