linux_storage_zfs

This is an old revision of the document!


ZFS is native to Oracle NAS Storage Appliance. With ZFS you can create a pool which you can share with out appliances through either NFS or Samba.

So let's create one pool:

We can create a pool, using the zfs command line as follows:

| Create a pool
[root@hostname ~]# zpool create tank -O casesensitivity=mixed -O compression=lz4 raidz2 disk1 disk2 disk3 disk4 disk5 disk6 disk7 disk8 disk9 disk10 -f

The following command, will create you a pool comprised by 10 disks in raid-5 configuration with double parity. The pool name is called: “tank”.

You can also list the status of the created pool as follows:

| Pool status
[root@hostname ~]# zpool list -v
NAME   SIZE  ALLOC   FREE  EXPANDSZ   FRAG    CAP  DEDUP  HEALTH  ALTROOT
tank  9.06T  1.94T  7.12T         -     4%    21%  1.00x  ONLINE  -
  raidz2  9.06T  1.94T  7.12T         -     4%    21%
    disk1      -      -      -         -      -      -
    disk2      -      -      -         -      -      -
    disk3      -      -      -         -      -      -
    disk4      -      -      -         -      -      -
    disk5      -      -      -         -      -      -
    disk6      -      -      -         -      -      -
    disk7      -      -      -         -      -      -
    disk8      -      -      -         -      -      -
    disk9      -      -      -         -      -      -
    disk10      -      -      -         -      -      -

If you are worried about the integrity of the pool, you can of course perform integrity check and verify the data corruption as follows:

|Check Integrity
[root@hostname ~]# zpool status -v tank
  pool: tank
 state: ONLINE
 scrub: scrub completed after 0h7m with 0 errors on Tue Tue Feb  2 12:54:00 2010
config:
        NAME        STATE     READ WRITE CKSUM
        tank        ONLINE       0     0     0
         raidz2:
		disk1      ONLINE 	0	0	0
		disk2      ONLINE 	0	0	0
		disk3      ONLINE 	0	0	0
		disk4      ONLINE 	0	0	0
		disk5      ONLINE 	0	0	0
		disk6      ONLINE 	0	0	0
		disk7      ONLINE 	0	0	0
		disk8      ONLINE 	0	0	0
		disk9      ONLINE 	0	0	0
		disk10     ONLINE 	0	0	0
 
errors: No known data errors
 
 
P.S. you can stop the scrubbing with: zpool scrub -s tank
  • linux_storage_zfs.1581009639.txt.gz
  • Last modified: 2020/02/07 01:20
  • (external edit)