ZFS
==================
ZFS (previously: Zettabyte File System) is a file system with volume management
capabilities. It began as part of the Sun Microsystems Solaris operating system in
2001.
Q. What is ZFS ?
Ans. ZFS (Zettabyte file system) is introduced in solaris 10 release to develop
this file system cum volume manager, sun micro-system had spend lot of years, it is
collection of filesystem and volume manager. Hardware and software requirement.
Q. Benefits of ZFS ?
1> Zpool capacity is 256 zettabytes.
2> ZFS snapshots, clones and sending recieveing snapshots.
3> Lightweight filesystem creation.
4> Encryption.
5> software RAID.
6> Data integrity.
7> Integrated vlume management.
Q. Drawback of ZFS ?
Ans. We can't mirror a particular volume in a particular pool.
Q. Packages of ZFS ?
1> SUNWzfsv
2> zfsR (zfs root component)
3> zfskR (Kernal root component)
4> zfsgr (Graphical interface administration)
5> zfsgur (Graphicqal user interface)
Hardware and Software Requirement:
=================================
* Any sparc or x86 system.
* Disk should be formatted in EFI layout.
* Minimum 768 MB of RAM 1GB is recommended. (prtconf -vp | grep -i mem)
* Minimum Solaris 10.
Managing Storage Pools:
========================
* Components of a zfs storage pool.
* Replication features of a zfs storage pool.
* Creating and destroying zfs storage pool.
* Managing devices in ZFS storage devices.
* Managing ZFS storage pool properties.
* Quering ZFS storage pool status.
* Migrating ZFS storage Pools.
Components of a ZFS storage pool:
==================================
Storage pool can be created by combining any one of the following types of devices.
* Using Disks.
* Using slices.
* using files.
Replication features of a ZFS storage pool:
===========================================
ZFS provides data redundancy as well as self healing properties in the following
two configurations.
* Mirrored storage pool method.
* Raid-z storage method.
* Self-healing data in a redundent configuration.
* Dynamic stripping in a mirroring pool.
Health status of ZFS storage pool.
==============================
* Online
* Degraded
* Faulted
* Offline
* Unavailable
* Removed
# zpool status poolname
# zpool status -x poolname
# zpool status -xv poolname
Online --> The device is online or functioning.
Degraded --> One or more top level devices is in the degraded state because the
have becone offline sufficient replicas exixts to keep functionaing.
Faulted --> One or more top level devices is in the degraded state because the have
becone offline insufficient replicas exixts to keep functionaing.
Offline --> The device was explicity taken offline by the 'zpool offline' command.
Unavailable --> The device could not be opened.
Removed --> The device was physically removed while the system was running.
Q. What is RAID 1/2/3 ?
Ans. Non-standard distributed parity based software raid levels.
Raid/Raid 1 --> Minimum of 3 devices (One parity disk) you can suffer a one disk
loss.
Raidz 2 --> Minimum of 4 devices (two parity disks) you can suffer a two disks
loss.
Raidz 3 --> Minimum of 5 devices (three parity disks) you can suffer a three disks
loss.