![]() ![]() Zpool create tank draid2:3d:1s sda sdb sdc sdd sde sdf Pool with a 2-parity/1-spare dRAID vdev (equivalent to RAID 6 + hot spare):.Zpool create tank raidz2 sda sdb sdc sdd sde sdf Pool with single RAIDZ2 vdev (equivalent to RAID 6):.Data is striped across the three mirrors. The above example has a single pool consisting of three mirrored vdevs. Striped mirrors (equivalent to RAID 1+0):.The result of this command is the creation of a pool named tank containing two physical vdevs, sda and sdb, in a stripe (equivalent to RAID 0). Simple stripe across two physical vdevs:.The following examples illustrate how ZFS pools are created: There can be many vdevs assigned per ZFS pool, and data is written in stripes across the vdevs in the pool. Logical vdevs include mirrors and RAIDZ data protection layouts. Logical vdevs are assemblies of physical vdevs, arranged into groups, usually for the purpose of providing additional storage redundancy. For Lustre file systems, it is strongly recommended that whole disks are used, with no pre-defined partition table. ![]() A physical vdev can be a complete physical storage device such as a disk drive, a partition on a disk drive, or a file. There are two basic categories of vdev: physical and logical. ![]() The zpool command is used to define the volumes and manages the physical storage assets, while the zfs command provides management of the ZFS file system datasets themselves.Ī ZFS pool is comprised of one or more entities called Virtual Devices, or vdevs. ZFS separates storage volume definition from the file system specification, providing two separate tools to manage each. When working with ZFS OSDs, one can bundle the entire process of creating a zpool and formatting a storage target into a single command using stre, or split the work into two steps, where creation of the zpool is separated from formatting the OSD.īoth methods are discussed in this section, however we recommend creating the ZFS storage pools separately from formatting the Lustre OSD.įor high-availability configurations where the ZFS volumes are kept on shared storage, the zpools must be created independently of the stre command in order to be able to correctly prepare the zpools for use in a high-availability, failover environment. 4 Formatting a ZFS OSD using zpool and stre.3 Formatting a ZFS OSD using only the stre command. ![]()
0 Comments
Leave a Reply. |