

Setting up network sharing using zfs is extremely simple. Now close the file and run the following to enable the aliases: In the file enter the following (each line represents a disk, this is my current setup):
OPENZFS VIRTUALBOX FULL
Now I assume you already have some dedicated disks you want to use to create the zpool (it is recommended to use full disks, but you can also create a pool from a number of partitions). To use these aliases create a tab delimited text file /etc/zfs/vdev_id.conf: This is easier when creating the pool, but is also easier when reading out your zpool status. Now to make life a bit easier, ZoL allows you to define an alias that resolves to a disk by id. When using ids, I have successfully switched disks in my pool from being connected to a raid expansion to being connected via the onboard sata and there was not problem what so ever. The reason for this is that pools will not break when you add new disks to the system (which would be the case when using /dev/sda) and that the zpool is not dependant on the actual hardwired connectivity. The creation of a zpool can be done with any vali disk identifier, but is recommended to be done with disk ids. The total size is 6 * 2 TB minus 2 * 2TB (parity) = 8 TB.

Hence this array can sustain two disk failures and still function. This is a pool consisting of 6 2TB disks, of which 2 are used for parity. I will use a pool consisting of a single RAIDZ2 virtual device (vdev) as an example. For further reading I would refer you to the FAQ of ZoL or the Oracle documentation. Hence a zpool can be as simple as a single drive, but it can also be a complex combination of virtual RAID5 devices that are striped and form a RAID50. If you don't get an error but see "no zpools available" or equivalent, then installation was successful and we can move forward to creating the zpool.Ĭreation of the first zpool : A zpool is a virtual device that contains the pooled storage space of the underlying devices. I guess this requires another reboot, after which you can again open a terminal an become root.
