zfs

Install zfs file system on Ubuntu

apt install -y zfs

Listing ZFS file systems

root@ns3048991:~# zfs list
NAME                       USED  AVAIL  REFER  MOUNTPOINT
rpool                     1.12T   654G   104K  /rpool
rpool/ROOT                5.50G   654G    96K  /rpool/ROOT
rpool/ROOT/pve-1          5.50G   654G  5.50G  /
rpool/data                1.11T   654G    96K  /rpool/data
rpool/data/vm-101-disk-0   103G   748G  9.29G  -
rpool/data/vm-101-disk-1  1.01T  1.65T    56K  -
rpool/swap                4.25G   658G   289M  -
root@ns3048991:~# 

List pools

root@ns3048991:~# zpool list
NAME    SIZE  ALLOC   FREE  EXPANDSZ   FRAG    CAP  DEDUP  HEALTH  ALTROOT
rpool  1.81T  15.4G  1.80T         -     0%     0%  1.00x  ONLINE  -
root@ns3048991:~# 

Show current IO usage

root@ns3048991:~# zpool iostat
              capacity     operations     bandwidth 
pool        alloc   free   read  write   read  write
----------  -----  -----  -----  -----  -----  -----
rpool       15.8G  1.80T     28     46   319K  2.14M
root@ns3048991:~# 

To see status

root@ns3048991:~# zpool status
  pool: rpool
 state: ONLINE
status: Some supported features are not enabled on the pool. The pool can
	still be used, but some features are unavailable.
action: Enable all features using 'zpool upgrade'. Once this is done,
	the pool may no longer be accessible by software that does not support
	the features. See zpool-features(5) for details.
  scan: none requested
config:

	NAME        STATE     READ WRITE CKSUM
	rpool       ONLINE       0     0     0
	  mirror-0  ONLINE       0     0     0
	    sda2    ONLINE       0     0     0
	    sdb2    ONLINE       0     0     0

errors: No known data errors
root@ns3048991:~# 

Setup ZFS file system in Ubuntu

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *