cc_staff
1,486
edits
Line 52: | Line 52: | ||
[name@server]$ sudo zpool create -f data /dev/vdb /dev/vdc | [name@server]$ sudo zpool create -f data /dev/vdb /dev/vdc | ||
</source> | </source> | ||
This will create a new mount point at <code>/data</code> backed by the volumes attached at <code>/dev/vdb</code> and <code>/dev/vdc</code>. The filesystem will have a size slightly smaller than the combined sizes of all attached volumes. | This will create a new mount point at <code>/data</code> backed by the volumes attached at <code>/dev/vdb</code> and <code>/dev/vdc</code>. The filesystem will have a size slightly smaller than the combined sizes of all attached volumes. As data is written to the <code>/data</code> mount point it will be dynamically stripped across all drives. This is good for permformance and allows you to make use of all your storage, however it doesn't provide any additional data replication (see [https://www.freebsd.org/doc/handbook/zfs-zpool.html here] for information about creating mirrored zpools). | ||
ZFS can compress data as it is written to the file system and uncompress it when it is read. To turn on and choose a compression algorithim for a zpool use the following command. | ZFS can compress data as it is written to the file system and uncompress it when it is read. To turn on and choose a compression algorithim for a zpool use the following command. |