P. 1
Solaris ZFS Administration Guide

Solaris ZFS Administration Guide

|Views: 179|Likes:
Published by cdikrani

More info:

Published by: cdikrani on Dec 14, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

10/22/2011

pdf

text

original

You can use the zfs set command to modify any settable dataset property. Or, you can use the
zfs create command to set properties when the dataset is created. For a list of settable dataset
properties, see “Settable ZFS Native Properties” on page 140. The zfs set command takes a
property/valuesequenceintheformatofproperty=valueandadatasetname.

Thefollowingexamplesetstheatimepropertytoofffortank/home.Onlyonepropertycanbe
set or modifed during each zfs set invocation.

# zfs set atime=off tank/home

Inaddition,anyflesystempropertycanbesetwhentheflesystemiscreated.Forexample:

# zfs create -o atime=off tank/home

Youcanspecifynumericpropertiesbyusingthefollowingeasytounderstandsufxes(inorder
ofmagnitude):BKMGTPEZ.Anyofthesesufxescanbefollowedbyanoptionalb,indicating
bytes,withtheexceptionoftheBsufx,whichalreadyindicatesbytes.Thefollowingfour
invocations of zfs set are equivalent numeric expressions indicating that the quota property
besettothevalueof50Gbytesonthetank/home/marksflesystem:

# zfs set quota=50G tank/home/marks

# zfs set quota=50g tank/home/marks

# zfs set quota=50GB tank/home/marks

# zfs set quota=50gb tank/home/marks

Valuesofnon-numericpropertiesarecase-sensitiveandmustbelowercase,withtheexception
ofmountpointandsharenfs.Thevaluesofthesepropertiescanhavemixedupperandlower
caseletters.

For more information about the zfs set command, see zfs(1M).

ManagingZFSProperties

SolarisZFSAdministrationGuide • September2008

146

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->