Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux_storage_zfs [2020/02/06 17:45] – andonovj | linux_storage_zfs [2020/02/13 18:26] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
=====Overview===== | =====Overview===== | ||
+ | ZFS stands for Zettabyte File system and to save you a lot of boring reading it is a file system which protects agains data corruption provide high redundancy and high availability. It was designed by Sun Microsystems and there are two implementations in nutshell: | ||
+ | |||
+ | * Oracle ZFS | ||
+ | * OpenProject ZFS | ||
+ | |||
+ | Both implementations are pretty close to each other and both are widely used in the IT world to provide availability FS with high protection and performance. | ||
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. | 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. | ||
Line 15: | Line 21: | ||
</ | </ | ||
- | The following command, will create you a pool comprised by 10 disks in raid-5 configuration with double parity. The pool name is called: " | + | The following command, will create you a pool comprised by 10 disks in raid-5 configuration with double parity. The pool name is called: " |
+ | |||
+ | * On | ||
+ | * Off | ||
+ | * lzjb | ||
+ | * gzip | ||
+ | * gzip[1-9] | ||
+ | * zle | ||
+ | * lz4 <- The one used here and it is pretty good | ||
You can also list the status of the created pool as follows: | You can also list the status of the created pool as follows: | ||
Line 39: | Line 53: | ||
< | < | ||
- | [root@hostname ~]# zpool status -v tank | + | [root@hostname ~]# zpool scrub tank |
+ | [root@hostname ~]# zpool status | ||
pool: tank | pool: tank | ||
| | ||
- | scrub: scrub completed after 0h7m with 0 errors on Tue Tue Feb 2 12:54:00 2010 | + | scan: scrub repaired 0B in 0h56m with 0 errors on Mon Aug 12 12:40:46 2019 |
config: | config: | ||
+ | |||
NAME STATE READ WRITE CKSUM | NAME STATE READ WRITE CKSUM | ||
tank ONLINE | tank ONLINE | ||
- | raidz2: | + | |
- | disk1 ONLINE | + | disk1 |
- | disk2 ONLINE | + | disk2 |
- | disk3 ONLINE | + | disk3 |
- | disk4 ONLINE | + | disk4 |
- | disk5 ONLINE | + | disk5 |
- | disk6 ONLINE | + | disk6 |
- | disk7 ONLINE | + | disk7 |
- | disk8 ONLINE | + | disk8 |
- | disk9 ONLINE | + | disk9 |
- | disk10 | + | disk10 |
errors: No known data errors | errors: No known data errors | ||
Line 62: | Line 78: | ||
P.S. you can stop the scrubbing with: zpool scrub -s tank | P.S. you can stop the scrubbing with: zpool scrub -s tank | ||
+ | [root@hostname ~]# zpool scrub -s tank | ||
</ | </ | ||
Line 67: | Line 84: | ||
====Create file system==== | ====Create file system==== | ||
- | The ZFS will be shared either over SMB (Samba) or NFS(Network File system) to other machines. NFS is create | + | The ZFS will be shared either over SMB (Samba) or NFS(Network File system) to other machines. NFS is great way to setup Oracle RAC (with Direct NFS of course) and Samba is great way for a backup solution. |
So let's create NFS :) | So let's create NFS :) | ||
Line 121: | Line 138: | ||
It is uselessly to say that the NFS port (111) should be allowed both ways :) | It is uselessly to say that the NFS port (111) should be allowed both ways :) | ||
+ | |||
+ | |||
For example: server_one (111) <-> (111) Oracle_NAS_Server (111) <-> (111) server_two | For example: server_one (111) <-> (111) Oracle_NAS_Server (111) <-> (111) server_two | ||
+ | |||
+ | |||
Of course, such configuration (with READ-ONLY) isn't suitable for RAC, if you don't want to hit your head in the wall long time. If you wish, to do so, please go ahead and try to install RAC on that :) | Of course, such configuration (with READ-ONLY) isn't suitable for RAC, if you don't want to hit your head in the wall long time. If you wish, to do so, please go ahead and try to install RAC on that :) | ||
Line 148: | Line 169: | ||
Cheers and enjoy :) | Cheers and enjoy :) | ||
+ | |||
+ | =====Compression Options===== | ||
+ | For more info you can check here :) [[https:// |