Sunteți pe pagina 1din 5

Subscribe to Solaris Guru

Subscribe In Your Reader


Browse Articles
2009 (6)
2008 (23)
August (2)
July (1)
June (3)
May (17)
Solaris - Crontab
NETSTAT Usage in Solaris
State Database Replicas -
Introduction
Solaris Volume Management -
Introduction
Creating a Swap File/Partition
in Solaris
Implementing a Temporary
File System (TEMPFS) in S...
How to determine file system
associated with devic...
Steps to partition and create
file systems on a So...
NAS and SAN - A Comparison
(for newbies)
Tips on Veritas Volume
Manager (VxVM)
Solaris Guru ~ Helps you Get Quick Start on Solaris
Solaris related quick tips and tricks.
t u e s d a y , ma y 2 0 , 2 0 0 8
ZFS - Introduction
###Zettabyte File System (ZFS)###

Some Features:
1. Supports storage space of upto 256 quadrillion zettabytes (Terabytes -
Petabytes - Exabytes - Zettabytes(1024 Exabytes))
2. Supports RAID-0/1 & RAID-Z(which is nothing but RAID-5 with
enhancements. Best part is you dont need 3 disks to achieve RAID-5 on ZFS,
even with 2 virtual devices, ZFS provides and good amount of redundancy.)
3. Support File System Snapshots (read-only copies of file systems or
volumes.)
4. Supports creation of volumes (which can contain disks, partitions, files)
5. Uses storage pools to manage storage - aggregates virtual devices
6. ZFS File system attached to storage pool can grow dynamically as storage
is added. No need to reformat or backup your data before you add any extra
storage.
7. File systems may span multiple physical disks without any extra software
or even efforts.
8. ZFS is transactional so its all or nothing. If a write / read operation fails
for some reason, the entire transaction is rolled back.
9. Pools & file systems are auto-mounted. No need to maintain /etc/vfstab
(automatically handled through XML Files.)
10. Supports file system hierarchies: /storage1/{home(50GB),var
(100GB),etc.}
11. Supports reservation of storage: /storage1/{home(50GB),var}
12. Solaris 10, provides a secure web-based ZFS management tool @
https://localhost:6789/zfs


Page 1 of 5 Solaris Guru ~ Helps you Get Quick Start on Solaris: ZFS - Introduction
4/27/2012 http://solarisguru.getquickstart.com/2008/05/zfs-introduction.html
Categories
Basics (11)
(SAN) Storage (2)
Veritas Volume Manager -
Quick Start Command
Refer...
Mirroring Disk With Solaris
Disksuite (formerly So...
Gigabit Ethernet Configuration
ZFS - Introduction
Solaris Zones - Introduction
ZFS - Training Video
SAN Storage Configuration in
Solaris
BLOG Maintained by - Vishal Sharma |
GetQuickStart
###ZFS - Quick Command Reference###
zpool list - lists known ZFS pools
zpool create pool_name device_name1, device_name2, device_name3, etc.
zpool create storage1 c0t1d0|/dev/dsk/c0t1d0
zfs list - returns ZFS dataset info.
zfs mount - returns pools and mount points
zpool status - returns virtual devices that constitute pools
zpool destroy storage1 - Destroys pool and associated file systems


###Create file systems within storage1###
zfs create storage1/home - creates file system named 'home' in storage1

###Set quota on existing file system###
zfs set quota=10G storage1/home

###Create user-based file system beneath storage1/home###
zfs create storage1/home/vishal

zfs get -r compression storage1 - returns compression property for file
systems associated with 'storage1'

###Rename ZFS File System###
zfs rename storage1/home/vishal storage1/home/vishalnew

###Extending dynamically, pool storage###
zpool add storage1 c0t2d0


###ZFS Redundancy/Replication###
1. Mirroring - RAID-1
2. RAID-5 - RAID-Z


Virtual Devices:
1. c0t1d0 - 72GB
2. c0t2d0 - 72GB
Page 2 of 5 Solaris Guru ~ Helps you Get Quick Start on Solaris: ZFS - Introduction
4/27/2012 http://solarisguru.getquickstart.com/2008/05/zfs-introduction.html
Volume Manager Veritas (2)
ZFS (8)
Zones (6)

Note: Redundancy/Replication is associated directly with the pool

zpool create storagemirror1 mirror c0t1d0 c0t2d0

###ZFS Snapshots###
Its a read only copy of Volumes and File Systems
Use no additional space, initially

List ZFS Snapshots
zfs list t snapshot

Create a snapshot
zfs snapshot snapraidz1/home@homesnap1 (highest number is the most
recent snapshot)

zfs list t snapshot

snapshots can be viewed within the filesystem it was created

cd /snapraidz1/home

cd .zfs (hidden directory. Wont be visible even with ls -a.)

cd snapshot
cd homesnap1

zfs destroy snapraidz1/home@homesnap1

rename a snapshot

zfs rename snapraidz1/home@homesnap3 snapraidz1/home@homesnap4

rename between different pool names is not possible.

Rollback a zfs snapshot

Page 3 of 5 Solaris Guru ~ Helps you Get Quick Start on Solaris: ZFS - Introduction
4/27/2012 http://solarisguru.getquickstart.com/2008/05/zfs-introduction.html
Download
Virtual Machine
Free IT Cloud
Management
Tools. Manage
Your Cloud With
Spiceworks!
Spiceworks.com/Cloud
Graph Your SQL
Data
Turn your SQL
database into
sleek charts and
business graphs.
chart.io
Web Designing
Courses
Find Top Web
Designing Courses
& Instiutes in India
@ Shiksha.com
www.Shiksha.com/We
Visual SQL to
XML
Easy to use Data
Mapping
environment. Try
now!
www.ecrion.com
zfs rollback snapraidz1/home@homesnap4

File systems need to be remounted for roll back to work. Solution is use f

zfs rollback f snapraidz1/home@homesnap4

ZFS Clones

Features:
Writeable file systems / Volumes.
Clones are linked to snapshots.
Clone can be stored anywhere in zfs hierarchy

Create a clone

zfs clone snapraidz1/home@homesnap4 snapraidz1/homeclone1 (directory
would be created)
Posted by Vishal Sharma at 9:17 PM
Labels: ZFS
1 comments:
G.Rengarajan said...
Really it is very useful.Keep update like this....

Thanks,
G.Rengarajan
August 5, 2008 5:02 AM
Post a Comment
Links to this post
Create a Link
Page 4 of 5 Solaris Guru ~ Helps you Get Quick Start on Solaris: ZFS - Introduction
4/27/2012 http://solarisguru.getquickstart.com/2008/05/zfs-introduction.html
Newer Post Older Post Home
Subscribe to: Post Comments (Atom)
Online Data Storage
Hitachi network attached storage Download our free report.
hds.com
Page 5 of 5 Solaris Guru ~ Helps you Get Quick Start on Solaris: ZFS - Introduction
4/27/2012 http://solarisguru.getquickstart.com/2008/05/zfs-introduction.html

S-ar putea să vă placă și