Professional Documents
Culture Documents
REF: SUN-ZFS-02 - A
Presentation :...................................................................................................................................2
Creating a Pool "Prod".......................................................................................................................4
Add a disc in a Pool:..........................................................................................................................4
View the status of a Pool....................................................................................................................5
Destroying a Pool..............................................................................................................................5
Deport and import a POOL.................................................................................................................6
See list of pools that can be imported:.......................................................................6
To import the POOL PROD:...............................................................................................6
Import POOL PROD by renaming PROD2:..................................................................6
To deport POOL PROD:.......................................................................................................6
Creating a FS:...................................................................................................................................7
Add mirror disks to the pool:...............................................................................................................8
Limit the FS (here 10G).....................................................................................................................8
Book 2 gigabytes at FS:.....................................................................................................................8
Creating a Snapshot and Rollback:.....................................................................................................9
Clone FS:.......................................................................................................................................10
View properties for a zFS:................................................................................................................10
FSCK in ZFS:.................................................................................................................................10
To replace a disk:............................................................................................................................11
Creating a RAID-Z:..........................................................................................................................12
Useful links :...................................................................................................................................13
- End of document -.................................................................................................................................13
Presentation :
o Simple:
o Mirroring:
# Zpool status -v
Or
# Zpool status -x
Destroying a Pool
The command does not warn and remove the Pool in seconds.
# Zpool import
The [f] can be used when the pool was being used by another
system.
# Zpool import -D
Import Pool:
Example:
Check the result of "df -h / export / home" before and after assigning
a quota to MSDS.
Warning :In the case of ZFS, though cmd "df -h" shows 10 gigabytes
of free (see example above), other FS same Pool is not limited by
default can reach the maximum limit of the Pool that blocks the rest
of the FS, where the concepts of "booking" and "quota". As of today
(see date below), SFR has chosen not to apply Quota!
Note :
Before performing a rollback, you can access the data FS
mode "read-only" to the state of the snapshot, it also lets you
know if what you will eat is what is desired as the final result:
Example:
Delete data and add in other / home after creating the snapshot.
List the contents of "/Prod/home/.zfs/snapshot/snapshot_lundi" you will find the FS with these data
in the initial state.
Cloning does not support attributes FS! Adapting the new FS cloned
your needs:
Example:
Example:
FSCK in ZFS:
Scans the entire pool and generates IO POOL on all the discs.
# Zpool status -x
To replace a disk:
Note :
If the new disk is not the same place as the one to replace the
replacement order is:
Creating a RAID-Z:
There are no plans to create this type of RAID SFR but the command
is given in case of specific need:
Example:
Useful links :
http://docs.sun.com/app/docs/doc/819-5461/
http://opensolaris.org/os/community/zfs/
- End of document -