The permission setting is quite easy as it follows the standard permission set format.Ĭhown –R username:groupName /poolname/datasetĬhown –R dondilanga:users /vol0/dondilanga_files Use this format and create a couple of directories as seen in the following screenshot.Ĭreating the dataset is not enough for having a functioning file structure, it also needs the proper permissions (refer Linux file permissions) to be set. Zpool create vol0 mirror /dev/sdb /dev/sdcĪt this point a pool is already created, now create the dataset where actually the data, which includes files, directories, stores. Mirroring is also known as RAID 1, which seamlessly copies data from one drive to another that is quite useful for increasing the data redundancy. Since here only two hard drives are used use mirror groups, but if there are 3 or more hard drives use raidz, and for 4 or more use raidz2 commands. Once the partition table is created in each hard drive, now create the zpool. here spare hard drives are /dev/sdb and /dev/sdc parted /dev/sdb Use the following commands to create the partition table in spare hard drives attached to the systems. Zpool requires the hard drives to have it before creating the pool. Partition table is a kind a scheme that helps in partitioning the hard drives. A GUID partition table has to be created in each hard drive. This tutorial assumes the system has multiple hard drives, which are actually combined into a pool.īefore creating a pool. Either way it returns a list of block devices detected by the Ubuntu. Type either lsblk for listing block devices in the system, or ls –l /dev/sd* for listing out all the /dev blocks. In this phase, a pool and a dataset is created. A pool consists of a group of hard drives which are combined together, and inside of this pool there are datasets where the data actually stores. Once ZFS is installed in the system, next a pool (also known as Zpool) has to be created. It will take a while to install, but once it’s completed it will notify. #Openzfs ubuntu installOnce root access is gained, use install command along with the package name – zfs to install zfs in the system. Upon typing the password, the user is granted with root access. To gain root access use sudo su, which then prompts for the administrative password. Installing ZFS is as easy as any other package, but it has to be installed with root access. #Openzfs ubuntu how toSo, this article demonstrates how to use ZFS on Ubuntu servers with ease. However, it’s unlikely it’s much useful for an average home user anytime soon, but server administrators should be aware of ZFS and its benefits. ZFS is basically the future of the Unix file systems due to its tremendous amount of benefits. Unlike other file systems, ZFS is resistant to data rot problem in hard drives as it preserves the integrity of data when storing, and no partitioning is necessary when adding more hard drives to the existing RAID. The main advantage of ZFS file system is supporting zettabytes of data, and being 128bit, and therefore it’s often used in large corporate servers, and by data collectors like government agencies. ZFS is a file system, originally shipped with Solaris but was later adapted in many Unix and Linux operating systems.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |