Hi all,
I am new to ZFS, I created a pool across 2 discs:
sudo zpool create -o ashift=12 -O xattr=sa -O compression=lz4 -O atime=off zpool0 mirror /dev/sdb /dev/sdc -f
Then I created a dataset on the pool:
sudo zfs create zpool0/data1
sudo zfs set canmount=on zpool0/data1
sudo zfs set mountpoint=/zpool0/data1 zpool0/data1
I automount the dataset with this piece of nix configuration:
fileSystems."/zpool0/data1" = {
device = "zpool0/data1";
fsType = "zfs";
# the zfsutil option is needed when mounting zfs datasets without "legacy" mountpoints
options = [ "zfsutil" ];
};
I put all my pictures in /zpool0/data1
But now zfs list tells me:
$ zfs list
NAME USED AVAIL REFER MOUNTPOINT
zpool0 771G 2.76T 771G /zpool0
zpool0/data1 96K 2.76T 96K /zpool0/data1
Why does it say there is only 96K in /zpool0/data1?
Some more commands I checked:
$ du -h --max-depth=1 /zpool0/
772G /zpool0/data1
772G /zpool0/
$ mount | grep zpool0
zpool0/data1 on /zpool0/data1 type zfs (rw,noatime,xattr,noacl,casesensitive)
zpool0 on /zpool0 type zfs (rw,noatime,xattr,noacl,casesensitive)
I noted all my commands down, I may have made mistakes in the noting down.
My sources:
Sorry can only put 2 links in post