range Pi User Manual Copyright reserved by Shenzhen Xunlong Software Co., Ltd
286
the U disk
4) Then execute df -h to see that pool1 is mounted to the /pool1 directory
orangepi@orangepi:~$ df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 1.6G 18M 1.6G 2% /run
/dev/mmcblk0p2 29G 6.0G 22G 22% /
tmpfs 7.7G 46M 7.7G 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 7.7G 944K 7.7G 1% /tmp
/dev/mmcblk0p1 1022M 115M 908M 12% /boot
/dev/zram1 188M 4.5M 169M 3% /var/log
tmpfs 1.6G 80K 1.6G 1% /run/user/1000
pool1 489G 9.3M 489G 1% /pool1
5) Use the following command to see that the file system type of pool1 is zfs
orangepi@orangepi:~$ mount | grep pool1
pool1 on /pool1 type zfs (rw,xattr,noacl)
6) Then we can test copying a file to the ZFS pool
orangepi@orangepi:~$ sudo cp -v /usr/local/test.mp4 /pool1/
'/usr/local/test.mp4' -> '/pool1/test.mp4'
3.31.3. Test the data deduplication function of ZFS
1) The data deduplication function of ZFS is disabled by default, we need to execute the
following command to enable it
orangepi@orangepi:~$ sudo zfs set dedup=on pool1
2) Then do a simple test, first enter pool1, and then execute the following command to
generate a random file with a size of 1G
orangepi@orangepi:~$ cd /pool1/
root@orangepi:/pool1$ sudo dd if=/dev/urandom of=test.1g bs=1M count=1024
1024+0 records in
1024+0 records out