In following example, we have copied the 61M tar file to the ZFS filesystem mypool/fs1 mounted under /testmnt. In that case, the compression will be applied only to the new and modified data and any existing data will remain uncompressed. You can enable compression on an existing filesystem as well. The following are the valid compression properties: Once this property is set, any large files stored on this ZFS filesystem will be compressed. ![]() To set compression on a ZFS dataset, you can set the compression property as shown below. ![]() # df -hįilesystem Size Used Avail Use% Mounted on When you execute df command, you’ll see the alternative mount point as shown below. The last column MOUNTPOINT indicates the alternative mount point that we created above. # zfs set mountpoint=/testmnt mypool/fs1Īs we see from the following output, the first column NAME indicates the real name of the ZFS filesystem. Instead of mounting it using the “mypool/fs1” name, you can also set an alternative mount point with any name that you wish for a filesystem.įor example, the following command will set the mount point as “/testmnt”, instead of “mypool/fs1”. In this example, fs1 is reserved 256M out of 5.59G so that no one can use this space and also it can extend up to 1G based on the quota we set if there is free space available. Next, set the reservation for the filesystem. ![]() Here we are specifying the quota as 1GB for this filesystem. To set a quote, use zfs set command as shown below. So, you must specify a quota and reservation for the filesystem. When you create a ZFS filesystem, by default it consumes all the space in the pool.
0 Comments
Leave a Reply. |